@nebula.js/sn-table 3.9.2 → 3.9.3

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.
@@ -1,10 +1,10 @@
1
1
  /*
2
- * @nebula.js/sn-table v3.9.2
2
+ * @nebula.js/sn-table v3.9.3
3
3
  * Copyright (c) 2024 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@nebula.js/stardust")):"function"==typeof define&&define.amd?define(["@nebula.js/stardust"],t):(e="undefined"!=typeof globalThis?globalThis:e||self)["sn-table"]=t(e.stardust)}(this,(function(e){"use strict";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(null,arguments)}function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var i={exports:{}};function a(){}function l(){}l.resetWarningCache=a;i.exports=function(){function e(e,t,n,r,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 n={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:l,resetWarningCache:a};return n.PropTypes=n,n}();var s=r(i.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"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function c(e,t){return e=u(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}(e)}function d(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function f(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,p(e,t)}var m={exports:{}},h={},g=Symbol.for("react.element"),b=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),E=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),R=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),A=Symbol.iterator;var L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},P=Object.assign,I={};function D(e,t,n){this.props=e,this.context=t,this.refs=I,this.updater=n||L}function _(){}function M(e,t,n){this.props=e,this.context=t,this.refs=I,this.updater=n||L}D.prototype.isReactComponent={},D.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},D.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=D.prototype;var T=M.prototype=new _;T.constructor=M,P(T,D.prototype),T.isPureReactComponent=!0;var O=Array.isArray,N=Object.prototype.hasOwnProperty,q={current:null},z={key:!0,ref:!0,__self:!0,__source:!0};function F(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)N.call(t,r)&&!z.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:g,type:e,key:i,ref:a,props:o,_owner:q.current}}function j(e){return"object"==typeof e&&null!==e&&e.$$typeof===g}var $=/\/+/g;function B(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function H(e,t,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case g:case b:a=!0}}if(a)return o=o(a=e),e=""===r?"."+B(a,0):r,O(o)?(n="",null!=e&&(n=e.replace($,"$&/")+"/"),H(o,t,n,"",(function(e){return e}))):null!=o&&(j(o)&&(o=function(e,t){return{$$typeof:g,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace($,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=""===r?".":r+":",O(e))for(var l=0;l<e.length;l++){var s=r+B(i=e[l],l);a+=H(i,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=A&&e[A]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(i=e.next()).done;)a+=H(i=i.value,t,n,s=r+B(i,l++),o);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function W(e,t,n){if(null==e)return e;var r=[],o=0;return H(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function V(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var U={current:null},G={transition:null},Y={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:G,ReactCurrentOwner:q};function K(){throw Error("act(...) is not supported in production builds of React.")}h.Children={map:W,forEach:function(e,t,n){W(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return W(e,(function(){t++})),t},toArray:function(e){return W(e,(function(e){return e}))||[]},only:function(e){if(!j(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},h.Component=D,h.Fragment=v,h.Profiler=x,h.PureComponent=M,h.StrictMode=y,h.Suspense=C,h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y,h.act=K,h.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=P({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=q.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)N.call(t,s)&&!z.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==l?l[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:g,type:e.type,key:o,ref:i,props:r,_owner:a}},h.createContext=function(e){return(e={$$typeof:E,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:S,_context:e},e.Consumer=e},h.createElement=F,h.createFactory=function(e){var t=F.bind(null,e);return t.type=e,t},h.createRef=function(){return{current:null}},h.forwardRef=function(e){return{$$typeof:w,render:e}},h.isValidElement=j,h.lazy=function(e){return{$$typeof:k,_payload:{_status:-1,_result:e},_init:V}},h.memo=function(e,t){return{$$typeof:R,type:e,compare:void 0===t?null:t}},h.startTransition=function(e){var t=G.transition;G.transition={};try{e()}finally{G.transition=t}},h.unstable_act=K,h.useCallback=function(e,t){return U.current.useCallback(e,t)},h.useContext=function(e){return U.current.useContext(e)},h.useDebugValue=function(){},h.useDeferredValue=function(e){return U.current.useDeferredValue(e)},h.useEffect=function(e,t){return U.current.useEffect(e,t)},h.useId=function(){return U.current.useId()},h.useImperativeHandle=function(e,t,n){return U.current.useImperativeHandle(e,t,n)},h.useInsertionEffect=function(e,t){return U.current.useInsertionEffect(e,t)},h.useLayoutEffect=function(e,t){return U.current.useLayoutEffect(e,t)},h.useMemo=function(e,t){return U.current.useMemo(e,t)},h.useReducer=function(e,t,n){return U.current.useReducer(e,t,n)},h.useRef=function(e){return U.current.useRef(e)},h.useState=function(e){return U.current.useState(e)},h.useSyncExternalStore=function(e,t,n){return U.current.useSyncExternalStore(e,t,n)},h.useTransition=function(){return U.current.useTransition()},h.version="18.3.1",m.exports=h;var X=m.exports,J=r(X),Q=t({__proto__:null,default:J},[X]);const Z={GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF"},ee={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Z,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},te=12,ne=14,re=16,oe=24,ie=3,ae=300,le=400,se=600,ue=700,ce={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};c(ee.GREYSCALE_0,.05),c(ee.GREEN_PALE,.5),c(ee.BLUE_PALE,.5),c(ee.GREEN_PALE,.5),c(ee.BLUE_PALE,.5),c(ee.GREEN_PALE,.5),c(ee.BLUE_PALE,.5);var de;function pe(){return pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pe.apply(this,arguments)}c(ee.GREEN_PALE,.5),c(ee.BLUE_PALE,.5),c(ee.GREEN_PALE,.5),c(ee.BLUE_PALE,.5);var fe,me=function(e){return X.createElement("svg",pe({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),de||(de=X.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function he(){return he=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},he.apply(this,arguments)}var ge=function(e){return X.createElement("svg",he({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),fe||(fe=X.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 be({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return J.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var ve=(e={})=>J.createElement(be,{...e},J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},J.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),J.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"}))),ye=(e={})=>J.createElement(be,{...e},J.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},J.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},J.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),J.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),xe=(e={})=>J.createElement(be,{fontSize:"medium",...e},J.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},J.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},J.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),Se=(e={})=>J.createElement(be,{fontSize:"medium",...e},J.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),J.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"}))),Ee=({className:e})=>J.createElement(be,{fontSize:"small",className:e},J.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},J.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},J.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},J.createElement("g",{transform:"translate(4.324187, 1.300372)"},J.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"}),J.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 we={black:"#000",white:"#fff"};var Ce={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var Re={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 ke={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var Ae={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var Le={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 Pe={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 Ie={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 De(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 _e="$$material";function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Me.apply(this,arguments)}function Te(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Oe(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 Ne=Object.freeze({__proto__:null,default:Oe}),qe=function(){return qe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qe.apply(this,arguments)};function ze(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Fe=r((function(e,t,n,r){var o=n?n.call(r,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=n?n.call(r,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0})),je="-ms-",$e="-moz-",Be="-webkit-",He="comm",We="rule",Ve="decl",Ue="@media",Ge="@import",Ye="@supports",Ke="@keyframes",Xe="@layer",Je=Math.abs,Qe=String.fromCharCode,Ze=Object.assign;function et(e){return e.trim()}function tt(e,t){return(e=t.exec(e))?e[0]:e}function nt(e,t,n){return e.replace(t,n)}function rt(e,t,n){return e.indexOf(t,n)}function ot(e,t){return 0|e.charCodeAt(t)}function it(e,t,n){return e.slice(t,n)}function at(e){return e.length}function lt(e){return e.length}function st(e,t){return t.push(e),e}function ut(e,t){return e.filter((function(e){return!tt(e,t)}))}var ct=1,dt=1,pt=0,ft=0,mt=0,ht="";function gt(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:ct,column:dt,length:a,return:"",siblings:l}}function bt(e,t){return Ze(gt("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function vt(e){for(;e.root;)e=bt(e.root,{children:[e]});st(e,e.siblings)}function yt(){return mt=ft>0?ot(ht,--ft):0,dt--,10===mt&&(dt=1,ct--),mt}function xt(){return mt=ft<pt?ot(ht,ft++):0,dt++,10===mt&&(dt=1,ct++),mt}function St(){return ot(ht,ft)}function Et(){return ft}function wt(e,t){return it(ht,e,t)}function Ct(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 Rt(e){return et(wt(ft-1,Lt(91===e?e+2:40===e?e+1:e)))}function kt(e){for(;(mt=St())&&mt<33;)xt();return Ct(e)>2||Ct(mt)>3?"":" "}function At(e,t){for(;--t&&xt()&&!(mt<48||mt>102||mt>57&&mt<65||mt>70&&mt<97););return wt(e,Et()+(t<6&&32==St()&&32==xt()))}function Lt(e){for(;xt();)switch(mt){case e:return ft;case 34:case 39:34!==e&&39!==e&&Lt(mt);break;case 40:41===e&&Lt(e);break;case 92:xt()}return ft}function Pt(e,t){for(;xt()&&e+mt!==57&&(e+mt!==84||47!==St()););return"/*"+wt(t,ft-1)+"*"+Qe(47===e?e:xt())}function It(e){for(;!Ct(St());)xt();return wt(e,ft)}function Dt(e){return function(e){return ht="",e}(_t("",null,null,null,[""],e=function(e){return ct=dt=1,pt=at(ht=e),ft=0,[]}(e),0,[0],e))}function _t(e,t,n,r,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=r,w=y;g;)switch(m=v,v=xt()){case 40:if(108!=m&&58==ot(w,d-1)){-1!=rt(w+=nt(Rt(v),"&","&\f"),"&\f",Je(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:w+=Rt(v);break;case 9:case 10:case 13:case 32:w+=kt(m);break;case 92:w+=At(Et()-1,7);continue;case 47:switch(St()){case 42:case 47:st(Tt(Pt(xt(),Et()),t,n,s),s);break;default:w+="/"}break;case 123*h:l[u++]=at(w)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(w=nt(w,/\f/g,"")),f>0&&at(w)-d&&st(f>32?Ot(w+";",r,n,d-1,s):Ot(nt(w," ","")+";",r,n,d-2,s),s);break;case 59:w+=";";default:if(st(E=Mt(w,t,n,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)_t(w,t,E,E,x,i,d,l,S);else switch(99===p&&110===ot(w,3)?100:p){case 100:case 108:case 109:case 115:_t(e,E,E,r&&st(Mt(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,r?x:S);break;default:_t(w,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=b=1,y=w="",d=a;break;case 58:d=1+at(w),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==yt())continue;switch(w+=Qe(v),v*h){case 38:b=c>0?1:(w+="\f",-1);break;case 44:l[u++]=(at(w)-1)*b,b=1;break;case 64:45===St()&&(w+=Rt(xt())),p=St(),c=d=at(y=w+=It(Et())),v++;break;case 45:45===m&&2==at(w)&&(h=0)}}return i}function Mt(e,t,n,r,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=lt(f),h=0,g=0,b=0;h<r;++h)for(var v=0,y=it(e,p+1,p=Je(g=a[h])),x=e;v<m;++v)(x=et(g>0?f[v]+" "+y:nt(y,/&\f/g,f[v])))&&(s[b++]=x);return gt(e,t,n,0===o?We:l,s,u,c,d)}function Tt(e,t,n,r){return gt(e,t,n,He,Qe(mt),it(e,2,-2),0,r)}function Ot(e,t,n,r,o){return gt(e,t,n,Ve,it(e,0,r),it(e,r+1,-1),r,o)}function Nt(e,t,n){switch(function(e,t){return 45^ot(e,0)?(((t<<2^ot(e,0))<<2^ot(e,1))<<2^ot(e,2))<<2^ot(e,3):0}(e,t)){case 5103:return Be+"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 Be+e+e;case 4789:return $e+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Be+e+$e+e+je+e+e;case 5936:switch(ot(e,t+11)){case 114:return Be+e+je+nt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Be+e+je+nt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Be+e+je+nt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Be+e+je+e+e;case 6165:return Be+e+je+"flex-"+e+e;case 5187:return Be+e+nt(e,/(\w+).+(:[^]+)/,Be+"box-$1$2"+je+"flex-$1$2")+e;case 5443:return Be+e+je+"flex-item-"+nt(e,/flex-|-self/g,"")+(tt(e,/flex-|baseline/)?"":je+"grid-row-"+nt(e,/flex-|-self/g,""))+e;case 4675:return Be+e+je+"flex-line-pack"+nt(e,/align-content|flex-|-self/g,"")+e;case 5548:return Be+e+je+nt(e,"shrink","negative")+e;case 5292:return Be+e+je+nt(e,"basis","preferred-size")+e;case 6060:return Be+"box-"+nt(e,"-grow","")+Be+e+je+nt(e,"grow","positive")+e;case 4554:return Be+nt(e,/([^-])(transform)/g,"$1"+Be+"$2")+e;case 6187:return nt(nt(nt(e,/(zoom-|grab)/,Be+"$1"),/(image-set)/,Be+"$1"),e,"")+e;case 5495:case 3959:return nt(e,/(image-set\([^]*)/,Be+"$1$`$1");case 4968:return nt(nt(e,/(.+:)(flex-)?(.*)/,Be+"box-pack:$3"+je+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Be+e+e;case 4200:if(!tt(e,/flex-|baseline/))return je+"grid-column-align"+it(e,t)+e;break;case 2592:case 3360:return je+nt(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,tt(e.props,/grid-\w+-end/)}))?~rt(e+(n=n[t].value),"span",0)?e:je+nt(e,"-start","")+e+je+"grid-row-span:"+(~rt(n,"span",0)?tt(n,/\d+/):+tt(n,/\d+/)-+tt(e,/\d+/))+";":je+nt(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return tt(e.props,/grid-\w+-start/)}))?e:je+nt(nt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return nt(e,/(.+)-inline(.+)/,Be+"$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(at(e)-1-t>6)switch(ot(e,t+1)){case 109:if(45!==ot(e,t+4))break;case 102:return nt(e,/(.+:)(.+)-([^]+)/,"$1"+Be+"$2-$3$1"+$e+(108==ot(e,t+3)?"$3":"$2-$3"))+e;case 115:return~rt(e,"stretch",0)?Nt(nt(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return nt(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,l){return je+n+":"+r+l+(o?je+n+"-span:"+(i?a:+a-+r)+l:"")+e}));case 4949:if(121===ot(e,t+6))return nt(e,":",":"+Be)+e;break;case 6444:switch(ot(e,45===ot(e,14)?18:11)){case 120:return nt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Be+(45===ot(e,14)?"inline-":"")+"box$3$1"+Be+"$2$3$1"+je+"$2box$3")+e;case 100:return nt(e,":",":"+je)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return nt(e,"scroll-","scroll-snap-")+e}return e}function qt(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function zt(e,t,n,r){switch(e.type){case Xe:if(e.children.length)break;case Ge:case Ve:return e.return=e.return||e.value;case He:return"";case Ke:return e.return=e.value+"{"+qt(e.children,r)+"}";case We:if(!at(e.value=e.props.join(",")))return""}return at(n=qt(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ft(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ve:return void(e.return=Nt(e.value,e.length,n));case Ke:return qt([bt(e,{value:nt(e.value,"@","@"+Be)})],r);case We:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(tt(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":vt(bt(e,{props:[nt(t,/:(read-\w+)/,":"+$e+"$1")]})),vt(bt(e,{props:[t]})),Ze(e,{props:ut(n,r)});break;case"::placeholder":vt(bt(e,{props:[nt(t,/:(plac\w+)/,":"+Be+"input-$1")]})),vt(bt(e,{props:[nt(t,/:(plac\w+)/,":"+$e+"$1")]})),vt(bt(e,{props:[nt(t,/:(plac\w+)/,je+"input-$1")]})),vt(bt(e,{props:[t]})),Ze(e,{props:ut(n,r)})}return""}))}}var jt={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},$t="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Bt="active",Ht="data-styled-version",Wt="6.1.12",Vt="/*!sc*/\n",Ut="undefined"!=typeof window&&"HTMLElement"in window,Gt=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)),Yt={},Kt=Object.freeze([]),Xt=Object.freeze({});function Jt(e,t,n){return void 0===n&&(n=Xt),e.theme!==n.theme&&e.theme||t||n.theme}var Qt=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"]),Zt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,en=/(^-|-$)/g;function tn(e){return e.replace(Zt,"-").replace(en,"")}var nn=/(a)(d)/gi,rn=52,on=function(e){return String.fromCharCode(e+(e>25?39:97))};function an(e){var t,n="";for(t=Math.abs(e);t>rn;t=t/rn|0)n=on(t%rn)+n;return(on(t%rn)+n).replace(nn,"$1-$2")}var ln,sn=5381,un=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},cn=function(e){return un(sn,e)};function dn(e){return an(cn(e)>>>0)}function pn(e){return"string"==typeof e&&!0}var fn="function"==typeof Symbol&&Symbol.for,mn=fn?Symbol.for("react.memo"):60115,hn=fn?Symbol.for("react.forward_ref"):60112,gn={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},bn={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},vn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},yn=((ln={})[hn]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ln[mn]=vn,ln);function xn(e){return("type"in(t=e)&&t.type.$$typeof)===mn?vn:"$$typeof"in e?yn[e.$$typeof]:gn;var t}var Sn=Object.defineProperty,En=Object.getOwnPropertyNames,wn=Object.getOwnPropertySymbols,Cn=Object.getOwnPropertyDescriptor,Rn=Object.getPrototypeOf,kn=Object.prototype;function An(e,t,n){if("string"!=typeof t){if(kn){var r=Rn(t);r&&r!==kn&&An(e,r,n)}var o=En(t);wn&&(o=o.concat(wn(t)));for(var i=xn(e),a=xn(t),l=0;l<o.length;++l){var s=o[l];if(!(s in bn||n&&n[s]||a&&s in a||i&&s in i)){var u=Cn(t,s);try{Sn(e,s,u)}catch(e){}}}}return e}function Ln(e){return"function"==typeof e}function Pn(e){return"object"==typeof e&&"styledComponentId"in e}function In(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Dn(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function _n(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Mn(e,t,n){if(void 0===n&&(n=!1),!n&&!_n(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Mn(e[r],t[r]);else if(_n(t))for(var r in t)e[r]=Mn(e[r],t[r]);return e}function Tn(e,t){Object.defineProperty(e,"toString",{value:t})}function On(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];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 Nn=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,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw On(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;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],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(Vt);return t},e}(),qn=new Map,zn=new Map,Fn=1,jn=function(e){if(qn.has(e))return qn.get(e);for(;zn.has(Fn);)Fn++;var t=Fn++;return qn.set(e,t),zn.set(t,e),t},$n=function(e,t){Fn=t+1,qn.set(e,t),zn.set(t,e)},Bn="style[".concat($t,"][").concat(Ht,'="').concat(Wt,'"]'),Hn=new RegExp("^".concat($t,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Wn=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},Vn=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Vt),o=[],i=0,a=r.length;i<a;i++){var l=r[i].trim();if(l){var s=l.match(Hn);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&($n(c,u),Wn(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},Un=function(e){for(var t=document.querySelectorAll(Bn),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute($t)!==Bt&&(Vn(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Gn=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat($t,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute($t,Bt),r.setAttribute(Ht,Wt);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},Yn=function(){function e(e){this.element=Gn(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw On(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}(),Kn=function(){function e(e){this.element=Gn(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,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}(),Xn=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}(),Jn=Ut,Qn={isServer:!Ut,useCSSOMInjection:!Gt},Zn=function(){function e(e,t,n){void 0===e&&(e=Xt),void 0===t&&(t={});var r=this;this.options=qe(qe({},Qn),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Ut&&Jn&&(Jn=!1,Un(this)),Tn(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return zn.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||!i.size||0===a.length)return"continue";var l="".concat($t,".g").concat(n,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),r+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(Vt)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return jn(e)},e.prototype.rehydrate=function(){!this.server&&Ut&&Un(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(qe(qe({},this.options),t),this.gs,n&&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,n=e.target;return e.isServer?new Xn(n):t?new Yn(n):new Kn(n)}(this.options),new Nn(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(jn(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(jn(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(jn(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),er=/&/g,tr=/^\s*\/\/.*$/gm;function nr(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=nr(e.children,t)),e}))}function rr(e){var t,n,r,o=void 0===e?Xt:e,i=o.options,a=void 0===i?Xt:i,l=o.plugins,s=void 0===l?Kt:l,u=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===We&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(er,n).replace(r,u))})),a.prefix&&c.push(Ft),c.push(zt);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var s=e.replace(tr,""),u=Dt(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=nr(u,a.namespace));var d,p=[];return qt(u,function(e){var t=lt(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,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||On(15),un(e,t.name)}),sn).toString():"",d}var or=new Zn,ir=rr(),ar=J.createContext({shouldForwardProp:void 0,styleSheet:or,stylis:ir});ar.Consumer;var lr=J.createContext(void 0);function sr(){return X.useContext(ar)}function ur(e){var t=X.useState(e.stylisPlugins),n=t[0],r=t[1],o=sr().styleSheet,i=X.useMemo((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=X.useMemo((function(){return rr({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})}),[e.enableVendorPrefixes,e.namespace,n]);X.useEffect((function(){Fe(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]);var l=X.useMemo((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}}),[e.shouldForwardProp,i,a]);return J.createElement(ar.Provider,{value:l},J.createElement(lr.Provider,{value:a},e.children))}var cr=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ir);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Tn(this,(function(){throw On(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=ir),this.name+e.hash},e}(),dr=function(e){return e>="A"&&e<="Z"};function pr(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;dr(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var fr=function(e){return null==e||!1===e||""===e},mr=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!fr(i)&&(Array.isArray(i)&&i.isCss||Ln(i)?r.push("".concat(pr(o),":"),i,";"):_n(i)?r.push.apply(r,ze(ze(["".concat(o," {")],mr(i),!1),["}"],!1)):r.push("".concat(pr(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in jt||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function hr(e,t,n,r){return fr(e)?[]:Pn(e)?[".".concat(e.styledComponentId)]:Ln(e)?!Ln(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:hr(e(t),t,n,r):e instanceof cr?n?(e.inject(n,r),[e.getName(r)]):[e]:_n(e)?mr(e):Array.isArray(e)?Array.prototype.concat.apply(Kt,e.map((function(e){return hr(e,t,n,r)}))):[e.toString()];var o}function gr(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ln(n)&&!Pn(n))return!1}return!0}var br=cn(Wt),vr=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&gr(e),this.componentId=t,this.baseHash=un(br,t),this.baseStyle=n,Zn.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=In(r,this.staticRulesId);else{var o=Dn(hr(this.rules,e,t,n)),i=an(un(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=In(r,i),this.staticRulesId=i}else{for(var l=un(this.baseHash,n.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=Dn(hr(c,e,t,n));l=un(l,d+u),s+=d}}if(s){var p=an(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=In(r,p)}}return r},e}(),yr=J.createContext(void 0);yr.Consumer;var xr={};new Set;function Sr(e,t,n){var r=Pn(e),o=e,i=!pn(e),a=t.attrs,l=void 0===a?Kt:a,s=t.componentId,u=void 0===s?function(e,t){var n="string"!=typeof e?"sc":tn(e);xr[n]=(xr[n]||0)+1;var r="".concat(n,"-").concat(dn(Wt+n+xr[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return pn(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(tn(t.displayName),"-").concat(t.componentId):t.componentId||u,f=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(r&&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 vr(n,p,r?o.componentStyle:void 0);function v(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=J.useContext(yr),c=sr(),d=e.shouldForwardProp||c.shouldForwardProp,p=Jt(t,u,i)||Xt,f=function(e,t,n){for(var r,o=qe(qe({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=Ln(r=e[i])?r(o):r;for(var l in a)o[l]="className"===l?In(o[l],a[l]):"style"===l?qe(qe({},o[l]),a[l]):a[l]}return t.className&&(o.className=In(o.className,t.className)),o}(r,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 n=sr();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,f),v=In(a,l);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),h[pn(m)&&!Qt.has(m)?"class":"className"]=v,h.ref=n,X.createElement(m,h)}(y,e,t)}v.displayName=d;var y=J.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=r?In(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=r?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Mn(e,o[r],!0);return e}({},o.defaultProps,e):e}}),Tn(y,(function(){return".".concat(y.styledComponentId)})),i&&An(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function Er(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var wr=function(e){return Object.assign(e,{isCss:!0})};function Cr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Ln(e)||_n(e))return wr(hr(Er(Kt,ze([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?hr(r):wr(hr(Er(r,t)))}function Rr(e,t,n){if(void 0===n&&(n=Xt),!t)throw On(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,Cr.apply(void 0,ze([r],o,!1)))};return r.attrs=function(r){return Rr(e,t,qe(qe({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return Rr(e,t,qe(qe({},n),r))},r}var kr=function(e){return Rr(Sr,e)},Ar=kr;Qt.forEach((function(e){Ar[e]=kr(e)}));var Lr=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=gr(e),Zn.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(Dn(hr(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&Zn.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Pr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Dn(Cr.apply(void 0,ze([e],t,!1))),o=dn(r);return new cr(o,r)}function Ir(e){const{injectFirst:t,children:n}=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 n}Ir.propTypes={children:s.node,injectFirst:s.bool};const Dr=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Cr.apply(void 0,ze([e],t,!1)),o="sc-global-".concat(dn(JSON.stringify(r))),i=new Lr(r,o),a=function(e){var t=sr(),n=J.useContext(yr),r=J.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,Yt,n,o);else{var l=qe(qe({},t),{theme:Jt(t,r,a.defaultProps)});i.renderStyles(e,l,n,o)}}(r,e,t.styleSheet,n,t.stylis),null};return J.memo(a)}((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r}));var _r=Dr;
7
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@nebula.js/stardust")):"function"==typeof define&&define.amd?define(["@nebula.js/stardust"],t):(e="undefined"!=typeof globalThis?globalThis:e||self)["sn-table"]=t(e.stardust)}(this,(function(e){"use strict";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(null,arguments)}function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var i={exports:{}};function a(){}function l(){}l.resetWarningCache=a;i.exports=function(){function e(e,t,n,r,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 n={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:l,resetWarningCache:a};return n.PropTypes=n,n}();var s=r(i.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"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function c(e,t){return e=u(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}(e)}function d(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function f(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,p(e,t)}var m={exports:{}},h={},g=Symbol.for("react.element"),b=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),E=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),R=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),A=Symbol.iterator;var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,I={};function D(e,t,n){this.props=e,this.context=t,this.refs=I,this.updater=n||P}function _(){}function M(e,t,n){this.props=e,this.context=t,this.refs=I,this.updater=n||P}D.prototype.isReactComponent={},D.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},D.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=D.prototype;var T=M.prototype=new _;T.constructor=M,L(T,D.prototype),T.isPureReactComponent=!0;var O=Array.isArray,N=Object.prototype.hasOwnProperty,q={current:null},z={key:!0,ref:!0,__self:!0,__source:!0};function F(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)N.call(t,r)&&!z.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:g,type:e,key:i,ref:a,props:o,_owner:q.current}}function j(e){return"object"==typeof e&&null!==e&&e.$$typeof===g}var $=/\/+/g;function B(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function H(e,t,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case g:case b:a=!0}}if(a)return o=o(a=e),e=""===r?"."+B(a,0):r,O(o)?(n="",null!=e&&(n=e.replace($,"$&/")+"/"),H(o,t,n,"",(function(e){return e}))):null!=o&&(j(o)&&(o=function(e,t){return{$$typeof:g,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace($,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=""===r?".":r+":",O(e))for(var l=0;l<e.length;l++){var s=r+B(i=e[l],l);a+=H(i,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=A&&e[A]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(i=e.next()).done;)a+=H(i=i.value,t,n,s=r+B(i,l++),o);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function V(e,t,n){if(null==e)return e;var r=[],o=0;return H(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function W(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var U={current:null},G={transition:null},Y={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:G,ReactCurrentOwner:q};function K(){throw Error("act(...) is not supported in production builds of React.")}h.Children={map:V,forEach:function(e,t,n){V(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return V(e,(function(){t++})),t},toArray:function(e){return V(e,(function(e){return e}))||[]},only:function(e){if(!j(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},h.Component=D,h.Fragment=v,h.Profiler=x,h.PureComponent=M,h.StrictMode=y,h.Suspense=C,h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y,h.act=K,h.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=L({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=q.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)N.call(t,s)&&!z.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==l?l[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:g,type:e.type,key:o,ref:i,props:r,_owner:a}},h.createContext=function(e){return(e={$$typeof:E,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:S,_context:e},e.Consumer=e},h.createElement=F,h.createFactory=function(e){var t=F.bind(null,e);return t.type=e,t},h.createRef=function(){return{current:null}},h.forwardRef=function(e){return{$$typeof:w,render:e}},h.isValidElement=j,h.lazy=function(e){return{$$typeof:k,_payload:{_status:-1,_result:e},_init:W}},h.memo=function(e,t){return{$$typeof:R,type:e,compare:void 0===t?null:t}},h.startTransition=function(e){var t=G.transition;G.transition={};try{e()}finally{G.transition=t}},h.unstable_act=K,h.useCallback=function(e,t){return U.current.useCallback(e,t)},h.useContext=function(e){return U.current.useContext(e)},h.useDebugValue=function(){},h.useDeferredValue=function(e){return U.current.useDeferredValue(e)},h.useEffect=function(e,t){return U.current.useEffect(e,t)},h.useId=function(){return U.current.useId()},h.useImperativeHandle=function(e,t,n){return U.current.useImperativeHandle(e,t,n)},h.useInsertionEffect=function(e,t){return U.current.useInsertionEffect(e,t)},h.useLayoutEffect=function(e,t){return U.current.useLayoutEffect(e,t)},h.useMemo=function(e,t){return U.current.useMemo(e,t)},h.useReducer=function(e,t,n){return U.current.useReducer(e,t,n)},h.useRef=function(e){return U.current.useRef(e)},h.useState=function(e){return U.current.useState(e)},h.useSyncExternalStore=function(e,t,n){return U.current.useSyncExternalStore(e,t,n)},h.useTransition=function(){return U.current.useTransition()},h.version="18.3.1",m.exports=h;var X=m.exports,J=r(X),Q=t({__proto__:null,default:J},[X]);const Z={GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF"},ee={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Z,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},te=12,ne=14,re=16,oe=24,ie=3,ae=300,le=400,se=600,ue=700,ce={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};c(ee.GREYSCALE_0,.05),c(ee.GREEN_PALE,.5),c(ee.BLUE_PALE,.5),c(ee.GREEN_PALE,.5),c(ee.BLUE_PALE,.5),c(ee.GREEN_PALE,.5),c(ee.BLUE_PALE,.5);var de;function pe(){return pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pe.apply(this,arguments)}c(ee.GREEN_PALE,.5),c(ee.BLUE_PALE,.5),c(ee.GREEN_PALE,.5),c(ee.BLUE_PALE,.5);var fe,me=function(e){return X.createElement("svg",pe({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),de||(de=X.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function he(){return he=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},he.apply(this,arguments)}var ge=function(e){return X.createElement("svg",he({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),fe||(fe=X.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 be({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return J.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var ve=(e={})=>J.createElement(be,{...e},J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},J.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),J.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"}))),ye=(e={})=>J.createElement(be,{...e},J.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},J.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},J.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),J.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),xe=(e={})=>J.createElement(be,{fontSize:"medium",...e},J.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},J.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},J.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),Se=(e={})=>J.createElement(be,{fontSize:"medium",...e},J.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),J.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"}))),Ee=({className:e})=>J.createElement(be,{fontSize:"small",className:e},J.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},J.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},J.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},J.createElement("g",{transform:"translate(4.324187, 1.300372)"},J.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"}),J.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 we={black:"#000",white:"#fff"};var Ce={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var Re={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 ke={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var Ae={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var Pe={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 Le={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 Ie={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 De(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 _e="$$material";function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Me.apply(this,arguments)}function Te(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Oe(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 Ne=Object.freeze({__proto__:null,default:Oe}),qe=function(){return qe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qe.apply(this,arguments)};function ze(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Fe=r((function(e,t,n,r){var o=n?n.call(r,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=n?n.call(r,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0})),je="-ms-",$e="-moz-",Be="-webkit-",He="comm",Ve="rule",We="decl",Ue="@import",Ge="@keyframes",Ye="@layer",Ke=Math.abs,Xe=String.fromCharCode,Je=Object.assign;function Qe(e){return e.trim()}function Ze(e,t){return(e=t.exec(e))?e[0]:e}function et(e,t,n){return e.replace(t,n)}function tt(e,t,n){return e.indexOf(t,n)}function nt(e,t){return 0|e.charCodeAt(t)}function rt(e,t,n){return e.slice(t,n)}function ot(e){return e.length}function it(e){return e.length}function at(e,t){return t.push(e),e}function lt(e,t){return e.filter((function(e){return!Ze(e,t)}))}var st=1,ut=1,ct=0,dt=0,pt=0,ft="";function mt(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:st,column:ut,length:a,return:"",siblings:l}}function ht(e,t){return Je(mt("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function gt(e){for(;e.root;)e=ht(e.root,{children:[e]});at(e,e.siblings)}function bt(){return pt=dt<ct?nt(ft,dt++):0,ut++,10===pt&&(ut=1,st++),pt}function vt(){return nt(ft,dt)}function yt(){return dt}function xt(e,t){return rt(ft,e,t)}function St(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 Et(e){return Qe(xt(dt-1,Rt(91===e?e+2:40===e?e+1:e)))}function wt(e){for(;(pt=vt())&&pt<33;)bt();return St(e)>2||St(pt)>3?"":" "}function Ct(e,t){for(;--t&&bt()&&!(pt<48||pt>102||pt>57&&pt<65||pt>70&&pt<97););return xt(e,yt()+(t<6&&32==vt()&&32==bt()))}function Rt(e){for(;bt();)switch(pt){case e:return dt;case 34:case 39:34!==e&&39!==e&&Rt(pt);break;case 40:41===e&&Rt(e);break;case 92:bt()}return dt}function kt(e,t){for(;bt()&&e+pt!==57&&(e+pt!==84||47!==vt()););return"/*"+xt(t,dt-1)+"*"+Xe(47===e?e:bt())}function At(e){for(;!St(vt());)bt();return xt(e,dt)}function Pt(e){return function(e){return ft="",e}(Lt("",null,null,null,[""],e=function(e){return st=ut=1,ct=ot(ft=e),dt=0,[]}(e),0,[0],e))}function Lt(e,t,n,r,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=r,w=y;g;)switch(m=v,v=bt()){case 40:if(108!=m&&58==nt(w,d-1)){-1!=tt(w+=et(Et(v),"&","&\f"),"&\f",Ke(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:w+=Et(v);break;case 9:case 10:case 13:case 32:w+=wt(m);break;case 92:w+=Ct(yt()-1,7);continue;case 47:switch(vt()){case 42:case 47:at(Dt(kt(bt(),yt()),t,n,s),s);break;default:w+="/"}break;case 123*h:l[u++]=ot(w)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(w=et(w,/\f/g,"")),f>0&&ot(w)-d&&at(f>32?_t(w+";",r,n,d-1,s):_t(et(w," ","")+";",r,n,d-2,s),s);break;case 59:w+=";";default:if(at(E=It(w,t,n,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)Lt(w,t,E,E,x,i,d,l,S);else switch(99===p&&110===nt(w,3)?100:p){case 100:case 108:case 109:case 115:Lt(e,E,E,r&&at(It(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,r?x:S);break;default:Lt(w,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=b=1,y=w="",d=a;break;case 58:d=1+ot(w),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==(pt=dt>0?nt(ft,--dt):0,ut--,10===pt&&(ut=1,st--),pt))continue;switch(w+=Xe(v),v*h){case 38:b=c>0?1:(w+="\f",-1);break;case 44:l[u++]=(ot(w)-1)*b,b=1;break;case 64:45===vt()&&(w+=Et(bt())),p=vt(),c=d=ot(y=w+=At(yt())),v++;break;case 45:45===m&&2==ot(w)&&(h=0)}}return i}function It(e,t,n,r,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=it(f),h=0,g=0,b=0;h<r;++h)for(var v=0,y=rt(e,p+1,p=Ke(g=a[h])),x=e;v<m;++v)(x=Qe(g>0?f[v]+" "+y:et(y,/&\f/g,f[v])))&&(s[b++]=x);return mt(e,t,n,0===o?Ve:l,s,u,c,d)}function Dt(e,t,n,r){return mt(e,t,n,He,Xe(pt),rt(e,2,-2),0,r)}function _t(e,t,n,r,o){return mt(e,t,n,We,rt(e,0,r),rt(e,r+1,-1),r,o)}function Mt(e,t,n){switch(function(e,t){return 45^nt(e,0)?(((t<<2^nt(e,0))<<2^nt(e,1))<<2^nt(e,2))<<2^nt(e,3):0}(e,t)){case 5103:return Be+"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 Be+e+e;case 4789:return $e+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Be+e+$e+e+je+e+e;case 5936:switch(nt(e,t+11)){case 114:return Be+e+je+et(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Be+e+je+et(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Be+e+je+et(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Be+e+je+e+e;case 6165:return Be+e+je+"flex-"+e+e;case 5187:return Be+e+et(e,/(\w+).+(:[^]+)/,Be+"box-$1$2"+je+"flex-$1$2")+e;case 5443:return Be+e+je+"flex-item-"+et(e,/flex-|-self/g,"")+(Ze(e,/flex-|baseline/)?"":je+"grid-row-"+et(e,/flex-|-self/g,""))+e;case 4675:return Be+e+je+"flex-line-pack"+et(e,/align-content|flex-|-self/g,"")+e;case 5548:return Be+e+je+et(e,"shrink","negative")+e;case 5292:return Be+e+je+et(e,"basis","preferred-size")+e;case 6060:return Be+"box-"+et(e,"-grow","")+Be+e+je+et(e,"grow","positive")+e;case 4554:return Be+et(e,/([^-])(transform)/g,"$1"+Be+"$2")+e;case 6187:return et(et(et(e,/(zoom-|grab)/,Be+"$1"),/(image-set)/,Be+"$1"),e,"")+e;case 5495:case 3959:return et(e,/(image-set\([^]*)/,Be+"$1$`$1");case 4968:return et(et(e,/(.+:)(flex-)?(.*)/,Be+"box-pack:$3"+je+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Be+e+e;case 4200:if(!Ze(e,/flex-|baseline/))return je+"grid-column-align"+rt(e,t)+e;break;case 2592:case 3360:return je+et(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,Ze(e.props,/grid-\w+-end/)}))?~tt(e+(n=n[t].value),"span",0)?e:je+et(e,"-start","")+e+je+"grid-row-span:"+(~tt(n,"span",0)?Ze(n,/\d+/):+Ze(n,/\d+/)-+Ze(e,/\d+/))+";":je+et(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return Ze(e.props,/grid-\w+-start/)}))?e:je+et(et(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return et(e,/(.+)-inline(.+)/,Be+"$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(ot(e)-1-t>6)switch(nt(e,t+1)){case 109:if(45!==nt(e,t+4))break;case 102:return et(e,/(.+:)(.+)-([^]+)/,"$1"+Be+"$2-$3$1"+$e+(108==nt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~tt(e,"stretch",0)?Mt(et(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return et(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,l){return je+n+":"+r+l+(o?je+n+"-span:"+(i?a:+a-+r)+l:"")+e}));case 4949:if(121===nt(e,t+6))return et(e,":",":"+Be)+e;break;case 6444:switch(nt(e,45===nt(e,14)?18:11)){case 120:return et(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Be+(45===nt(e,14)?"inline-":"")+"box$3$1"+Be+"$2$3$1"+je+"$2box$3")+e;case 100:return et(e,":",":"+je)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return et(e,"scroll-","scroll-snap-")+e}return e}function Tt(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ot(e,t,n,r){switch(e.type){case Ye:if(e.children.length)break;case Ue:case We:return e.return=e.return||e.value;case He:return"";case Ge:return e.return=e.value+"{"+Tt(e.children,r)+"}";case Ve:if(!ot(e.value=e.props.join(",")))return""}return ot(n=Tt(e.children,r))?e.return=e.value+"{"+n+"}":""}function Nt(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case We:return void(e.return=Mt(e.value,e.length,n));case Ge:return Tt([ht(e,{value:et(e.value,"@","@"+Be)})],r);case Ve:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(Ze(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":gt(ht(e,{props:[et(t,/:(read-\w+)/,":"+$e+"$1")]})),gt(ht(e,{props:[t]})),Je(e,{props:lt(n,r)});break;case"::placeholder":gt(ht(e,{props:[et(t,/:(plac\w+)/,":"+Be+"input-$1")]})),gt(ht(e,{props:[et(t,/:(plac\w+)/,":"+$e+"$1")]})),gt(ht(e,{props:[et(t,/:(plac\w+)/,je+"input-$1")]})),gt(ht(e,{props:[t]})),Je(e,{props:lt(n,r)})}return""}))}}var qt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},zt="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ft="active",jt="data-styled-version",$t="6.1.12",Bt="/*!sc*/\n",Ht="undefined"!=typeof window&&"HTMLElement"in window,Vt=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)),Wt={},Ut=Object.freeze([]),Gt=Object.freeze({});function Yt(e,t,n){return void 0===n&&(n=Gt),e.theme!==n.theme&&e.theme||t||n.theme}var Kt=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"]),Xt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Jt=/(^-|-$)/g;function Qt(e){return e.replace(Xt,"-").replace(Jt,"")}var Zt=/(a)(d)/gi,en=52,tn=function(e){return String.fromCharCode(e+(e>25?39:97))};function nn(e){var t,n="";for(t=Math.abs(e);t>en;t=t/en|0)n=tn(t%en)+n;return(tn(t%en)+n).replace(Zt,"$1-$2")}var rn,on=5381,an=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ln=function(e){return an(on,e)};function sn(e){return nn(ln(e)>>>0)}function un(e){return"string"==typeof e&&!0}var cn="function"==typeof Symbol&&Symbol.for,dn=cn?Symbol.for("react.memo"):60115,pn=cn?Symbol.for("react.forward_ref"):60112,fn={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},mn={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},hn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},gn=((rn={})[pn]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},rn[dn]=hn,rn);function bn(e){return("type"in(t=e)&&t.type.$$typeof)===dn?hn:"$$typeof"in e?gn[e.$$typeof]:fn;var t}var vn=Object.defineProperty,yn=Object.getOwnPropertyNames,xn=Object.getOwnPropertySymbols,Sn=Object.getOwnPropertyDescriptor,En=Object.getPrototypeOf,wn=Object.prototype;function Cn(e,t,n){if("string"!=typeof t){if(wn){var r=En(t);r&&r!==wn&&Cn(e,r,n)}var o=yn(t);xn&&(o=o.concat(xn(t)));for(var i=bn(e),a=bn(t),l=0;l<o.length;++l){var s=o[l];if(!(s in mn||n&&n[s]||a&&s in a||i&&s in i)){var u=Sn(t,s);try{vn(e,s,u)}catch(e){}}}}return e}function Rn(e){return"function"==typeof e}function kn(e){return"object"==typeof e&&"styledComponentId"in e}function An(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Pn(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function Ln(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function In(e,t,n){if(void 0===n&&(n=!1),!n&&!Ln(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=In(e[r],t[r]);else if(Ln(t))for(var r in t)e[r]=In(e[r],t[r]);return e}function Dn(e,t){Object.defineProperty(e,"toString",{value:t})}function _n(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];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 Mn=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,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw _n(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;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],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(Bt);return t},e}(),Tn=new Map,On=new Map,Nn=1,qn=function(e){if(Tn.has(e))return Tn.get(e);for(;On.has(Nn);)Nn++;var t=Nn++;return Tn.set(e,t),On.set(t,e),t},zn=function(e,t){Nn=t+1,Tn.set(e,t),On.set(t,e)},Fn="style[".concat(zt,"][").concat(jt,'="').concat($t,'"]'),jn=new RegExp("^".concat(zt,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),$n=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},Bn=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Bt),o=[],i=0,a=r.length;i<a;i++){var l=r[i].trim();if(l){var s=l.match(jn);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(zn(c,u),$n(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},Hn=function(e){for(var t=document.querySelectorAll(Fn),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(zt)!==Ft&&(Bn(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Vn=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(zt,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(zt,Ft),r.setAttribute(jt,$t);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},Wn=function(){function e(e){this.element=Vn(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw _n(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}(),Un=function(){function e(e){this.element=Vn(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,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}(),Gn=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}(),Yn=Ht,Kn={isServer:!Ht,useCSSOMInjection:!Vt},Xn=function(){function e(e,t,n){void 0===e&&(e=Gt),void 0===t&&(t={});var r=this;this.options=qe(qe({},Kn),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Ht&&Yn&&(Yn=!1,Hn(this)),Dn(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return On.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||!i.size||0===a.length)return"continue";var l="".concat(zt,".g").concat(n,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),r+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(Bt)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return qn(e)},e.prototype.rehydrate=function(){!this.server&&Ht&&Hn(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(qe(qe({},this.options),t),this.gs,n&&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,n=e.target;return e.isServer?new Gn(n):t?new Wn(n):new Un(n)}(this.options),new Mn(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(qn(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(qn(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(qn(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Jn=/&/g,Qn=/^\s*\/\/.*$/gm;function Zn(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=Zn(e.children,t)),e}))}function er(e){var t,n,r,o=void 0===e?Gt:e,i=o.options,a=void 0===i?Gt:i,l=o.plugins,s=void 0===l?Ut:l,u=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===Ve&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Jn,n).replace(r,u))})),a.prefix&&c.push(Nt),c.push(Ot);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var s=e.replace(Qn,""),u=Pt(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=Zn(u,a.namespace));var d,p=[];return Tt(u,function(e){var t=it(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,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||_n(15),an(e,t.name)}),on).toString():"",d}var tr=new Xn,nr=er(),rr=J.createContext({shouldForwardProp:void 0,styleSheet:tr,stylis:nr});rr.Consumer;var or=J.createContext(void 0);function ir(){return X.useContext(rr)}function ar(e){var t=X.useState(e.stylisPlugins),n=t[0],r=t[1],o=ir().styleSheet,i=X.useMemo((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=X.useMemo((function(){return er({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})}),[e.enableVendorPrefixes,e.namespace,n]);X.useEffect((function(){Fe(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]);var l=X.useMemo((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}}),[e.shouldForwardProp,i,a]);return J.createElement(rr.Provider,{value:l},J.createElement(or.Provider,{value:a},e.children))}var lr=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=nr);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Dn(this,(function(){throw _n(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=nr),this.name+e.hash},e}(),sr=function(e){return e>="A"&&e<="Z"};function ur(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;sr(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var cr=function(e){return null==e||!1===e||""===e},dr=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!cr(i)&&(Array.isArray(i)&&i.isCss||Rn(i)?r.push("".concat(ur(o),":"),i,";"):Ln(i)?r.push.apply(r,ze(ze(["".concat(o," {")],dr(i),!1),["}"],!1)):r.push("".concat(ur(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in qt||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function pr(e,t,n,r){return cr(e)?[]:kn(e)?[".".concat(e.styledComponentId)]:Rn(e)?!Rn(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:pr(e(t),t,n,r):e instanceof lr?n?(e.inject(n,r),[e.getName(r)]):[e]:Ln(e)?dr(e):Array.isArray(e)?Array.prototype.concat.apply(Ut,e.map((function(e){return pr(e,t,n,r)}))):[e.toString()];var o}function fr(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Rn(n)&&!kn(n))return!1}return!0}var mr=ln($t),hr=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&fr(e),this.componentId=t,this.baseHash=an(mr,t),this.baseStyle=n,Xn.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=An(r,this.staticRulesId);else{var o=Pn(pr(this.rules,e,t,n)),i=nn(an(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=An(r,i),this.staticRulesId=i}else{for(var l=an(this.baseHash,n.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=Pn(pr(c,e,t,n));l=an(l,d+u),s+=d}}if(s){var p=nn(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=An(r,p)}}return r},e}(),gr=J.createContext(void 0);gr.Consumer;var br={};new Set;function vr(e,t,n){var r=kn(e),o=e,i=!un(e),a=t.attrs,l=void 0===a?Ut:a,s=t.componentId,u=void 0===s?function(e,t){var n="string"!=typeof e?"sc":Qt(e);br[n]=(br[n]||0)+1;var r="".concat(n,"-").concat(sn($t+n+br[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return un(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Qt(t.displayName),"-").concat(t.componentId):t.componentId||u,f=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(r&&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 hr(n,p,r?o.componentStyle:void 0);function v(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=J.useContext(gr),c=ir(),d=e.shouldForwardProp||c.shouldForwardProp,p=Yt(t,u,i)||Gt,f=function(e,t,n){for(var r,o=qe(qe({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=Rn(r=e[i])?r(o):r;for(var l in a)o[l]="className"===l?An(o[l],a[l]):"style"===l?qe(qe({},o[l]),a[l]):a[l]}return t.className&&(o.className=An(o.className,t.className)),o}(r,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 n=ir();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,f),v=An(a,l);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),h[un(m)&&!Kt.has(m)?"class":"className"]=v,h.ref=n,X.createElement(m,h)}(y,e,t)}v.displayName=d;var y=J.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=r?An(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=r?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)In(e,o[r],!0);return e}({},o.defaultProps,e):e}}),Dn(y,(function(){return".".concat(y.styledComponentId)})),i&&Cn(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function yr(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var xr=function(e){return Object.assign(e,{isCss:!0})};function Sr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Rn(e)||Ln(e))return xr(pr(yr(Ut,ze([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?pr(r):xr(pr(yr(r,t)))}function Er(e,t,n){if(void 0===n&&(n=Gt),!t)throw _n(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,Sr.apply(void 0,ze([r],o,!1)))};return r.attrs=function(r){return Er(e,t,qe(qe({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return Er(e,t,qe(qe({},n),r))},r}var wr=function(e){return Er(vr,e)},Cr=wr;Kt.forEach((function(e){Cr[e]=wr(e)}));var Rr=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=fr(e),Xn.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(Pn(pr(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&Xn.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function kr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Pn(Sr.apply(void 0,ze([e],t,!1))),o=sn(r);return new lr(o,r)}function Ar(e){const{injectFirst:t,children:n}=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 n}Ar.propTypes={children:s.node,injectFirst:s.bool};const Pr=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Sr.apply(void 0,ze([e],t,!1)),o="sc-global-".concat(sn(JSON.stringify(r))),i=new Rr(r,o),a=function(e){var t=ir(),n=J.useContext(gr),r=J.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,Wt,n,o);else{var l=qe(qe({},t),{theme:Yt(t,r,a.defaultProps)});i.renderStyles(e,l,n,o)}}(r,e,t.styleSheet,n,t.stylis),null};return J.memo(a)}((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r}));var Lr=Pr;
8
8
  /**
9
9
  * @mui/styled-engine-sc v6.0.0-alpha.24
10
10
  *
@@ -12,7 +12,7 @@
12
12
  * This source code is licensed under the MIT license found in the
13
13
  * LICENSE file in the root directory of this source tree.
14
14
  */
15
- function Mr(e,t){let n;return n=t?Ar(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Ar(e),n}Dr.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.string,s.object,s.func])};const Tr=(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))};var Or=Object.freeze({__proto__:null,GlobalStyles:_r,StyledEngineProvider:Ir,ThemeContext:yr,css:Cr,default:Mr,internal_processStyles:Tr,keyframes:Pr});function Nr(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 qr(e){if(!Nr(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=qr(e[n])})),t}function zr(e,t,r={clone:!0}){const o=r.clone?n({},e):e;return Nr(e)&&Nr(t)&&Object.keys(t).forEach((n=>{Nr(t[n])&&Object.prototype.hasOwnProperty.call(e,n)&&Nr(e[n])?o[n]=zr(e[n],t[n],r):r.clone?o[n]=Nr(t[n])?qr(t[n]):t[n]:o[n]=t[n]})),o}var Fr,jr=Object.freeze({__proto__:null,default:zr,isPlainObject:Nr}),$r={exports:{}},Br={},Hr=Symbol.for("react.element"),Wr=Symbol.for("react.portal"),Vr=Symbol.for("react.fragment"),Ur=Symbol.for("react.strict_mode"),Gr=Symbol.for("react.profiler"),Yr=Symbol.for("react.provider"),Kr=Symbol.for("react.context"),Xr=Symbol.for("react.server_context"),Jr=Symbol.for("react.forward_ref"),Qr=Symbol.for("react.suspense"),Zr=Symbol.for("react.suspense_list"),eo=Symbol.for("react.memo"),to=Symbol.for("react.lazy"),no=Symbol.for("react.offscreen");function ro(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Hr:switch(e=e.type){case Vr:case Gr:case Ur:case Qr:case Zr:return e;default:switch(e=e&&e.$$typeof){case Xr:case Kr:case Jr:case to:case eo:case Yr:return e;default:return t}}case Wr:return t}}}Fr=Symbol.for("react.module.reference"),Br.ContextConsumer=Kr,Br.ContextProvider=Yr,Br.Element=Hr,Br.ForwardRef=Jr,Br.Fragment=Vr,Br.Lazy=to,Br.Memo=eo,Br.Portal=Wr,Br.Profiler=Gr,Br.StrictMode=Ur,Br.Suspense=Qr,Br.SuspenseList=Zr,Br.isAsyncMode=function(){return!1},Br.isConcurrentMode=function(){return!1},Br.isContextConsumer=function(e){return ro(e)===Kr},Br.isContextProvider=function(e){return ro(e)===Yr},Br.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Hr},Br.isForwardRef=function(e){return ro(e)===Jr},Br.isFragment=function(e){return ro(e)===Vr},Br.isLazy=function(e){return ro(e)===to},Br.isMemo=function(e){return ro(e)===eo},Br.isPortal=function(e){return ro(e)===Wr},Br.isProfiler=function(e){return ro(e)===Gr},Br.isStrictMode=function(e){return ro(e)===Ur},Br.isSuspense=function(e){return ro(e)===Qr},Br.isSuspenseList=function(e){return ro(e)===Zr},Br.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Vr||e===Gr||e===Ur||e===Qr||e===Zr||e===no||"object"==typeof e&&null!==e&&(e.$$typeof===to||e.$$typeof===eo||e.$$typeof===Yr||e.$$typeof===Kr||e.$$typeof===Jr||e.$$typeof===Fr||void 0!==e.getModuleId)},Br.typeOf=ro,$r.exports=Br;var oo=$r.exports;const io=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ao(e){const t=`${e}`.match(io);return t&&t[1]||""}function lo(e,t=""){return e.displayName||e.name||ao(e)||t}function so(e,t,n){const r=lo(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var uo=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return lo(e,"Component");if("object"==typeof e)switch(e.$$typeof){case oo.ForwardRef:return so(e,e.render,"ForwardRef");case oo.Memo:return so(e,e.type,"memo");default:return}}},getFunctionName:ao});function co(e){if("string"!=typeof e)throw new Error(Oe(7));return e.charAt(0).toUpperCase()+e.slice(1)}var po=Object.freeze({__proto__:null,default:co});function fo(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function mo(e){return e&&e.ownerDocument||document}function ho(e){return mo(e).defaultView||window}function go(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var bo="undefined"!=typeof window?X.useLayoutEffect:X.useEffect;function vo(e){const t=X.useRef(e);return bo((()=>{t.current=e})),X.useRef(((...e)=>(0,t.current)(...e))).current}function yo(...e){return X.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{go(e,t)}))}),e)}const xo={};const So=[];let Eo=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 wo(){const e=function(e,t){const n=X.useRef(xo);return n.current===xo&&(n.current=e(t)),n}(Eo.create).current;var t;return t=e.disposeEffect,X.useEffect(t,So),e}let Co=!0,Ro=!1;const ko=new Eo,Ao={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 Lo(e){e.metaKey||e.altKey||e.ctrlKey||(Co=!0)}function Po(){Co=!1}function Io(){"hidden"===this.visibilityState&&Ro&&(Co=!0)}function Do(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Co||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Ao[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function _o(){const e=X.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Lo,!0),t.addEventListener("mousedown",Po,!0),t.addEventListener("pointerdown",Po,!0),t.addEventListener("touchstart",Po,!0),t.addEventListener("visibilitychange",Io,!0))}),[]),t=X.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Do(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Ro=!0,ko.start(100,(()=>{Ro=!1})),t.current=!1,!0)},ref:e}}function Mo(e,t){const r=n({},t);return Object.keys(e).forEach((o=>{if(o.toString().match(/^(components|slots)$/))r[o]=n({},e[o],r[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){const i=e[o]||{},a=t[o];r[o]={},a&&Object.keys(a)?i&&Object.keys(i)?(r[o]=n({},a),Object.keys(i).forEach((e=>{r[o][e]=Mo(i[e],a[e])}))):r[o]=a:r[o]=i}else void 0===r[o]&&(r[o]=e[o])})),r}function To(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const Oo=e=>e;var No=(()=>{let e=Oo;return{configure(t){e=t},generate:t=>e(t),reset(){e=Oo}}})();const qo={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 zo(e,t,n="Mui"){const r=qo[t];return r?`${n}-${r}`:`${No.generate(e)}-${t}`}function Fo(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=zo(e,t,n)})),r}function jo(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var $o=Object.freeze({__proto__:null,default:jo});function Bo(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Bo(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ho(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Bo(e))&&(r&&(r+=" "),r+=t);return r}const Wo=["values","unit","step"],Vo=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)=>n({},e,{[t.key]:t.val})),{})};var Uo={borderRadius:4};function Go(e,t){return t?zr(e,t,{clone:!1}):e}const Yo={xs:0,sm:600,md:900,lg:1200,xl:1536},Ko={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Yo[e]}px)`};function Xo(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Ko;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Ko;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Yo).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Jo(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Qo(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Jo(e,n)||r,t&&(o=t(o,r,e)),o}function Zo(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Jo(e.theme,r)||{};return Xo(e,i,(e=>{let r=Qo(a,o,e);return e===r&&"string"==typeof e&&(r=Qo(a,o,`${t}${"default"===e?"":co(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const ei={m:"margin",p:"padding"},ti={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ni={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ri=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!ni[e])return[e];e=ni[e]}const[t,n]=e.split(""),r=ei[t],o=ti[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),oi=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ii=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function ai(e,t,n,r){var o;const i=null!=(o=Jo(e,t,!1))?o:n;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 li(e){return ai(e,"spacing",8)}function si(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function ui(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=si(t,n),e)),{})}(ri(n),r);return Xo(e,e[n],o)}function ci(e,t){const n=li(e.theme);return Object.keys(e).map((r=>ui(e,t,r,n))).reduce(Go,{})}function di(e){return ci(e,oi)}function pi(e){return ci(e,ii)}function fi(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?Go(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function mi(e){return"number"!=typeof e?e:`${e}px solid`}function hi(e,t){return Zo({prop:e,themeKey:"borders",transform:t})}di.propTypes={},di.filterProps=oi,pi.propTypes={},pi.filterProps=ii;const gi=hi("border",mi),bi=hi("borderTop",mi),vi=hi("borderRight",mi),yi=hi("borderBottom",mi),xi=hi("borderLeft",mi),Si=hi("borderColor"),Ei=hi("borderTopColor"),wi=hi("borderRightColor"),Ci=hi("borderBottomColor"),Ri=hi("borderLeftColor"),ki=hi("outline",mi),Ai=hi("outlineColor"),Li=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=ai(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:si(t,e)});return Xo(e,e.borderRadius,n)}return null};Li.propTypes={},Li.filterProps=["borderRadius"],fi(gi,bi,vi,yi,xi,Si,Ei,wi,Ci,Ri,Li,ki,Ai);const Pi=e=>{if(void 0!==e.gap&&null!==e.gap){const t=ai(e.theme,"spacing",8),n=e=>({gap:si(t,e)});return Xo(e,e.gap,n)}return null};Pi.propTypes={},Pi.filterProps=["gap"];const Ii=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=ai(e.theme,"spacing",8),n=e=>({columnGap:si(t,e)});return Xo(e,e.columnGap,n)}return null};Ii.propTypes={},Ii.filterProps=["columnGap"];const Di=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=ai(e.theme,"spacing",8),n=e=>({rowGap:si(t,e)});return Xo(e,e.rowGap,n)}return null};Di.propTypes={},Di.filterProps=["rowGap"];function _i(e,t){return"grey"===t?t:e}fi(Pi,Ii,Di,Zo({prop:"gridColumn"}),Zo({prop:"gridRow"}),Zo({prop:"gridAutoFlow"}),Zo({prop:"gridAutoColumns"}),Zo({prop:"gridAutoRows"}),Zo({prop:"gridTemplateColumns"}),Zo({prop:"gridTemplateRows"}),Zo({prop:"gridTemplateAreas"}),Zo({prop:"gridArea"}));function Mi(e){return e<=1&&0!==e?100*e+"%":e}fi(Zo({prop:"color",themeKey:"palette",transform:_i}),Zo({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:_i}),Zo({prop:"backgroundColor",themeKey:"palette",transform:_i}));const Ti=Zo({prop:"width",transform:Mi}),Oi=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||Yo[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Mi(t)}};return Xo(e,e.maxWidth,t)}return null};Oi.filterProps=["maxWidth"];const Ni=Zo({prop:"minWidth",transform:Mi}),qi=Zo({prop:"height",transform:Mi}),zi=Zo({prop:"maxHeight",transform:Mi}),Fi=Zo({prop:"minHeight",transform:Mi});Zo({prop:"size",cssProperty:"width",transform:Mi}),Zo({prop:"size",cssProperty:"height",transform:Mi});fi(Ti,Oi,Ni,qi,zi,Fi,Zo({prop:"boxSizing"}));var ji={border:{themeKey:"borders",transform:mi},borderTop:{themeKey:"borders",transform:mi},borderRight:{themeKey:"borders",transform:mi},borderBottom:{themeKey:"borders",transform:mi},borderLeft:{themeKey:"borders",transform:mi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:mi},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Li},color:{themeKey:"palette",transform:_i},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:_i},backgroundColor:{themeKey:"palette",transform:_i},p:{style:pi},pt:{style:pi},pr:{style:pi},pb:{style:pi},pl:{style:pi},px:{style:pi},py:{style:pi},padding:{style:pi},paddingTop:{style:pi},paddingRight:{style:pi},paddingBottom:{style:pi},paddingLeft:{style:pi},paddingX:{style:pi},paddingY:{style:pi},paddingInline:{style:pi},paddingInlineStart:{style:pi},paddingInlineEnd:{style:pi},paddingBlock:{style:pi},paddingBlockStart:{style:pi},paddingBlockEnd:{style:pi},m:{style:di},mt:{style:di},mr:{style:di},mb:{style:di},ml:{style:di},mx:{style:di},my:{style:di},margin:{style:di},marginTop:{style:di},marginRight:{style:di},marginBottom:{style:di},marginLeft:{style:di},marginX:{style:di},marginY:{style:di},marginInline:{style:di},marginInlineStart:{style:di},marginInlineEnd:{style:di},marginBlock:{style:di},marginBlockStart:{style:di},marginBlockEnd:{style:di},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:Pi},rowGap:{style:Di},columnGap:{style:Ii},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Mi},maxWidth:{style:Oi},minWidth:{transform:Mi},height:{transform:Mi},maxHeight:{transform:Mi},minHeight:{transform:Mi},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const $i=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[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=Jo(n,l)||{};if(u)return u(o);return Xo(o,t,(t=>{let n=Qo(c,s,t);return t===n&&"string"==typeof t&&(n=Qo(c,s,`${e}${"default"===t?"":co(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:ji;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=Go(s,e(n,o,i,a));else{const e=Xo({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=Go(s,e):s[n]=t({sx:o,theme:i})}else s=Go(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();$i.filterProps=["sx"];var Bi=$i;function Hi(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}const Wi=["breakpoints","palette","spacing","shape"];function Vi(e={},...t){const{breakpoints:r={},palette:o={},spacing:i,shape:a={}}=e,l=d(e,Wi),s=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:o=5}=e,i=d(e,Wo),a=Vo(t),l=Object.keys(a);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function u(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-o/100}${r})`}function c(e,n){const i=l.indexOf(n);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[l[i]]?t[l[i]]:n)-o/100}${r})`}return n({keys:l,values:a,up:s,down:u,between:c,only:function(e){return l.indexOf(e)+1<l.length?c(e,l[l.indexOf(e)+1]):s(e)},not:function(e){const t=l.indexOf(e);return 0===t?s(l[1]):t===l.length-1?u(l[t]):c(e,l[l.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},i)}(r),u=function(e=8){if(e.mui)return e;const t=li({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(i);let c=zr({breakpoints:s,direction:"ltr",components:{},palette:n({mode:"light"},o),spacing:u,shape:n({},Uo,a)},l);return c.applyStyles=Hi,c=t.reduce(((e,t)=>zr(e,t)),c),c.unstable_sxConfig=n({},ji,null==l?void 0:l.unstable_sxConfig),c.unstable_sx=function(e){return Bi({sx:e,theme:this})},c}function Ui(e=null){const t=X.useContext(yr);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Gi=Vi();function Yi(e=Gi){return Ui(e)}var Ki={exports:{}},Xi={},Ji=X,Qi=Symbol.for("react.element"),Zi=Symbol.for("react.fragment"),ea=Object.prototype.hasOwnProperty,ta=Ji.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,na={key:!0,ref:!0,__self:!0,__source:!0};function ra(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)ea.call(t,r)&&!na.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:Qi,type:e,key:i,ref:a,props:o,_owner:ta.current}}Xi.Fragment=Zi,Xi.jsx=ra,Xi.jsxs=ra,Ki.exports=Xi;var oa=Ki.exports;function ia({styles:e,themeId:t,defaultTheme:n={}}){const r=Yi(n),o="function"==typeof e?e(t&&r[t]||r):e;return oa.jsx(_r,{styles:o})}const aa=["sx"],la=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:ji;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function sa(e){const{sx:t}=e,r=d(e,aa),{systemProps:o,otherProps:i}=la(r);let a;return a=Array.isArray(t)?[o,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return Nr(r)?n({},o,r):o}:n({},o,t),n({},i,{sx:a})}const ua=["className","component"];const ca=["ownerState"],da=["variants"],pa=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function fa(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const ma=Vi(),ha=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function ga({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function ba(e){return e?(t,n)=>n[e]:null}function va(e,t){let{ownerState:r}=t,o=d(t,ca);const i="function"==typeof e?e(n({ownerState:r},o)):e;if(Array.isArray(i))return i.flatMap((e=>va(e,n({ownerState:r},o))));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=d(i,da);return e.forEach((e=>{let i=!0;"function"==typeof e.props?i=e.props(n({ownerState:r},o)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(n({ownerState:r},o)):e.style))})),t}return i}function ya({props:e,name:t,defaultTheme:n,themeId:r}){let o=Yi(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Mo(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function xa(e,t=0,n=1){return jo(e,t,n)}function Sa(e){if(e.type)return e;if("#"===e.charAt(0))return Sa(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Oe(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=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(r))throw new Error(Oe(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function Ea(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function wa(e){let t="hsl"===(e=Sa(e)).type||"hsla"===e.type?Sa(function(e){e=Sa(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/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])),Ea({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 Ca(e,t){return e=Sa(e),t=xa(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Ea(e)}function Ra(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 ka(e){if(!Ra(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=ka(e[n])})),t}function Aa(e,t,r={clone:!0}){const o=r.clone?n({},e):e;return Ra(e)&&Ra(t)&&Object.keys(t).forEach((n=>{"__proto__"!==n&&(Ra(t[n])&&n in e&&Ra(e[n])?o[n]=Aa(e[n],t[n],r):r.clone?o[n]=Ra(t[n])?ka(t[n]):t[n]:o[n]=t[n])})),o}function La(e){if("string"!=typeof e)throw new Error(De(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Pa(e){return e&&e.ownerDocument||document}function Ia(e){return Pa(e).defaultView||window}var Da="undefined"!=typeof window?X.useLayoutEffect:X.useEffect;let _a=0;const Ma=Q["useId".toString()];function Ta(e){if(void 0!==Ma){const t=Ma();return null!=e?e:t}return function(e){const[t,n]=X.useState(e),r=e||t;return X.useEffect((()=>{null==t&&(_a+=1,n(`mui-${_a}`))}),[t]),r}(e)}function Oa({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=X.useRef(void 0!==e),[i,a]=X.useState(t);return[o?e:i,X.useCallback((e=>{o||a(e)}),[])]}function Na(e){const t=X.useRef(e);return Da((()=>{t.current=e})),X.useRef(((...e)=>(0,t.current)(...e))).current}function qa(...e){return X.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 za{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new za}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let Fa=!0,ja=!1;const $a=new za,Ba={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 Ha(e){e.metaKey||e.altKey||e.ctrlKey||(Fa=!0)}function Wa(){Fa=!1}function Va(){"hidden"===this.visibilityState&&ja&&(Fa=!0)}function Ua(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Fa||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Ba[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Ga(){const e=X.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Ha,!0),t.addEventListener("mousedown",Wa,!0),t.addEventListener("pointerdown",Wa,!0),t.addEventListener("touchstart",Wa,!0),t.addEventListener("visibilitychange",Va,!0))}),[]),t=X.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Ua(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(ja=!0,$a.start(100,(()=>{ja=!1})),t.current=!1,!0)},ref:e}}function Ya(e,t){const r=n({},t);return Object.keys(e).forEach((o=>{if(o.toString().match(/^(components|slots)$/))r[o]=n({},e[o],r[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){const i=e[o]||{},a=t[o];r[o]={},a&&Object.keys(a)?i&&Object.keys(i)?(r[o]=n({},a),Object.keys(i).forEach((e=>{r[o][e]=Ya(i[e],a[e])}))):r[o]=a:r[o]=i}else void 0===r[o]&&(r[o]=e[o])})),r}const Ka=e=>e;var Xa=(()=>{let e=Ka;return{configure(t){e=t},generate:t=>e(t),reset(){e=Ka}}})();const Ja={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 Qa(e,t,n="Mui"){const r=Ja[t];return r?`${n}-${r}`:`${Xa.generate(e)}-${t}`}function Za(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Qa(e,t,n)})),r}const el=["mode","contrastThreshold","tonalOffset"],tl={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:we.white,default:we.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}},nl={text:{primary:we.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:we.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 rl(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=Sa(e),t=xa(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Ea(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Sa(e),t=xa(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 n=0;n<3;n+=1)e.values[n]*=1-t;return Ea(e)}(e.main,i)))}function ol(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Te(e,el),i=e.primary||function(e="light"){return"dark"===e?{main:ke[200],light:ke[50],dark:ke[400]}:{main:ke[700],light:ke[400],dark:ke[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Re[200],light:Re[50],dark:Re[400]}:{main:Re[500],light:Re[300],dark:Re[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Ce[500],light:Ce[300],dark:Ce[700]}:{main:Ce[700],light:Ce[400],dark:Ce[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Ae[400],light:Ae[300],dark:Ae[700]}:{main:Ae[700],light:Ae[500],dark:Ae[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Le[400],light:Le[300],dark:Le[700]}:{main:Le[800],light:Le[500],dark:Le[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Pe[400],light:Pe[300],dark:Pe[700]}:{main:"#ed6c02",light:Pe[500],dark:Pe[900]}}(t);function d(e){const t=function(e,t){const n=wa(e),r=wa(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,nl.text.primary)>=n?nl.text.primary:tl.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Me({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(De(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(De(12,t?` (${t})`:"",JSON.stringify(e.main)));return rl(e,"light",o,r),rl(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:nl,light:tl};return Aa(Me({common:Me({},we),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:Ie,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const il=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const al={textTransform:"uppercase"},ll='"Roboto", "Helvetica", "Arial", sans-serif';function sl(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=ll,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Te(n,il),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return Me({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===ll?{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,al),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,al),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Aa(Me({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function ul(...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 cl=["none",ul(0,2,1,-1,0,1,1,0,0,1,3,0),ul(0,3,1,-2,0,2,2,0,0,1,5,0),ul(0,3,3,-2,0,3,4,0,0,1,8,0),ul(0,2,4,-1,0,4,5,0,0,1,10,0),ul(0,3,5,-1,0,5,8,0,0,1,14,0),ul(0,3,5,-1,0,6,10,0,0,1,18,0),ul(0,4,5,-2,0,7,10,1,0,2,16,1),ul(0,5,5,-3,0,8,10,1,0,3,14,2),ul(0,5,6,-3,0,9,12,1,0,3,16,2),ul(0,6,6,-3,0,10,14,1,0,4,18,3),ul(0,6,7,-4,0,11,15,1,0,4,20,3),ul(0,7,8,-4,0,12,17,2,0,5,22,4),ul(0,7,8,-4,0,13,19,2,0,5,24,4),ul(0,7,9,-4,0,14,21,2,0,5,26,4),ul(0,8,9,-5,0,15,22,2,0,6,28,5),ul(0,8,10,-5,0,16,24,2,0,6,30,5),ul(0,8,11,-5,0,17,26,2,0,6,32,5),ul(0,9,11,-5,0,18,28,2,0,7,34,6),ul(0,9,12,-6,0,19,29,2,0,7,36,6),ul(0,10,13,-6,0,20,31,3,0,8,38,7),ul(0,10,13,-6,0,21,33,3,0,8,40,7),ul(0,10,14,-6,0,22,35,3,0,8,42,7),ul(0,11,14,-7,0,23,36,3,0,9,44,8),ul(0,11,15,-7,0,24,38,3,0,9,46,8)];const dl=["duration","easing","delay"],pl={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)"},fl={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ml(e){return`${Math.round(e)}ms`}function hl(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function gl(e){const t=Me({},pl,e.easing),n=Me({},fl,e.duration);return Me({getAutoHeightDuration:hl,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Te(r,dl),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:ml(o)} ${i} ${"string"==typeof a?a:ml(a)}`)).join(",")}},e,{easing:t,duration:n})}var bl={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const vl=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function yl(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Te(e,vl);if(e.vars)throw new Error(De(18));const l=ol(r),s=Vi(e);let u=Aa(s,{mixins:(c=s.breakpoints,d=n,Me({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:cl.slice(),typography:sl(l,i),transitions:gl(o),zIndex:Me({},bl),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=Aa(u,a),u=t.reduce(((e,t)=>Aa(e,t)),u),u.unstable_sxConfig=Me({},ji,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Bi({sx:e,theme:this})},u}var xl=yl();function Sl(){const e=Yi(xl);return e[_e]||e}function El({props:e,name:t}){return ya({props:e,name:t,defaultTheme:xl,themeId:_e})}const wl=e=>fa(e)&&"classes"!==e,Cl=fa,Rl=function(e={}){const{themeId:t,defaultTheme:r=ma,rootShouldForwardProp:o=fa,slotShouldForwardProp:i=fa}=e,a=e=>Bi(n({},e,{theme:ga(n({},e,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(e,l={})=>{Tr(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:u,skipVariantsResolver:c,skipSx:p,overridesResolver:f=ba(ha(u))}=l,m=d(l,pa),h=void 0!==c?c:u&&"Root"!==u&&"root"!==u||!1,g=p||!1;let b=fa;"Root"===u||"root"===u?b=o:u?b=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(b=void 0);const v=Mr(e,n({shouldForwardProp:b,label:undefined},m)),y=e=>"function"==typeof e&&e.__emotion_real!==e||Nr(e)?o=>va(e,n({},o,{theme:ga({theme:o.theme,defaultTheme:r,themeId:t})})):e,x=(o,...i)=>{let l=y(o);const u=i?i.map(y):[];s&&f&&u.push((e=>{const o=ga(n({},e,{defaultTheme:r,themeId:t}));if(!o.components||!o.components[s]||!o.components[s].styleOverrides)return null;const i=o.components[s].styleOverrides,a={};return Object.entries(i).forEach((([t,r])=>{a[t]=va(r,n({},e,{theme:o}))})),f(e,a)})),s&&!h&&u.push((e=>{var o;const i=ga(n({},e,{defaultTheme:r,themeId:t}));return va({variants:null==i||null==(o=i.components)||null==(o=o[s])?void 0:o.variants},n({},e,{theme:i}))})),g||u.push(a);const c=u.length-i.length;if(Array.isArray(o)&&c>0){const e=new Array(c).fill("");l=[...o,...e],l.raw=[...o.raw,...e]}const d=v(l,...u);return e.muiName&&(d.muiName=e.muiName),d};return v.withConfig&&(x.withConfig=v.withConfig),x}}({themeId:_e,defaultTheme:xl,rootShouldForwardProp:wl});var kl=Rl;var Al=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Ll(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ll(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pl(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ll(e))&&(r&&(r+=" "),r+=t);return r}function Il(e){return Qa("MuiSvgIcon",e)}Za("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Dl=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],_l=kl("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${La(n.color)}`],t[`fontSize${La(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,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==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"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]}})),Ml=X.forwardRef((function(e,t){const n=El({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,p=Te(n,Dl),f=X.isValidElement(r)&&"svg"===r.type,m=Me({},n,{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:n,classes:r}=e;return To({root:["root","inherit"!==t&&`color${La(t)}`,`fontSize${La(n)}`]},Il,r)})(m);return oa.jsxs(_l,Me({as:a,className:Pl(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&r.props,{ownerState:m,children:[f?r.props.children:r,c?oa.jsx("title",{children:c}):null]}))}));Ml.muiName="SvgIcon";var Tl=Ml;var Ol,Nl={},ql=Symbol.for("react.element"),zl=Symbol.for("react.portal"),Fl=Symbol.for("react.fragment"),jl=Symbol.for("react.strict_mode"),$l=Symbol.for("react.profiler"),Bl=Symbol.for("react.provider"),Hl=Symbol.for("react.context"),Wl=Symbol.for("react.server_context"),Vl=Symbol.for("react.forward_ref"),Ul=Symbol.for("react.suspense"),Gl=Symbol.for("react.suspense_list"),Yl=Symbol.for("react.memo"),Kl=Symbol.for("react.lazy"),Xl=Symbol.for("react.offscreen");
15
+ function Ir(e,t){let n;return n=t?Cr(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Cr(e),n}Pr.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.string,s.object,s.func])};const Dr=(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))};var _r=Object.freeze({__proto__:null,GlobalStyles:Lr,StyledEngineProvider:Ar,ThemeContext:gr,css:Sr,default:Ir,internal_processStyles:Dr,keyframes:kr});function Mr(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 Tr(e){if(!Mr(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Tr(e[n])})),t}function Or(e,t,r={clone:!0}){const o=r.clone?n({},e):e;return Mr(e)&&Mr(t)&&Object.keys(t).forEach((n=>{Mr(t[n])&&Object.prototype.hasOwnProperty.call(e,n)&&Mr(e[n])?o[n]=Or(e[n],t[n],r):r.clone?o[n]=Mr(t[n])?Tr(t[n]):t[n]:o[n]=t[n]})),o}var Nr,qr=Object.freeze({__proto__:null,default:Or,isPlainObject:Mr}),zr={exports:{}},Fr={},jr=Symbol.for("react.element"),$r=Symbol.for("react.portal"),Br=Symbol.for("react.fragment"),Hr=Symbol.for("react.strict_mode"),Vr=Symbol.for("react.profiler"),Wr=Symbol.for("react.provider"),Ur=Symbol.for("react.context"),Gr=Symbol.for("react.server_context"),Yr=Symbol.for("react.forward_ref"),Kr=Symbol.for("react.suspense"),Xr=Symbol.for("react.suspense_list"),Jr=Symbol.for("react.memo"),Qr=Symbol.for("react.lazy"),Zr=Symbol.for("react.offscreen");function eo(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case jr:switch(e=e.type){case Br:case Vr:case Hr:case Kr:case Xr:return e;default:switch(e=e&&e.$$typeof){case Gr:case Ur:case Yr:case Qr:case Jr:case Wr:return e;default:return t}}case $r:return t}}}Nr=Symbol.for("react.module.reference"),Fr.ContextConsumer=Ur,Fr.ContextProvider=Wr,Fr.Element=jr,Fr.ForwardRef=Yr,Fr.Fragment=Br,Fr.Lazy=Qr,Fr.Memo=Jr,Fr.Portal=$r,Fr.Profiler=Vr,Fr.StrictMode=Hr,Fr.Suspense=Kr,Fr.SuspenseList=Xr,Fr.isAsyncMode=function(){return!1},Fr.isConcurrentMode=function(){return!1},Fr.isContextConsumer=function(e){return eo(e)===Ur},Fr.isContextProvider=function(e){return eo(e)===Wr},Fr.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===jr},Fr.isForwardRef=function(e){return eo(e)===Yr},Fr.isFragment=function(e){return eo(e)===Br},Fr.isLazy=function(e){return eo(e)===Qr},Fr.isMemo=function(e){return eo(e)===Jr},Fr.isPortal=function(e){return eo(e)===$r},Fr.isProfiler=function(e){return eo(e)===Vr},Fr.isStrictMode=function(e){return eo(e)===Hr},Fr.isSuspense=function(e){return eo(e)===Kr},Fr.isSuspenseList=function(e){return eo(e)===Xr},Fr.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Br||e===Vr||e===Hr||e===Kr||e===Xr||e===Zr||"object"==typeof e&&null!==e&&(e.$$typeof===Qr||e.$$typeof===Jr||e.$$typeof===Wr||e.$$typeof===Ur||e.$$typeof===Yr||e.$$typeof===Nr||void 0!==e.getModuleId)},Fr.typeOf=eo,zr.exports=Fr;var to=zr.exports;const no=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ro(e){const t=`${e}`.match(no);return t&&t[1]||""}function oo(e,t=""){return e.displayName||e.name||ro(e)||t}function io(e,t,n){const r=oo(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var ao=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return oo(e,"Component");if("object"==typeof e)switch(e.$$typeof){case to.ForwardRef:return io(e,e.render,"ForwardRef");case to.Memo:return io(e,e.type,"memo");default:return}}},getFunctionName:ro});function lo(e){if("string"!=typeof e)throw new Error(Oe(7));return e.charAt(0).toUpperCase()+e.slice(1)}var so=Object.freeze({__proto__:null,default:lo});function uo(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function co(e){return e&&e.ownerDocument||document}function po(e){return co(e).defaultView||window}function fo(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var mo="undefined"!=typeof window?X.useLayoutEffect:X.useEffect;function ho(e){const t=X.useRef(e);return mo((()=>{t.current=e})),X.useRef(((...e)=>(0,t.current)(...e))).current}function go(...e){return X.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{fo(e,t)}))}),e)}const bo={};const vo=[];let yo=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 xo(){const e=function(e,t){const n=X.useRef(bo);return n.current===bo&&(n.current=e(t)),n}(yo.create).current;var t;return t=e.disposeEffect,X.useEffect(t,vo),e}let So=!0,Eo=!1;const wo=new yo,Co={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Ro(e){e.metaKey||e.altKey||e.ctrlKey||(So=!0)}function ko(){So=!1}function Ao(){"hidden"===this.visibilityState&&Eo&&(So=!0)}function Po(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return So||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Co[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Lo(){const e=X.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Ro,!0),t.addEventListener("mousedown",ko,!0),t.addEventListener("pointerdown",ko,!0),t.addEventListener("touchstart",ko,!0),t.addEventListener("visibilitychange",Ao,!0))}),[]),t=X.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Po(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Eo=!0,wo.start(100,(()=>{Eo=!1})),t.current=!1,!0)},ref:e}}function Io(e,t){const r=n({},t);return Object.keys(e).forEach((o=>{if(o.toString().match(/^(components|slots)$/))r[o]=n({},e[o],r[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){const i=e[o]||{},a=t[o];r[o]={},a&&Object.keys(a)?i&&Object.keys(i)?(r[o]=n({},a),Object.keys(i).forEach((e=>{r[o][e]=Io(i[e],a[e])}))):r[o]=a:r[o]=i}else void 0===r[o]&&(r[o]=e[o])})),r}function Do(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const _o=e=>e;var Mo=(()=>{let e=_o;return{configure(t){e=t},generate:t=>e(t),reset(){e=_o}}})();const To={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 Oo(e,t,n="Mui"){const r=To[t];return r?`${n}-${r}`:`${Mo.generate(e)}-${t}`}function No(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Oo(e,t,n)})),r}function qo(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var zo=Object.freeze({__proto__:null,default:qo});function Fo(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Fo(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function jo(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Fo(e))&&(r&&(r+=" "),r+=t);return r}const $o=["values","unit","step"],Bo=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)=>n({},e,{[t.key]:t.val})),{})};var Ho={borderRadius:4};function Vo(e,t){return t?Or(e,t,{clone:!1}):e}const Wo={xs:0,sm:600,md:900,lg:1200,xl:1536},Uo={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Wo[e]}px)`};function Go(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Uo;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Uo;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Wo).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Yo(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Ko(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Yo(e,n)||r,t&&(o=t(o,r,e)),o}function Xo(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Yo(e.theme,r)||{};return Go(e,i,(e=>{let r=Ko(a,o,e);return e===r&&"string"==typeof e&&(r=Ko(a,o,`${t}${"default"===e?"":lo(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Jo={m:"margin",p:"padding"},Qo={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Zo={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ei=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Zo[e])return[e];e=Zo[e]}const[t,n]=e.split(""),r=Jo[t],o=Qo[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),ti=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ni=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function ri(e,t,n,r){var o;const i=null!=(o=Yo(e,t,!1))?o:n;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 oi(e){return ri(e,"spacing",8)}function ii(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function ai(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=ii(t,n),e)),{})}(ei(n),r);return Go(e,e[n],o)}function li(e,t){const n=oi(e.theme);return Object.keys(e).map((r=>ai(e,t,r,n))).reduce(Vo,{})}function si(e){return li(e,ti)}function ui(e){return li(e,ni)}function ci(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?Vo(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function di(e){return"number"!=typeof e?e:`${e}px solid`}function pi(e,t){return Xo({prop:e,themeKey:"borders",transform:t})}si.propTypes={},si.filterProps=ti,ui.propTypes={},ui.filterProps=ni;const fi=pi("border",di),mi=pi("borderTop",di),hi=pi("borderRight",di),gi=pi("borderBottom",di),bi=pi("borderLeft",di),vi=pi("borderColor"),yi=pi("borderTopColor"),xi=pi("borderRightColor"),Si=pi("borderBottomColor"),Ei=pi("borderLeftColor"),wi=pi("outline",di),Ci=pi("outlineColor"),Ri=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=ri(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:ii(t,e)});return Go(e,e.borderRadius,n)}return null};Ri.propTypes={},Ri.filterProps=["borderRadius"],ci(fi,mi,hi,gi,bi,vi,yi,xi,Si,Ei,Ri,wi,Ci);const ki=e=>{if(void 0!==e.gap&&null!==e.gap){const t=ri(e.theme,"spacing",8),n=e=>({gap:ii(t,e)});return Go(e,e.gap,n)}return null};ki.propTypes={},ki.filterProps=["gap"];const Ai=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=ri(e.theme,"spacing",8),n=e=>({columnGap:ii(t,e)});return Go(e,e.columnGap,n)}return null};Ai.propTypes={},Ai.filterProps=["columnGap"];const Pi=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=ri(e.theme,"spacing",8),n=e=>({rowGap:ii(t,e)});return Go(e,e.rowGap,n)}return null};Pi.propTypes={},Pi.filterProps=["rowGap"];function Li(e,t){return"grey"===t?t:e}ci(ki,Ai,Pi,Xo({prop:"gridColumn"}),Xo({prop:"gridRow"}),Xo({prop:"gridAutoFlow"}),Xo({prop:"gridAutoColumns"}),Xo({prop:"gridAutoRows"}),Xo({prop:"gridTemplateColumns"}),Xo({prop:"gridTemplateRows"}),Xo({prop:"gridTemplateAreas"}),Xo({prop:"gridArea"}));function Ii(e){return e<=1&&0!==e?100*e+"%":e}ci(Xo({prop:"color",themeKey:"palette",transform:Li}),Xo({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Li}),Xo({prop:"backgroundColor",themeKey:"palette",transform:Li}));const Di=Xo({prop:"width",transform:Ii}),_i=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||Wo[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Ii(t)}};return Go(e,e.maxWidth,t)}return null};_i.filterProps=["maxWidth"];const Mi=Xo({prop:"minWidth",transform:Ii}),Ti=Xo({prop:"height",transform:Ii}),Oi=Xo({prop:"maxHeight",transform:Ii}),Ni=Xo({prop:"minHeight",transform:Ii});Xo({prop:"size",cssProperty:"width",transform:Ii}),Xo({prop:"size",cssProperty:"height",transform:Ii});ci(Di,_i,Mi,Ti,Oi,Ni,Xo({prop:"boxSizing"}));var qi={border:{themeKey:"borders",transform:di},borderTop:{themeKey:"borders",transform:di},borderRight:{themeKey:"borders",transform:di},borderBottom:{themeKey:"borders",transform:di},borderLeft:{themeKey:"borders",transform:di},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:di},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ri},color:{themeKey:"palette",transform:Li},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Li},backgroundColor:{themeKey:"palette",transform:Li},p:{style:ui},pt:{style:ui},pr:{style:ui},pb:{style:ui},pl:{style:ui},px:{style:ui},py:{style:ui},padding:{style:ui},paddingTop:{style:ui},paddingRight:{style:ui},paddingBottom:{style:ui},paddingLeft:{style:ui},paddingX:{style:ui},paddingY:{style:ui},paddingInline:{style:ui},paddingInlineStart:{style:ui},paddingInlineEnd:{style:ui},paddingBlock:{style:ui},paddingBlockStart:{style:ui},paddingBlockEnd:{style:ui},m:{style:si},mt:{style:si},mr:{style:si},mb:{style:si},ml:{style:si},mx:{style:si},my:{style:si},margin:{style:si},marginTop:{style:si},marginRight:{style:si},marginBottom:{style:si},marginLeft:{style:si},marginX:{style:si},marginY:{style:si},marginInline:{style:si},marginInlineStart:{style:si},marginInlineEnd:{style:si},marginBlock:{style:si},marginBlockStart:{style:si},marginBlockEnd:{style:si},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:ki},rowGap:{style:Pi},columnGap:{style:Ai},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ii},maxWidth:{style:_i},minWidth:{transform:Ii},height:{transform:Ii},maxHeight:{transform:Ii},minHeight:{transform:Ii},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const zi=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[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=Yo(n,l)||{};if(u)return u(o);return Go(o,t,(t=>{let n=Ko(c,s,t);return t===n&&"string"==typeof t&&(n=Ko(c,s,`${e}${"default"===t?"":lo(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:qi;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=Vo(s,e(n,o,i,a));else{const e=Go({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=Vo(s,e):s[n]=t({sx:o,theme:i})}else s=Vo(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();zi.filterProps=["sx"];var Fi=zi;function ji(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}const $i=["breakpoints","palette","spacing","shape"];function Bi(e={},...t){const{breakpoints:r={},palette:o={},spacing:i,shape:a={}}=e,l=d(e,$i),s=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:o=5}=e,i=d(e,$o),a=Bo(t),l=Object.keys(a);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function u(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-o/100}${r})`}function c(e,n){const i=l.indexOf(n);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[l[i]]?t[l[i]]:n)-o/100}${r})`}return n({keys:l,values:a,up:s,down:u,between:c,only:function(e){return l.indexOf(e)+1<l.length?c(e,l[l.indexOf(e)+1]):s(e)},not:function(e){const t=l.indexOf(e);return 0===t?s(l[1]):t===l.length-1?u(l[t]):c(e,l[l.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},i)}(r),u=function(e=8){if(e.mui)return e;const t=oi({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(i);let c=Or({breakpoints:s,direction:"ltr",components:{},palette:n({mode:"light"},o),spacing:u,shape:n({},Ho,a)},l);return c.applyStyles=ji,c=t.reduce(((e,t)=>Or(e,t)),c),c.unstable_sxConfig=n({},qi,null==l?void 0:l.unstable_sxConfig),c.unstable_sx=function(e){return Fi({sx:e,theme:this})},c}function Hi(e=null){const t=X.useContext(gr);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Vi=Bi();function Wi(e=Vi){return Hi(e)}var Ui={exports:{}},Gi={},Yi=X,Ki=Symbol.for("react.element"),Xi=Symbol.for("react.fragment"),Ji=Object.prototype.hasOwnProperty,Qi=Yi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Zi={key:!0,ref:!0,__self:!0,__source:!0};function ea(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Ji.call(t,r)&&!Zi.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:Ki,type:e,key:i,ref:a,props:o,_owner:Qi.current}}Gi.Fragment=Xi,Gi.jsx=ea,Gi.jsxs=ea,Ui.exports=Gi;var ta=Ui.exports;function na({styles:e,themeId:t,defaultTheme:n={}}){const r=Wi(n),o="function"==typeof e?e(t&&r[t]||r):e;return ta.jsx(Lr,{styles:o})}const ra=["sx"],oa=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:qi;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function ia(e){const{sx:t}=e,r=d(e,ra),{systemProps:o,otherProps:i}=oa(r);let a;return a=Array.isArray(t)?[o,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return Mr(r)?n({},o,r):o}:n({},o,t),n({},i,{sx:a})}const aa=["className","component"];const la=["ownerState"],sa=["variants"],ua=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ca(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const da=Bi(),pa=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function fa({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function ma(e){return e?(t,n)=>n[e]:null}function ha(e,t){let{ownerState:r}=t,o=d(t,la);const i="function"==typeof e?e(n({ownerState:r},o)):e;if(Array.isArray(i))return i.flatMap((e=>ha(e,n({ownerState:r},o))));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=d(i,sa);return e.forEach((e=>{let i=!0;"function"==typeof e.props?i=e.props(n({ownerState:r},o)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(n({ownerState:r},o)):e.style))})),t}return i}function ga({props:e,name:t,defaultTheme:n,themeId:r}){let o=Wi(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Io(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function ba(e,t=0,n=1){return qo(e,t,n)}function va(e){if(e.type)return e;if("#"===e.charAt(0))return va(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Oe(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=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(r))throw new Error(Oe(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function ya(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function xa(e){let t="hsl"===(e=va(e)).type||"hsla"===e.type?va(function(e){e=va(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/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])),ya({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 Sa(e,t){return e=va(e),t=ba(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,ya(e)}function Ea(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 wa(e){if(!Ea(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=wa(e[n])})),t}function Ca(e,t,r={clone:!0}){const o=r.clone?n({},e):e;return Ea(e)&&Ea(t)&&Object.keys(t).forEach((n=>{"__proto__"!==n&&(Ea(t[n])&&n in e&&Ea(e[n])?o[n]=Ca(e[n],t[n],r):r.clone?o[n]=Ea(t[n])?wa(t[n]):t[n]:o[n]=t[n])})),o}function Ra(e){if("string"!=typeof e)throw new Error(De(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ka(e){return e&&e.ownerDocument||document}function Aa(e){return ka(e).defaultView||window}var Pa="undefined"!=typeof window?X.useLayoutEffect:X.useEffect;let La=0;const Ia=Q["useId".toString()];function Da(e){if(void 0!==Ia){const t=Ia();return null!=e?e:t}return function(e){const[t,n]=X.useState(e),r=e||t;return X.useEffect((()=>{null==t&&(La+=1,n(`mui-${La}`))}),[t]),r}(e)}function _a({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=X.useRef(void 0!==e),[i,a]=X.useState(t);return[o?e:i,X.useCallback((e=>{o||a(e)}),[])]}function Ma(e){const t=X.useRef(e);return Pa((()=>{t.current=e})),X.useRef(((...e)=>(0,t.current)(...e))).current}function Ta(...e){return X.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 Oa{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new Oa}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let Na=!0,qa=!1;const za=new Oa,Fa={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function ja(e){e.metaKey||e.altKey||e.ctrlKey||(Na=!0)}function $a(){Na=!1}function Ba(){"hidden"===this.visibilityState&&qa&&(Na=!0)}function Ha(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Na||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Fa[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Va(){const e=X.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",ja,!0),t.addEventListener("mousedown",$a,!0),t.addEventListener("pointerdown",$a,!0),t.addEventListener("touchstart",$a,!0),t.addEventListener("visibilitychange",Ba,!0))}),[]),t=X.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Ha(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(qa=!0,za.start(100,(()=>{qa=!1})),t.current=!1,!0)},ref:e}}function Wa(e,t){const r=n({},t);return Object.keys(e).forEach((o=>{if(o.toString().match(/^(components|slots)$/))r[o]=n({},e[o],r[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){const i=e[o]||{},a=t[o];r[o]={},a&&Object.keys(a)?i&&Object.keys(i)?(r[o]=n({},a),Object.keys(i).forEach((e=>{r[o][e]=Wa(i[e],a[e])}))):r[o]=a:r[o]=i}else void 0===r[o]&&(r[o]=e[o])})),r}const Ua=e=>e;var Ga=(()=>{let e=Ua;return{configure(t){e=t},generate:t=>e(t),reset(){e=Ua}}})();const Ya={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 Ka(e,t,n="Mui"){const r=Ya[t];return r?`${n}-${r}`:`${Ga.generate(e)}-${t}`}function Xa(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Ka(e,t,n)})),r}const Ja=["mode","contrastThreshold","tonalOffset"],Qa={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:we.white,default:we.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Za={text:{primary:we.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:we.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 el(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=va(e),t=ba(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ya(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=va(e),t=ba(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 n=0;n<3;n+=1)e.values[n]*=1-t;return ya(e)}(e.main,i)))}function tl(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Te(e,Ja),i=e.primary||function(e="light"){return"dark"===e?{main:ke[200],light:ke[50],dark:ke[400]}:{main:ke[700],light:ke[400],dark:ke[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Re[200],light:Re[50],dark:Re[400]}:{main:Re[500],light:Re[300],dark:Re[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Ce[500],light:Ce[300],dark:Ce[700]}:{main:Ce[700],light:Ce[400],dark:Ce[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Ae[400],light:Ae[300],dark:Ae[700]}:{main:Ae[700],light:Ae[500],dark:Ae[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Pe[400],light:Pe[300],dark:Pe[700]}:{main:Pe[800],light:Pe[500],dark:Pe[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Le[400],light:Le[300],dark:Le[700]}:{main:"#ed6c02",light:Le[500],dark:Le[900]}}(t);function d(e){const t=function(e,t){const n=xa(e),r=xa(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Za.text.primary)>=n?Za.text.primary:Qa.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Me({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(De(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(De(12,t?` (${t})`:"",JSON.stringify(e.main)));return el(e,"light",o,r),el(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Za,light:Qa};return Ca(Me({common:Me({},we),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:Ie,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const nl=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const rl={textTransform:"uppercase"},ol='"Roboto", "Helvetica", "Arial", sans-serif';function il(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=ol,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Te(n,nl),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return Me({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===ol?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,rl),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,rl),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ca(Me({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function al(...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 ll=["none",al(0,2,1,-1,0,1,1,0,0,1,3,0),al(0,3,1,-2,0,2,2,0,0,1,5,0),al(0,3,3,-2,0,3,4,0,0,1,8,0),al(0,2,4,-1,0,4,5,0,0,1,10,0),al(0,3,5,-1,0,5,8,0,0,1,14,0),al(0,3,5,-1,0,6,10,0,0,1,18,0),al(0,4,5,-2,0,7,10,1,0,2,16,1),al(0,5,5,-3,0,8,10,1,0,3,14,2),al(0,5,6,-3,0,9,12,1,0,3,16,2),al(0,6,6,-3,0,10,14,1,0,4,18,3),al(0,6,7,-4,0,11,15,1,0,4,20,3),al(0,7,8,-4,0,12,17,2,0,5,22,4),al(0,7,8,-4,0,13,19,2,0,5,24,4),al(0,7,9,-4,0,14,21,2,0,5,26,4),al(0,8,9,-5,0,15,22,2,0,6,28,5),al(0,8,10,-5,0,16,24,2,0,6,30,5),al(0,8,11,-5,0,17,26,2,0,6,32,5),al(0,9,11,-5,0,18,28,2,0,7,34,6),al(0,9,12,-6,0,19,29,2,0,7,36,6),al(0,10,13,-6,0,20,31,3,0,8,38,7),al(0,10,13,-6,0,21,33,3,0,8,40,7),al(0,10,14,-6,0,22,35,3,0,8,42,7),al(0,11,14,-7,0,23,36,3,0,9,44,8),al(0,11,15,-7,0,24,38,3,0,9,46,8)];const sl=["duration","easing","delay"],ul={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)"},cl={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function dl(e){return`${Math.round(e)}ms`}function pl(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function fl(e){const t=Me({},ul,e.easing),n=Me({},cl,e.duration);return Me({getAutoHeightDuration:pl,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Te(r,sl),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:dl(o)} ${i} ${"string"==typeof a?a:dl(a)}`)).join(",")}},e,{easing:t,duration:n})}var ml={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const hl=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function gl(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Te(e,hl);if(e.vars)throw new Error(De(18));const l=tl(r),s=Bi(e);let u=Ca(s,{mixins:(c=s.breakpoints,d=n,Me({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:ll.slice(),typography:il(l,i),transitions:fl(o),zIndex:Me({},ml),applyDarkStyles(e){if(this.vars){const t=this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)");return{[t]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=Ca(u,a),u=t.reduce(((e,t)=>Ca(e,t)),u),u.unstable_sxConfig=Me({},qi,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Fi({sx:e,theme:this})},u}var bl=gl();function vl(){const e=Wi(bl);return e[_e]||e}function yl({props:e,name:t}){return ga({props:e,name:t,defaultTheme:bl,themeId:_e})}const xl=e=>ca(e)&&"classes"!==e,Sl=ca,El=function(e={}){const{themeId:t,defaultTheme:r=da,rootShouldForwardProp:o=ca,slotShouldForwardProp:i=ca}=e,a=e=>Fi(n({},e,{theme:fa(n({},e,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(e,l={})=>{Dr(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:u,skipVariantsResolver:c,skipSx:p,overridesResolver:f=ma(pa(u))}=l,m=d(l,ua),h=void 0!==c?c:u&&"Root"!==u&&"root"!==u||!1,g=p||!1;let b=ca;"Root"===u||"root"===u?b=o:u?b=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(b=void 0);const v=Ir(e,n({shouldForwardProp:b,label:undefined},m)),y=e=>"function"==typeof e&&e.__emotion_real!==e||Mr(e)?o=>ha(e,n({},o,{theme:fa({theme:o.theme,defaultTheme:r,themeId:t})})):e,x=(o,...i)=>{let l=y(o);const u=i?i.map(y):[];s&&f&&u.push((e=>{const o=fa(n({},e,{defaultTheme:r,themeId:t}));if(!o.components||!o.components[s]||!o.components[s].styleOverrides)return null;const i=o.components[s].styleOverrides,a={};return Object.entries(i).forEach((([t,r])=>{a[t]=ha(r,n({},e,{theme:o}))})),f(e,a)})),s&&!h&&u.push((e=>{var o;const i=fa(n({},e,{defaultTheme:r,themeId:t}));return ha({variants:null==i||null==(o=i.components)||null==(o=o[s])?void 0:o.variants},n({},e,{theme:i}))})),g||u.push(a);const c=u.length-i.length;if(Array.isArray(o)&&c>0){const e=new Array(c).fill("");l=[...o,...e],l.raw=[...o.raw,...e]}const d=v(l,...u);return e.muiName&&(d.muiName=e.muiName),d};return v.withConfig&&(x.withConfig=v.withConfig),x}}({themeId:_e,defaultTheme:bl,rootShouldForwardProp:xl});var wl=El;var Cl=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Rl(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Rl(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function kl(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Rl(e))&&(r&&(r+=" "),r+=t);return r}function Al(e){return Ka("MuiSvgIcon",e)}Xa("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Pl=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Ll=wl("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Ra(n.color)}`],t[`fontSize${Ra(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,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==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"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]}})),Il=X.forwardRef((function(e,t){const n=yl({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,p=Te(n,Pl),f=X.isValidElement(r)&&"svg"===r.type,m=Me({},n,{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:n,classes:r}=e;return Do({root:["root","inherit"!==t&&`color${Ra(t)}`,`fontSize${Ra(n)}`]},Al,r)})(m);return ta.jsxs(Ll,Me({as:a,className:kl(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&r.props,{ownerState:m,children:[f?r.props.children:r,c?ta.jsx("title",{children:c}):null]}))}));Il.muiName="SvgIcon";var Dl=Il;var _l,Ml={},Tl=Symbol.for("react.element"),Ol=Symbol.for("react.portal"),Nl=Symbol.for("react.fragment"),ql=Symbol.for("react.strict_mode"),zl=Symbol.for("react.profiler"),Fl=Symbol.for("react.provider"),jl=Symbol.for("react.context"),$l=Symbol.for("react.server_context"),Bl=Symbol.for("react.forward_ref"),Hl=Symbol.for("react.suspense"),Vl=Symbol.for("react.suspense_list"),Wl=Symbol.for("react.memo"),Ul=Symbol.for("react.lazy"),Gl=Symbol.for("react.offscreen");
16
16
  /**
17
17
  * @license React
18
18
  * react-is.production.min.js
@@ -21,7 +21,7 @@ function Mr(e,t){let n;return n=t?Ar(e).withConfig({displayName:t.label,shouldFo
21
21
  *
22
22
  * This source code is licensed under the MIT license found in the
23
23
  * LICENSE file in the root directory of this source tree.
24
- */function Jl(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ql:switch(e=e.type){case Fl:case $l:case jl:case Ul:case Gl:return e;default:switch(e=e&&e.$$typeof){case Wl:case Hl:case Vl:case Kl:case Yl:case Bl:return e;default:return t}}case zl:return t}}}Ol=Symbol.for("react.module.reference"),Nl.ContextConsumer=Hl,Nl.ContextProvider=Bl,Nl.Element=ql,Nl.ForwardRef=Vl,Nl.Fragment=Fl,Nl.Lazy=Kl,Nl.Memo=Yl,Nl.Portal=zl,Nl.Profiler=$l,Nl.StrictMode=jl,Nl.Suspense=Ul,Nl.SuspenseList=Gl,Nl.isAsyncMode=function(){return!1},Nl.isConcurrentMode=function(){return!1},Nl.isContextConsumer=function(e){return Jl(e)===Hl},Nl.isContextProvider=function(e){return Jl(e)===Bl},Nl.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ql},Nl.isForwardRef=function(e){return Jl(e)===Vl},Nl.isFragment=function(e){return Jl(e)===Fl},Nl.isLazy=function(e){return Jl(e)===Kl},Nl.isMemo=function(e){return Jl(e)===Yl},Nl.isPortal=function(e){return Jl(e)===zl},Nl.isProfiler=function(e){return Jl(e)===$l},Nl.isStrictMode=function(e){return Jl(e)===jl},Nl.isSuspense=function(e){return Jl(e)===Ul},Nl.isSuspenseList=function(e){return Jl(e)===Gl},Nl.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Fl||e===$l||e===jl||e===Ul||e===Gl||e===Xl||"object"==typeof e&&null!==e&&(e.$$typeof===Kl||e.$$typeof===Yl||e.$$typeof===Bl||e.$$typeof===Hl||e.$$typeof===Vl||e.$$typeof===Ol||void 0!==e.getModuleId)},Nl.typeOf=Jl;var Ql={exports:{}},Zl={},es={exports:{}},ts={};
24
+ */function Yl(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Tl:switch(e=e.type){case Nl:case zl:case ql:case Hl:case Vl:return e;default:switch(e=e&&e.$$typeof){case $l:case jl:case Bl:case Ul:case Wl:case Fl:return e;default:return t}}case Ol:return t}}}_l=Symbol.for("react.module.reference"),Ml.ContextConsumer=jl,Ml.ContextProvider=Fl,Ml.Element=Tl,Ml.ForwardRef=Bl,Ml.Fragment=Nl,Ml.Lazy=Ul,Ml.Memo=Wl,Ml.Portal=Ol,Ml.Profiler=zl,Ml.StrictMode=ql,Ml.Suspense=Hl,Ml.SuspenseList=Vl,Ml.isAsyncMode=function(){return!1},Ml.isConcurrentMode=function(){return!1},Ml.isContextConsumer=function(e){return Yl(e)===jl},Ml.isContextProvider=function(e){return Yl(e)===Fl},Ml.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Tl},Ml.isForwardRef=function(e){return Yl(e)===Bl},Ml.isFragment=function(e){return Yl(e)===Nl},Ml.isLazy=function(e){return Yl(e)===Ul},Ml.isMemo=function(e){return Yl(e)===Wl},Ml.isPortal=function(e){return Yl(e)===Ol},Ml.isProfiler=function(e){return Yl(e)===zl},Ml.isStrictMode=function(e){return Yl(e)===ql},Ml.isSuspense=function(e){return Yl(e)===Hl},Ml.isSuspenseList=function(e){return Yl(e)===Vl},Ml.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Nl||e===zl||e===ql||e===Hl||e===Vl||e===Gl||"object"==typeof e&&null!==e&&(e.$$typeof===Ul||e.$$typeof===Wl||e.$$typeof===Fl||e.$$typeof===jl||e.$$typeof===Bl||e.$$typeof===_l||void 0!==e.getModuleId)},Ml.typeOf=Yl;var Kl={exports:{}},Xl={},Jl={exports:{}},Ql={};
25
25
  /**
26
26
  * @license React
27
27
  * scheduler.production.min.js
@@ -31,7 +31,7 @@ function Mr(e,t){let n;return n=t?Ar(e).withConfig({displayName:t.label,shouldFo
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
33
  */
34
- !function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>o(s,n))u<i&&0>o(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],c=1,d=null,p=3,f=!1,m=!1,h=!1,g="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(s,o)}o=n(u)}}function x(e){if(h=!1,y(e),!m)if(null!==n(s))m=!0,_(S);else{var t=n(u);null!==t&&M(x,t.startTime-e)}}function S(t,o){m=!1,h&&(h=!1,b(R),R=-1),f=!0;var i=p;try{for(y(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!L());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var l=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?d.callback=l:d===n(s)&&r(s),y(o)}else r(s);d=n(s)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&M(x,g.startTime-o),c=!1}return c}finally{d=null,p=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,w=!1,C=null,R=-1,k=5,A=-1;function L(){return!(e.unstable_now()-A<k)}function P(){if(null!==C){var t=e.unstable_now();A=t;var n=!0;try{n=C(!0,t)}finally{n?E():(w=!1,C=null)}}else w=!1}if("function"==typeof v)E=function(){v(P)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,D=I.port2;I.port1.onmessage=P,E=function(){D.postMessage(null)}}else E=function(){g(P,0)};function _(e){C=e,w||(w=!0,E())}function M(t,n){R=g((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||f||(m=!0,_(S))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(r.sortIndex=i,t(u,r),null===n(s)&&r===n(u)&&(h?(b(R),R=-1):h=!0,M(x,i-a))):(r.sortIndex=l,t(s,r),m||f||(m=!0,_(S))),r},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(ts),es.exports=ts;var ns=es.exports,rs=X,os=ns;
34
+ !function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>o(s,n))u<i&&0>o(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],c=1,d=null,p=3,f=!1,m=!1,h=!1,g="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(s,o)}o=n(u)}}function x(e){if(h=!1,y(e),!m)if(null!==n(s))m=!0,_(S);else{var t=n(u);null!==t&&M(x,t.startTime-e)}}function S(t,o){m=!1,h&&(h=!1,b(R),R=-1),f=!0;var i=p;try{for(y(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!P());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var l=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?d.callback=l:d===n(s)&&r(s),y(o)}else r(s);d=n(s)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&M(x,g.startTime-o),c=!1}return c}finally{d=null,p=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,w=!1,C=null,R=-1,k=5,A=-1;function P(){return!(e.unstable_now()-A<k)}function L(){if(null!==C){var t=e.unstable_now();A=t;var n=!0;try{n=C(!0,t)}finally{n?E():(w=!1,C=null)}}else w=!1}if("function"==typeof v)E=function(){v(L)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,D=I.port2;I.port1.onmessage=L,E=function(){D.postMessage(null)}}else E=function(){g(L,0)};function _(e){C=e,w||(w=!0,E())}function M(t,n){R=g((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||f||(m=!0,_(S))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(r.sortIndex=i,t(u,r),null===n(s)&&r===n(u)&&(h?(b(R),R=-1):h=!0,M(x,i-a))):(r.sortIndex=l,t(s,r),m||f||(m=!0,_(S))),r},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(Ql),Jl.exports=Ql;var Zl=Jl.exports,es=X,ts=Zl;
35
35
  /**
36
36
  * @license React
37
37
  * react-dom.production.min.js
@@ -40,7 +40,7 @@ function Mr(e,t){let n;return n=t?Ar(e).withConfig({displayName:t.label,shouldFo
40
40
  *
41
41
  * This source code is licensed under the MIT license found in the
42
42
  * LICENSE file in the root directory of this source tree.
43
- */function is(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var as=new Set,ls={};function ss(e,t){us(e,t),us(e+"Capture",t)}function us(e,t){for(ls[e]=t,e=0;e<t.length;e++)as.add(t[e])}var cs=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),ds=Object.prototype.hasOwnProperty,ps=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,fs={},ms={};function hs(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var gs={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){gs[e]=new hs(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];gs[t]=new hs(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){gs[e]=new hs(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){gs[e]=new hs(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){gs[e]=new hs(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){gs[e]=new hs(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){gs[e]=new hs(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){gs[e]=new hs(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){gs[e]=new hs(e,5,!1,e.toLowerCase(),null,!1,!1)}));var bs=/[\-:]([a-z])/g;function vs(e){return e[1].toUpperCase()}function ys(e,t,n,r){var o=gs.hasOwnProperty(t)?gs[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!ds.call(ms,e)||!ds.call(fs,e)&&(ps.test(e)?ms[e]=!0:(fs[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(bs,vs);gs[t]=new hs(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(bs,vs);gs[t]=new hs(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(bs,vs);gs[t]=new hs(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){gs[e]=new hs(e,1,!1,e.toLowerCase(),null,!1,!1)})),gs.xlinkHref=new hs("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){gs[e]=new hs(e,1,!1,e.toLowerCase(),null,!0,!0)}));var xs=rs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ss=Symbol.for("react.element"),Es=Symbol.for("react.portal"),ws=Symbol.for("react.fragment"),Cs=Symbol.for("react.strict_mode"),Rs=Symbol.for("react.profiler"),ks=Symbol.for("react.provider"),As=Symbol.for("react.context"),Ls=Symbol.for("react.forward_ref"),Ps=Symbol.for("react.suspense"),Is=Symbol.for("react.suspense_list"),Ds=Symbol.for("react.memo"),_s=Symbol.for("react.lazy"),Ms=Symbol.for("react.offscreen"),Ts=Symbol.iterator;function Os(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Ts&&e[Ts]||e["@@iterator"])?e:null}var Ns,qs=Object.assign;function zs(e){if(void 0===Ns)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ns=t&&t[1]||""}return"\n"+Ns+e}var Fs=!1;function js(e,t){if(!e||Fs)return"";Fs=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{Fs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?zs(e):""}function $s(e){switch(e.tag){case 5:return zs(e.type);case 16:return zs("Lazy");case 13:return zs("Suspense");case 19:return zs("SuspenseList");case 0:case 2:case 15:return e=js(e.type,!1);case 11:return e=js(e.type.render,!1);case 1:return e=js(e.type,!0);default:return""}}function Bs(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ws:return"Fragment";case Es:return"Portal";case Rs:return"Profiler";case Cs:return"StrictMode";case Ps:return"Suspense";case Is:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case As:return(e.displayName||"Context")+".Consumer";case ks:return(e._context.displayName||"Context")+".Provider";case Ls:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Ds:return null!==(t=e.displayName||null)?t:Bs(e.type)||"Memo";case _s:t=e._payload,e=e._init;try{return Bs(e(t))}catch(e){}}return null}function Hs(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Bs(t);case 8:return t===Cs?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Ws(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Vs(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Us(e){e._valueTracker||(e._valueTracker=function(e){var t=Vs(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Gs(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Vs(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Ys(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Ks(e,t){var n=t.checked;return qs({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Xs(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Ws(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Js(e,t){null!=(t=t.checked)&&ys(e,"checked",t,!1)}function Qs(e,t){Js(e,t);var n=Ws(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?eu(e,t.type,n):t.hasOwnProperty("defaultValue")&&eu(e,t.type,Ws(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Zs(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function eu(e,t,n){"number"===t&&Ys(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var tu=Array.isArray;function nu(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ws(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function ru(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(is(91));return qs({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ou(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(is(92));if(tu(n)){if(1<n.length)throw Error(is(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Ws(n)}}function iu(e,t){var n=Ws(t.value),r=Ws(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function au(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function lu(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function su(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?lu(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var uu,cu,du=(cu=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((uu=uu||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=uu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return cu(e,t)}))}:cu);function pu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},mu=["Webkit","ms","Moz","O"];function hu(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fu.hasOwnProperty(e)&&fu[e]?(""+t).trim():t+"px"}function gu(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=hu(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(fu).forEach((function(e){mu.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fu[t]=fu[e]}))}));var bu=qs({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function vu(e,t){if(t){if(bu[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(is(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(is(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(is(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(is(62))}}function yu(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xu=null;function Su(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Eu=null,wu=null,Cu=null;function Ru(e){if(e=yf(e)){if("function"!=typeof Eu)throw Error(is(280));var t=e.stateNode;t&&(t=Sf(t),Eu(e.stateNode,e.type,t))}}function ku(e){wu?Cu?Cu.push(e):Cu=[e]:wu=e}function Au(){if(wu){var e=wu,t=Cu;if(Cu=wu=null,Ru(e),t)for(e=0;e<t.length;e++)Ru(t[e])}}function Lu(e,t){return e(t)}function Pu(){}var Iu=!1;function Du(e,t,n){if(Iu)return e(t,n);Iu=!0;try{return Lu(e,t,n)}finally{Iu=!1,(null!==wu||null!==Cu)&&(Pu(),Au())}}function _u(e,t){var n=e.stateNode;if(null===n)return null;var r=Sf(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(is(231,t,typeof n));return n}var Mu=!1;if(cs)try{var Tu={};Object.defineProperty(Tu,"passive",{get:function(){Mu=!0}}),window.addEventListener("test",Tu,Tu),window.removeEventListener("test",Tu,Tu)}catch(cu){Mu=!1}function Ou(e,t,n,r,o,i,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Nu=!1,qu=null,zu=!1,Fu=null,ju={onError:function(e){Nu=!0,qu=e}};function $u(e,t,n,r,o,i,a,l,s){Nu=!1,qu=null,Ou.apply(ju,arguments)}function Bu(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Hu(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Wu(e){if(Bu(e)!==e)throw Error(is(188))}function Vu(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=Bu(e)))throw Error(is(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Wu(o),e;if(i===r)return Wu(o),t;i=i.sibling}throw Error(is(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a)throw Error(is(189))}}if(n.alternate!==r)throw Error(is(190))}if(3!==n.tag)throw Error(is(188));return n.stateNode.current===n?e:t}(e),null!==e?Uu(e):null}function Uu(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Uu(e);if(null!==t)return t;e=e.sibling}return null}var Gu=os.unstable_scheduleCallback,Yu=os.unstable_cancelCallback,Ku=os.unstable_shouldYield,Xu=os.unstable_requestPaint,Ju=os.unstable_now,Qu=os.unstable_getCurrentPriorityLevel,Zu=os.unstable_ImmediatePriority,ec=os.unstable_UserBlockingPriority,tc=os.unstable_NormalPriority,nc=os.unstable_LowPriority,rc=os.unstable_IdlePriority,oc=null,ic=null;var ac=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lc(e)/sc|0)|0},lc=Math.log,sc=Math.LN2;var uc=64,cc=4194304;function dc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pc(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=dc(l):0!==(i&=a)&&(r=dc(i))}else 0!==(a=n&~o)?r=dc(a):0!==i&&(r=dc(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-ac(t)),r|=e[n],t&=~o;return r}function fc(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function mc(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function hc(){var e=uc;return!(4194240&(uc<<=1))&&(uc=64),e}function gc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bc(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ac(t)]=n}function vc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ac(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var yc=0;function xc(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var Sc,Ec,wc,Cc,Rc,kc=!1,Ac=[],Lc=null,Pc=null,Ic=null,Dc=new Map,_c=new Map,Mc=[],Tc="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Oc(e,t){switch(e){case"focusin":case"focusout":Lc=null;break;case"dragenter":case"dragleave":Pc=null;break;case"mouseover":case"mouseout":Ic=null;break;case"pointerover":case"pointerout":Dc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_c.delete(t.pointerId)}}function Nc(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=yf(t))&&Ec(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function qc(e){var t=vf(e.target);if(null!==t){var n=Bu(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Hu(n)))return e.blockedOn=t,void Rc(e.priority,(function(){wc(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function zc(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=yf(n))&&Ec(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xu=r,n.target.dispatchEvent(r),xu=null,t.shift()}return!0}function Fc(e,t,n){zc(e)&&n.delete(t)}function jc(){kc=!1,null!==Lc&&zc(Lc)&&(Lc=null),null!==Pc&&zc(Pc)&&(Pc=null),null!==Ic&&zc(Ic)&&(Ic=null),Dc.forEach(Fc),_c.forEach(Fc)}function $c(e,t){e.blockedOn===t&&(e.blockedOn=null,kc||(kc=!0,os.unstable_scheduleCallback(os.unstable_NormalPriority,jc)))}function Bc(e){function t(t){return $c(t,e)}if(0<Ac.length){$c(Ac[0],e);for(var n=1;n<Ac.length;n++){var r=Ac[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Lc&&$c(Lc,e),null!==Pc&&$c(Pc,e),null!==Ic&&$c(Ic,e),Dc.forEach(t),_c.forEach(t),n=0;n<Mc.length;n++)(r=Mc[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mc.length&&null===(n=Mc[0]).blockedOn;)qc(n),null===n.blockedOn&&Mc.shift()}var Hc=xs.ReactCurrentBatchConfig,Wc=!0;function Vc(e,t,n,r){var o=yc,i=Hc.transition;Hc.transition=null;try{yc=1,Gc(e,t,n,r)}finally{yc=o,Hc.transition=i}}function Uc(e,t,n,r){var o=yc,i=Hc.transition;Hc.transition=null;try{yc=4,Gc(e,t,n,r)}finally{yc=o,Hc.transition=i}}function Gc(e,t,n,r){if(Wc){var o=Kc(e,t,n,r);if(null===o)Hp(e,t,r,Yc,n),Oc(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Lc=Nc(Lc,e,t,n,r,o),!0;case"dragenter":return Pc=Nc(Pc,e,t,n,r,o),!0;case"mouseover":return Ic=Nc(Ic,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Dc.set(i,Nc(Dc.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,_c.set(i,Nc(_c.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Oc(e,r),4&t&&-1<Tc.indexOf(e)){for(;null!==o;){var i=yf(o);if(null!==i&&Sc(i),null===(i=Kc(e,t,n,r))&&Hp(e,t,r,Yc,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Hp(e,t,r,null,n)}}var Yc=null;function Kc(e,t,n,r){if(Yc=null,null!==(e=vf(e=Su(r))))if(null===(t=Bu(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Hu(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yc=e,null}function Xc(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qu()){case Zu:return 1;case ec:return 4;case tc:case nc:return 16;case rc:return 536870912;default:return 16}default:return 16}}var Jc=null,Qc=null,Zc=null;function ed(){if(Zc)return Zc;var e,t,n=Qc,r=n.length,o="value"in Jc?Jc.value:Jc.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Zc=o.slice(e,1<t?1-t:void 0)}function td(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nd(){return!0}function rd(){return!1}function od(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nd:rd,this.isPropagationStopped=rd,this}return qs(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nd)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nd)},persist:function(){},isPersistent:nd}),t}var id,ad,ld,sd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ud=od(sd),cd=qs({},sd,{view:0,detail:0}),dd=od(cd),pd=qs({},cd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cd,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ld&&(ld&&"mousemove"===e.type?(id=e.screenX-ld.screenX,ad=e.screenY-ld.screenY):ad=id=0,ld=e),id)},movementY:function(e){return"movementY"in e?e.movementY:ad}}),fd=od(pd),md=od(qs({},pd,{dataTransfer:0})),hd=od(qs({},cd,{relatedTarget:0})),gd=od(qs({},sd,{animationName:0,elapsedTime:0,pseudoElement:0})),bd=qs({},sd,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vd=od(bd),yd=od(qs({},sd,{data:0})),xd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sd={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Ed={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wd(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Ed[e])&&!!t[e]}function Cd(){return wd}var Rd=qs({},cd,{key:function(e){if(e.key){var t=xd[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=td(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cd,charCode:function(e){return"keypress"===e.type?td(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?td(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),kd=od(Rd),Ad=od(qs({},pd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ld=od(qs({},cd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cd})),Pd=od(qs({},sd,{propertyName:0,elapsedTime:0,pseudoElement:0})),Id=qs({},pd,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Dd=od(Id),_d=[9,13,27,32],Md=cs&&"CompositionEvent"in window,Td=null;cs&&"documentMode"in document&&(Td=document.documentMode);var Od=cs&&"TextEvent"in window&&!Td,Nd=cs&&(!Md||Td&&8<Td&&11>=Td),qd=String.fromCharCode(32),zd=!1;function Fd(e,t){switch(e){case"keyup":return-1!==_d.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jd(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var $d=!1;var Bd={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Bd[e.type]:"textarea"===t}function Wd(e,t,n,r){ku(r),0<(t=Vp(t,"onChange")).length&&(n=new ud("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vd=null,Ud=null;function Gd(e){qp(e,0)}function Yd(e){if(Gs(xf(e)))return e}function Kd(e,t){if("change"===e)return t}var Xd=!1;if(cs){var Jd;if(cs){var Qd="oninput"in document;if(!Qd){var Zd=document.createElement("div");Zd.setAttribute("oninput","return;"),Qd="function"==typeof Zd.oninput}Jd=Qd}else Jd=!1;Xd=Jd&&(!document.documentMode||9<document.documentMode)}function ep(){Vd&&(Vd.detachEvent("onpropertychange",tp),Ud=Vd=null)}function tp(e){if("value"===e.propertyName&&Yd(Ud)){var t=[];Wd(t,Ud,e,Su(e)),Du(Gd,t)}}function np(e,t,n){"focusin"===e?(ep(),Ud=n,(Vd=t).attachEvent("onpropertychange",tp)):"focusout"===e&&ep()}function rp(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yd(Ud)}function op(e,t){if("click"===e)return Yd(t)}function ip(e,t){if("input"===e||"change"===e)return Yd(t)}var ap="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lp(e,t){if(ap(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!ds.call(t,o)||!ap(e[o],t[o]))return!1}return!0}function sp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function up(e,t){var n,r=sp(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sp(r)}}function cp(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?cp(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dp(){for(var e=window,t=Ys();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Ys((e=t.contentWindow).document)}return t}function pp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fp(e){var t=dp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&cp(n.ownerDocument.documentElement,n)){if(null!==r&&pp(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=up(n,i);var a=up(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mp=cs&&"documentMode"in document&&11>=document.documentMode,hp=null,gp=null,bp=null,vp=!1;function yp(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vp||null==hp||hp!==Ys(r)||("selectionStart"in(r=hp)&&pp(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},bp&&lp(bp,r)||(bp=r,0<(r=Vp(gp,"onSelect")).length&&(t=new ud("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hp)))}function xp(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sp={animationend:xp("Animation","AnimationEnd"),animationiteration:xp("Animation","AnimationIteration"),animationstart:xp("Animation","AnimationStart"),transitionend:xp("Transition","TransitionEnd")},Ep={},wp={};function Cp(e){if(Ep[e])return Ep[e];if(!Sp[e])return e;var t,n=Sp[e];for(t in n)if(n.hasOwnProperty(t)&&t in wp)return Ep[e]=n[t];return e}cs&&(wp=document.createElement("div").style,"AnimationEvent"in window||(delete Sp.animationend.animation,delete Sp.animationiteration.animation,delete Sp.animationstart.animation),"TransitionEvent"in window||delete Sp.transitionend.transition);var Rp=Cp("animationend"),kp=Cp("animationiteration"),Ap=Cp("animationstart"),Lp=Cp("transitionend"),Pp=new Map,Ip="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Dp(e,t){Pp.set(e,t),ss(t,[e])}for(var _p=0;_p<Ip.length;_p++){var Mp=Ip[_p];Dp(Mp.toLowerCase(),"on"+(Mp[0].toUpperCase()+Mp.slice(1)))}Dp(Rp,"onAnimationEnd"),Dp(kp,"onAnimationIteration"),Dp(Ap,"onAnimationStart"),Dp("dblclick","onDoubleClick"),Dp("focusin","onFocus"),Dp("focusout","onBlur"),Dp(Lp,"onTransitionEnd"),us("onMouseEnter",["mouseout","mouseover"]),us("onMouseLeave",["mouseout","mouseover"]),us("onPointerEnter",["pointerout","pointerover"]),us("onPointerLeave",["pointerout","pointerover"]),ss("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ss("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ss("onBeforeInput",["compositionend","keypress","textInput","paste"]),ss("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ss("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ss("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Tp="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Op=new Set("cancel close invalid load scroll toggle".split(" ").concat(Tp));function Np(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,l,s){if($u.apply(this,arguments),Nu){if(!Nu)throw Error(is(198));var u=qu;Nu=!1,qu=null,zu||(zu=!0,Fu=u)}}(r,t,void 0,e),e.currentTarget=null}function qp(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;Np(o,l,u),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,u=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;Np(o,l,u),i=s}}}if(zu)throw e=Fu,zu=!1,Fu=null,e}function zp(e,t){var n=t[hf];void 0===n&&(n=t[hf]=new Set);var r=e+"__bubble";n.has(r)||(Bp(t,e,2,!1),n.add(r))}function Fp(e,t,n){var r=0;t&&(r|=4),Bp(n,e,r,t)}var jp="_reactListening"+Math.random().toString(36).slice(2);function $p(e){if(!e[jp]){e[jp]=!0,as.forEach((function(t){"selectionchange"!==t&&(Op.has(t)||Fp(t,!1,e),Fp(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[jp]||(t[jp]=!0,Fp("selectionchange",!1,t))}}function Bp(e,t,n,r){switch(Xc(t)){case 1:var o=Vc;break;case 4:o=Uc;break;default:o=Gc}n=o.bind(null,t,n,e),o=void 0,!Mu||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Hp(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=vf(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}Du((function(){var r=i,o=Su(n),a=[];e:{var l=Pp.get(e);if(void 0!==l){var s=ud,u=e;switch(e){case"keypress":if(0===td(n))break e;case"keydown":case"keyup":s=kd;break;case"focusin":u="focus",s=hd;break;case"focusout":u="blur",s=hd;break;case"beforeblur":case"afterblur":s=hd;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=fd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=md;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Ld;break;case Rp:case kp:case Ap:s=gd;break;case Lp:s=Pd;break;case"scroll":s=dd;break;case"wheel":s=Dd;break;case"copy":case"cut":case"paste":s=vd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Ad}var c=!!(4&t),d=!c&&"scroll"===e,p=c?null!==l?l+"Capture":null:l;c=[];for(var f,m=r;null!==m;){var h=(f=m).stateNode;if(5===f.tag&&null!==h&&(f=h,null!==p&&(null!=(h=_u(m,p))&&c.push(Wp(m,h,f)))),d)break;m=m.return}0<c.length&&(l=new s(l,u,null,n,o),a.push({event:l,listeners:c}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===xu||!(u=n.relatedTarget||n.fromElement)||!vf(u)&&!u[mf])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?vf(u):null)&&(u!==(d=Bu(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=fd,h="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=Ad,h="onPointerLeave",p="onPointerEnter",m="pointer"),d=null==s?l:xf(s),f=null==u?l:xf(u),(l=new c(h,m+"leave",s,n,o)).target=d,l.relatedTarget=f,h=null,vf(o)===r&&((c=new c(p,m+"enter",u,n,o)).target=f,c.relatedTarget=d,h=c),d=h,s&&u)e:{for(p=u,m=0,f=c=s;f;f=Up(f))m++;for(f=0,h=p;h;h=Up(h))f++;for(;0<m-f;)c=Up(c),m--;for(;0<f-m;)p=Up(p),f--;for(;m--;){if(c===p||null!==p&&c===p.alternate)break e;c=Up(c),p=Up(p)}c=null}else c=null;null!==s&&Gp(a,l,s,c,!1),null!==u&&null!==d&&Gp(a,d,u,c,!0)}if("select"===(s=(l=r?xf(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=Kd;else if(Hd(l))if(Xd)g=ip;else{g=rp;var b=np}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=op);switch(g&&(g=g(e,r))?Wd(a,g,n,o):(b&&b(e,l,r),"focusout"===e&&(b=l._wrapperState)&&b.controlled&&"number"===l.type&&eu(l,"number",l.value)),b=r?xf(r):window,e){case"focusin":(Hd(b)||"true"===b.contentEditable)&&(hp=b,gp=r,bp=null);break;case"focusout":bp=gp=hp=null;break;case"mousedown":vp=!0;break;case"contextmenu":case"mouseup":case"dragend":vp=!1,yp(a,n,o);break;case"selectionchange":if(mp)break;case"keydown":case"keyup":yp(a,n,o)}var v;if(Md)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else $d?Fd(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Nd&&"ko"!==n.locale&&($d||"onCompositionStart"!==y?"onCompositionEnd"===y&&$d&&(v=ed()):(Qc="value"in(Jc=o)?Jc.value:Jc.textContent,$d=!0)),0<(b=Vp(r,y)).length&&(y=new yd(y,e,null,n,o),a.push({event:y,listeners:b}),v?y.data=v:null!==(v=jd(n))&&(y.data=v))),(v=Od?function(e,t){switch(e){case"compositionend":return jd(t);case"keypress":return 32!==t.which?null:(zd=!0,qd);case"textInput":return(e=t.data)===qd&&zd?null:e;default:return null}}(e,n):function(e,t){if($d)return"compositionend"===e||!Md&&Fd(e,t)?(e=ed(),Zc=Qc=Jc=null,$d=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Nd&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Vp(r,"onBeforeInput")).length&&(o=new yd("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=v))}qp(a,t)}))}function Wp(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vp(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=_u(e,n))&&r.unshift(Wp(e,i,o)),null!=(i=_u(e,t))&&r.push(Wp(e,i,o))),e=e.return}return r}function Up(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gp(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=_u(n,i))&&a.unshift(Wp(n,s,l)):o||null!=(s=_u(n,i))&&a.push(Wp(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Yp=/\r\n?/g,Kp=/\u0000|\uFFFD/g;function Xp(e){return("string"==typeof e?e:""+e).replace(Yp,"\n").replace(Kp,"")}function Jp(e,t,n){if(t=Xp(t),Xp(e)!==t&&n)throw Error(is(425))}function Qp(){}var Zp=null,ef=null;function tf(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var nf="function"==typeof setTimeout?setTimeout:void 0,rf="function"==typeof clearTimeout?clearTimeout:void 0,of="function"==typeof Promise?Promise:void 0,af="function"==typeof queueMicrotask?queueMicrotask:void 0!==of?function(e){return of.resolve(null).then(e).catch(lf)}:nf;function lf(e){setTimeout((function(){throw e}))}function sf(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Bc(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Bc(t)}function uf(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function cf(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var df=Math.random().toString(36).slice(2),pf="__reactFiber$"+df,ff="__reactProps$"+df,mf="__reactContainer$"+df,hf="__reactEvents$"+df,gf="__reactListeners$"+df,bf="__reactHandles$"+df;function vf(e){var t=e[pf];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mf]||n[pf]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=cf(e);null!==e;){if(n=e[pf])return n;e=cf(e)}return t}n=(e=n).parentNode}return null}function yf(e){return!(e=e[pf]||e[mf])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xf(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(is(33))}function Sf(e){return e[ff]||null}var Ef=[],wf=-1;function Cf(e){return{current:e}}function Rf(e){0>wf||(e.current=Ef[wf],Ef[wf]=null,wf--)}function kf(e,t){wf++,Ef[wf]=e.current,e.current=t}var Af={},Lf=Cf(Af),Pf=Cf(!1),If=Af;function Df(e,t){var n=e.type.contextTypes;if(!n)return Af;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function _f(e){return null!=(e=e.childContextTypes)}function Mf(){Rf(Pf),Rf(Lf)}function Tf(e,t,n){if(Lf.current!==Af)throw Error(is(168));kf(Lf,t),kf(Pf,n)}function Of(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(is(108,Hs(e)||"Unknown",o));return qs({},n,r)}function Nf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Af,If=Lf.current,kf(Lf,e),kf(Pf,Pf.current),!0}function qf(e,t,n){var r=e.stateNode;if(!r)throw Error(is(169));n?(e=Of(e,t,If),r.__reactInternalMemoizedMergedChildContext=e,Rf(Pf),Rf(Lf),kf(Lf,e)):Rf(Pf),kf(Pf,n)}var zf=null,Ff=!1,jf=!1;function $f(e){null===zf?zf=[e]:zf.push(e)}function Bf(){if(!jf&&null!==zf){jf=!0;var e=0,t=yc;try{var n=zf;for(yc=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}zf=null,Ff=!1}catch(t){throw null!==zf&&(zf=zf.slice(e+1)),Gu(Zu,Bf),t}finally{yc=t,jf=!1}}return null}var Hf=[],Wf=0,Vf=null,Uf=0,Gf=[],Yf=0,Kf=null,Xf=1,Jf="";function Qf(e,t){Hf[Wf++]=Uf,Hf[Wf++]=Vf,Vf=e,Uf=t}function Zf(e,t,n){Gf[Yf++]=Xf,Gf[Yf++]=Jf,Gf[Yf++]=Kf,Kf=e;var r=Xf;e=Jf;var o=32-ac(r)-1;r&=~(1<<o),n+=1;var i=32-ac(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Xf=1<<32-ac(t)+o|n<<o|r,Jf=i+e}else Xf=1<<i|n<<o|r,Jf=e}function em(e){null!==e.return&&(Qf(e,1),Zf(e,1,0))}function tm(e){for(;e===Vf;)Vf=Hf[--Wf],Hf[Wf]=null,Uf=Hf[--Wf],Hf[Wf]=null;for(;e===Kf;)Kf=Gf[--Yf],Gf[Yf]=null,Jf=Gf[--Yf],Gf[Yf]=null,Xf=Gf[--Yf],Gf[Yf]=null}var nm=null,rm=null,om=!1,im=null;function am(e,t){var n=Iv(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function lm(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,nm=e,rm=uf(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,nm=e,rm=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Kf?{id:Xf,overflow:Jf}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Iv(18,null,null,0)).stateNode=t,n.return=e,e.child=n,nm=e,rm=null,!0);default:return!1}}function sm(e){return!(!(1&e.mode)||128&e.flags)}function um(e){if(om){var t=rm;if(t){var n=t;if(!lm(e,t)){if(sm(e))throw Error(is(418));t=uf(n.nextSibling);var r=nm;t&&lm(e,t)?am(r,n):(e.flags=-4097&e.flags|2,om=!1,nm=e)}}else{if(sm(e))throw Error(is(418));e.flags=-4097&e.flags|2,om=!1,nm=e}}}function cm(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;nm=e}function dm(e){if(e!==nm)return!1;if(!om)return cm(e),om=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!tf(e.type,e.memoizedProps)),t&&(t=rm)){if(sm(e))throw pm(),Error(is(418));for(;t;)am(e,t),t=uf(t.nextSibling)}if(cm(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(is(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){rm=uf(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}rm=null}}else rm=nm?uf(e.stateNode.nextSibling):null;return!0}function pm(){for(var e=rm;e;)e=uf(e.nextSibling)}function fm(){rm=nm=null,om=!1}function mm(e){null===im?im=[e]:im.push(e)}var hm=xs.ReactCurrentBatchConfig;function gm(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(is(309));var r=n.stateNode}if(!r)throw Error(is(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(is(284));if(!n._owner)throw Error(is(290,e))}return e}function bm(e,t){throw e=Object.prototype.toString.call(t),Error(is(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function vm(e){return(0,e._init)(e._payload)}function ym(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=_v(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Nv(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var i=n.type;return i===ws?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===_s&&vm(i)===t.type)?((r=o(t,n.props)).ref=gm(e,t,n),r.return=e,r):((r=Mv(n.type,n.key,n.props,null,e.mode,r)).ref=gm(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=qv(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function c(e,t,n,r,i){return null===t||7!==t.tag?((t=Tv(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Nv(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Ss:return(n=Mv(t.type,t.key,t.props,null,e.mode,n)).ref=gm(e,null,t),n.return=e,n;case Es:return(t=qv(t,e.mode,n)).return=e,t;case _s:return d(e,(0,t._init)(t._payload),n)}if(tu(t)||Os(t))return(t=Tv(t,e.mode,n,null)).return=e,t;bm(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Ss:return n.key===o?s(e,t,n,r):null;case Es:return n.key===o?u(e,t,n,r):null;case _s:return p(e,t,(o=n._init)(n._payload),r)}if(tu(n)||Os(n))return null!==o?null:c(e,t,n,r,null);bm(e,n)}return null}function f(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Ss:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Es:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case _s:return f(e,t,n,(0,r._init)(r._payload),o)}if(tu(r)||Os(r))return c(t,e=e.get(n)||null,r,o,null);bm(t,r)}return null}function m(o,a,l,s){for(var u=null,c=null,m=a,h=a=0,g=null;null!==m&&h<l.length;h++){m.index>h?(g=m,m=null):g=m.sibling;var b=p(o,m,l[h],s);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(o,m),a=i(b,a,h),null===c?u=b:c.sibling=b,c=b,m=g}if(h===l.length)return n(o,m),om&&Qf(o,h),u;if(null===m){for(;h<l.length;h++)null!==(m=d(o,l[h],s))&&(a=i(m,a,h),null===c?u=m:c.sibling=m,c=m);return om&&Qf(o,h),u}for(m=r(o,m);h<l.length;h++)null!==(g=f(m,o,h,l[h],s))&&(e&&null!==g.alternate&&m.delete(null===g.key?h:g.key),a=i(g,a,h),null===c?u=g:c.sibling=g,c=g);return e&&m.forEach((function(e){return t(o,e)})),om&&Qf(o,h),u}function h(o,a,l,s){var u=Os(l);if("function"!=typeof u)throw Error(is(150));if(null==(l=u.call(l)))throw Error(is(151));for(var c=u=null,m=a,h=a=0,g=null,b=l.next();null!==m&&!b.done;h++,b=l.next()){m.index>h?(g=m,m=null):g=m.sibling;var v=p(o,m,b.value,s);if(null===v){null===m&&(m=g);break}e&&m&&null===v.alternate&&t(o,m),a=i(v,a,h),null===c?u=v:c.sibling=v,c=v,m=g}if(b.done)return n(o,m),om&&Qf(o,h),u;if(null===m){for(;!b.done;h++,b=l.next())null!==(b=d(o,b.value,s))&&(a=i(b,a,h),null===c?u=b:c.sibling=b,c=b);return om&&Qf(o,h),u}for(m=r(o,m);!b.done;h++,b=l.next())null!==(b=f(m,o,h,b.value,s))&&(e&&null!==b.alternate&&m.delete(null===b.key?h:b.key),a=i(b,a,h),null===c?u=b:c.sibling=b,c=b);return e&&m.forEach((function(e){return t(o,e)})),om&&Qf(o,h),u}return function e(r,i,l,s){if("object"==typeof l&&null!==l&&l.type===ws&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case Ss:e:{for(var u=l.key,c=i;null!==c;){if(c.key===u){if((u=l.type)===ws){if(7===c.tag){n(r,c.sibling),(i=o(c,l.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===_s&&vm(u)===c.type){n(r,c.sibling),(i=o(c,l.props)).ref=gm(r,c,l),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}l.type===ws?((i=Tv(l.props.children,r.mode,s,l.key)).return=r,r=i):((s=Mv(l.type,l.key,l.props,null,r.mode,s)).ref=gm(r,i,l),s.return=r,r=s)}return a(r);case Es:e:{for(c=l.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===l.containerInfo&&i.stateNode.implementation===l.implementation){n(r,i.sibling),(i=o(i,l.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=qv(l,r.mode,s)).return=r,r=i}return a(r);case _s:return e(r,i,(c=l._init)(l._payload),s)}if(tu(l))return m(r,i,l,s);if(Os(l))return h(r,i,l,s);bm(r,l)}return"string"==typeof l&&""!==l||"number"==typeof l?(l=""+l,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,l)).return=r,r=i):(n(r,i),(i=Nv(l,r.mode,s)).return=r,r=i),a(r)):n(r,i)}}var xm=ym(!0),Sm=ym(!1),Em=Cf(null),wm=null,Cm=null,Rm=null;function km(){Rm=Cm=wm=null}function Am(e){var t=Em.current;Rf(Em),e._currentValue=t}function Lm(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Pm(e,t){wm=e,Rm=Cm=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(vg=!0),e.firstContext=null)}function Im(e){var t=e._currentValue;if(Rm!==e)if(e={context:e,memoizedValue:t,next:null},null===Cm){if(null===wm)throw Error(is(308));Cm=e,wm.dependencies={lanes:0,firstContext:e}}else Cm=Cm.next=e;return t}var Dm=null;function _m(e){null===Dm?Dm=[e]:Dm.push(e)}function Mm(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,_m(t)):(n.next=o.next,o.next=n),t.interleaved=n,Tm(e,r)}function Tm(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Om=!1;function Nm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function zm(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fm(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Ab){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Tm(e,n)}return null===(o=r.interleaved)?(t.next=t,_m(r)):(t.next=o.next,o.next=t),r.interleaved=t,Tm(e,n)}function jm(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vc(e,n)}}function $m(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Bm(e,t,n,r){var o=e.updateQueue;Om=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,u=s.next;s.next=null,null===a?i=u:a.next=u,a=s;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(null!==i){var d=o.baseState;for(a=0,c=u=s=null,l=i;;){var p=l.lane,f=l.eventTime;if((r&p)===p){null!==c&&(c=c.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,h=l;switch(p=t,f=n,h.tag){case 1:if("function"==typeof(m=h.payload)){d=m.call(f,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=h.payload)?m.call(f,d,p):m))break e;d=qs({},d,p);break e;case 2:Om=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[l]:p.push(l))}else f={eventTime:f,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=f,s=d):c=c.next=f,a|=p;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(p=l).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===c&&(s=d),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Ob|=a,e.lanes=a,e.memoizedState=d}}function Hm(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(is(191,o));o.call(r)}}}var Wm={},Vm=Cf(Wm),Um=Cf(Wm),Gm=Cf(Wm);function Ym(e){if(e===Wm)throw Error(is(174));return e}function Km(e,t){switch(kf(Gm,t),kf(Um,e),kf(Vm,Wm),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:su(null,"");break;default:t=su(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Rf(Vm),kf(Vm,t)}function Xm(){Rf(Vm),Rf(Um),Rf(Gm)}function Jm(e){Ym(Gm.current);var t=Ym(Vm.current),n=su(t,e.type);t!==n&&(kf(Um,e),kf(Vm,n))}function Qm(e){Um.current===e&&(Rf(Vm),Rf(Um))}var Zm=Cf(0);function eh(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var th=[];function nh(){for(var e=0;e<th.length;e++)th[e]._workInProgressVersionPrimary=null;th.length=0}var rh=xs.ReactCurrentDispatcher,oh=xs.ReactCurrentBatchConfig,ih=0,ah=null,lh=null,sh=null,uh=!1,ch=!1,dh=0,ph=0;function fh(){throw Error(is(321))}function mh(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ap(e[n],t[n]))return!1;return!0}function hh(e,t,n,r,o,i){if(ih=i,ah=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,rh.current=null===e||null===e.memoizedState?Qh:Zh,e=n(r,o),ch){i=0;do{if(ch=!1,dh=0,25<=i)throw Error(is(301));i+=1,sh=lh=null,t.updateQueue=null,rh.current=eg,e=n(r,o)}while(ch)}if(rh.current=Jh,t=null!==lh&&null!==lh.next,ih=0,sh=lh=ah=null,uh=!1,t)throw Error(is(300));return e}function gh(){var e=0!==dh;return dh=0,e}function bh(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===sh?ah.memoizedState=sh=e:sh=sh.next=e,sh}function vh(){if(null===lh){var e=ah.alternate;e=null!==e?e.memoizedState:null}else e=lh.next;var t=null===sh?ah.memoizedState:sh.next;if(null!==t)sh=t,lh=e;else{if(null===e)throw Error(is(310));e={memoizedState:(lh=e).memoizedState,baseState:lh.baseState,baseQueue:lh.baseQueue,queue:lh.queue,next:null},null===sh?ah.memoizedState=sh=e:sh=sh.next=e}return sh}function yh(e,t){return"function"==typeof t?t(e):t}function xh(e){var t=vh(),n=t.queue;if(null===n)throw Error(is(311));n.lastRenderedReducer=e;var r=lh,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var l=a=null,s=null,u=i;do{var c=u.lane;if((ih&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===s?(l=s=d,a=r):s=s.next=d,ah.lanes|=c,Ob|=c}u=u.next}while(null!==u&&u!==i);null===s?a=r:s.next=l,ap(r,t.memoizedState)||(vg=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,ah.lanes|=i,Ob|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Sh(e){var t=vh(),n=t.queue;if(null===n)throw Error(is(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);ap(i,t.memoizedState)||(vg=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Eh(){}function wh(e,t){var n=ah,r=vh(),o=t(),i=!ap(r.memoizedState,o);if(i&&(r.memoizedState=o,vg=!0),r=r.queue,Oh(kh.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==sh&&1&sh.memoizedState.tag){if(n.flags|=2048,Ih(9,Rh.bind(null,n,r,o,t),void 0,null),null===Lb)throw Error(is(349));30&ih||Ch(n,t,o)}return o}function Ch(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ah.updateQueue)?(t={lastEffect:null,stores:null},ah.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Rh(e,t,n,r){t.value=n,t.getSnapshot=r,Ah(t)&&Lh(e)}function kh(e,t,n){return n((function(){Ah(t)&&Lh(e)}))}function Ah(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ap(e,n)}catch(e){return!0}}function Lh(e){var t=Tm(e,1);null!==t&&tv(t,e,1,-1)}function Ph(e){var t=bh();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:yh,lastRenderedState:e},t.queue=e,e=e.dispatch=Gh.bind(null,ah,e),[t.memoizedState,e]}function Ih(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ah.updateQueue)?(t={lastEffect:null,stores:null},ah.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Dh(){return vh().memoizedState}function _h(e,t,n,r){var o=bh();ah.flags|=e,o.memoizedState=Ih(1|t,n,void 0,void 0===r?null:r)}function Mh(e,t,n,r){var o=vh();r=void 0===r?null:r;var i=void 0;if(null!==lh){var a=lh.memoizedState;if(i=a.destroy,null!==r&&mh(r,a.deps))return void(o.memoizedState=Ih(t,n,i,r))}ah.flags|=e,o.memoizedState=Ih(1|t,n,i,r)}function Th(e,t){return _h(8390656,8,e,t)}function Oh(e,t){return Mh(2048,8,e,t)}function Nh(e,t){return Mh(4,2,e,t)}function qh(e,t){return Mh(4,4,e,t)}function zh(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Fh(e,t,n){return n=null!=n?n.concat([e]):null,Mh(4,4,zh.bind(null,t,e),n)}function jh(){}function $h(e,t){var n=vh();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&mh(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Bh(e,t){var n=vh();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&mh(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Hh(e,t,n){return 21&ih?(ap(n,t)||(n=hc(),ah.lanes|=n,Ob|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,vg=!0),e.memoizedState=n)}function Wh(e,t){var n=yc;yc=0!==n&&4>n?n:4,e(!0);var r=oh.transition;oh.transition={};try{e(!1),t()}finally{yc=n,oh.transition=r}}function Vh(){return vh().memoizedState}function Uh(e,t,n){var r=ev(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Yh(e))Kh(t,n);else if(null!==(n=Mm(e,t,n,r))){tv(n,e,r,Zb()),Xh(n,t,r)}}function Gh(e,t,n){var r=ev(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Yh(e))Kh(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,ap(l,a)){var s=t.interleaved;return null===s?(o.next=o,_m(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Mm(e,t,o,r))&&(tv(n,e,r,o=Zb()),Xh(n,t,r))}}function Yh(e){var t=e.alternate;return e===ah||null!==t&&t===ah}function Kh(e,t){ch=uh=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xh(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vc(e,n)}}var Jh={readContext:Im,useCallback:fh,useContext:fh,useEffect:fh,useImperativeHandle:fh,useInsertionEffect:fh,useLayoutEffect:fh,useMemo:fh,useReducer:fh,useRef:fh,useState:fh,useDebugValue:fh,useDeferredValue:fh,useTransition:fh,useMutableSource:fh,useSyncExternalStore:fh,useId:fh,unstable_isNewReconciler:!1},Qh={readContext:Im,useCallback:function(e,t){return bh().memoizedState=[e,void 0===t?null:t],e},useContext:Im,useEffect:Th,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,_h(4194308,4,zh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _h(4194308,4,e,t)},useInsertionEffect:function(e,t){return _h(4,2,e,t)},useMemo:function(e,t){var n=bh();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=bh();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Uh.bind(null,ah,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},bh().memoizedState=e},useState:Ph,useDebugValue:jh,useDeferredValue:function(e){return bh().memoizedState=e},useTransition:function(){var e=Ph(!1),t=e[0];return e=Wh.bind(null,e[1]),bh().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ah,o=bh();if(om){if(void 0===n)throw Error(is(407));n=n()}else{if(n=t(),null===Lb)throw Error(is(349));30&ih||Ch(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Th(kh.bind(null,r,i,e),[e]),r.flags|=2048,Ih(9,Rh.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=bh(),t=Lb.identifierPrefix;if(om){var n=Jf;t=":"+t+"R"+(n=(Xf&~(1<<32-ac(Xf)-1)).toString(32)+n),0<(n=dh++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ph++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Zh={readContext:Im,useCallback:$h,useContext:Im,useEffect:Oh,useImperativeHandle:Fh,useInsertionEffect:Nh,useLayoutEffect:qh,useMemo:Bh,useReducer:xh,useRef:Dh,useState:function(){return xh(yh)},useDebugValue:jh,useDeferredValue:function(e){return Hh(vh(),lh.memoizedState,e)},useTransition:function(){return[xh(yh)[0],vh().memoizedState]},useMutableSource:Eh,useSyncExternalStore:wh,useId:Vh,unstable_isNewReconciler:!1},eg={readContext:Im,useCallback:$h,useContext:Im,useEffect:Oh,useImperativeHandle:Fh,useInsertionEffect:Nh,useLayoutEffect:qh,useMemo:Bh,useReducer:Sh,useRef:Dh,useState:function(){return Sh(yh)},useDebugValue:jh,useDeferredValue:function(e){var t=vh();return null===lh?t.memoizedState=e:Hh(t,lh.memoizedState,e)},useTransition:function(){return[Sh(yh)[0],vh().memoizedState]},useMutableSource:Eh,useSyncExternalStore:wh,useId:Vh,unstable_isNewReconciler:!1};function tg(e,t){if(e&&e.defaultProps){for(var n in t=qs({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function ng(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:qs({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var rg={isMounted:function(e){return!!(e=e._reactInternals)&&Bu(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Zb(),o=ev(e),i=zm(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Fm(e,i,o))&&(tv(t,e,o,r),jm(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Zb(),o=ev(e),i=zm(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Fm(e,i,o))&&(tv(t,e,o,r),jm(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Zb(),r=ev(e),o=zm(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Fm(e,o,r))&&(tv(t,e,r,n),jm(t,e,r))}};function og(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!lp(n,r)||!lp(o,i))}function ig(e,t,n){var r=!1,o=Af,i=t.contextType;return"object"==typeof i&&null!==i?i=Im(i):(o=_f(t)?If:Lf.current,i=(r=null!=(r=t.contextTypes))?Df(e,o):Af),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=rg,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ag(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&rg.enqueueReplaceState(t,t.state,null)}function lg(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Nm(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Im(i):(i=_f(t)?If:Lf.current,o.context=Df(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(ng(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&rg.enqueueReplaceState(o,o.state,null),Bm(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function sg(e,t){try{var n="",r=t;do{n+=$s(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function ug(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function cg(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var dg="function"==typeof WeakMap?WeakMap:Map;function pg(e,t,n){(n=zm(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hb||(Hb=!0,Wb=r),cg(0,t)},n}function fg(e,t,n){(n=zm(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){cg(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){cg(0,t),"function"!=typeof r&&(null===Vb?Vb=new Set([this]):Vb.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function mg(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new dg;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Cv.bind(null,e,t,n),t.then(e,e))}function hg(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gg(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=zm(-1,1)).tag=2,Fm(n,t,1))),n.lanes|=1),e)}var bg=xs.ReactCurrentOwner,vg=!1;function yg(e,t,n,r){t.child=null===e?Sm(t,null,n,r):xm(t,e.child,n,r)}function xg(e,t,n,r,o){n=n.render;var i=t.ref;return Pm(t,o),r=hh(e,t,n,r,i,o),n=gh(),null===e||vg?(om&&n&&em(t),t.flags|=1,yg(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hg(e,t,o))}function Sg(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Dv(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Mv(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Eg(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lp)(a,r)&&e.ref===t.ref)return Hg(e,t,o)}return t.flags|=1,(e=_v(i,r)).ref=t.ref,e.return=t,t.child=e}function Eg(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lp(i,r)&&e.ref===t.ref){if(vg=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Hg(e,t,o);131072&e.flags&&(vg=!0)}}return Rg(e,t,n,r,o)}function wg(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,kf(_b,Db),Db|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,kf(_b,Db),Db|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},kf(_b,Db),Db|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,kf(_b,Db),Db|=r;return yg(e,t,o,n),t.child}function Cg(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Rg(e,t,n,r,o){var i=_f(n)?If:Lf.current;return i=Df(t,i),Pm(t,o),n=hh(e,t,n,r,i,o),r=gh(),null===e||vg?(om&&r&&em(t),t.flags|=1,yg(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hg(e,t,o))}function kg(e,t,n,r,o){if(_f(n)){var i=!0;Nf(t)}else i=!1;if(Pm(t,o),null===t.stateNode)Bg(e,t),ig(t,n,r),lg(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Im(u):u=Df(t,u=_f(n)?If:Lf.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==u)&&ag(t,a,r,u),Om=!1;var p=t.memoizedState;a.state=p,Bm(t,r,a,o),s=t.memoizedState,l!==r||p!==s||Pf.current||Om?("function"==typeof c&&(ng(t,n,c,r),s=t.memoizedState),(l=Om||og(t,n,l,r,p,s,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,qm(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:tg(t.type,l),a.props=u,d=t.pendingProps,p=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=Im(s):s=Df(t,s=_f(n)?If:Lf.current);var f=n.getDerivedStateFromProps;(c="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||p!==s)&&ag(t,a,r,s),Om=!1,p=t.memoizedState,a.state=p,Bm(t,r,a,o);var m=t.memoizedState;l!==d||p!==m||Pf.current||Om?("function"==typeof f&&(ng(t,n,f,r),m=t.memoizedState),(u=Om||og(t,n,u,r,p,m,s)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,m,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,m,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=s,r=u):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Ag(e,t,n,r,i,o)}function Ag(e,t,n,r,o,i){Cg(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&qf(t,n,!1),Hg(e,t,i);r=t.stateNode,bg.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=xm(t,e.child,null,i),t.child=xm(t,null,l,i)):yg(e,t,l,i),t.memoizedState=r.state,o&&qf(t,n,!0),t.child}function Lg(e){var t=e.stateNode;t.pendingContext?Tf(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Tf(0,t.context,!1),Km(e,t.containerInfo)}function Pg(e,t,n,r,o){return fm(),mm(o),t.flags|=256,yg(e,t,n,r),t.child}var Ig,Dg,_g,Mg,Tg={dehydrated:null,treeContext:null,retryLane:0};function Og(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ng(e,t,n){var r,o=t.pendingProps,i=Zm.current,a=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&i)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),kf(Zm,1&i),null===e)return um(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,a?(o=t.mode,a=t.child,l={mode:"hidden",children:l},1&o||null===a?a=Ov(l,o,0,null):(a.childLanes=0,a.pendingProps=l),e=Tv(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Og(n),t.memoizedState=Tg,e):qg(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,zg(e,t,a,r=ug(Error(is(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Ov({mode:"visible",children:r.children},o,0,null),(i=Tv(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,1&t.mode&&xm(t,e.child,null,a),t.child.memoizedState=Og(a),t.memoizedState=Tg,i);if(!(1&t.mode))return zg(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,zg(e,t,a,r=ug(i=Error(is(419)),r,void 0))}if(l=!!(a&e.childLanes),vg||l){if(null!==(r=Lb)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|a)?0:o)&&o!==i.retryLane&&(i.retryLane=o,Tm(e,o),tv(r,e,o,-1))}return mv(),zg(e,t,a,r=ug(Error(is(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=kv.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,rm=uf(o.nextSibling),nm=t,om=!0,im=null,null!==e&&(Gf[Yf++]=Xf,Gf[Yf++]=Jf,Gf[Yf++]=Kf,Xf=e.id,Jf=e.overflow,Kf=t),t=qg(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,i,n);if(a){a=o.fallback,l=t.mode,r=(i=e.child).sibling;var s={mode:"hidden",children:o.children};return 1&l||t.child===i?(o=_v(i,s)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null),null!==r?a=_v(r,a):(a=Tv(a,l,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,l=null===(l=e.child.memoizedState)?Og(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Tg,o}return e=(a=e.child).sibling,o=_v(a,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function qg(e,t){return(t=Ov({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zg(e,t,n,r){return null!==r&&mm(r),xm(t,e.child,null,n),(e=qg(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fg(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Lm(e.return,t,n)}function jg(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function $g(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(yg(e,t,r.children,n),2&(r=Zm.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Fg(e,n,t);else if(19===e.tag)Fg(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(kf(Zm,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===eh(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),jg(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===eh(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}jg(t,!0,n,null,i);break;case"together":jg(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Bg(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hg(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ob|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(is(153));if(null!==t.child){for(n=_v(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=_v(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Wg(e,t){if(!om)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Vg(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ug(e,t,n){var r=t.pendingProps;switch(tm(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vg(t),null;case 1:case 17:return _f(t.type)&&Mf(),Vg(t),null;case 3:return r=t.stateNode,Xm(),Rf(Pf),Rf(Lf),nh(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(dm(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==im&&(iv(im),im=null))),Dg(e,t),Vg(t),null;case 5:Qm(t);var o=Ym(Gm.current);if(n=t.type,null!==e&&null!=t.stateNode)_g(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(is(166));return Vg(t),null}if(e=Ym(Vm.current),dm(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[pf]=t,r[ff]=i,e=!!(1&t.mode),n){case"dialog":zp("cancel",r),zp("close",r);break;case"iframe":case"object":case"embed":zp("load",r);break;case"video":case"audio":for(o=0;o<Tp.length;o++)zp(Tp[o],r);break;case"source":zp("error",r);break;case"img":case"image":case"link":zp("error",r),zp("load",r);break;case"details":zp("toggle",r);break;case"input":Xs(r,i),zp("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},zp("invalid",r);break;case"textarea":ou(r,i),zp("invalid",r)}for(var a in vu(n,i),o=null,i)if(i.hasOwnProperty(a)){var l=i[a];"children"===a?"string"==typeof l?r.textContent!==l&&(!0!==i.suppressHydrationWarning&&Jp(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==i.suppressHydrationWarning&&Jp(r.textContent,l,e),o=["children",""+l]):ls.hasOwnProperty(a)&&null!=l&&"onScroll"===a&&zp("scroll",r)}switch(n){case"input":Us(r),Zs(r,i,!0);break;case"textarea":Us(r),au(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Qp)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=lu(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[pf]=t,e[ff]=r,Ig(e,t,!1,!1),t.stateNode=e;e:{switch(a=yu(n,r),n){case"dialog":zp("cancel",e),zp("close",e),o=r;break;case"iframe":case"object":case"embed":zp("load",e),o=r;break;case"video":case"audio":for(o=0;o<Tp.length;o++)zp(Tp[o],e);o=r;break;case"source":zp("error",e),o=r;break;case"img":case"image":case"link":zp("error",e),zp("load",e),o=r;break;case"details":zp("toggle",e),o=r;break;case"input":Xs(e,r),o=Ks(e,r),zp("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=qs({},r,{value:void 0}),zp("invalid",e);break;case"textarea":ou(e,r),o=ru(e,r),zp("invalid",e)}for(i in vu(n,o),l=o)if(l.hasOwnProperty(i)){var s=l[i];"style"===i?gu(e,s):"dangerouslySetInnerHTML"===i?null!=(s=s?s.__html:void 0)&&du(e,s):"children"===i?"string"==typeof s?("textarea"!==n||""!==s)&&pu(e,s):"number"==typeof s&&pu(e,""+s):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(ls.hasOwnProperty(i)?null!=s&&"onScroll"===i&&zp("scroll",e):null!=s&&ys(e,i,s,a))}switch(n){case"input":Us(e),Zs(e,r,!1);break;case"textarea":Us(e),au(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Ws(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?nu(e,!!r.multiple,i,!1):null!=r.defaultValue&&nu(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Qp)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Vg(t),null;case 6:if(e&&null!=t.stateNode)Mg(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(is(166));if(n=Ym(Gm.current),Ym(Vm.current),dm(t)){if(r=t.stateNode,n=t.memoizedProps,r[pf]=t,(i=r.nodeValue!==n)&&null!==(e=nm))switch(e.tag){case 3:Jp(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jp(r.nodeValue,n,!!(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[pf]=t,t.stateNode=r}return Vg(t),null;case 13:if(Rf(Zm),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(om&&null!==rm&&1&t.mode&&!(128&t.flags))pm(),fm(),t.flags|=98560,i=!1;else if(i=dm(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(is(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(is(317));i[pf]=t}else fm(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vg(t),i=!1}else null!==im&&(iv(im),im=null),i=!0;if(!i)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&Zm.current?0===Mb&&(Mb=3):mv())),null!==t.updateQueue&&(t.flags|=4),Vg(t),null);case 4:return Xm(),Dg(e,t),null===e&&$p(t.stateNode.containerInfo),Vg(t),null;case 10:return Am(t.type._context),Vg(t),null;case 19:if(Rf(Zm),null===(i=t.memoizedState))return Vg(t),null;if(r=!!(128&t.flags),null===(a=i.rendering))if(r)Wg(i,!1);else{if(0!==Mb||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=eh(e))){for(t.flags|=128,Wg(i,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(a=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return kf(Zm,1&Zm.current|2),t.child}e=e.sibling}null!==i.tail&&Ju()>$b&&(t.flags|=128,r=!0,Wg(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=eh(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Wg(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!om)return Vg(t),null}else 2*Ju()-i.renderingStartTime>$b&&1073741824!==n&&(t.flags|=128,r=!0,Wg(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=i.last)?n.sibling=a:t.child=a,i.last=a)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ju(),t.sibling=null,n=Zm.current,kf(Zm,r?1&n|2:1&n),t):(Vg(t),null);case 22:case 23:return cv(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Db)&&(Vg(t),6&t.subtreeFlags&&(t.flags|=8192)):Vg(t),null;case 24:case 25:return null}throw Error(is(156,t.tag))}function Gg(e,t){switch(tm(t),t.tag){case 1:return _f(t.type)&&Mf(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Xm(),Rf(Pf),Rf(Lf),nh(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Qm(t),null;case 13:if(Rf(Zm),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(is(340));fm()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Rf(Zm),null;case 4:return Xm(),null;case 10:return Am(t.type._context),null;case 22:case 23:return cv(),null;default:return null}}Ig=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Dg=function(){},_g=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ym(Vm.current);var i,a=null;switch(n){case"input":o=Ks(e,o),r=Ks(e,r),a=[];break;case"select":o=qs({},o,{value:void 0}),r=qs({},r,{value:void 0}),a=[];break;case"textarea":o=ru(e,o),r=ru(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Qp)}for(u in vu(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(ls.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var s=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&s!==l&&(null!=s||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&l[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(u,n)),n=s;else"dangerouslySetInnerHTML"===u?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(a=a||[]).push(u,s)):"children"===u?"string"!=typeof s&&"number"!=typeof s||(a=a||[]).push(u,""+s):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(ls.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&zp("scroll",e),a||l===s||(a=[])):(a=a||[]).push(u,s))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Mg=function(e,t,n,r){n!==r&&(t.flags|=4)};var Yg=!1,Kg=!1,Xg="function"==typeof WeakSet?WeakSet:Set,Jg=null;function Qg(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){wv(e,t,n)}else n.current=null}function Zg(e,t,n){try{n()}catch(n){wv(e,t,n)}}var eb=!1;function tb(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&Zg(t,n,i)}o=o.next}while(o!==r)}}function nb(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function rb(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function ob(e){var t=e.alternate;null!==t&&(e.alternate=null,ob(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[pf],delete t[ff],delete t[hf],delete t[gf],delete t[bf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ib(e){return 5===e.tag||3===e.tag||4===e.tag}function ab(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ib(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function lb(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Qp));else if(4!==r&&null!==(e=e.child))for(lb(e,t,n),e=e.sibling;null!==e;)lb(e,t,n),e=e.sibling}function sb(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(sb(e,t,n),e=e.sibling;null!==e;)sb(e,t,n),e=e.sibling}var ub=null,cb=!1;function db(e,t,n){for(n=n.child;null!==n;)pb(e,t,n),n=n.sibling}function pb(e,t,n){if(ic&&"function"==typeof ic.onCommitFiberUnmount)try{ic.onCommitFiberUnmount(oc,n)}catch(e){}switch(n.tag){case 5:Kg||Qg(n,t);case 6:var r=ub,o=cb;ub=null,db(e,t,n),cb=o,null!==(ub=r)&&(cb?(e=ub,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ub.removeChild(n.stateNode));break;case 18:null!==ub&&(cb?(e=ub,n=n.stateNode,8===e.nodeType?sf(e.parentNode,n):1===e.nodeType&&sf(e,n),Bc(e)):sf(ub,n.stateNode));break;case 4:r=ub,o=cb,ub=n.stateNode.containerInfo,cb=!0,db(e,t,n),ub=r,cb=o;break;case 0:case 11:case 14:case 15:if(!Kg&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&Zg(n,t,a),o=o.next}while(o!==r)}db(e,t,n);break;case 1:if(!Kg&&(Qg(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){wv(n,t,e)}db(e,t,n);break;case 21:db(e,t,n);break;case 22:1&n.mode?(Kg=(r=Kg)||null!==n.memoizedState,db(e,t,n),Kg=r):db(e,t,n);break;default:db(e,t,n)}}function fb(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xg),t.forEach((function(t){var r=Av.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function mb(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:ub=l.stateNode,cb=!1;break e;case 3:case 4:ub=l.stateNode.containerInfo,cb=!0;break e}l=l.return}if(null===ub)throw Error(is(160));pb(i,a,o),ub=null,cb=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){wv(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)hb(t,e),t=t.sibling}function hb(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(mb(t,e),gb(e),4&r){try{tb(3,e,e.return),nb(3,e)}catch(t){wv(e,e.return,t)}try{tb(5,e,e.return)}catch(t){wv(e,e.return,t)}}break;case 1:mb(t,e),gb(e),512&r&&null!==n&&Qg(n,n.return);break;case 5:if(mb(t,e),gb(e),512&r&&null!==n&&Qg(n,n.return),32&e.flags){var o=e.stateNode;try{pu(o,"")}catch(t){wv(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,a=null!==n?n.memoizedProps:i,l=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===l&&"radio"===i.type&&null!=i.name&&Js(o,i),yu(l,a);var u=yu(l,i);for(a=0;a<s.length;a+=2){var c=s[a],d=s[a+1];"style"===c?gu(o,d):"dangerouslySetInnerHTML"===c?du(o,d):"children"===c?pu(o,d):ys(o,c,d,u)}switch(l){case"input":Qs(o,i);break;case"textarea":iu(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var f=i.value;null!=f?nu(o,!!i.multiple,f,!1):p!==!!i.multiple&&(null!=i.defaultValue?nu(o,!!i.multiple,i.defaultValue,!0):nu(o,!!i.multiple,i.multiple?[]:"",!1))}o[ff]=i}catch(t){wv(e,e.return,t)}}break;case 6:if(mb(t,e),gb(e),4&r){if(null===e.stateNode)throw Error(is(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){wv(e,e.return,t)}}break;case 3:if(mb(t,e),gb(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Bc(t.containerInfo)}catch(t){wv(e,e.return,t)}break;case 4:default:mb(t,e),gb(e);break;case 13:mb(t,e),gb(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(jb=Ju())),4&r&&fb(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(Kg=(u=Kg)||c,mb(t,e),Kg=u):mb(t,e),gb(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&1&e.mode)for(Jg=e,c=e.child;null!==c;){for(d=Jg=c;null!==Jg;){switch(f=(p=Jg).child,p.tag){case 0:case 11:case 14:case 15:tb(4,p,p.return);break;case 1:Qg(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){wv(r,n,e)}}break;case 5:Qg(p,p.return);break;case 22:if(null!==p.memoizedState){xb(d);continue}}null!==f?(f.return=p,Jg=f):xb(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{o=d.stateNode,u?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=d.stateNode,a=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,l.style.display=hu("display",a))}catch(t){wv(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){wv(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:mb(t,e),gb(e),4&r&&fb(e);case 21:}}function gb(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ib(n)){var r=n;break e}n=n.return}throw Error(is(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(pu(o,""),r.flags&=-33),sb(e,ab(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;lb(e,ab(e),i);break;default:throw Error(is(161))}}catch(t){wv(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bb(e,t,n){Jg=e,vb(e)}function vb(e,t,n){for(var r=!!(1&e.mode);null!==Jg;){var o=Jg,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Yg;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Kg;l=Yg;var u=Kg;if(Yg=a,(Kg=s)&&!u)for(Jg=o;null!==Jg;)s=(a=Jg).child,22===a.tag&&null!==a.memoizedState?Sb(o):null!==s?(s.return=a,Jg=s):Sb(o);for(;null!==i;)Jg=i,vb(i),i=i.sibling;Jg=o,Yg=l,Kg=u}yb(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Jg=i):yb(e)}}function yb(e){for(;null!==Jg;){var t=Jg;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Kg||nb(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Kg)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:tg(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Hm(t,i,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Hm(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&Bc(d)}}}break;default:throw Error(is(163))}Kg||512&t.flags&&rb(t)}catch(e){wv(t,t.return,e)}}if(t===e){Jg=null;break}if(null!==(n=t.sibling)){n.return=t.return,Jg=n;break}Jg=t.return}}function xb(e){for(;null!==Jg;){var t=Jg;if(t===e){Jg=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Jg=n;break}Jg=t.return}}function Sb(e){for(;null!==Jg;){var t=Jg;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{nb(4,t)}catch(e){wv(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){wv(t,o,e)}}var i=t.return;try{rb(t)}catch(e){wv(t,i,e)}break;case 5:var a=t.return;try{rb(t)}catch(e){wv(t,a,e)}}}catch(e){wv(t,t.return,e)}if(t===e){Jg=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Jg=l;break}Jg=t.return}}var Eb,wb=Math.ceil,Cb=xs.ReactCurrentDispatcher,Rb=xs.ReactCurrentOwner,kb=xs.ReactCurrentBatchConfig,Ab=0,Lb=null,Pb=null,Ib=0,Db=0,_b=Cf(0),Mb=0,Tb=null,Ob=0,Nb=0,qb=0,zb=null,Fb=null,jb=0,$b=1/0,Bb=null,Hb=!1,Wb=null,Vb=null,Ub=!1,Gb=null,Yb=0,Kb=0,Xb=null,Jb=-1,Qb=0;function Zb(){return 6&Ab?Ju():-1!==Jb?Jb:Jb=Ju()}function ev(e){return 1&e.mode?2&Ab&&0!==Ib?Ib&-Ib:null!==hm.transition?(0===Qb&&(Qb=hc()),Qb):0!==(e=yc)?e:e=void 0===(e=window.event)?16:Xc(e.type):1}function tv(e,t,n,r){if(50<Kb)throw Kb=0,Xb=null,Error(is(185));bc(e,n,r),2&Ab&&e===Lb||(e===Lb&&(!(2&Ab)&&(Nb|=n),4===Mb&&av(e,Ib)),nv(e,r),1===n&&0===Ab&&!(1&t.mode)&&($b=Ju()+500,Ff&&Bf()))}function nv(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-ac(i),l=1<<a,s=o[a];-1===s?l&n&&!(l&r)||(o[a]=fc(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=pc(e,e===Lb?Ib:0);if(0===r)null!==n&&Yu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Yu(n),1===t)0===e.tag?function(e){Ff=!0,$f(e)}(lv.bind(null,e)):$f(lv.bind(null,e)),af((function(){!(6&Ab)&&Bf()})),n=null;else{switch(xc(r)){case 1:n=Zu;break;case 4:n=ec;break;case 16:default:n=tc;break;case 536870912:n=rc}n=Lv(n,rv.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function rv(e,t){if(Jb=-1,Qb=0,6&Ab)throw Error(is(327));var n=e.callbackNode;if(Sv()&&e.callbackNode!==n)return null;var r=pc(e,e===Lb?Ib:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=hv(e,r);else{t=r;var o=Ab;Ab|=2;var i=fv();for(Lb===e&&Ib===t||(Bb=null,$b=Ju()+500,dv(e,t));;)try{bv();break}catch(t){pv(e,t)}km(),Cb.current=i,Ab=o,null!==Pb?t=0:(Lb=null,Ib=0,t=Mb)}if(0!==t){if(2===t&&(0!==(o=mc(e))&&(r=o,t=ov(e,o))),1===t)throw n=Tb,dv(e,0),av(e,r),nv(e,Ju()),n;if(6===t)av(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!ap(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=hv(e,r),2===t&&(i=mc(e),0!==i&&(r=i,t=ov(e,i))),1!==t)))throw n=Tb,dv(e,0),av(e,r),nv(e,Ju()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(is(345));case 2:case 5:xv(e,Fb,Bb);break;case 3:if(av(e,r),(130023424&r)===r&&10<(t=jb+500-Ju())){if(0!==pc(e,0))break;if(((o=e.suspendedLanes)&r)!==r){Zb(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=nf(xv.bind(null,e,Fb,Bb),t);break}xv(e,Fb,Bb);break;case 4:if(av(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-ac(r);i=1<<a,(a=t[a])>o&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=Ju()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*wb(r/1960))-r)){e.timeoutHandle=nf(xv.bind(null,e,Fb,Bb),r);break}xv(e,Fb,Bb);break;default:throw Error(is(329))}}}return nv(e,Ju()),e.callbackNode===n?rv.bind(null,e):null}function ov(e,t){var n=zb;return e.current.memoizedState.isDehydrated&&(dv(e,t).flags|=256),2!==(e=hv(e,t))&&(t=Fb,Fb=n,null!==t&&iv(t)),e}function iv(e){null===Fb?Fb=e:Fb.push.apply(Fb,e)}function av(e,t){for(t&=~qb,t&=~Nb,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ac(t),r=1<<n;e[n]=-1,t&=~r}}function lv(e){if(6&Ab)throw Error(is(327));Sv();var t=pc(e,0);if(!(1&t))return nv(e,Ju()),null;var n=hv(e,t);if(0!==e.tag&&2===n){var r=mc(e);0!==r&&(t=r,n=ov(e,r))}if(1===n)throw n=Tb,dv(e,0),av(e,t),nv(e,Ju()),n;if(6===n)throw Error(is(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xv(e,Fb,Bb),nv(e,Ju()),null}function sv(e,t){var n=Ab;Ab|=1;try{return e(t)}finally{0===(Ab=n)&&($b=Ju()+500,Ff&&Bf())}}function uv(e){null!==Gb&&0===Gb.tag&&!(6&Ab)&&Sv();var t=Ab;Ab|=1;var n=kb.transition,r=yc;try{if(kb.transition=null,yc=1,e)return e()}finally{yc=r,kb.transition=n,!(6&(Ab=t))&&Bf()}}function cv(){Db=_b.current,Rf(_b)}function dv(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,rf(n)),null!==Pb)for(n=Pb.return;null!==n;){var r=n;switch(tm(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Mf();break;case 3:Xm(),Rf(Pf),Rf(Lf),nh();break;case 5:Qm(r);break;case 4:Xm();break;case 13:case 19:Rf(Zm);break;case 10:Am(r.type._context);break;case 22:case 23:cv()}n=n.return}if(Lb=e,Pb=e=_v(e.current,null),Ib=Db=t,Mb=0,Tb=null,qb=Nb=Ob=0,Fb=zb=null,null!==Dm){for(t=0;t<Dm.length;t++)if(null!==(r=(n=Dm[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Dm=null}return e}function pv(e,t){for(;;){var n=Pb;try{if(km(),rh.current=Jh,uh){for(var r=ah.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}uh=!1}if(ih=0,sh=lh=ah=null,ch=!1,dh=0,Rb.current=null,null===n||null===n.return){Mb=1,Tb=t,Pb=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=Ib,l.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s,c=l,d=c.tag;if(!(1&c.mode||0!==d&&11!==d&&15!==d)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var f=hg(a);if(null!==f){f.flags&=-257,gg(f,a,l,0,t),1&f.mode&&mg(i,u,t),s=u;var m=(t=f).updateQueue;if(null===m){var h=new Set;h.add(s),t.updateQueue=h}else m.add(s);break e}if(!(1&t)){mg(i,u,t),mv();break e}s=Error(is(426))}else if(om&&1&l.mode){var g=hg(a);if(null!==g){!(65536&g.flags)&&(g.flags|=256),gg(g,a,l,0,t),mm(sg(s,l));break e}}i=s=sg(s,l),4!==Mb&&(Mb=2),null===zb?zb=[i]:zb.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,$m(i,pg(0,s,t));break e;case 1:l=s;var b=i.type,v=i.stateNode;if(!(128&i.flags||"function"!=typeof b.getDerivedStateFromError&&(null===v||"function"!=typeof v.componentDidCatch||null!==Vb&&Vb.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t,$m(i,fg(i,l,t));break e}}i=i.return}while(null!==i)}yv(n)}catch(e){t=e,Pb===n&&null!==n&&(Pb=n=n.return);continue}break}}function fv(){var e=Cb.current;return Cb.current=Jh,null===e?Jh:e}function mv(){0!==Mb&&3!==Mb&&2!==Mb||(Mb=4),null===Lb||!(268435455&Ob)&&!(268435455&Nb)||av(Lb,Ib)}function hv(e,t){var n=Ab;Ab|=2;var r=fv();for(Lb===e&&Ib===t||(Bb=null,dv(e,t));;)try{gv();break}catch(t){pv(e,t)}if(km(),Ab=n,Cb.current=r,null!==Pb)throw Error(is(261));return Lb=null,Ib=0,Mb}function gv(){for(;null!==Pb;)vv(Pb)}function bv(){for(;null!==Pb&&!Ku();)vv(Pb)}function vv(e){var t=Eb(e.alternate,e,Db);e.memoizedProps=e.pendingProps,null===t?yv(e):Pb=t,Rb.current=null}function yv(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Gg(n,t)))return n.flags&=32767,void(Pb=n);if(null===e)return Mb=6,void(Pb=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ug(n,t,Db)))return void(Pb=n);if(null!==(t=t.sibling))return void(Pb=t);Pb=t=e}while(null!==t);0===Mb&&(Mb=5)}function xv(e,t,n){var r=yc,o=kb.transition;try{kb.transition=null,yc=1,function(e,t,n,r){do{Sv()}while(null!==Gb);if(6&Ab)throw Error(is(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(is(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-ac(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===Lb&&(Pb=Lb=null,Ib=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Ub||(Ub=!0,Lv(tc,(function(){return Sv(),null}))),i=!!(15990&n.flags),!!(15990&n.subtreeFlags)||i){i=kb.transition,kb.transition=null;var a=yc;yc=1;var l=Ab;Ab|=4,Rb.current=null,function(e,t){if(Zp=Wc,pp(e=dp())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var a=0,l=-1,s=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var f;d!==n||0!==o&&3!==d.nodeType||(l=a+o),d!==i||0!==r&&3!==d.nodeType||(s=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(f=d.firstChild);)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++u===o&&(l=a),p===i&&++c===r&&(s=a),null!==(f=d.nextSibling))break;p=(d=p).parentNode}d=f}n=-1===l||-1===s?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(ef={focusedElem:e,selectionRange:n},Wc=!1,Jg=t;null!==Jg;)if(e=(t=Jg).child,1028&t.subtreeFlags&&null!==e)e.return=t,Jg=e;else for(;null!==Jg;){t=Jg;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var h=m.memoizedProps,g=m.memoizedState,b=t.stateNode,v=b.getSnapshotBeforeUpdate(t.elementType===t.type?h:tg(t.type,h),g);b.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var y=t.stateNode.containerInfo;1===y.nodeType?y.textContent="":9===y.nodeType&&y.documentElement&&y.removeChild(y.documentElement);break;default:throw Error(is(163))}}catch(e){wv(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Jg=e;break}Jg=t.return}m=eb,eb=!1}(e,n),hb(n,e),fp(ef),Wc=!!Zp,ef=Zp=null,e.current=n,bb(n),Xu(),Ab=l,yc=a,kb.transition=i}else e.current=n;if(Ub&&(Ub=!1,Gb=e,Yb=o),i=e.pendingLanes,0===i&&(Vb=null),function(e){if(ic&&"function"==typeof ic.onCommitFiberRoot)try{ic.onCommitFiberRoot(oc,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),nv(e,Ju()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Hb)throw Hb=!1,e=Wb,Wb=null,e;!!(1&Yb)&&0!==e.tag&&Sv(),i=e.pendingLanes,1&i?e===Xb?Kb++:(Kb=0,Xb=e):Kb=0,Bf()}(e,t,n,r)}finally{kb.transition=o,yc=r}return null}function Sv(){if(null!==Gb){var e=xc(Yb),t=kb.transition,n=yc;try{if(kb.transition=null,yc=16>e?16:e,null===Gb)var r=!1;else{if(e=Gb,Gb=null,Yb=0,6&Ab)throw Error(is(331));var o=Ab;for(Ab|=4,Jg=e.current;null!==Jg;){var i=Jg,a=i.child;if(16&Jg.flags){var l=i.deletions;if(null!==l){for(var s=0;s<l.length;s++){var u=l[s];for(Jg=u;null!==Jg;){var c=Jg;switch(c.tag){case 0:case 11:case 15:tb(8,c,i)}var d=c.child;if(null!==d)d.return=c,Jg=d;else for(;null!==Jg;){var p=(c=Jg).sibling,f=c.return;if(ob(c),c===u){Jg=null;break}if(null!==p){p.return=f,Jg=p;break}Jg=f}}}var m=i.alternate;if(null!==m){var h=m.child;if(null!==h){m.child=null;do{var g=h.sibling;h.sibling=null,h=g}while(null!==h)}}Jg=i}}if(2064&i.subtreeFlags&&null!==a)a.return=i,Jg=a;else e:for(;null!==Jg;){if(2048&(i=Jg).flags)switch(i.tag){case 0:case 11:case 15:tb(9,i,i.return)}var b=i.sibling;if(null!==b){b.return=i.return,Jg=b;break e}Jg=i.return}}var v=e.current;for(Jg=v;null!==Jg;){var y=(a=Jg).child;if(2064&a.subtreeFlags&&null!==y)y.return=a,Jg=y;else e:for(a=v;null!==Jg;){if(2048&(l=Jg).flags)try{switch(l.tag){case 0:case 11:case 15:nb(9,l)}}catch(e){wv(l,l.return,e)}if(l===a){Jg=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Jg=x;break e}Jg=l.return}}if(Ab=o,Bf(),ic&&"function"==typeof ic.onPostCommitFiberRoot)try{ic.onPostCommitFiberRoot(oc,e)}catch(e){}r=!0}return r}finally{yc=n,kb.transition=t}}return!1}function Ev(e,t,n){e=Fm(e,t=pg(0,t=sg(n,t),1),1),t=Zb(),null!==e&&(bc(e,1,t),nv(e,t))}function wv(e,t,n){if(3===e.tag)Ev(e,e,n);else for(;null!==t;){if(3===t.tag){Ev(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vb||!Vb.has(r))){t=Fm(t,e=fg(t,e=sg(n,e),1),1),e=Zb(),null!==t&&(bc(t,1,e),nv(t,e));break}}t=t.return}}function Cv(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Zb(),e.pingedLanes|=e.suspendedLanes&n,Lb===e&&(Ib&n)===n&&(4===Mb||3===Mb&&(130023424&Ib)===Ib&&500>Ju()-jb?dv(e,0):qb|=n),nv(e,t)}function Rv(e,t){0===t&&(1&e.mode?(t=cc,!(130023424&(cc<<=1))&&(cc=4194304)):t=1);var n=Zb();null!==(e=Tm(e,t))&&(bc(e,t,n),nv(e,n))}function kv(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Rv(e,n)}function Av(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(is(314))}null!==r&&r.delete(t),Rv(e,n)}function Lv(e,t){return Gu(e,t)}function Pv(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Iv(e,t,n,r){return new Pv(e,t,n,r)}function Dv(e){return!(!(e=e.prototype)||!e.isReactComponent)}function _v(e,t){var n=e.alternate;return null===n?((n=Iv(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Mv(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)Dv(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case ws:return Tv(n.children,o,i,t);case Cs:a=8,o|=8;break;case Rs:return(e=Iv(12,n,t,2|o)).elementType=Rs,e.lanes=i,e;case Ps:return(e=Iv(13,n,t,o)).elementType=Ps,e.lanes=i,e;case Is:return(e=Iv(19,n,t,o)).elementType=Is,e.lanes=i,e;case Ms:return Ov(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ks:a=10;break e;case As:a=9;break e;case Ls:a=11;break e;case Ds:a=14;break e;case _s:a=16,r=null;break e}throw Error(is(130,null==e?e:typeof e,""))}return(t=Iv(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Tv(e,t,n,r){return(e=Iv(7,e,r,t)).lanes=n,e}function Ov(e,t,n,r){return(e=Iv(22,e,r,t)).elementType=Ms,e.lanes=n,e.stateNode={isHidden:!1},e}function Nv(e,t,n){return(e=Iv(6,e,null,t)).lanes=n,e}function qv(e,t,n){return(t=Iv(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zv(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gc(0),this.expirationTimes=gc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gc(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Fv(e,t,n,r,o,i,a,l,s){return e=new zv(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Iv(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Nm(i),e}function jv(e){if(!e)return Af;e:{if(Bu(e=e._reactInternals)!==e||1!==e.tag)throw Error(is(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(_f(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(is(171))}if(1===e.tag){var n=e.type;if(_f(n))return Of(e,n,t)}return t}function $v(e,t,n,r,o,i,a,l,s){return(e=Fv(n,r,!0,e,0,i,0,l,s)).context=jv(null),n=e.current,(i=zm(r=Zb(),o=ev(n))).callback=null!=t?t:null,Fm(n,i,o),e.current.lanes=o,bc(e,o,r),nv(e,r),e}function Bv(e,t,n,r){var o=t.current,i=Zb(),a=ev(o);return n=jv(n),null===t.context?t.context=n:t.pendingContext=n,(t=zm(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Fm(o,t,a))&&(tv(e,o,a,i),jm(e,o,a)),a}function Hv(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wv(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vv(e,t){Wv(e,t),(e=e.alternate)&&Wv(e,t)}Eb=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Pf.current)vg=!0;else{if(!(e.lanes&n||128&t.flags))return vg=!1,function(e,t,n){switch(t.tag){case 3:Lg(t),fm();break;case 5:Jm(t);break;case 1:_f(t.type)&&Nf(t);break;case 4:Km(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;kf(Em,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(kf(Zm,1&Zm.current),t.flags|=128,null):n&t.child.childLanes?Ng(e,t,n):(kf(Zm,1&Zm.current),null!==(e=Hg(e,t,n))?e.sibling:null);kf(Zm,1&Zm.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return $g(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),kf(Zm,Zm.current),r)break;return null;case 22:case 23:return t.lanes=0,wg(e,t,n)}return Hg(e,t,n)}(e,t,n);vg=!!(131072&e.flags)}else vg=!1,om&&1048576&t.flags&&Zf(t,Uf,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Bg(e,t),e=t.pendingProps;var o=Df(t,Lf.current);Pm(t,n),o=hh(null,t,r,e,o,n);var i=gh();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_f(r)?(i=!0,Nf(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Nm(t),o.updater=rg,t.stateNode=o,o._reactInternals=t,lg(t,r,e,n),t=Ag(null,t,r,!0,i,n)):(t.tag=0,om&&i&&em(t),yg(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Bg(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Dv(e)?1:0;if(null!=e){if((e=e.$$typeof)===Ls)return 11;if(e===Ds)return 14}return 2}(r),e=tg(r,e),o){case 0:t=Rg(null,t,r,e,n);break e;case 1:t=kg(null,t,r,e,n);break e;case 11:t=xg(null,t,r,e,n);break e;case 14:t=Sg(null,t,r,tg(r.type,e),n);break e}throw Error(is(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Rg(e,t,r,o=t.elementType===r?o:tg(r,o),n);case 1:return r=t.type,o=t.pendingProps,kg(e,t,r,o=t.elementType===r?o:tg(r,o),n);case 3:e:{if(Lg(t),null===e)throw Error(is(387));r=t.pendingProps,o=(i=t.memoizedState).element,qm(e,t),Bm(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Pg(e,t,r,n,o=sg(Error(is(423)),t));break e}if(r!==o){t=Pg(e,t,r,n,o=sg(Error(is(424)),t));break e}for(rm=uf(t.stateNode.containerInfo.firstChild),nm=t,om=!0,im=null,n=Sm(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fm(),r===o){t=Hg(e,t,n);break e}yg(e,t,r,n)}t=t.child}return t;case 5:return Jm(t),null===e&&um(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,tf(r,o)?a=null:null!==i&&tf(r,i)&&(t.flags|=32),Cg(e,t),yg(e,t,a,n),t.child;case 6:return null===e&&um(t),null;case 13:return Ng(e,t,n);case 4:return Km(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=xm(t,null,r,n):yg(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,xg(e,t,r,o=t.elementType===r?o:tg(r,o),n);case 7:return yg(e,t,t.pendingProps,n),t.child;case 8:case 12:return yg(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,kf(Em,r._currentValue),r._currentValue=a,null!==i)if(ap(i.value,a)){if(i.children===o.children&&!Pf.current){t=Hg(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){a=i.child;for(var s=l.firstContext;null!==s;){if(s.context===r){if(1===i.tag){(s=zm(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),Lm(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(10===i.tag)a=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(a=i.return))throw Error(is(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Lm(a,n,t),a=i.sibling}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===t){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}yg(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Pm(t,n),r=r(o=Im(o)),t.flags|=1,yg(e,t,r,n),t.child;case 14:return o=tg(r=t.type,t.pendingProps),Sg(e,t,r,o=tg(r.type,o),n);case 15:return Eg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:tg(r,o),Bg(e,t),t.tag=1,_f(r)?(e=!0,Nf(t)):e=!1,Pm(t,n),ig(t,r,o),lg(t,r,o,n),Ag(null,t,r,!0,e,n);case 19:return $g(e,t,n);case 22:return wg(e,t,n)}throw Error(is(156,t.tag))};var Uv="function"==typeof reportError?reportError:function(e){console.error(e)};function Gv(e){this._internalRoot=e}function Yv(e){this._internalRoot=e}function Kv(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xv(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jv(){}function Qv(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=Hv(a);l.call(e)}}Bv(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Hv(a);i.call(e)}}var a=$v(t,r,e,0,null,!1,0,"",Jv);return e._reactRootContainer=a,e[mf]=a.current,$p(8===e.nodeType?e.parentNode:e),uv(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Hv(s);l.call(e)}}var s=Fv(e,0,!1,null,0,!1,0,"",Jv);return e._reactRootContainer=s,e[mf]=s.current,$p(8===e.nodeType?e.parentNode:e),uv((function(){Bv(t,s,n,r)})),s}(n,t,e,o,r);return Hv(a)}Yv.prototype.render=Gv.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(is(409));Bv(e,t,null,null)},Yv.prototype.unmount=Gv.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uv((function(){Bv(null,e,null,null)})),t[mf]=null}},Yv.prototype.unstable_scheduleHydration=function(e){if(e){var t=Cc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mc.length&&0!==t&&t<Mc[n].priority;n++);Mc.splice(n,0,e),0===n&&qc(e)}},Sc=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dc(t.pendingLanes);0!==n&&(vc(t,1|n),nv(t,Ju()),!(6&Ab)&&($b=Ju()+500,Bf()))}break;case 13:uv((function(){var t=Tm(e,1);if(null!==t){var n=Zb();tv(t,e,1,n)}})),Vv(e,1)}},Ec=function(e){if(13===e.tag){var t=Tm(e,134217728);if(null!==t)tv(t,e,134217728,Zb());Vv(e,134217728)}},wc=function(e){if(13===e.tag){var t=ev(e),n=Tm(e,t);if(null!==n)tv(n,e,t,Zb());Vv(e,t)}},Cc=function(){return yc},Rc=function(e,t){var n=yc;try{return yc=e,t()}finally{yc=n}},Eu=function(e,t,n){switch(t){case"input":if(Qs(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Sf(r);if(!o)throw Error(is(90));Gs(r),Qs(r,o)}}}break;case"textarea":iu(e,n);break;case"select":null!=(t=n.value)&&nu(e,!!n.multiple,t,!1)}},Lu=sv,Pu=uv;var Zv={usingClientEntryPoint:!1,Events:[yf,xf,Sf,ku,Au,sv]},ey={findFiberByHostInstance:vf,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ty={bundleType:ey.bundleType,version:ey.version,rendererPackageName:ey.rendererPackageName,rendererConfig:ey.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:xs.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Vu(e))?null:e.stateNode},findFiberByHostInstance:ey.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ny=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ny.isDisabled&&ny.supportsFiber)try{oc=ny.inject(ty),ic=ny}catch(cu){}}Zl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zv,Zl.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Kv(t))throw Error(is(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Es,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},Zl.createRoot=function(e,t){if(!Kv(e))throw Error(is(299));var n=!1,r="",o=Uv;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Fv(e,1,!1,null,0,n,0,r,o),e[mf]=t.current,$p(8===e.nodeType?e.parentNode:e),new Gv(t)},Zl.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(is(188));throw e=Object.keys(e).join(","),Error(is(268,e))}return e=null===(e=Vu(t))?null:e.stateNode},Zl.flushSync=function(e){return uv(e)},Zl.hydrate=function(e,t,n){if(!Xv(t))throw Error(is(200));return Qv(null,e,t,!0,n)},Zl.hydrateRoot=function(e,t,n){if(!Kv(e))throw Error(is(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",a=Uv;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=$v(t,null,e,1,null!=n?n:null,o,0,i,a),e[mf]=t.current,$p(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Yv(t)},Zl.render=function(e,t,n){if(!Xv(t))throw Error(is(200));return Qv(null,e,t,!1,n)},Zl.unmountComponentAtNode=function(e){if(!Xv(e))throw Error(is(40));return!!e._reactRootContainer&&(uv((function(){Qv(null,null,e,!1,(function(){e._reactRootContainer=null,e[mf]=null}))})),!0)},Zl.unstable_batchedUpdates=sv,Zl.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xv(n))throw Error(is(200));if(null==e||void 0===e._reactInternals)throw Error(is(38));return Qv(e,t,n,!1,r)},Zl.version="18.3.1-next-f1338f8080-20240426",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),Ql.exports=Zl;var ry=Ql.exports,oy=r(ry),iy=!1,ay=J.createContext(null),ly="unmounted",sy="exited",uy="entering",cy="entered",dy="exiting",py=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=sy,r.appearStatus=uy):o=cy:o=t.unmountOnExit||t.mountOnEnter?ly:sy,r.state={status:o},r.nextCallback=null,r}f(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ly?{status:sy}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==uy&&n!==cy&&(t=uy):n!==uy&&n!==cy||(t=dy)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===uy){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:oy.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===sy&&this.setState({status:ly})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[oy.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||iy?this.safeSetState({status:cy},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:uy},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:cy},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:oy.findDOMNode(this);t&&!iy?(this.props.onExit(r),this.safeSetState({status:dy},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:sy},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:sy},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:oy.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===ly)return null;var t=this.props,n=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 r=d(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return J.createElement(ay.Provider,{value:null},"function"==typeof n?n(e,r):J.cloneElement(J.Children.only(n),r))},t}(J.Component);function fy(){}py.contextType=ay,py.propTypes={},py.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:fy,onEntering:fy,onEntered:fy,onExit:fy,onExiting:fy,onExited:fy},py.UNMOUNTED=ly,py.EXITED=sy,py.ENTERING=uy,py.ENTERED=cy,py.EXITING=dy;var my=py;function hy(e,t){var n=Object.create(null);return e&&X.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&X.isValidElement(e)?t(e):e}(e)})),n}function gy(e,t,n){return null!=n[t]?n[t]:e.props[t]}function by(e,t,n){var r=hy(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,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(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(X.isValidElement(a)){var l=i in t,s=i in r,u=t[i],c=X.isValidElement(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&X.isValidElement(u)&&(o[i]=X.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:gy(a,"exit",e),enter:gy(a,"enter",e)})):o[i]=X.cloneElement(a,{in:!1}):o[i]=X.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:gy(a,"exit",e),enter:gy(a,"enter",e)})}})),o}var vy=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},yy=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}f(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 n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,hy(n.children,(function(e){return X.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:gy(e,"appear",n),enter:gy(e,"enter",n),exit:gy(e,"exit",n)})}))):by(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=hy(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=n({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=d(e,["component","childFactory"]),o=this.state.contextValue,i=vy(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?J.createElement(ay.Provider,{value:o},i):J.createElement(ay.Provider,{value:o},J.createElement(t,r,i))},t}(J.Component);yy.propTypes={},yy.defaultProps={component:"div",childFactory:function(e){return e}};var xy=yy;const Sy=e=>e.scrollTop;function Ey(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function wy(e){return Qa("MuiPaper",e)}Za("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 Cy=["className","component","elevation","square","variant"],Ry=kl("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return Me({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&&Me({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Ca("#fff",Al(t.elevation))}, ${Ca("#fff",Al(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var ky=X.forwardRef((function(e,t){const n=El({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=Te(n,Cy),u=Me({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return To({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},wy,o)})(u);return oa.jsx(Ry,Me({as:o,ownerState:u,className:Pl(c.root,r),ref:t},s))}));function Ay(e){return"string"==typeof e}function Ly(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function Py(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const Iy=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Dy(e){var t;const{elementType:r,externalSlotProps:o,ownerState:i,skipResolvingSlotProps:a=!1}=e,l=d(e,Iy),s=a?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(o,i),{props:u,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:o,externalForwardedProps:i,className:a}=e;if(!t){const e=Ho(null==r?void 0:r.className,a,null==i?void 0:i.className,null==o?void 0:o.className),t=n({},null==r?void 0:r.style,null==i?void 0:i.style,null==o?void 0:o.style),l=n({},r,i,o);return e.length>0&&(l.className=e),Object.keys(t).length>0&&(l.style=t),{props:l,internalRef:void 0}}const l=Ly(n({},i,o)),s=Py(o),u=Py(i),c=t(l),d=Ho(null==c?void 0:c.className,null==r?void 0:r.className,a,null==i?void 0:i.className,null==o?void 0:o.className),p=n({},null==c?void 0:c.style,null==r?void 0:r.style,null==i?void 0:i.style,null==o?void 0:o.style),f=n({},c,r,u,s);return d.length>0&&(f.className=d),Object.keys(p).length>0&&(f.style=p),{props:f,internalRef:c.ref}}(n({},l,{externalSlotProps:s})),p=function(e,t,r){return void 0===e||Ay(e)?t:n({},t,{ownerState:n({},t.ownerState,r)})}(r,n({},u,{ref:yo(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),i);return p}var _y=Za("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const My=["center","classes","className"];let Ty,Oy,Ny,qy,zy=e=>e;const Fy=Pr(Ty||(Ty=zy`
43
+ */function ns(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var rs=new Set,os={};function is(e,t){as(e,t),as(e+"Capture",t)}function as(e,t){for(os[e]=t,e=0;e<t.length;e++)rs.add(t[e])}var ls=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),ss=Object.prototype.hasOwnProperty,us=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,cs={},ds={};function ps(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var fs={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){fs[e]=new ps(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];fs[t]=new ps(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){fs[e]=new ps(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){fs[e]=new ps(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){fs[e]=new ps(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){fs[e]=new ps(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){fs[e]=new ps(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){fs[e]=new ps(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){fs[e]=new ps(e,5,!1,e.toLowerCase(),null,!1,!1)}));var ms=/[\-:]([a-z])/g;function hs(e){return e[1].toUpperCase()}function gs(e,t,n,r){var o=fs.hasOwnProperty(t)?fs[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!ss.call(ds,e)||!ss.call(cs,e)&&(us.test(e)?ds[e]=!0:(cs[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(ms,hs);fs[t]=new ps(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(ms,hs);fs[t]=new ps(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(ms,hs);fs[t]=new ps(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){fs[e]=new ps(e,1,!1,e.toLowerCase(),null,!1,!1)})),fs.xlinkHref=new ps("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){fs[e]=new ps(e,1,!1,e.toLowerCase(),null,!0,!0)}));var bs=es.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,vs=Symbol.for("react.element"),ys=Symbol.for("react.portal"),xs=Symbol.for("react.fragment"),Ss=Symbol.for("react.strict_mode"),Es=Symbol.for("react.profiler"),ws=Symbol.for("react.provider"),Cs=Symbol.for("react.context"),Rs=Symbol.for("react.forward_ref"),ks=Symbol.for("react.suspense"),As=Symbol.for("react.suspense_list"),Ps=Symbol.for("react.memo"),Ls=Symbol.for("react.lazy"),Is=Symbol.for("react.offscreen"),Ds=Symbol.iterator;function _s(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Ds&&e[Ds]||e["@@iterator"])?e:null}var Ms,Ts=Object.assign;function Os(e){if(void 0===Ms)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ms=t&&t[1]||""}return"\n"+Ms+e}var Ns=!1;function qs(e,t){if(!e||Ns)return"";Ns=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{Ns=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Os(e):""}function zs(e){switch(e.tag){case 5:return Os(e.type);case 16:return Os("Lazy");case 13:return Os("Suspense");case 19:return Os("SuspenseList");case 0:case 2:case 15:return e=qs(e.type,!1);case 11:return e=qs(e.type.render,!1);case 1:return e=qs(e.type,!0);default:return""}}function Fs(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case xs:return"Fragment";case ys:return"Portal";case Es:return"Profiler";case Ss:return"StrictMode";case ks:return"Suspense";case As:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Cs:return(e.displayName||"Context")+".Consumer";case ws:return(e._context.displayName||"Context")+".Provider";case Rs:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Ps:return null!==(t=e.displayName||null)?t:Fs(e.type)||"Memo";case Ls:t=e._payload,e=e._init;try{return Fs(e(t))}catch(e){}}return null}function js(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Fs(t);case 8:return t===Ss?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function $s(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Bs(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Hs(e){e._valueTracker||(e._valueTracker=function(e){var t=Bs(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Vs(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Bs(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Ws(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Us(e,t){var n=t.checked;return Ts({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Gs(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=$s(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Ys(e,t){null!=(t=t.checked)&&gs(e,"checked",t,!1)}function Ks(e,t){Ys(e,t);var n=$s(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Js(e,t.type,n):t.hasOwnProperty("defaultValue")&&Js(e,t.type,$s(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Xs(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Js(e,t,n){"number"===t&&Ws(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Qs=Array.isArray;function Zs(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+$s(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function eu(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(ns(91));return Ts({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function tu(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(ns(92));if(Qs(n)){if(1<n.length)throw Error(ns(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:$s(n)}}function nu(e,t){var n=$s(t.value),r=$s(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ru(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ou(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function iu(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ou(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var au,lu,su=(lu=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((au=au||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=au.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return lu(e,t)}))}:lu);function uu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var cu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},du=["Webkit","ms","Moz","O"];function pu(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||cu.hasOwnProperty(e)&&cu[e]?(""+t).trim():t+"px"}function fu(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=pu(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(cu).forEach((function(e){du.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),cu[t]=cu[e]}))}));var mu=Ts({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function hu(e,t){if(t){if(mu[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(ns(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(ns(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(ns(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(ns(62))}}function gu(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var bu=null;function vu(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var yu=null,xu=null,Su=null;function Eu(e){if(e=gf(e)){if("function"!=typeof yu)throw Error(ns(280));var t=e.stateNode;t&&(t=vf(t),yu(e.stateNode,e.type,t))}}function wu(e){xu?Su?Su.push(e):Su=[e]:xu=e}function Cu(){if(xu){var e=xu,t=Su;if(Su=xu=null,Eu(e),t)for(e=0;e<t.length;e++)Eu(t[e])}}function Ru(e,t){return e(t)}function ku(){}var Au=!1;function Pu(e,t,n){if(Au)return e(t,n);Au=!0;try{return Ru(e,t,n)}finally{Au=!1,(null!==xu||null!==Su)&&(ku(),Cu())}}function Lu(e,t){var n=e.stateNode;if(null===n)return null;var r=vf(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(ns(231,t,typeof n));return n}var Iu=!1;if(ls)try{var Du={};Object.defineProperty(Du,"passive",{get:function(){Iu=!0}}),window.addEventListener("test",Du,Du),window.removeEventListener("test",Du,Du)}catch(lu){Iu=!1}function _u(e,t,n,r,o,i,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Mu=!1,Tu=null,Ou=!1,Nu=null,qu={onError:function(e){Mu=!0,Tu=e}};function zu(e,t,n,r,o,i,a,l,s){Mu=!1,Tu=null,_u.apply(qu,arguments)}function Fu(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function ju(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function $u(e){if(Fu(e)!==e)throw Error(ns(188))}function Bu(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=Fu(e)))throw Error(ns(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return $u(o),e;if(i===r)return $u(o),t;i=i.sibling}throw Error(ns(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a)throw Error(ns(189))}}if(n.alternate!==r)throw Error(ns(190))}if(3!==n.tag)throw Error(ns(188));return n.stateNode.current===n?e:t}(e),null!==e?Hu(e):null}function Hu(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Hu(e);if(null!==t)return t;e=e.sibling}return null}var Vu=ts.unstable_scheduleCallback,Wu=ts.unstable_cancelCallback,Uu=ts.unstable_shouldYield,Gu=ts.unstable_requestPaint,Yu=ts.unstable_now,Ku=ts.unstable_getCurrentPriorityLevel,Xu=ts.unstable_ImmediatePriority,Ju=ts.unstable_UserBlockingPriority,Qu=ts.unstable_NormalPriority,Zu=ts.unstable_LowPriority,ec=ts.unstable_IdlePriority,tc=null,nc=null;var rc=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(oc(e)/ic|0)|0},oc=Math.log,ic=Math.LN2;var ac=64,lc=4194304;function sc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function uc(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=sc(l):0!==(i&=a)&&(r=sc(i))}else 0!==(a=n&~o)?r=sc(a):0!==i&&(r=sc(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-rc(t)),r|=e[n],t&=~o;return r}function cc(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function dc(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function pc(){var e=ac;return!(4194240&(ac<<=1))&&(ac=64),e}function fc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function mc(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-rc(t)]=n}function hc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-rc(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var gc=0;function bc(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var vc,yc,xc,Sc,Ec,wc=!1,Cc=[],Rc=null,kc=null,Ac=null,Pc=new Map,Lc=new Map,Ic=[],Dc="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function _c(e,t){switch(e){case"focusin":case"focusout":Rc=null;break;case"dragenter":case"dragleave":kc=null;break;case"mouseover":case"mouseout":Ac=null;break;case"pointerover":case"pointerout":Pc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lc.delete(t.pointerId)}}function Mc(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=gf(t))&&yc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Tc(e){var t=hf(e.target);if(null!==t){var n=Fu(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=ju(n)))return e.blockedOn=t,void Ec(e.priority,(function(){xc(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Oc(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Uc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=gf(n))&&yc(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);bu=r,n.target.dispatchEvent(r),bu=null,t.shift()}return!0}function Nc(e,t,n){Oc(e)&&n.delete(t)}function qc(){wc=!1,null!==Rc&&Oc(Rc)&&(Rc=null),null!==kc&&Oc(kc)&&(kc=null),null!==Ac&&Oc(Ac)&&(Ac=null),Pc.forEach(Nc),Lc.forEach(Nc)}function zc(e,t){e.blockedOn===t&&(e.blockedOn=null,wc||(wc=!0,ts.unstable_scheduleCallback(ts.unstable_NormalPriority,qc)))}function Fc(e){function t(t){return zc(t,e)}if(0<Cc.length){zc(Cc[0],e);for(var n=1;n<Cc.length;n++){var r=Cc[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Rc&&zc(Rc,e),null!==kc&&zc(kc,e),null!==Ac&&zc(Ac,e),Pc.forEach(t),Lc.forEach(t),n=0;n<Ic.length;n++)(r=Ic[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ic.length&&null===(n=Ic[0]).blockedOn;)Tc(n),null===n.blockedOn&&Ic.shift()}var jc=bs.ReactCurrentBatchConfig,$c=!0;function Bc(e,t,n,r){var o=gc,i=jc.transition;jc.transition=null;try{gc=1,Vc(e,t,n,r)}finally{gc=o,jc.transition=i}}function Hc(e,t,n,r){var o=gc,i=jc.transition;jc.transition=null;try{gc=4,Vc(e,t,n,r)}finally{gc=o,jc.transition=i}}function Vc(e,t,n,r){if($c){var o=Uc(e,t,n,r);if(null===o)jp(e,t,r,Wc,n),_c(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Rc=Mc(Rc,e,t,n,r,o),!0;case"dragenter":return kc=Mc(kc,e,t,n,r,o),!0;case"mouseover":return Ac=Mc(Ac,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Pc.set(i,Mc(Pc.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Lc.set(i,Mc(Lc.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(_c(e,r),4&t&&-1<Dc.indexOf(e)){for(;null!==o;){var i=gf(o);if(null!==i&&vc(i),null===(i=Uc(e,t,n,r))&&jp(e,t,r,Wc,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else jp(e,t,r,null,n)}}var Wc=null;function Uc(e,t,n,r){if(Wc=null,null!==(e=hf(e=vu(r))))if(null===(t=Fu(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=ju(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wc=e,null}function Gc(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ku()){case Xu:return 1;case Ju:return 4;case Qu:case Zu:return 16;case ec:return 536870912;default:return 16}default:return 16}}var Yc=null,Kc=null,Xc=null;function Jc(){if(Xc)return Xc;var e,t,n=Kc,r=n.length,o="value"in Yc?Yc.value:Yc.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Xc=o.slice(e,1<t?1-t:void 0)}function Qc(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Zc(){return!0}function ed(){return!1}function td(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Zc:ed,this.isPropagationStopped=ed,this}return Ts(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Zc)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Zc)},persist:function(){},isPersistent:Zc}),t}var nd,rd,od,id={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ad=td(id),ld=Ts({},id,{view:0,detail:0}),sd=td(ld),ud=Ts({},ld,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sd,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==od&&(od&&"mousemove"===e.type?(nd=e.screenX-od.screenX,rd=e.screenY-od.screenY):rd=nd=0,od=e),nd)},movementY:function(e){return"movementY"in e?e.movementY:rd}}),cd=td(ud),dd=td(Ts({},ud,{dataTransfer:0})),pd=td(Ts({},ld,{relatedTarget:0})),fd=td(Ts({},id,{animationName:0,elapsedTime:0,pseudoElement:0})),md=Ts({},id,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),hd=td(md),gd=td(Ts({},id,{data:0})),bd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vd={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},yd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xd(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=yd[e])&&!!t[e]}function Sd(){return xd}var Ed=Ts({},ld,{key:function(e){if(e.key){var t=bd[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Qc(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?vd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sd,charCode:function(e){return"keypress"===e.type?Qc(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Qc(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),wd=td(Ed),Cd=td(Ts({},ud,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rd=td(Ts({},ld,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sd})),kd=td(Ts({},id,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ad=Ts({},ud,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Pd=td(Ad),Ld=[9,13,27,32],Id=ls&&"CompositionEvent"in window,Dd=null;ls&&"documentMode"in document&&(Dd=document.documentMode);var _d=ls&&"TextEvent"in window&&!Dd,Md=ls&&(!Id||Dd&&8<Dd&&11>=Dd),Td=String.fromCharCode(32),Od=!1;function Nd(e,t){switch(e){case"keyup":return-1!==Ld.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qd(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var zd=!1;var Fd={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function jd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Fd[e.type]:"textarea"===t}function $d(e,t,n,r){wu(r),0<(t=Bp(t,"onChange")).length&&(n=new ad("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Bd=null,Hd=null;function Vd(e){Tp(e,0)}function Wd(e){if(Vs(bf(e)))return e}function Ud(e,t){if("change"===e)return t}var Gd=!1;if(ls){var Yd;if(ls){var Kd="oninput"in document;if(!Kd){var Xd=document.createElement("div");Xd.setAttribute("oninput","return;"),Kd="function"==typeof Xd.oninput}Yd=Kd}else Yd=!1;Gd=Yd&&(!document.documentMode||9<document.documentMode)}function Jd(){Bd&&(Bd.detachEvent("onpropertychange",Qd),Hd=Bd=null)}function Qd(e){if("value"===e.propertyName&&Wd(Hd)){var t=[];$d(t,Hd,e,vu(e)),Pu(Vd,t)}}function Zd(e,t,n){"focusin"===e?(Jd(),Hd=n,(Bd=t).attachEvent("onpropertychange",Qd)):"focusout"===e&&Jd()}function ep(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Wd(Hd)}function tp(e,t){if("click"===e)return Wd(t)}function np(e,t){if("input"===e||"change"===e)return Wd(t)}var rp="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function op(e,t){if(rp(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!ss.call(t,o)||!rp(e[o],t[o]))return!1}return!0}function ip(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ap(e,t){var n,r=ip(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ip(r)}}function lp(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?lp(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function sp(){for(var e=window,t=Ws();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Ws((e=t.contentWindow).document)}return t}function up(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function cp(e){var t=sp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&lp(n.ownerDocument.documentElement,n)){if(null!==r&&up(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ap(n,i);var a=ap(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var dp=ls&&"documentMode"in document&&11>=document.documentMode,pp=null,fp=null,mp=null,hp=!1;function gp(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;hp||null==pp||pp!==Ws(r)||("selectionStart"in(r=pp)&&up(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},mp&&op(mp,r)||(mp=r,0<(r=Bp(fp,"onSelect")).length&&(t=new ad("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=pp)))}function bp(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var vp={animationend:bp("Animation","AnimationEnd"),animationiteration:bp("Animation","AnimationIteration"),animationstart:bp("Animation","AnimationStart"),transitionend:bp("Transition","TransitionEnd")},yp={},xp={};function Sp(e){if(yp[e])return yp[e];if(!vp[e])return e;var t,n=vp[e];for(t in n)if(n.hasOwnProperty(t)&&t in xp)return yp[e]=n[t];return e}ls&&(xp=document.createElement("div").style,"AnimationEvent"in window||(delete vp.animationend.animation,delete vp.animationiteration.animation,delete vp.animationstart.animation),"TransitionEvent"in window||delete vp.transitionend.transition);var Ep=Sp("animationend"),wp=Sp("animationiteration"),Cp=Sp("animationstart"),Rp=Sp("transitionend"),kp=new Map,Ap="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Pp(e,t){kp.set(e,t),is(t,[e])}for(var Lp=0;Lp<Ap.length;Lp++){var Ip=Ap[Lp];Pp(Ip.toLowerCase(),"on"+(Ip[0].toUpperCase()+Ip.slice(1)))}Pp(Ep,"onAnimationEnd"),Pp(wp,"onAnimationIteration"),Pp(Cp,"onAnimationStart"),Pp("dblclick","onDoubleClick"),Pp("focusin","onFocus"),Pp("focusout","onBlur"),Pp(Rp,"onTransitionEnd"),as("onMouseEnter",["mouseout","mouseover"]),as("onMouseLeave",["mouseout","mouseover"]),as("onPointerEnter",["pointerout","pointerover"]),as("onPointerLeave",["pointerout","pointerover"]),is("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),is("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),is("onBeforeInput",["compositionend","keypress","textInput","paste"]),is("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),is("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),is("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dp="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),_p=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dp));function Mp(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,l,s){if(zu.apply(this,arguments),Mu){if(!Mu)throw Error(ns(198));var u=Tu;Mu=!1,Tu=null,Ou||(Ou=!0,Nu=u)}}(r,t,void 0,e),e.currentTarget=null}function Tp(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;Mp(o,l,u),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,u=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;Mp(o,l,u),i=s}}}if(Ou)throw e=Nu,Ou=!1,Nu=null,e}function Op(e,t){var n=t[pf];void 0===n&&(n=t[pf]=new Set);var r=e+"__bubble";n.has(r)||(Fp(t,e,2,!1),n.add(r))}function Np(e,t,n){var r=0;t&&(r|=4),Fp(n,e,r,t)}var qp="_reactListening"+Math.random().toString(36).slice(2);function zp(e){if(!e[qp]){e[qp]=!0,rs.forEach((function(t){"selectionchange"!==t&&(_p.has(t)||Np(t,!1,e),Np(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[qp]||(t[qp]=!0,Np("selectionchange",!1,t))}}function Fp(e,t,n,r){switch(Gc(t)){case 1:var o=Bc;break;case 4:o=Hc;break;default:o=Vc}n=o.bind(null,t,n,e),o=void 0,!Iu||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function jp(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=hf(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}Pu((function(){var r=i,o=vu(n),a=[];e:{var l=kp.get(e);if(void 0!==l){var s=ad,u=e;switch(e){case"keypress":if(0===Qc(n))break e;case"keydown":case"keyup":s=wd;break;case"focusin":u="focus",s=pd;break;case"focusout":u="blur",s=pd;break;case"beforeblur":case"afterblur":s=pd;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=cd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=dd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Rd;break;case Ep:case wp:case Cp:s=fd;break;case Rp:s=kd;break;case"scroll":s=sd;break;case"wheel":s=Pd;break;case"copy":case"cut":case"paste":s=hd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Cd}var c=!!(4&t),d=!c&&"scroll"===e,p=c?null!==l?l+"Capture":null:l;c=[];for(var f,m=r;null!==m;){var h=(f=m).stateNode;if(5===f.tag&&null!==h&&(f=h,null!==p&&(null!=(h=Lu(m,p))&&c.push($p(m,h,f)))),d)break;m=m.return}0<c.length&&(l=new s(l,u,null,n,o),a.push({event:l,listeners:c}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===bu||!(u=n.relatedTarget||n.fromElement)||!hf(u)&&!u[df])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?hf(u):null)&&(u!==(d=Fu(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=cd,h="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=Cd,h="onPointerLeave",p="onPointerEnter",m="pointer"),d=null==s?l:bf(s),f=null==u?l:bf(u),(l=new c(h,m+"leave",s,n,o)).target=d,l.relatedTarget=f,h=null,hf(o)===r&&((c=new c(p,m+"enter",u,n,o)).target=f,c.relatedTarget=d,h=c),d=h,s&&u)e:{for(p=u,m=0,f=c=s;f;f=Hp(f))m++;for(f=0,h=p;h;h=Hp(h))f++;for(;0<m-f;)c=Hp(c),m--;for(;0<f-m;)p=Hp(p),f--;for(;m--;){if(c===p||null!==p&&c===p.alternate)break e;c=Hp(c),p=Hp(p)}c=null}else c=null;null!==s&&Vp(a,l,s,c,!1),null!==u&&null!==d&&Vp(a,d,u,c,!0)}if("select"===(s=(l=r?bf(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=Ud;else if(jd(l))if(Gd)g=np;else{g=ep;var b=Zd}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=tp);switch(g&&(g=g(e,r))?$d(a,g,n,o):(b&&b(e,l,r),"focusout"===e&&(b=l._wrapperState)&&b.controlled&&"number"===l.type&&Js(l,"number",l.value)),b=r?bf(r):window,e){case"focusin":(jd(b)||"true"===b.contentEditable)&&(pp=b,fp=r,mp=null);break;case"focusout":mp=fp=pp=null;break;case"mousedown":hp=!0;break;case"contextmenu":case"mouseup":case"dragend":hp=!1,gp(a,n,o);break;case"selectionchange":if(dp)break;case"keydown":case"keyup":gp(a,n,o)}var v;if(Id)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else zd?Nd(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Md&&"ko"!==n.locale&&(zd||"onCompositionStart"!==y?"onCompositionEnd"===y&&zd&&(v=Jc()):(Kc="value"in(Yc=o)?Yc.value:Yc.textContent,zd=!0)),0<(b=Bp(r,y)).length&&(y=new gd(y,e,null,n,o),a.push({event:y,listeners:b}),v?y.data=v:null!==(v=qd(n))&&(y.data=v))),(v=_d?function(e,t){switch(e){case"compositionend":return qd(t);case"keypress":return 32!==t.which?null:(Od=!0,Td);case"textInput":return(e=t.data)===Td&&Od?null:e;default:return null}}(e,n):function(e,t){if(zd)return"compositionend"===e||!Id&&Nd(e,t)?(e=Jc(),Xc=Kc=Yc=null,zd=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Md&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Bp(r,"onBeforeInput")).length&&(o=new gd("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=v))}Tp(a,t)}))}function $p(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Bp(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Lu(e,n))&&r.unshift($p(e,i,o)),null!=(i=Lu(e,t))&&r.push($p(e,i,o))),e=e.return}return r}function Hp(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Vp(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=Lu(n,i))&&a.unshift($p(n,s,l)):o||null!=(s=Lu(n,i))&&a.push($p(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Wp=/\r\n?/g,Up=/\u0000|\uFFFD/g;function Gp(e){return("string"==typeof e?e:""+e).replace(Wp,"\n").replace(Up,"")}function Yp(e,t,n){if(t=Gp(t),Gp(e)!==t&&n)throw Error(ns(425))}function Kp(){}var Xp=null,Jp=null;function Qp(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Zp="function"==typeof setTimeout?setTimeout:void 0,ef="function"==typeof clearTimeout?clearTimeout:void 0,tf="function"==typeof Promise?Promise:void 0,nf="function"==typeof queueMicrotask?queueMicrotask:void 0!==tf?function(e){return tf.resolve(null).then(e).catch(rf)}:Zp;function rf(e){setTimeout((function(){throw e}))}function of(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Fc(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Fc(t)}function af(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function lf(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var sf=Math.random().toString(36).slice(2),uf="__reactFiber$"+sf,cf="__reactProps$"+sf,df="__reactContainer$"+sf,pf="__reactEvents$"+sf,ff="__reactListeners$"+sf,mf="__reactHandles$"+sf;function hf(e){var t=e[uf];if(t)return t;for(var n=e.parentNode;n;){if(t=n[df]||n[uf]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=lf(e);null!==e;){if(n=e[uf])return n;e=lf(e)}return t}n=(e=n).parentNode}return null}function gf(e){return!(e=e[uf]||e[df])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function bf(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(ns(33))}function vf(e){return e[cf]||null}var yf=[],xf=-1;function Sf(e){return{current:e}}function Ef(e){0>xf||(e.current=yf[xf],yf[xf]=null,xf--)}function wf(e,t){xf++,yf[xf]=e.current,e.current=t}var Cf={},Rf=Sf(Cf),kf=Sf(!1),Af=Cf;function Pf(e,t){var n=e.type.contextTypes;if(!n)return Cf;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Lf(e){return null!=(e=e.childContextTypes)}function If(){Ef(kf),Ef(Rf)}function Df(e,t,n){if(Rf.current!==Cf)throw Error(ns(168));wf(Rf,t),wf(kf,n)}function _f(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(ns(108,js(e)||"Unknown",o));return Ts({},n,r)}function Mf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Cf,Af=Rf.current,wf(Rf,e),wf(kf,kf.current),!0}function Tf(e,t,n){var r=e.stateNode;if(!r)throw Error(ns(169));n?(e=_f(e,t,Af),r.__reactInternalMemoizedMergedChildContext=e,Ef(kf),Ef(Rf),wf(Rf,e)):Ef(kf),wf(kf,n)}var Of=null,Nf=!1,qf=!1;function zf(e){null===Of?Of=[e]:Of.push(e)}function Ff(){if(!qf&&null!==Of){qf=!0;var e=0,t=gc;try{var n=Of;for(gc=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Of=null,Nf=!1}catch(t){throw null!==Of&&(Of=Of.slice(e+1)),Vu(Xu,Ff),t}finally{gc=t,qf=!1}}return null}var jf=[],$f=0,Bf=null,Hf=0,Vf=[],Wf=0,Uf=null,Gf=1,Yf="";function Kf(e,t){jf[$f++]=Hf,jf[$f++]=Bf,Bf=e,Hf=t}function Xf(e,t,n){Vf[Wf++]=Gf,Vf[Wf++]=Yf,Vf[Wf++]=Uf,Uf=e;var r=Gf;e=Yf;var o=32-rc(r)-1;r&=~(1<<o),n+=1;var i=32-rc(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Gf=1<<32-rc(t)+o|n<<o|r,Yf=i+e}else Gf=1<<i|n<<o|r,Yf=e}function Jf(e){null!==e.return&&(Kf(e,1),Xf(e,1,0))}function Qf(e){for(;e===Bf;)Bf=jf[--$f],jf[$f]=null,Hf=jf[--$f],jf[$f]=null;for(;e===Uf;)Uf=Vf[--Wf],Vf[Wf]=null,Yf=Vf[--Wf],Vf[Wf]=null,Gf=Vf[--Wf],Vf[Wf]=null}var Zf=null,em=null,tm=!1,nm=null;function rm(e,t){var n=Av(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function om(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,Zf=e,em=af(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Zf=e,em=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Uf?{id:Gf,overflow:Yf}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Av(18,null,null,0)).stateNode=t,n.return=e,e.child=n,Zf=e,em=null,!0);default:return!1}}function im(e){return!(!(1&e.mode)||128&e.flags)}function am(e){if(tm){var t=em;if(t){var n=t;if(!om(e,t)){if(im(e))throw Error(ns(418));t=af(n.nextSibling);var r=Zf;t&&om(e,t)?rm(r,n):(e.flags=-4097&e.flags|2,tm=!1,Zf=e)}}else{if(im(e))throw Error(ns(418));e.flags=-4097&e.flags|2,tm=!1,Zf=e}}}function lm(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Zf=e}function sm(e){if(e!==Zf)return!1;if(!tm)return lm(e),tm=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Qp(e.type,e.memoizedProps)),t&&(t=em)){if(im(e))throw um(),Error(ns(418));for(;t;)rm(e,t),t=af(t.nextSibling)}if(lm(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(ns(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){em=af(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}em=null}}else em=Zf?af(e.stateNode.nextSibling):null;return!0}function um(){for(var e=em;e;)e=af(e.nextSibling)}function cm(){em=Zf=null,tm=!1}function dm(e){null===nm?nm=[e]:nm.push(e)}var pm=bs.ReactCurrentBatchConfig;function fm(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(ns(309));var r=n.stateNode}if(!r)throw Error(ns(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(ns(284));if(!n._owner)throw Error(ns(290,e))}return e}function mm(e,t){throw e=Object.prototype.toString.call(t),Error(ns(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function hm(e){return(0,e._init)(e._payload)}function gm(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Lv(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Mv(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var i=n.type;return i===xs?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===Ls&&hm(i)===t.type)?((r=o(t,n.props)).ref=fm(e,t,n),r.return=e,r):((r=Iv(n.type,n.key,n.props,null,e.mode,r)).ref=fm(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Tv(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function c(e,t,n,r,i){return null===t||7!==t.tag?((t=Dv(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Mv(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case vs:return(n=Iv(t.type,t.key,t.props,null,e.mode,n)).ref=fm(e,null,t),n.return=e,n;case ys:return(t=Tv(t,e.mode,n)).return=e,t;case Ls:return d(e,(0,t._init)(t._payload),n)}if(Qs(t)||_s(t))return(t=Dv(t,e.mode,n,null)).return=e,t;mm(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case vs:return n.key===o?s(e,t,n,r):null;case ys:return n.key===o?u(e,t,n,r):null;case Ls:return p(e,t,(o=n._init)(n._payload),r)}if(Qs(n)||_s(n))return null!==o?null:c(e,t,n,r,null);mm(e,n)}return null}function f(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case vs:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case ys:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Ls:return f(e,t,n,(0,r._init)(r._payload),o)}if(Qs(r)||_s(r))return c(t,e=e.get(n)||null,r,o,null);mm(t,r)}return null}function m(o,a,l,s){for(var u=null,c=null,m=a,h=a=0,g=null;null!==m&&h<l.length;h++){m.index>h?(g=m,m=null):g=m.sibling;var b=p(o,m,l[h],s);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(o,m),a=i(b,a,h),null===c?u=b:c.sibling=b,c=b,m=g}if(h===l.length)return n(o,m),tm&&Kf(o,h),u;if(null===m){for(;h<l.length;h++)null!==(m=d(o,l[h],s))&&(a=i(m,a,h),null===c?u=m:c.sibling=m,c=m);return tm&&Kf(o,h),u}for(m=r(o,m);h<l.length;h++)null!==(g=f(m,o,h,l[h],s))&&(e&&null!==g.alternate&&m.delete(null===g.key?h:g.key),a=i(g,a,h),null===c?u=g:c.sibling=g,c=g);return e&&m.forEach((function(e){return t(o,e)})),tm&&Kf(o,h),u}function h(o,a,l,s){var u=_s(l);if("function"!=typeof u)throw Error(ns(150));if(null==(l=u.call(l)))throw Error(ns(151));for(var c=u=null,m=a,h=a=0,g=null,b=l.next();null!==m&&!b.done;h++,b=l.next()){m.index>h?(g=m,m=null):g=m.sibling;var v=p(o,m,b.value,s);if(null===v){null===m&&(m=g);break}e&&m&&null===v.alternate&&t(o,m),a=i(v,a,h),null===c?u=v:c.sibling=v,c=v,m=g}if(b.done)return n(o,m),tm&&Kf(o,h),u;if(null===m){for(;!b.done;h++,b=l.next())null!==(b=d(o,b.value,s))&&(a=i(b,a,h),null===c?u=b:c.sibling=b,c=b);return tm&&Kf(o,h),u}for(m=r(o,m);!b.done;h++,b=l.next())null!==(b=f(m,o,h,b.value,s))&&(e&&null!==b.alternate&&m.delete(null===b.key?h:b.key),a=i(b,a,h),null===c?u=b:c.sibling=b,c=b);return e&&m.forEach((function(e){return t(o,e)})),tm&&Kf(o,h),u}return function e(r,i,l,s){if("object"==typeof l&&null!==l&&l.type===xs&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case vs:e:{for(var u=l.key,c=i;null!==c;){if(c.key===u){if((u=l.type)===xs){if(7===c.tag){n(r,c.sibling),(i=o(c,l.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===Ls&&hm(u)===c.type){n(r,c.sibling),(i=o(c,l.props)).ref=fm(r,c,l),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}l.type===xs?((i=Dv(l.props.children,r.mode,s,l.key)).return=r,r=i):((s=Iv(l.type,l.key,l.props,null,r.mode,s)).ref=fm(r,i,l),s.return=r,r=s)}return a(r);case ys:e:{for(c=l.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===l.containerInfo&&i.stateNode.implementation===l.implementation){n(r,i.sibling),(i=o(i,l.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Tv(l,r.mode,s)).return=r,r=i}return a(r);case Ls:return e(r,i,(c=l._init)(l._payload),s)}if(Qs(l))return m(r,i,l,s);if(_s(l))return h(r,i,l,s);mm(r,l)}return"string"==typeof l&&""!==l||"number"==typeof l?(l=""+l,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,l)).return=r,r=i):(n(r,i),(i=Mv(l,r.mode,s)).return=r,r=i),a(r)):n(r,i)}}var bm=gm(!0),vm=gm(!1),ym=Sf(null),xm=null,Sm=null,Em=null;function wm(){Em=Sm=xm=null}function Cm(e){var t=ym.current;Ef(ym),e._currentValue=t}function Rm(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function km(e,t){xm=e,Em=Sm=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(hg=!0),e.firstContext=null)}function Am(e){var t=e._currentValue;if(Em!==e)if(e={context:e,memoizedValue:t,next:null},null===Sm){if(null===xm)throw Error(ns(308));Sm=e,xm.dependencies={lanes:0,firstContext:e}}else Sm=Sm.next=e;return t}var Pm=null;function Lm(e){null===Pm?Pm=[e]:Pm.push(e)}function Im(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Lm(t)):(n.next=o.next,o.next=n),t.interleaved=n,Dm(e,r)}function Dm(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var _m=!1;function Mm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Tm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Om(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Nm(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Cb){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Dm(e,n)}return null===(o=r.interleaved)?(t.next=t,Lm(r)):(t.next=o.next,o.next=t),r.interleaved=t,Dm(e,n)}function qm(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,hc(e,n)}}function zm(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fm(e,t,n,r){var o=e.updateQueue;_m=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,u=s.next;s.next=null,null===a?i=u:a.next=u,a=s;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(null!==i){var d=o.baseState;for(a=0,c=u=s=null,l=i;;){var p=l.lane,f=l.eventTime;if((r&p)===p){null!==c&&(c=c.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,h=l;switch(p=t,f=n,h.tag){case 1:if("function"==typeof(m=h.payload)){d=m.call(f,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=h.payload)?m.call(f,d,p):m))break e;d=Ts({},d,p);break e;case 2:_m=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[l]:p.push(l))}else f={eventTime:f,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=f,s=d):c=c.next=f,a|=p;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(p=l).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===c&&(s=d),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);_b|=a,e.lanes=a,e.memoizedState=d}}function jm(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(ns(191,o));o.call(r)}}}var $m={},Bm=Sf($m),Hm=Sf($m),Vm=Sf($m);function Wm(e){if(e===$m)throw Error(ns(174));return e}function Um(e,t){switch(wf(Vm,t),wf(Hm,e),wf(Bm,$m),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:iu(null,"");break;default:t=iu(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ef(Bm),wf(Bm,t)}function Gm(){Ef(Bm),Ef(Hm),Ef(Vm)}function Ym(e){Wm(Vm.current);var t=Wm(Bm.current),n=iu(t,e.type);t!==n&&(wf(Hm,e),wf(Bm,n))}function Km(e){Hm.current===e&&(Ef(Bm),Ef(Hm))}var Xm=Sf(0);function Jm(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Qm=[];function Zm(){for(var e=0;e<Qm.length;e++)Qm[e]._workInProgressVersionPrimary=null;Qm.length=0}var eh=bs.ReactCurrentDispatcher,th=bs.ReactCurrentBatchConfig,nh=0,rh=null,oh=null,ih=null,ah=!1,lh=!1,sh=0,uh=0;function ch(){throw Error(ns(321))}function dh(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!rp(e[n],t[n]))return!1;return!0}function ph(e,t,n,r,o,i){if(nh=i,rh=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,eh.current=null===e||null===e.memoizedState?Kh:Xh,e=n(r,o),lh){i=0;do{if(lh=!1,sh=0,25<=i)throw Error(ns(301));i+=1,ih=oh=null,t.updateQueue=null,eh.current=Jh,e=n(r,o)}while(lh)}if(eh.current=Yh,t=null!==oh&&null!==oh.next,nh=0,ih=oh=rh=null,ah=!1,t)throw Error(ns(300));return e}function fh(){var e=0!==sh;return sh=0,e}function mh(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ih?rh.memoizedState=ih=e:ih=ih.next=e,ih}function hh(){if(null===oh){var e=rh.alternate;e=null!==e?e.memoizedState:null}else e=oh.next;var t=null===ih?rh.memoizedState:ih.next;if(null!==t)ih=t,oh=e;else{if(null===e)throw Error(ns(310));e={memoizedState:(oh=e).memoizedState,baseState:oh.baseState,baseQueue:oh.baseQueue,queue:oh.queue,next:null},null===ih?rh.memoizedState=ih=e:ih=ih.next=e}return ih}function gh(e,t){return"function"==typeof t?t(e):t}function bh(e){var t=hh(),n=t.queue;if(null===n)throw Error(ns(311));n.lastRenderedReducer=e;var r=oh,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var l=a=null,s=null,u=i;do{var c=u.lane;if((nh&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===s?(l=s=d,a=r):s=s.next=d,rh.lanes|=c,_b|=c}u=u.next}while(null!==u&&u!==i);null===s?a=r:s.next=l,rp(r,t.memoizedState)||(hg=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,rh.lanes|=i,_b|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function vh(e){var t=hh(),n=t.queue;if(null===n)throw Error(ns(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);rp(i,t.memoizedState)||(hg=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function yh(){}function xh(e,t){var n=rh,r=hh(),o=t(),i=!rp(r.memoizedState,o);if(i&&(r.memoizedState=o,hg=!0),r=r.queue,_h(wh.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==ih&&1&ih.memoizedState.tag){if(n.flags|=2048,Ah(9,Eh.bind(null,n,r,o,t),void 0,null),null===Rb)throw Error(ns(349));30&nh||Sh(n,t,o)}return o}function Sh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=rh.updateQueue)?(t={lastEffect:null,stores:null},rh.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Eh(e,t,n,r){t.value=n,t.getSnapshot=r,Ch(t)&&Rh(e)}function wh(e,t,n){return n((function(){Ch(t)&&Rh(e)}))}function Ch(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!rp(e,n)}catch(e){return!0}}function Rh(e){var t=Dm(e,1);null!==t&&Qb(t,e,1,-1)}function kh(e){var t=mh();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:gh,lastRenderedState:e},t.queue=e,e=e.dispatch=Vh.bind(null,rh,e),[t.memoizedState,e]}function Ah(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=rh.updateQueue)?(t={lastEffect:null,stores:null},rh.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ph(){return hh().memoizedState}function Lh(e,t,n,r){var o=mh();rh.flags|=e,o.memoizedState=Ah(1|t,n,void 0,void 0===r?null:r)}function Ih(e,t,n,r){var o=hh();r=void 0===r?null:r;var i=void 0;if(null!==oh){var a=oh.memoizedState;if(i=a.destroy,null!==r&&dh(r,a.deps))return void(o.memoizedState=Ah(t,n,i,r))}rh.flags|=e,o.memoizedState=Ah(1|t,n,i,r)}function Dh(e,t){return Lh(8390656,8,e,t)}function _h(e,t){return Ih(2048,8,e,t)}function Mh(e,t){return Ih(4,2,e,t)}function Th(e,t){return Ih(4,4,e,t)}function Oh(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Nh(e,t,n){return n=null!=n?n.concat([e]):null,Ih(4,4,Oh.bind(null,t,e),n)}function qh(){}function zh(e,t){var n=hh();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&dh(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Fh(e,t){var n=hh();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&dh(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function jh(e,t,n){return 21&nh?(rp(n,t)||(n=pc(),rh.lanes|=n,_b|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,hg=!0),e.memoizedState=n)}function $h(e,t){var n=gc;gc=0!==n&&4>n?n:4,e(!0);var r=th.transition;th.transition={};try{e(!1),t()}finally{gc=n,th.transition=r}}function Bh(){return hh().memoizedState}function Hh(e,t,n){var r=Jb(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Wh(e))Uh(t,n);else if(null!==(n=Im(e,t,n,r))){Qb(n,e,r,Xb()),Gh(n,t,r)}}function Vh(e,t,n){var r=Jb(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Wh(e))Uh(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,rp(l,a)){var s=t.interleaved;return null===s?(o.next=o,Lm(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Im(e,t,o,r))&&(Qb(n,e,r,o=Xb()),Gh(n,t,r))}}function Wh(e){var t=e.alternate;return e===rh||null!==t&&t===rh}function Uh(e,t){lh=ah=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Gh(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,hc(e,n)}}var Yh={readContext:Am,useCallback:ch,useContext:ch,useEffect:ch,useImperativeHandle:ch,useInsertionEffect:ch,useLayoutEffect:ch,useMemo:ch,useReducer:ch,useRef:ch,useState:ch,useDebugValue:ch,useDeferredValue:ch,useTransition:ch,useMutableSource:ch,useSyncExternalStore:ch,useId:ch,unstable_isNewReconciler:!1},Kh={readContext:Am,useCallback:function(e,t){return mh().memoizedState=[e,void 0===t?null:t],e},useContext:Am,useEffect:Dh,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Lh(4194308,4,Oh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Lh(4194308,4,e,t)},useInsertionEffect:function(e,t){return Lh(4,2,e,t)},useMemo:function(e,t){var n=mh();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=mh();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Hh.bind(null,rh,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},mh().memoizedState=e},useState:kh,useDebugValue:qh,useDeferredValue:function(e){return mh().memoizedState=e},useTransition:function(){var e=kh(!1),t=e[0];return e=$h.bind(null,e[1]),mh().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=rh,o=mh();if(tm){if(void 0===n)throw Error(ns(407));n=n()}else{if(n=t(),null===Rb)throw Error(ns(349));30&nh||Sh(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Dh(wh.bind(null,r,i,e),[e]),r.flags|=2048,Ah(9,Eh.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=mh(),t=Rb.identifierPrefix;if(tm){var n=Yf;t=":"+t+"R"+(n=(Gf&~(1<<32-rc(Gf)-1)).toString(32)+n),0<(n=sh++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=uh++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Xh={readContext:Am,useCallback:zh,useContext:Am,useEffect:_h,useImperativeHandle:Nh,useInsertionEffect:Mh,useLayoutEffect:Th,useMemo:Fh,useReducer:bh,useRef:Ph,useState:function(){return bh(gh)},useDebugValue:qh,useDeferredValue:function(e){return jh(hh(),oh.memoizedState,e)},useTransition:function(){return[bh(gh)[0],hh().memoizedState]},useMutableSource:yh,useSyncExternalStore:xh,useId:Bh,unstable_isNewReconciler:!1},Jh={readContext:Am,useCallback:zh,useContext:Am,useEffect:_h,useImperativeHandle:Nh,useInsertionEffect:Mh,useLayoutEffect:Th,useMemo:Fh,useReducer:vh,useRef:Ph,useState:function(){return vh(gh)},useDebugValue:qh,useDeferredValue:function(e){var t=hh();return null===oh?t.memoizedState=e:jh(t,oh.memoizedState,e)},useTransition:function(){return[vh(gh)[0],hh().memoizedState]},useMutableSource:yh,useSyncExternalStore:xh,useId:Bh,unstable_isNewReconciler:!1};function Qh(e,t){if(e&&e.defaultProps){for(var n in t=Ts({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Zh(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Ts({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var eg={isMounted:function(e){return!!(e=e._reactInternals)&&Fu(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Xb(),o=Jb(e),i=Om(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Nm(e,i,o))&&(Qb(t,e,o,r),qm(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Xb(),o=Jb(e),i=Om(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Nm(e,i,o))&&(Qb(t,e,o,r),qm(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Xb(),r=Jb(e),o=Om(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Nm(e,o,r))&&(Qb(t,e,r,n),qm(t,e,r))}};function tg(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!op(n,r)||!op(o,i))}function ng(e,t,n){var r=!1,o=Cf,i=t.contextType;return"object"==typeof i&&null!==i?i=Am(i):(o=Lf(t)?Af:Rf.current,i=(r=null!=(r=t.contextTypes))?Pf(e,o):Cf),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=eg,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function rg(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&eg.enqueueReplaceState(t,t.state,null)}function og(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Mm(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Am(i):(i=Lf(t)?Af:Rf.current,o.context=Pf(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Zh(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&eg.enqueueReplaceState(o,o.state,null),Fm(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function ig(e,t){try{var n="",r=t;do{n+=zs(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function ag(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function lg(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var sg="function"==typeof WeakMap?WeakMap:Map;function ug(e,t,n){(n=Om(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){jb||(jb=!0,$b=r),lg(0,t)},n}function cg(e,t,n){(n=Om(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){lg(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){lg(0,t),"function"!=typeof r&&(null===Bb?Bb=new Set([this]):Bb.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function dg(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new sg;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Sv.bind(null,e,t,n),t.then(e,e))}function pg(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function fg(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Om(-1,1)).tag=2,Nm(n,t,1))),n.lanes|=1),e)}var mg=bs.ReactCurrentOwner,hg=!1;function gg(e,t,n,r){t.child=null===e?vm(t,null,n,r):bm(t,e.child,n,r)}function bg(e,t,n,r,o){n=n.render;var i=t.ref;return km(t,o),r=ph(e,t,n,r,i,o),n=fh(),null===e||hg?(tm&&n&&Jf(t),t.flags|=1,gg(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,jg(e,t,o))}function vg(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Pv(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Iv(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,yg(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:op)(a,r)&&e.ref===t.ref)return jg(e,t,o)}return t.flags|=1,(e=Lv(i,r)).ref=t.ref,e.return=t,t.child=e}function yg(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(op(i,r)&&e.ref===t.ref){if(hg=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,jg(e,t,o);131072&e.flags&&(hg=!0)}}return Eg(e,t,n,r,o)}function xg(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,wf(Lb,Pb),Pb|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,wf(Lb,Pb),Pb|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},wf(Lb,Pb),Pb|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,wf(Lb,Pb),Pb|=r;return gg(e,t,o,n),t.child}function Sg(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Eg(e,t,n,r,o){var i=Lf(n)?Af:Rf.current;return i=Pf(t,i),km(t,o),n=ph(e,t,n,r,i,o),r=fh(),null===e||hg?(tm&&r&&Jf(t),t.flags|=1,gg(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,jg(e,t,o))}function wg(e,t,n,r,o){if(Lf(n)){var i=!0;Mf(t)}else i=!1;if(km(t,o),null===t.stateNode)Fg(e,t),ng(t,n,r),og(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Am(u):u=Pf(t,u=Lf(n)?Af:Rf.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==u)&&rg(t,a,r,u),_m=!1;var p=t.memoizedState;a.state=p,Fm(t,r,a,o),s=t.memoizedState,l!==r||p!==s||kf.current||_m?("function"==typeof c&&(Zh(t,n,c,r),s=t.memoizedState),(l=_m||tg(t,n,l,r,p,s,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Tm(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Qh(t.type,l),a.props=u,d=t.pendingProps,p=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=Am(s):s=Pf(t,s=Lf(n)?Af:Rf.current);var f=n.getDerivedStateFromProps;(c="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||p!==s)&&rg(t,a,r,s),_m=!1,p=t.memoizedState,a.state=p,Fm(t,r,a,o);var m=t.memoizedState;l!==d||p!==m||kf.current||_m?("function"==typeof f&&(Zh(t,n,f,r),m=t.memoizedState),(u=_m||tg(t,n,u,r,p,m,s)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,m,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,m,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=s,r=u):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Cg(e,t,n,r,i,o)}function Cg(e,t,n,r,o,i){Sg(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Tf(t,n,!1),jg(e,t,i);r=t.stateNode,mg.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=bm(t,e.child,null,i),t.child=bm(t,null,l,i)):gg(e,t,l,i),t.memoizedState=r.state,o&&Tf(t,n,!0),t.child}function Rg(e){var t=e.stateNode;t.pendingContext?Df(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Df(0,t.context,!1),Um(e,t.containerInfo)}function kg(e,t,n,r,o){return cm(),dm(o),t.flags|=256,gg(e,t,n,r),t.child}var Ag,Pg,Lg,Ig,Dg={dehydrated:null,treeContext:null,retryLane:0};function _g(e){return{baseLanes:e,cachePool:null,transitions:null}}function Mg(e,t,n){var r,o=t.pendingProps,i=Xm.current,a=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&i)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),wf(Xm,1&i),null===e)return am(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,a?(o=t.mode,a=t.child,l={mode:"hidden",children:l},1&o||null===a?a=_v(l,o,0,null):(a.childLanes=0,a.pendingProps=l),e=Dv(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=_g(n),t.memoizedState=Dg,e):Tg(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,Og(e,t,a,r=ag(Error(ns(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=_v({mode:"visible",children:r.children},o,0,null),(i=Dv(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,1&t.mode&&bm(t,e.child,null,a),t.child.memoizedState=_g(a),t.memoizedState=Dg,i);if(!(1&t.mode))return Og(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Og(e,t,a,r=ag(i=Error(ns(419)),r,void 0))}if(l=!!(a&e.childLanes),hg||l){if(null!==(r=Rb)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|a)?0:o)&&o!==i.retryLane&&(i.retryLane=o,Dm(e,o),Qb(r,e,o,-1))}return dv(),Og(e,t,a,r=ag(Error(ns(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=wv.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,em=af(o.nextSibling),Zf=t,tm=!0,nm=null,null!==e&&(Vf[Wf++]=Gf,Vf[Wf++]=Yf,Vf[Wf++]=Uf,Gf=e.id,Yf=e.overflow,Uf=t),t=Tg(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,i,n);if(a){a=o.fallback,l=t.mode,r=(i=e.child).sibling;var s={mode:"hidden",children:o.children};return 1&l||t.child===i?(o=Lv(i,s)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null),null!==r?a=Lv(r,a):(a=Dv(a,l,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,l=null===(l=e.child.memoizedState)?_g(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Dg,o}return e=(a=e.child).sibling,o=Lv(a,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Tg(e,t){return(t=_v({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Og(e,t,n,r){return null!==r&&dm(r),bm(t,e.child,null,n),(e=Tg(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ng(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Rm(e.return,t,n)}function qg(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function zg(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(gg(e,t,r.children,n),2&(r=Xm.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ng(e,n,t);else if(19===e.tag)Ng(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(wf(Xm,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Jm(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),qg(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Jm(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}qg(t,!0,n,null,i);break;case"together":qg(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Fg(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function jg(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),_b|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(ns(153));if(null!==t.child){for(n=Lv(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Lv(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function $g(e,t){if(!tm)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Bg(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Hg(e,t,n){var r=t.pendingProps;switch(Qf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bg(t),null;case 1:case 17:return Lf(t.type)&&If(),Bg(t),null;case 3:return r=t.stateNode,Gm(),Ef(kf),Ef(Rf),Zm(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(sm(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==nm&&(nv(nm),nm=null))),Pg(e,t),Bg(t),null;case 5:Km(t);var o=Wm(Vm.current);if(n=t.type,null!==e&&null!=t.stateNode)Lg(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(ns(166));return Bg(t),null}if(e=Wm(Bm.current),sm(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[uf]=t,r[cf]=i,e=!!(1&t.mode),n){case"dialog":Op("cancel",r),Op("close",r);break;case"iframe":case"object":case"embed":Op("load",r);break;case"video":case"audio":for(o=0;o<Dp.length;o++)Op(Dp[o],r);break;case"source":Op("error",r);break;case"img":case"image":case"link":Op("error",r),Op("load",r);break;case"details":Op("toggle",r);break;case"input":Gs(r,i),Op("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Op("invalid",r);break;case"textarea":tu(r,i),Op("invalid",r)}for(var a in hu(n,i),o=null,i)if(i.hasOwnProperty(a)){var l=i[a];"children"===a?"string"==typeof l?r.textContent!==l&&(!0!==i.suppressHydrationWarning&&Yp(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==i.suppressHydrationWarning&&Yp(r.textContent,l,e),o=["children",""+l]):os.hasOwnProperty(a)&&null!=l&&"onScroll"===a&&Op("scroll",r)}switch(n){case"input":Hs(r),Xs(r,i,!0);break;case"textarea":Hs(r),ru(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Kp)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ou(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[uf]=t,e[cf]=r,Ag(e,t,!1,!1),t.stateNode=e;e:{switch(a=gu(n,r),n){case"dialog":Op("cancel",e),Op("close",e),o=r;break;case"iframe":case"object":case"embed":Op("load",e),o=r;break;case"video":case"audio":for(o=0;o<Dp.length;o++)Op(Dp[o],e);o=r;break;case"source":Op("error",e),o=r;break;case"img":case"image":case"link":Op("error",e),Op("load",e),o=r;break;case"details":Op("toggle",e),o=r;break;case"input":Gs(e,r),o=Us(e,r),Op("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Ts({},r,{value:void 0}),Op("invalid",e);break;case"textarea":tu(e,r),o=eu(e,r),Op("invalid",e)}for(i in hu(n,o),l=o)if(l.hasOwnProperty(i)){var s=l[i];"style"===i?fu(e,s):"dangerouslySetInnerHTML"===i?null!=(s=s?s.__html:void 0)&&su(e,s):"children"===i?"string"==typeof s?("textarea"!==n||""!==s)&&uu(e,s):"number"==typeof s&&uu(e,""+s):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(os.hasOwnProperty(i)?null!=s&&"onScroll"===i&&Op("scroll",e):null!=s&&gs(e,i,s,a))}switch(n){case"input":Hs(e),Xs(e,r,!1);break;case"textarea":Hs(e),ru(e);break;case"option":null!=r.value&&e.setAttribute("value",""+$s(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?Zs(e,!!r.multiple,i,!1):null!=r.defaultValue&&Zs(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Kp)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Bg(t),null;case 6:if(e&&null!=t.stateNode)Ig(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(ns(166));if(n=Wm(Vm.current),Wm(Bm.current),sm(t)){if(r=t.stateNode,n=t.memoizedProps,r[uf]=t,(i=r.nodeValue!==n)&&null!==(e=Zf))switch(e.tag){case 3:Yp(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Yp(r.nodeValue,n,!!(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[uf]=t,t.stateNode=r}return Bg(t),null;case 13:if(Ef(Xm),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(tm&&null!==em&&1&t.mode&&!(128&t.flags))um(),cm(),t.flags|=98560,i=!1;else if(i=sm(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(ns(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(ns(317));i[uf]=t}else cm(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Bg(t),i=!1}else null!==nm&&(nv(nm),nm=null),i=!0;if(!i)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&Xm.current?0===Ib&&(Ib=3):dv())),null!==t.updateQueue&&(t.flags|=4),Bg(t),null);case 4:return Gm(),Pg(e,t),null===e&&zp(t.stateNode.containerInfo),Bg(t),null;case 10:return Cm(t.type._context),Bg(t),null;case 19:if(Ef(Xm),null===(i=t.memoizedState))return Bg(t),null;if(r=!!(128&t.flags),null===(a=i.rendering))if(r)$g(i,!1);else{if(0!==Ib||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=Jm(e))){for(t.flags|=128,$g(i,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(a=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return wf(Xm,1&Xm.current|2),t.child}e=e.sibling}null!==i.tail&&Yu()>zb&&(t.flags|=128,r=!0,$g(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Jm(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),$g(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!tm)return Bg(t),null}else 2*Yu()-i.renderingStartTime>zb&&1073741824!==n&&(t.flags|=128,r=!0,$g(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=i.last)?n.sibling=a:t.child=a,i.last=a)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Yu(),t.sibling=null,n=Xm.current,wf(Xm,r?1&n|2:1&n),t):(Bg(t),null);case 22:case 23:return lv(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Pb)&&(Bg(t),6&t.subtreeFlags&&(t.flags|=8192)):Bg(t),null;case 24:case 25:return null}throw Error(ns(156,t.tag))}function Vg(e,t){switch(Qf(t),t.tag){case 1:return Lf(t.type)&&If(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Gm(),Ef(kf),Ef(Rf),Zm(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Km(t),null;case 13:if(Ef(Xm),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(ns(340));cm()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ef(Xm),null;case 4:return Gm(),null;case 10:return Cm(t.type._context),null;case 22:case 23:return lv(),null;default:return null}}Ag=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Pg=function(){},Lg=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Wm(Bm.current);var i,a=null;switch(n){case"input":o=Us(e,o),r=Us(e,r),a=[];break;case"select":o=Ts({},o,{value:void 0}),r=Ts({},r,{value:void 0}),a=[];break;case"textarea":o=eu(e,o),r=eu(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Kp)}for(u in hu(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(os.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var s=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&s!==l&&(null!=s||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&l[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(u,n)),n=s;else"dangerouslySetInnerHTML"===u?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(a=a||[]).push(u,s)):"children"===u?"string"!=typeof s&&"number"!=typeof s||(a=a||[]).push(u,""+s):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(os.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&Op("scroll",e),a||l===s||(a=[])):(a=a||[]).push(u,s))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Ig=function(e,t,n,r){n!==r&&(t.flags|=4)};var Wg=!1,Ug=!1,Gg="function"==typeof WeakSet?WeakSet:Set,Yg=null;function Kg(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){xv(e,t,n)}else n.current=null}function Xg(e,t,n){try{n()}catch(n){xv(e,t,n)}}var Jg=!1;function Qg(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&Xg(t,n,i)}o=o.next}while(o!==r)}}function Zg(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function eb(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function tb(e){var t=e.alternate;null!==t&&(e.alternate=null,tb(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[uf],delete t[cf],delete t[pf],delete t[ff],delete t[mf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function nb(e){return 5===e.tag||3===e.tag||4===e.tag}function rb(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||nb(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ob(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Kp));else if(4!==r&&null!==(e=e.child))for(ob(e,t,n),e=e.sibling;null!==e;)ob(e,t,n),e=e.sibling}function ib(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ib(e,t,n),e=e.sibling;null!==e;)ib(e,t,n),e=e.sibling}var ab=null,lb=!1;function sb(e,t,n){for(n=n.child;null!==n;)ub(e,t,n),n=n.sibling}function ub(e,t,n){if(nc&&"function"==typeof nc.onCommitFiberUnmount)try{nc.onCommitFiberUnmount(tc,n)}catch(e){}switch(n.tag){case 5:Ug||Kg(n,t);case 6:var r=ab,o=lb;ab=null,sb(e,t,n),lb=o,null!==(ab=r)&&(lb?(e=ab,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ab.removeChild(n.stateNode));break;case 18:null!==ab&&(lb?(e=ab,n=n.stateNode,8===e.nodeType?of(e.parentNode,n):1===e.nodeType&&of(e,n),Fc(e)):of(ab,n.stateNode));break;case 4:r=ab,o=lb,ab=n.stateNode.containerInfo,lb=!0,sb(e,t,n),ab=r,lb=o;break;case 0:case 11:case 14:case 15:if(!Ug&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&Xg(n,t,a),o=o.next}while(o!==r)}sb(e,t,n);break;case 1:if(!Ug&&(Kg(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){xv(n,t,e)}sb(e,t,n);break;case 21:sb(e,t,n);break;case 22:1&n.mode?(Ug=(r=Ug)||null!==n.memoizedState,sb(e,t,n),Ug=r):sb(e,t,n);break;default:sb(e,t,n)}}function cb(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Gg),t.forEach((function(t){var r=Cv.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function db(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:ab=l.stateNode,lb=!1;break e;case 3:case 4:ab=l.stateNode.containerInfo,lb=!0;break e}l=l.return}if(null===ab)throw Error(ns(160));ub(i,a,o),ab=null,lb=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){xv(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)pb(t,e),t=t.sibling}function pb(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(db(t,e),fb(e),4&r){try{Qg(3,e,e.return),Zg(3,e)}catch(t){xv(e,e.return,t)}try{Qg(5,e,e.return)}catch(t){xv(e,e.return,t)}}break;case 1:db(t,e),fb(e),512&r&&null!==n&&Kg(n,n.return);break;case 5:if(db(t,e),fb(e),512&r&&null!==n&&Kg(n,n.return),32&e.flags){var o=e.stateNode;try{uu(o,"")}catch(t){xv(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,a=null!==n?n.memoizedProps:i,l=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===l&&"radio"===i.type&&null!=i.name&&Ys(o,i),gu(l,a);var u=gu(l,i);for(a=0;a<s.length;a+=2){var c=s[a],d=s[a+1];"style"===c?fu(o,d):"dangerouslySetInnerHTML"===c?su(o,d):"children"===c?uu(o,d):gs(o,c,d,u)}switch(l){case"input":Ks(o,i);break;case"textarea":nu(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var f=i.value;null!=f?Zs(o,!!i.multiple,f,!1):p!==!!i.multiple&&(null!=i.defaultValue?Zs(o,!!i.multiple,i.defaultValue,!0):Zs(o,!!i.multiple,i.multiple?[]:"",!1))}o[cf]=i}catch(t){xv(e,e.return,t)}}break;case 6:if(db(t,e),fb(e),4&r){if(null===e.stateNode)throw Error(ns(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){xv(e,e.return,t)}}break;case 3:if(db(t,e),fb(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Fc(t.containerInfo)}catch(t){xv(e,e.return,t)}break;case 4:default:db(t,e),fb(e);break;case 13:db(t,e),fb(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(qb=Yu())),4&r&&cb(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(Ug=(u=Ug)||c,db(t,e),Ug=u):db(t,e),fb(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&1&e.mode)for(Yg=e,c=e.child;null!==c;){for(d=Yg=c;null!==Yg;){switch(f=(p=Yg).child,p.tag){case 0:case 11:case 14:case 15:Qg(4,p,p.return);break;case 1:Kg(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){xv(r,n,e)}}break;case 5:Kg(p,p.return);break;case 22:if(null!==p.memoizedState){bb(d);continue}}null!==f?(f.return=p,Yg=f):bb(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{o=d.stateNode,u?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=d.stateNode,a=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,l.style.display=pu("display",a))}catch(t){xv(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){xv(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:db(t,e),fb(e),4&r&&cb(e);case 21:}}function fb(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(nb(n)){var r=n;break e}n=n.return}throw Error(ns(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(uu(o,""),r.flags&=-33),ib(e,rb(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;ob(e,rb(e),i);break;default:throw Error(ns(161))}}catch(t){xv(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function mb(e,t,n){Yg=e,hb(e)}function hb(e,t,n){for(var r=!!(1&e.mode);null!==Yg;){var o=Yg,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Wg;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Ug;l=Wg;var u=Ug;if(Wg=a,(Ug=s)&&!u)for(Yg=o;null!==Yg;)s=(a=Yg).child,22===a.tag&&null!==a.memoizedState?vb(o):null!==s?(s.return=a,Yg=s):vb(o);for(;null!==i;)Yg=i,hb(i),i=i.sibling;Yg=o,Wg=l,Ug=u}gb(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Yg=i):gb(e)}}function gb(e){for(;null!==Yg;){var t=Yg;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ug||Zg(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ug)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Qh(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&jm(t,i,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}jm(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&Fc(d)}}}break;default:throw Error(ns(163))}Ug||512&t.flags&&eb(t)}catch(e){xv(t,t.return,e)}}if(t===e){Yg=null;break}if(null!==(n=t.sibling)){n.return=t.return,Yg=n;break}Yg=t.return}}function bb(e){for(;null!==Yg;){var t=Yg;if(t===e){Yg=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Yg=n;break}Yg=t.return}}function vb(e){for(;null!==Yg;){var t=Yg;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Zg(4,t)}catch(e){xv(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){xv(t,o,e)}}var i=t.return;try{eb(t)}catch(e){xv(t,i,e)}break;case 5:var a=t.return;try{eb(t)}catch(e){xv(t,a,e)}}}catch(e){xv(t,t.return,e)}if(t===e){Yg=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Yg=l;break}Yg=t.return}}var yb,xb=Math.ceil,Sb=bs.ReactCurrentDispatcher,Eb=bs.ReactCurrentOwner,wb=bs.ReactCurrentBatchConfig,Cb=0,Rb=null,kb=null,Ab=0,Pb=0,Lb=Sf(0),Ib=0,Db=null,_b=0,Mb=0,Tb=0,Ob=null,Nb=null,qb=0,zb=1/0,Fb=null,jb=!1,$b=null,Bb=null,Hb=!1,Vb=null,Wb=0,Ub=0,Gb=null,Yb=-1,Kb=0;function Xb(){return 6&Cb?Yu():-1!==Yb?Yb:Yb=Yu()}function Jb(e){return 1&e.mode?2&Cb&&0!==Ab?Ab&-Ab:null!==pm.transition?(0===Kb&&(Kb=pc()),Kb):0!==(e=gc)?e:e=void 0===(e=window.event)?16:Gc(e.type):1}function Qb(e,t,n,r){if(50<Ub)throw Ub=0,Gb=null,Error(ns(185));mc(e,n,r),2&Cb&&e===Rb||(e===Rb&&(!(2&Cb)&&(Mb|=n),4===Ib&&rv(e,Ab)),Zb(e,r),1===n&&0===Cb&&!(1&t.mode)&&(zb=Yu()+500,Nf&&Ff()))}function Zb(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-rc(i),l=1<<a,s=o[a];-1===s?l&n&&!(l&r)||(o[a]=cc(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=uc(e,e===Rb?Ab:0);if(0===r)null!==n&&Wu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Wu(n),1===t)0===e.tag?function(e){Nf=!0,zf(e)}(ov.bind(null,e)):zf(ov.bind(null,e)),nf((function(){!(6&Cb)&&Ff()})),n=null;else{switch(bc(r)){case 1:n=Xu;break;case 4:n=Ju;break;case 16:default:n=Qu;break;case 536870912:n=ec}n=Rv(n,ev.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ev(e,t){if(Yb=-1,Kb=0,6&Cb)throw Error(ns(327));var n=e.callbackNode;if(vv()&&e.callbackNode!==n)return null;var r=uc(e,e===Rb?Ab:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=pv(e,r);else{t=r;var o=Cb;Cb|=2;var i=cv();for(Rb===e&&Ab===t||(Fb=null,zb=Yu()+500,sv(e,t));;)try{mv();break}catch(t){uv(e,t)}wm(),Sb.current=i,Cb=o,null!==kb?t=0:(Rb=null,Ab=0,t=Ib)}if(0!==t){if(2===t&&(0!==(o=dc(e))&&(r=o,t=tv(e,o))),1===t)throw n=Db,sv(e,0),rv(e,r),Zb(e,Yu()),n;if(6===t)rv(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!rp(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=pv(e,r),2===t&&(i=dc(e),0!==i&&(r=i,t=tv(e,i))),1!==t)))throw n=Db,sv(e,0),rv(e,r),Zb(e,Yu()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(ns(345));case 2:case 5:bv(e,Nb,Fb);break;case 3:if(rv(e,r),(130023424&r)===r&&10<(t=qb+500-Yu())){if(0!==uc(e,0))break;if(((o=e.suspendedLanes)&r)!==r){Xb(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Zp(bv.bind(null,e,Nb,Fb),t);break}bv(e,Nb,Fb);break;case 4:if(rv(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-rc(r);i=1<<a,(a=t[a])>o&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=Yu()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xb(r/1960))-r)){e.timeoutHandle=Zp(bv.bind(null,e,Nb,Fb),r);break}bv(e,Nb,Fb);break;default:throw Error(ns(329))}}}return Zb(e,Yu()),e.callbackNode===n?ev.bind(null,e):null}function tv(e,t){var n=Ob;return e.current.memoizedState.isDehydrated&&(sv(e,t).flags|=256),2!==(e=pv(e,t))&&(t=Nb,Nb=n,null!==t&&nv(t)),e}function nv(e){null===Nb?Nb=e:Nb.push.apply(Nb,e)}function rv(e,t){for(t&=~Tb,t&=~Mb,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-rc(t),r=1<<n;e[n]=-1,t&=~r}}function ov(e){if(6&Cb)throw Error(ns(327));vv();var t=uc(e,0);if(!(1&t))return Zb(e,Yu()),null;var n=pv(e,t);if(0!==e.tag&&2===n){var r=dc(e);0!==r&&(t=r,n=tv(e,r))}if(1===n)throw n=Db,sv(e,0),rv(e,t),Zb(e,Yu()),n;if(6===n)throw Error(ns(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,bv(e,Nb,Fb),Zb(e,Yu()),null}function iv(e,t){var n=Cb;Cb|=1;try{return e(t)}finally{0===(Cb=n)&&(zb=Yu()+500,Nf&&Ff())}}function av(e){null!==Vb&&0===Vb.tag&&!(6&Cb)&&vv();var t=Cb;Cb|=1;var n=wb.transition,r=gc;try{if(wb.transition=null,gc=1,e)return e()}finally{gc=r,wb.transition=n,!(6&(Cb=t))&&Ff()}}function lv(){Pb=Lb.current,Ef(Lb)}function sv(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ef(n)),null!==kb)for(n=kb.return;null!==n;){var r=n;switch(Qf(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&If();break;case 3:Gm(),Ef(kf),Ef(Rf),Zm();break;case 5:Km(r);break;case 4:Gm();break;case 13:case 19:Ef(Xm);break;case 10:Cm(r.type._context);break;case 22:case 23:lv()}n=n.return}if(Rb=e,kb=e=Lv(e.current,null),Ab=Pb=t,Ib=0,Db=null,Tb=Mb=_b=0,Nb=Ob=null,null!==Pm){for(t=0;t<Pm.length;t++)if(null!==(r=(n=Pm[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Pm=null}return e}function uv(e,t){for(;;){var n=kb;try{if(wm(),eh.current=Yh,ah){for(var r=rh.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ah=!1}if(nh=0,ih=oh=rh=null,lh=!1,sh=0,Eb.current=null,null===n||null===n.return){Ib=1,Db=t,kb=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=Ab,l.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s,c=l,d=c.tag;if(!(1&c.mode||0!==d&&11!==d&&15!==d)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var f=pg(a);if(null!==f){f.flags&=-257,fg(f,a,l,0,t),1&f.mode&&dg(i,u,t),s=u;var m=(t=f).updateQueue;if(null===m){var h=new Set;h.add(s),t.updateQueue=h}else m.add(s);break e}if(!(1&t)){dg(i,u,t),dv();break e}s=Error(ns(426))}else if(tm&&1&l.mode){var g=pg(a);if(null!==g){!(65536&g.flags)&&(g.flags|=256),fg(g,a,l,0,t),dm(ig(s,l));break e}}i=s=ig(s,l),4!==Ib&&(Ib=2),null===Ob?Ob=[i]:Ob.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,zm(i,ug(0,s,t));break e;case 1:l=s;var b=i.type,v=i.stateNode;if(!(128&i.flags||"function"!=typeof b.getDerivedStateFromError&&(null===v||"function"!=typeof v.componentDidCatch||null!==Bb&&Bb.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t,zm(i,cg(i,l,t));break e}}i=i.return}while(null!==i)}gv(n)}catch(e){t=e,kb===n&&null!==n&&(kb=n=n.return);continue}break}}function cv(){var e=Sb.current;return Sb.current=Yh,null===e?Yh:e}function dv(){0!==Ib&&3!==Ib&&2!==Ib||(Ib=4),null===Rb||!(268435455&_b)&&!(268435455&Mb)||rv(Rb,Ab)}function pv(e,t){var n=Cb;Cb|=2;var r=cv();for(Rb===e&&Ab===t||(Fb=null,sv(e,t));;)try{fv();break}catch(t){uv(e,t)}if(wm(),Cb=n,Sb.current=r,null!==kb)throw Error(ns(261));return Rb=null,Ab=0,Ib}function fv(){for(;null!==kb;)hv(kb)}function mv(){for(;null!==kb&&!Uu();)hv(kb)}function hv(e){var t=yb(e.alternate,e,Pb);e.memoizedProps=e.pendingProps,null===t?gv(e):kb=t,Eb.current=null}function gv(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Vg(n,t)))return n.flags&=32767,void(kb=n);if(null===e)return Ib=6,void(kb=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Hg(n,t,Pb)))return void(kb=n);if(null!==(t=t.sibling))return void(kb=t);kb=t=e}while(null!==t);0===Ib&&(Ib=5)}function bv(e,t,n){var r=gc,o=wb.transition;try{wb.transition=null,gc=1,function(e,t,n,r){do{vv()}while(null!==Vb);if(6&Cb)throw Error(ns(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(ns(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-rc(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===Rb&&(kb=Rb=null,Ab=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Hb||(Hb=!0,Rv(Qu,(function(){return vv(),null}))),i=!!(15990&n.flags),!!(15990&n.subtreeFlags)||i){i=wb.transition,wb.transition=null;var a=gc;gc=1;var l=Cb;Cb|=4,Eb.current=null,function(e,t){if(Xp=$c,up(e=sp())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var a=0,l=-1,s=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var f;d!==n||0!==o&&3!==d.nodeType||(l=a+o),d!==i||0!==r&&3!==d.nodeType||(s=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(f=d.firstChild);)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++u===o&&(l=a),p===i&&++c===r&&(s=a),null!==(f=d.nextSibling))break;p=(d=p).parentNode}d=f}n=-1===l||-1===s?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Jp={focusedElem:e,selectionRange:n},$c=!1,Yg=t;null!==Yg;)if(e=(t=Yg).child,1028&t.subtreeFlags&&null!==e)e.return=t,Yg=e;else for(;null!==Yg;){t=Yg;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var h=m.memoizedProps,g=m.memoizedState,b=t.stateNode,v=b.getSnapshotBeforeUpdate(t.elementType===t.type?h:Qh(t.type,h),g);b.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var y=t.stateNode.containerInfo;1===y.nodeType?y.textContent="":9===y.nodeType&&y.documentElement&&y.removeChild(y.documentElement);break;default:throw Error(ns(163))}}catch(e){xv(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Yg=e;break}Yg=t.return}m=Jg,Jg=!1}(e,n),pb(n,e),cp(Jp),$c=!!Xp,Jp=Xp=null,e.current=n,mb(n),Gu(),Cb=l,gc=a,wb.transition=i}else e.current=n;if(Hb&&(Hb=!1,Vb=e,Wb=o),i=e.pendingLanes,0===i&&(Bb=null),function(e){if(nc&&"function"==typeof nc.onCommitFiberRoot)try{nc.onCommitFiberRoot(tc,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),Zb(e,Yu()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(jb)throw jb=!1,e=$b,$b=null,e;!!(1&Wb)&&0!==e.tag&&vv(),i=e.pendingLanes,1&i?e===Gb?Ub++:(Ub=0,Gb=e):Ub=0,Ff()}(e,t,n,r)}finally{wb.transition=o,gc=r}return null}function vv(){if(null!==Vb){var e=bc(Wb),t=wb.transition,n=gc;try{if(wb.transition=null,gc=16>e?16:e,null===Vb)var r=!1;else{if(e=Vb,Vb=null,Wb=0,6&Cb)throw Error(ns(331));var o=Cb;for(Cb|=4,Yg=e.current;null!==Yg;){var i=Yg,a=i.child;if(16&Yg.flags){var l=i.deletions;if(null!==l){for(var s=0;s<l.length;s++){var u=l[s];for(Yg=u;null!==Yg;){var c=Yg;switch(c.tag){case 0:case 11:case 15:Qg(8,c,i)}var d=c.child;if(null!==d)d.return=c,Yg=d;else for(;null!==Yg;){var p=(c=Yg).sibling,f=c.return;if(tb(c),c===u){Yg=null;break}if(null!==p){p.return=f,Yg=p;break}Yg=f}}}var m=i.alternate;if(null!==m){var h=m.child;if(null!==h){m.child=null;do{var g=h.sibling;h.sibling=null,h=g}while(null!==h)}}Yg=i}}if(2064&i.subtreeFlags&&null!==a)a.return=i,Yg=a;else e:for(;null!==Yg;){if(2048&(i=Yg).flags)switch(i.tag){case 0:case 11:case 15:Qg(9,i,i.return)}var b=i.sibling;if(null!==b){b.return=i.return,Yg=b;break e}Yg=i.return}}var v=e.current;for(Yg=v;null!==Yg;){var y=(a=Yg).child;if(2064&a.subtreeFlags&&null!==y)y.return=a,Yg=y;else e:for(a=v;null!==Yg;){if(2048&(l=Yg).flags)try{switch(l.tag){case 0:case 11:case 15:Zg(9,l)}}catch(e){xv(l,l.return,e)}if(l===a){Yg=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Yg=x;break e}Yg=l.return}}if(Cb=o,Ff(),nc&&"function"==typeof nc.onPostCommitFiberRoot)try{nc.onPostCommitFiberRoot(tc,e)}catch(e){}r=!0}return r}finally{gc=n,wb.transition=t}}return!1}function yv(e,t,n){e=Nm(e,t=ug(0,t=ig(n,t),1),1),t=Xb(),null!==e&&(mc(e,1,t),Zb(e,t))}function xv(e,t,n){if(3===e.tag)yv(e,e,n);else for(;null!==t;){if(3===t.tag){yv(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Bb||!Bb.has(r))){t=Nm(t,e=cg(t,e=ig(n,e),1),1),e=Xb(),null!==t&&(mc(t,1,e),Zb(t,e));break}}t=t.return}}function Sv(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Xb(),e.pingedLanes|=e.suspendedLanes&n,Rb===e&&(Ab&n)===n&&(4===Ib||3===Ib&&(130023424&Ab)===Ab&&500>Yu()-qb?sv(e,0):Tb|=n),Zb(e,t)}function Ev(e,t){0===t&&(1&e.mode?(t=lc,!(130023424&(lc<<=1))&&(lc=4194304)):t=1);var n=Xb();null!==(e=Dm(e,t))&&(mc(e,t,n),Zb(e,n))}function wv(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ev(e,n)}function Cv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ns(314))}null!==r&&r.delete(t),Ev(e,n)}function Rv(e,t){return Vu(e,t)}function kv(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Av(e,t,n,r){return new kv(e,t,n,r)}function Pv(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Lv(e,t){var n=e.alternate;return null===n?((n=Av(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Iv(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)Pv(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case xs:return Dv(n.children,o,i,t);case Ss:a=8,o|=8;break;case Es:return(e=Av(12,n,t,2|o)).elementType=Es,e.lanes=i,e;case ks:return(e=Av(13,n,t,o)).elementType=ks,e.lanes=i,e;case As:return(e=Av(19,n,t,o)).elementType=As,e.lanes=i,e;case Is:return _v(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ws:a=10;break e;case Cs:a=9;break e;case Rs:a=11;break e;case Ps:a=14;break e;case Ls:a=16,r=null;break e}throw Error(ns(130,null==e?e:typeof e,""))}return(t=Av(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Dv(e,t,n,r){return(e=Av(7,e,r,t)).lanes=n,e}function _v(e,t,n,r){return(e=Av(22,e,r,t)).elementType=Is,e.lanes=n,e.stateNode={isHidden:!1},e}function Mv(e,t,n){return(e=Av(6,e,null,t)).lanes=n,e}function Tv(e,t,n){return(t=Av(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ov(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=fc(0),this.expirationTimes=fc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fc(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Nv(e,t,n,r,o,i,a,l,s){return e=new Ov(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Av(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mm(i),e}function qv(e){if(!e)return Cf;e:{if(Fu(e=e._reactInternals)!==e||1!==e.tag)throw Error(ns(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Lf(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(ns(171))}if(1===e.tag){var n=e.type;if(Lf(n))return _f(e,n,t)}return t}function zv(e,t,n,r,o,i,a,l,s){return(e=Nv(n,r,!0,e,0,i,0,l,s)).context=qv(null),n=e.current,(i=Om(r=Xb(),o=Jb(n))).callback=null!=t?t:null,Nm(n,i,o),e.current.lanes=o,mc(e,o,r),Zb(e,r),e}function Fv(e,t,n,r){var o=t.current,i=Xb(),a=Jb(o);return n=qv(n),null===t.context?t.context=n:t.pendingContext=n,(t=Om(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Nm(o,t,a))&&(Qb(e,o,a,i),qm(e,o,a)),a}function jv(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function $v(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Bv(e,t){$v(e,t),(e=e.alternate)&&$v(e,t)}yb=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||kf.current)hg=!0;else{if(!(e.lanes&n||128&t.flags))return hg=!1,function(e,t,n){switch(t.tag){case 3:Rg(t),cm();break;case 5:Ym(t);break;case 1:Lf(t.type)&&Mf(t);break;case 4:Um(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;wf(ym,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(wf(Xm,1&Xm.current),t.flags|=128,null):n&t.child.childLanes?Mg(e,t,n):(wf(Xm,1&Xm.current),null!==(e=jg(e,t,n))?e.sibling:null);wf(Xm,1&Xm.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return zg(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),wf(Xm,Xm.current),r)break;return null;case 22:case 23:return t.lanes=0,xg(e,t,n)}return jg(e,t,n)}(e,t,n);hg=!!(131072&e.flags)}else hg=!1,tm&&1048576&t.flags&&Xf(t,Hf,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Fg(e,t),e=t.pendingProps;var o=Pf(t,Rf.current);km(t,n),o=ph(null,t,r,e,o,n);var i=fh();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Lf(r)?(i=!0,Mf(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Mm(t),o.updater=eg,t.stateNode=o,o._reactInternals=t,og(t,r,e,n),t=Cg(null,t,r,!0,i,n)):(t.tag=0,tm&&i&&Jf(t),gg(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Fg(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Pv(e)?1:0;if(null!=e){if((e=e.$$typeof)===Rs)return 11;if(e===Ps)return 14}return 2}(r),e=Qh(r,e),o){case 0:t=Eg(null,t,r,e,n);break e;case 1:t=wg(null,t,r,e,n);break e;case 11:t=bg(null,t,r,e,n);break e;case 14:t=vg(null,t,r,Qh(r.type,e),n);break e}throw Error(ns(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Eg(e,t,r,o=t.elementType===r?o:Qh(r,o),n);case 1:return r=t.type,o=t.pendingProps,wg(e,t,r,o=t.elementType===r?o:Qh(r,o),n);case 3:e:{if(Rg(t),null===e)throw Error(ns(387));r=t.pendingProps,o=(i=t.memoizedState).element,Tm(e,t),Fm(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=kg(e,t,r,n,o=ig(Error(ns(423)),t));break e}if(r!==o){t=kg(e,t,r,n,o=ig(Error(ns(424)),t));break e}for(em=af(t.stateNode.containerInfo.firstChild),Zf=t,tm=!0,nm=null,n=vm(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(cm(),r===o){t=jg(e,t,n);break e}gg(e,t,r,n)}t=t.child}return t;case 5:return Ym(t),null===e&&am(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,Qp(r,o)?a=null:null!==i&&Qp(r,i)&&(t.flags|=32),Sg(e,t),gg(e,t,a,n),t.child;case 6:return null===e&&am(t),null;case 13:return Mg(e,t,n);case 4:return Um(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=bm(t,null,r,n):gg(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,bg(e,t,r,o=t.elementType===r?o:Qh(r,o),n);case 7:return gg(e,t,t.pendingProps,n),t.child;case 8:case 12:return gg(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,wf(ym,r._currentValue),r._currentValue=a,null!==i)if(rp(i.value,a)){if(i.children===o.children&&!kf.current){t=jg(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){a=i.child;for(var s=l.firstContext;null!==s;){if(s.context===r){if(1===i.tag){(s=Om(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),Rm(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(10===i.tag)a=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(a=i.return))throw Error(ns(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Rm(a,n,t),a=i.sibling}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===t){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}gg(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,km(t,n),r=r(o=Am(o)),t.flags|=1,gg(e,t,r,n),t.child;case 14:return o=Qh(r=t.type,t.pendingProps),vg(e,t,r,o=Qh(r.type,o),n);case 15:return yg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qh(r,o),Fg(e,t),t.tag=1,Lf(r)?(e=!0,Mf(t)):e=!1,km(t,n),ng(t,r,o),og(t,r,o,n),Cg(null,t,r,!0,e,n);case 19:return zg(e,t,n);case 22:return xg(e,t,n)}throw Error(ns(156,t.tag))};var Hv="function"==typeof reportError?reportError:function(e){console.error(e)};function Vv(e){this._internalRoot=e}function Wv(e){this._internalRoot=e}function Uv(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Gv(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Yv(){}function Kv(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=jv(a);l.call(e)}}Fv(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=jv(a);i.call(e)}}var a=zv(t,r,e,0,null,!1,0,"",Yv);return e._reactRootContainer=a,e[df]=a.current,zp(8===e.nodeType?e.parentNode:e),av(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=jv(s);l.call(e)}}var s=Nv(e,0,!1,null,0,!1,0,"",Yv);return e._reactRootContainer=s,e[df]=s.current,zp(8===e.nodeType?e.parentNode:e),av((function(){Fv(t,s,n,r)})),s}(n,t,e,o,r);return jv(a)}Wv.prototype.render=Vv.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(ns(409));Fv(e,t,null,null)},Wv.prototype.unmount=Vv.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;av((function(){Fv(null,e,null,null)})),t[df]=null}},Wv.prototype.unstable_scheduleHydration=function(e){if(e){var t=Sc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ic.length&&0!==t&&t<Ic[n].priority;n++);Ic.splice(n,0,e),0===n&&Tc(e)}},vc=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=sc(t.pendingLanes);0!==n&&(hc(t,1|n),Zb(t,Yu()),!(6&Cb)&&(zb=Yu()+500,Ff()))}break;case 13:av((function(){var t=Dm(e,1);if(null!==t){var n=Xb();Qb(t,e,1,n)}})),Bv(e,1)}},yc=function(e){if(13===e.tag){var t=Dm(e,134217728);if(null!==t)Qb(t,e,134217728,Xb());Bv(e,134217728)}},xc=function(e){if(13===e.tag){var t=Jb(e),n=Dm(e,t);if(null!==n)Qb(n,e,t,Xb());Bv(e,t)}},Sc=function(){return gc},Ec=function(e,t){var n=gc;try{return gc=e,t()}finally{gc=n}},yu=function(e,t,n){switch(t){case"input":if(Ks(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=vf(r);if(!o)throw Error(ns(90));Vs(r),Ks(r,o)}}}break;case"textarea":nu(e,n);break;case"select":null!=(t=n.value)&&Zs(e,!!n.multiple,t,!1)}},Ru=iv,ku=av;var Xv={usingClientEntryPoint:!1,Events:[gf,bf,vf,wu,Cu,iv]},Jv={findFiberByHostInstance:hf,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Qv={bundleType:Jv.bundleType,version:Jv.version,rendererPackageName:Jv.rendererPackageName,rendererConfig:Jv.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:bs.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Bu(e))?null:e.stateNode},findFiberByHostInstance:Jv.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Zv=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zv.isDisabled&&Zv.supportsFiber)try{tc=Zv.inject(Qv),nc=Zv}catch(lu){}}Xl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xv,Xl.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Uv(t))throw Error(ns(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:ys,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},Xl.createRoot=function(e,t){if(!Uv(e))throw Error(ns(299));var n=!1,r="",o=Hv;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Nv(e,1,!1,null,0,n,0,r,o),e[df]=t.current,zp(8===e.nodeType?e.parentNode:e),new Vv(t)},Xl.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(ns(188));throw e=Object.keys(e).join(","),Error(ns(268,e))}return e=null===(e=Bu(t))?null:e.stateNode},Xl.flushSync=function(e){return av(e)},Xl.hydrate=function(e,t,n){if(!Gv(t))throw Error(ns(200));return Kv(null,e,t,!0,n)},Xl.hydrateRoot=function(e,t,n){if(!Uv(e))throw Error(ns(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",a=Hv;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=zv(t,null,e,1,null!=n?n:null,o,0,i,a),e[df]=t.current,zp(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Wv(t)},Xl.render=function(e,t,n){if(!Gv(t))throw Error(ns(200));return Kv(null,e,t,!1,n)},Xl.unmountComponentAtNode=function(e){if(!Gv(e))throw Error(ns(40));return!!e._reactRootContainer&&(av((function(){Kv(null,null,e,!1,(function(){e._reactRootContainer=null,e[df]=null}))})),!0)},Xl.unstable_batchedUpdates=iv,Xl.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Gv(n))throw Error(ns(200));if(null==e||void 0===e._reactInternals)throw Error(ns(38));return Kv(e,t,n,!1,r)},Xl.version="18.3.1-next-f1338f8080-20240426",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),Kl.exports=Xl;var ey=Kl.exports,ty=r(ey),ny=!1,ry=J.createContext(null),oy="unmounted",iy="exited",ay="entering",ly="entered",sy="exiting",uy=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=iy,r.appearStatus=ay):o=ly:o=t.unmountOnExit||t.mountOnEnter?oy:iy,r.state={status:o},r.nextCallback=null,r}f(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===oy?{status:iy}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==ay&&n!==ly&&(t=ay):n!==ay&&n!==ly||(t=sy)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===ay){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:ty.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===iy&&this.setState({status:oy})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[ty.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||ny?this.safeSetState({status:ly},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:ay},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:ly},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:ty.findDOMNode(this);t&&!ny?(this.props.onExit(r),this.safeSetState({status:sy},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:iy},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:iy},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:ty.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===oy)return null;var t=this.props,n=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 r=d(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return J.createElement(ry.Provider,{value:null},"function"==typeof n?n(e,r):J.cloneElement(J.Children.only(n),r))},t}(J.Component);function cy(){}uy.contextType=ry,uy.propTypes={},uy.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:cy,onEntering:cy,onEntered:cy,onExit:cy,onExiting:cy,onExited:cy},uy.UNMOUNTED=oy,uy.EXITED=iy,uy.ENTERING=ay,uy.ENTERED=ly,uy.EXITING=sy;var dy=uy;function py(e,t){var n=Object.create(null);return e&&X.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&X.isValidElement(e)?t(e):e}(e)})),n}function fy(e,t,n){return null!=n[t]?n[t]:e.props[t]}function my(e,t,n){var r=py(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,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(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(X.isValidElement(a)){var l=i in t,s=i in r,u=t[i],c=X.isValidElement(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&X.isValidElement(u)&&(o[i]=X.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:fy(a,"exit",e),enter:fy(a,"enter",e)})):o[i]=X.cloneElement(a,{in:!1}):o[i]=X.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:fy(a,"exit",e),enter:fy(a,"enter",e)})}})),o}var hy=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},gy=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}f(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 n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,py(n.children,(function(e){return X.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:fy(e,"appear",n),enter:fy(e,"enter",n),exit:fy(e,"exit",n)})}))):my(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=py(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=n({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=d(e,["component","childFactory"]),o=this.state.contextValue,i=hy(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?J.createElement(ry.Provider,{value:o},i):J.createElement(ry.Provider,{value:o},J.createElement(t,r,i))},t}(J.Component);gy.propTypes={},gy.defaultProps={component:"div",childFactory:function(e){return e}};var by=gy;const vy=e=>e.scrollTop;function yy(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function xy(e){return Ka("MuiPaper",e)}Xa("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 Sy=["className","component","elevation","square","variant"],Ey=wl("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return Me({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&&Me({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Sa("#fff",Cl(t.elevation))}, ${Sa("#fff",Cl(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var wy=X.forwardRef((function(e,t){const n=yl({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=Te(n,Sy),u=Me({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Do({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},xy,o)})(u);return ta.jsx(Ey,Me({as:o,ownerState:u,className:kl(c.root,r),ref:t},s))}));function Cy(e){return"string"==typeof e}function Ry(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function ky(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const Ay=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Py(e){var t;const{elementType:r,externalSlotProps:o,ownerState:i,skipResolvingSlotProps:a=!1}=e,l=d(e,Ay),s=a?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(o,i),{props:u,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:o,externalForwardedProps:i,className:a}=e;if(!t){const e=jo(null==r?void 0:r.className,a,null==i?void 0:i.className,null==o?void 0:o.className),t=n({},null==r?void 0:r.style,null==i?void 0:i.style,null==o?void 0:o.style),l=n({},r,i,o);return e.length>0&&(l.className=e),Object.keys(t).length>0&&(l.style=t),{props:l,internalRef:void 0}}const l=Ry(n({},i,o)),s=ky(o),u=ky(i),c=t(l),d=jo(null==c?void 0:c.className,null==r?void 0:r.className,a,null==i?void 0:i.className,null==o?void 0:o.className),p=n({},null==c?void 0:c.style,null==r?void 0:r.style,null==i?void 0:i.style,null==o?void 0:o.style),f=n({},c,r,u,s);return d.length>0&&(f.className=d),Object.keys(p).length>0&&(f.style=p),{props:f,internalRef:c.ref}}(n({},l,{externalSlotProps:s})),p=function(e,t,r){return void 0===e||Cy(e)?t:n({},t,{ownerState:n({},t.ownerState,r)})}(r,n({},u,{ref:go(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),i);return p}var Ly=Xa("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Iy=["center","classes","className"];let Dy,_y,My,Ty,Oy=e=>e;const Ny=kr(Dy||(Dy=Oy`
44
44
  0% {
45
45
  transform: scale(0);
46
46
  opacity: 0.1;
@@ -50,7 +50,7 @@ function Mr(e,t){let n;return n=t?Ar(e).withConfig({displayName:t.label,shouldFo
50
50
  transform: scale(1);
51
51
  opacity: 0.3;
52
52
  }
53
- `)),jy=Pr(Oy||(Oy=zy`
53
+ `)),qy=kr(_y||(_y=Oy`
54
54
  0% {
55
55
  opacity: 1;
56
56
  }
@@ -58,7 +58,7 @@ function Mr(e,t){let n;return n=t?Ar(e).withConfig({displayName:t.label,shouldFo
58
58
  100% {
59
59
  opacity: 0;
60
60
  }
61
- `)),$y=Pr(Ny||(Ny=zy`
61
+ `)),zy=kr(My||(My=Oy`
62
62
  0% {
63
63
  transform: scale(1);
64
64
  }
@@ -70,7 +70,7 @@ function Mr(e,t){let n;return n=t?Ar(e).withConfig({displayName:t.label,shouldFo
70
70
  100% {
71
71
  transform: scale(1);
72
72
  }
73
- `)),By=kl("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Hy=kl((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=X.useState(!1),p=Pl(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Pl(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),X.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),oa.jsx("span",{className:p,style:f,children:oa.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(qy||(qy=zy`
73
+ `)),Fy=wl("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),jy=wl((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=X.useState(!1),p=kl(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=kl(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),X.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),ta.jsx("span",{className:p,style:f,children:ta.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Ty||(Ty=Oy`
74
74
  opacity: 0;
75
75
  position: absolute;
76
76
 
@@ -113,11 +113,11 @@ function Mr(e,t){let n;return n=t?Ar(e).withConfig({displayName:t.label,shouldFo
113
113
  animation-iteration-count: infinite;
114
114
  animation-delay: 200ms;
115
115
  }
116
- `),_y.rippleVisible,Fy,550,(({theme:e})=>e.transitions.easing.easeInOut),_y.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),_y.child,_y.childLeaving,jy,550,(({theme:e})=>e.transitions.easing.easeInOut),_y.childPulsate,$y,(({theme:e})=>e.transitions.easing.easeInOut)),Wy=X.forwardRef((function(e,t){const n=El({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Te(n,My),[l,s]=X.useState([]),u=X.useRef(0),c=X.useRef(null);X.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=X.useRef(!1),p=X.useRef(0),f=X.useRef(null),m=X.useRef(null);X.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=X.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,oa.jsx(Hy,{classes:{ripple:Pl(o.ripple,_y.ripple),rippleVisible:Pl(o.rippleVisible,_y.rippleVisible),ripplePulsate:Pl(o.ripplePulsate,_y.ripplePulsate),child:Pl(o.child,_y.child),childLeaving:Pl(o.childLeaving,_y.childLeaving),childPulsate:Pl(o.childPulsate,_y.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=X.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||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:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-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:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h]),b=X.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=X.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 X.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),oa.jsx(By,Me({className:Pl(_y.root,o.root,i),ref:m},a,{children:oa.jsx(xy,{component:null,exit:!0,children:l})}))}));var Vy=Wy;function Uy(e){return Qa("MuiButtonBase",e)}var Gy=Za("MuiButtonBase",["root","disabled","focusVisible"]);const Yy=["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"],Ky=kl("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"},[`&.${Gy.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Xy=X.forwardRef((function(e,t){const n=El({props:e,name:"MuiButtonBase"}),{action:r,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:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:w,onTouchEnd:C,onTouchMove:R,onTouchStart:k,tabIndex:A=0,TouchRippleProps:L,touchRippleRef:P,type:I}=n,D=Te(n,Yy),_=X.useRef(null),M=X.useRef(null),T=qa(M,P),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:z}=Ga(),[F,j]=X.useState(!1);s&&F&&j(!1),X.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),_.current.focus()}})),[]);const[$,B]=X.useState(!1);X.useEffect((()=>{B(!0)}),[]);const H=$&&!u&&!s;function W(e,t,n=c){return Na((r=>{t&&t(r);return!n&&M.current&&M.current[e](r),!0}))}X.useEffect((()=>{F&&d&&!u&&$&&M.current.pulsate()}),[u,d,F,$]);const V=W("start",S),U=W("stop",h),G=W("stop",g),Y=W("stop",w),K=W("stop",(e=>{F&&e.preventDefault(),E&&E(e)})),J=W("start",k),Q=W("stop",C),Z=W("stop",R),ee=W("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),te=Na((e=>{_.current||(_.current=e.currentTarget),N(e),!0===O.current&&(j(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=_.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=X.useRef(!1),oe=Na((e=>{d&&!re.current&&F&&M.current&&" "===e.key&&(re.current=!0,M.current.stop(e,(()=>{M.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=Na((e=>{d&&" "===e.key&&M.current&&F&&!e.defaultPrevented&&(re.current=!1,M.current.stop(e,(()=>{M.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(D.href||D.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===I?"button":I,le.disabled=s):(D.href||D.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=qa(t,z,_),ue=Me({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:A,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=To({root:["root",t&&"disabled",n&&"focusVisible"]},Uy,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return oa.jsxs(Ky,Me({as:ae,className:Pl(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:K,onMouseUp:Y,onDragLeave:G,onTouchEnd:Q,onTouchMove:Z,onTouchStart:J,ref:se,tabIndex:s?-1:A,type:I},le,D,{children:[i,H?oa.jsx(Vy,Me({ref:T,center:o},L)):null]}))}));var Jy=Xy;function Qy(e){return Qa("MuiTypography",e)}Za("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Zy=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],ex=kl("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${La(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Me({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}))),tx={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},nx={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},rx=X.forwardRef((function(e,t){const n=El({props:e,name:"MuiTypography"}),r=(e=>nx[e]||e)(n.color),o=sa(Me({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=tx}=o,f=Te(o,Zy),m=Me({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||tx[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return To({root:["root",i,"inherit"!==e.align&&`align${La(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Qy,a)})(m);return oa.jsx(ex,Me({as:h,ref:t,ownerState:m,className:Pl(g.root,a)},f))}));var ox=rx;const ix=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ax(e){const t=[],n=[];return Array.from(e.querySelectorAll(ix)).forEach(((e,r)=>{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 n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function lx(){return!0}function sx(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=ax,isEnabled:a=lx,open:l}=e,s=X.useRef(!1),u=X.useRef(null),c=X.useRef(null),d=X.useRef(null),p=X.useRef(null),f=X.useRef(!1),m=X.useRef(null),h=yo(t.ref,m),g=X.useRef(null);X.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),X.useEffect((()=>{if(!l||!m.current)return;const e=mo(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]),X.useEffect((()=>{if(!l||!m.current)return;const e=mo(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{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(r&&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 n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.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=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return oa.jsxs(X.Fragment,{children:[oa.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),X.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),oa.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const ux=X.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=X.useState(null),l=yo(X.isValidElement(n)?n.ref:null,t);if(bo((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),bo((()=>{if(i&&!o)return go(t,i),()=>{go(t,null)}}),[t,i,o]),o){if(X.isValidElement(n)){const e={ref:l};return X.cloneElement(n,e)}return oa.jsx(X.Fragment,{children:n})}return oa.jsx(X.Fragment,{children:i?ry.createPortal(n,i):i})}));function cx(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function dx(e){return parseInt(ho(e).getComputedStyle(e).paddingRight,10)||0}function px(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&cx(e,o)}))}function fx(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function mx(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=mo(e);return t.body===e?ho(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(mo(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${dx(r)+e}px`;const t=mo(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${dx(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=mo(r).body;else{const t=r.parentElement,n=ho(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.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()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const hx=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&cx(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);px(t,e.mount,e.modalRef,r,!0);const o=fx(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=fx(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=mx(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=fx(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&cx(e.modalRef,t),px(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&cx(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function gx(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:o=!1,manager:i=hx,closeAfterTransition:a=!1,onTransitionEnter:l,onTransitionExited:s,children:u,onClose:c,open:d,rootRef:p}=e,f=X.useRef({}),m=X.useRef(null),h=X.useRef(null),g=yo(h,p),[b,v]=X.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(f.current.modalRef=h.current,f.current.mount=m.current,f.current),E=()=>{i.mount(S(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},w=vo((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||mo(m.current).body;i.add(S(),e),h.current&&E()})),C=X.useCallback((()=>i.isTopModal(S())),[i]),R=vo((e=>{m.current=e,e&&(d&&C()?E():h.current&&cx(h.current,x))})),k=X.useCallback((()=>{i.remove(S(),x)}),[x,i]);X.useEffect((()=>()=>{k()}),[k]),X.useEffect((()=>{d?w():y&&a||k()}),[d,k,y,a,w]);const A=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(r||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},L=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Ly(e);delete r.onTransitionEnter,delete r.onTransitionExited;const o=n({},r,t);return n({role:"presentation"},o,{onKeyDown:A(o),ref:g})},getBackdropProps:(e={})=>n({"aria-hidden":!0},e,{onClick:L(e),open:d}),getTransitionProps:()=>({onEnter:fo((()=>{v(!1),l&&l()}),null==u?void 0:u.props.onEnter),onExited:fo((()=>{v(!0),s&&s(),a&&k()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:R,isTopModal:C,exited:b,hasTransition:y}}const bx=["onChange","maxRows","minRows","style","value"];function vx(e){return parseInt(e,10)||0}const yx={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function xx(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Sx=X.forwardRef((function(e,t){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:l}=e,s=d(e,bx),{current:u}=X.useRef(null!=l),c=X.useRef(null),p=yo(t,c),f=X.useRef(null),m=X.useRef(0),[h,g]=X.useState({outerHeightStyle:0}),b=X.useCallback((()=>{const t=c.current,n=ho(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const r=f.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=n.boxSizing,l=vx(n.paddingBottom)+vx(n.paddingTop),s=vx(n.borderBottomWidth)+vx(n.borderTopWidth),u=r.scrollHeight;r.value="x";const d=r.scrollHeight;let p=u;i&&(p=Math.max(Number(i)*d,p)),o&&(p=Math.min(Number(o)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===a?l+s:0),overflow:Math.abs(p-u)<=1}}),[o,i,e.placeholder]),v=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return m.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(m.current+=1,{overflow:r,outerHeightStyle:n}):e},y=X.useCallback((()=>{const e=b();xx(e)||g((t=>v(t,e)))}),[b]);bo((()=>{const e=()=>{m.current=0,(()=>{const e=b();xx(e)||ry.flushSync((()=>{g((t=>v(t,e)))}))})()};const t=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}(e),n=c.current,r=ho(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[b]),bo((()=>{y()})),X.useEffect((()=>{m.current=0}),[l]);return oa.jsxs(X.Fragment,{children:[oa.jsx("textarea",n({value:l,onChange:e=>{m.current=0,u||y(),r&&r(e)},ref:p,rows:i,style:n({height:h.outerHeightStyle,overflow:h.overflow?"hidden":void 0},a)},s)),oa.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:n({},yx,a,{paddingTop:0,paddingBottom:0})})]})}));function Ex({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var wx=X.createContext(void 0);function Cx(){return X.useContext(wx)}function Rx(e){return oa.jsx(ia,Me({},e,{defaultTheme:xl,themeId:_e}))}function kx(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Ax(e,t=!1){return e&&(kx(e.value)&&""!==e.value||t&&kx(e.defaultValue)&&""!==e.defaultValue)}function Lx(e){return Qa("MuiInputBase",e)}var Px=Za("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const Ix=["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"],Dx=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${La(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},_x=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Mx=kl("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Dx})((({theme:e,ownerState:t})=>Me({},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",[`&.${Px.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Me({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Tx=kl("input",{name:"MuiInputBase",slot:"Input",overridesResolver:_x})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Me({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.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:n?.42:.5};return Me({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":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Px.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},[`&.${Px.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"})})),Ox=oa.jsx(Rx,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Nx=X.forwardRef((function(e,t){var n;const r=El({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:y,minRows:x,multiline:S=!1,name:E,onBlur:w,onChange:C,onClick:R,onFocus:k,onKeyDown:A,onKeyUp:L,placeholder:P,readOnly:I,renderSuffix:D,rows:_,slotProps:M={},slots:T={},startAdornment:O,type:N="text",value:q}=r,z=Te(r,Ix),F=null!=b.value?b.value:q,{current:j}=X.useRef(null!=F),$=X.useRef(),B=X.useCallback((e=>{}),[]),H=qa($,v,b.ref,B),[W,V]=X.useState(!1),U=Cx(),G=Ex({props:r,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});G.focused=U?U.focused:W,X.useEffect((()=>{!U&&d&&W&&(V(!1),w&&w())}),[U,d,W,w]);const Y=U&&U.onFilled,K=U&&U.onEmpty,J=X.useCallback((e=>{Ax(e)?Y&&Y():K&&K()}),[Y,K]);Da((()=>{j&&J({value:F})}),[F,J,j]);X.useEffect((()=>{J($.current)}),[]);let Q=g,Z=b;S&&"input"===Q&&(Z=Me(_?{type:void 0,minRows:_,maxRows:_}:{type:void 0,maxRows:y,minRows:x},Z),Q=Sx);X.useEffect((()=>{U&&U.setAdornedStart(Boolean(O))}),[U,O]);const ee=Me({},r,{color:G.color||"primary",disabled:G.disabled,endAdornment:f,error:G.error,focused:G.focused,formControl:U,fullWidth:m,hiddenLabel:G.hiddenLabel,multiline:S,size:G.size,startAdornment:O,type:N}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return To({root:["root",`color${La(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${La(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Lx,t)})(ee),ne=T.root||s.Root||Mx,re=M.root||u.root||{},oe=T.input||s.Input||Tx;return Z=Me({},Z,null!=(n=M.input)?n:u.input),oa.jsxs(X.Fragment,{children:[!p&&Ox,oa.jsxs(ne,Me({},re,!Ay(ne)&&{ownerState:Me({},ee,re.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),R&&R(e)}},z,{className:Pl(te.root,re.className,l,I&&"MuiInputBase-readOnly"),children:[O,oa.jsx(wx.Provider,{value:null,children:oa.jsx(oe,Me({ownerState:ee,"aria-invalid":G.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:G.disabled,id:h,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:E,placeholder:P,readOnly:I,required:G.required,rows:_,value:F,onKeyDown:A,onKeyUp:L,type:N},Z,!Ay(oe)&&{as:Q,ownerState:Me({},ee,Z.ownerState)},{ref:H,className:Pl(te.input,Z.className,I&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),U&&U.onBlur?U.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||$.current;if(null==t)throw new Error(De(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{G.disabled?e.stopPropagation():(k&&k(e),b.onFocus&&b.onFocus(e),U&&U.onFocus?U.onFocus(e):V(!0))}}))}),f,D?D(Me({},G,{startAdornment:O})):null]}))]})}));var qx=Nx;function zx(e){return Qa("MuiInput",e)}var Fx=Me({},Px,Za("MuiInput",["root","underline","input"]));function jx(e){return Qa("MuiOutlinedInput",e)}var $x=Me({},Px,Za("MuiOutlinedInput",["root","notchedOutline","input"]));function Bx(e){return Qa("MuiFilledInput",e)}var Hx=Me({},Px,Za("MuiFilledInput",["root","underline","input"])),Wx=function(e,t){function n(n,r){return oa.jsx(Tl,Me({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Tl.muiName,X.memo(X.forwardRef(n))}(oa.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Vx=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Ux={entering:{opacity:1},entered:{opacity:1}},Gx=X.forwardRef((function(e,t){const n=Sl(),r={enter:n.transitions.duration.enteringScreen,exit:n.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=r,TransitionComponent:b=my}=e,v=Te(e,Vx),y=X.useRef(null),x=qa(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),w=S(((e,t)=>{Sy(e);const r=Ey({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),C=S(c),R=S(m),k=S((e=>{const t=Ey({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),A=S(f);return oa.jsx(b,Me({appear:i,in:s,nodeRef:y,onEnter:w,onEntered:C,onEntering:E,onExit:k,onExited:A,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>X.cloneElement(a,Me({style:Me({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},Ux[e],h,a.props.style),ref:x},t))}))}));var Yx=Gx;function Kx(e){return Qa("MuiBackdrop",e)}Za("MuiBackdrop",["root","invisible"]);const Xx=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Jx=kl("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Me({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"}))),Qx=X.forwardRef((function(e,t){var n,r,o;const i=El({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=Yx,transitionDuration:g}=i,b=Te(i,Xx),v=Me({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return To({root:["root",n&&"invisible"]},Kx,t)})(v),x=null!=(n=f.root)?n:c.root;return oa.jsx(h,Me({in:p,timeout:g},b,{children:oa.jsx(Jx,Me({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:Pl(y.root,l,null==x?void 0:x.className),ownerState:Me({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var Zx=Qx;var eS=Za("MuiBox",["root"]);const tS=yl(),nS=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:o="MuiBox-root",generateClassName:i}=e,a=Mr("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Bi);return X.forwardRef((function(e,l){const s=Yi(r),u=sa(e),{className:c,component:p="div"}=u,f=d(u,ua);return oa.jsx(a,n({as:p,ref:l,className:Ho(c,i?i(o):o),theme:t&&s[t]||s},f))}))}({themeId:_e,defaultTheme:tS,defaultClassName:eS.root,generateClassName:Xa.generate});var rS=nS;function oS(e){return Qa("MuiButton",e)}var iS=Za("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 aS=X.createContext({});var lS=X.createContext(void 0);const sS=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],uS=e=>Me({},"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}}),cS=kl(Jy,{shouldForwardProp:e=>wl(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${La(n.color)}`],t[`size${La(n.size)}`],t[`${n.variant}Size${La(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;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 Me({},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":Me({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ca(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})`:Ca(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})`:Ca(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":Me({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${iS.focusVisible}`]:Me({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${iS.disabled}`]:Me({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 ${Ca(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,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"},[`&.${iS.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${iS.disabled}`]:{boxShadow:"none"}})),dS=kl("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${La(n.size)}`]]}})((({ownerState:e})=>Me({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},uS(e)))),pS=kl("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${La(n.size)}`]]}})((({ownerState:e})=>Me({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},uS(e)))),fS=X.forwardRef((function(e,t){const n=X.useContext(aS),r=X.useContext(lS),o=El({props:Ya(n,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,y=Te(o,sS),x=Me({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:v}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Me({},a,To({root:["root",i,`${i}${La(t)}`,`size${La(o)}`,`${i}Size${La(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${La(o)}`],endIcon:["endIcon",`iconSize${La(o)}`]},oS,a))})(x),E=g&&oa.jsx(dS,{className:S.startIcon,ownerState:x,children:g}),w=p&&oa.jsx(pS,{className:S.endIcon,ownerState:x,children:p}),C=r||"";return oa.jsxs(cS,Me({ownerState:x,className:Pl(n.className,S.root,s,C),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:Pl(S.focusVisible,f),ref:t,type:b},y,{classes:S,children:[E,i,w]}))}));var mS=fS;function hS(e){return Qa("MuiModal",e)}Za("MuiModal",["root","hidden","backdrop"]);const gS=["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"],bS=kl("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Me({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),vS=kl(Zx,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),yS=X.forwardRef((function(e,t){var n,r,o,i,a,l;const s=El({name:"MuiModal",props:e}),{BackdropComponent:u=vS,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:w=!1,hideBackdrop:C=!1,keepMounted:R=!1,onBackdropClick:k,open:A,slotProps:L,slots:P}=s,I=Te(s,gS),D=Me({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:w,hideBackdrop:C,keepMounted:R}),{getRootProps:_,getBackdropProps:M,getTransitionProps:T,portalRef:O,isTopModal:N,exited:q,hasTransition:z}=gx(Me({},D,{rootRef:t})),F=Me({},D,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return To({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},hS,r)})(F),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),z){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(r=null==P?void 0:P.root)?r:g.Root)?n:bS,H=null!=(o=null!=(i=null==P?void 0:P.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==L?void 0:L.root)?a:b.root,V=null!=(l=null==L?void 0:L.backdrop)?l:b.backdrop,U=Dy({elementType:B,externalSlotProps:W,externalForwardedProps:I,getSlotProps:_,additionalProps:{ref:t,as:h},ownerState:F,className:Pl(d,null==W?void 0:W.className,null==j?void 0:j.root,!F.open&&F.exited&&(null==j?void 0:j.hidden))}),G=Dy({elementType:H,externalSlotProps:V,additionalProps:c,getSlotProps:e=>M(Me({},e,{onClick:t=>{k&&k(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Pl(null==V?void 0:V.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:F});return R||A||z&&!q?oa.jsx(ux,{ref:O,container:m,disablePortal:S,children:oa.jsxs(B,Me({},U,{children:[!C&&u?oa.jsx(H,Me({},G)):null,oa.jsx(sx,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:E,isEnabled:N,open:A,children:X.cloneElement(f,$)})]}))}):null}));var xS=yS;function SS(e){return Qa("MuiDivider",e)}var ES=Za("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const wS=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],CS=kl("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Me({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)`:Ca(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})=>Me({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Me({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Me({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Me({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),RS=kl("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Me({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)`}))),kS=X.forwardRef((function(e,t){const n=El({props:e,name:"MuiDivider"}),{absolute:r=!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"}=n,f=Te(n,wS),m=Me({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return To({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},SS,r)})(m);return oa.jsx(CS,Me({as:a,className:Pl(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?oa.jsx(RS,{className:h.wrapper,ownerState:m,children:o}):null}))}));kS.muiSkipListHighlight=!0;var AS=kS;const LS=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],PS=kl(Mx,{shouldForwardProp:e=>wl(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Dx(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Me({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}},[`&.${Hx.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Hx.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.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"},[`&.${Hx.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Hx.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(.${Hx.disabled}, .${Hx.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Hx.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Me({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}))})),IS=kl(Tx,{name:"MuiFilledInput",slot:"Input",overridesResolver:_x})((({theme:e,ownerState:t})=>Me({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}))),DS=X.forwardRef((function(e,t){var n,r,o,i;const a=El({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=Te(a,LS),g=Me({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:n}=e;return Me({},t,To({root:["root",!n&&"underline"],input:["input"]},Bx,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Aa(v,null!=p?p:s):v,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:PS,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:IS;return oa.jsx(qx,Me({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));DS.muiName="Input";var _S=DS;const MS=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function TS(e){return`scale(${e}, ${e**2})`}const OS={entering:{opacity:1,transform:TS(1)},entered:{opacity:1,transform:"none"}},NS="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),qS=X.forwardRef((function(e,t){const{addEndListener:n,appear:r=!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=my}=e,g=Te(e,MS),b=X.useRef(),v=X.useRef(),y=Sl(),x=X.useRef(null),S=qa(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},w=E(u),C=E(((e,t)=>{Sy(e);const{duration:n,delay:r,easing:o}=Ey({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:NS?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),k=E(p),A=E((e=>{const{duration:t,delay:n,easing:r}=Ey({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:NS?o:.666*o,delay:NS?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=TS(.75),c&&c(e)})),L=E(d);return X.useEffect((()=>()=>{clearTimeout(b.current)}),[]),oa.jsx(h,Me({appear:r,in:a,nodeRef:x,onEnter:C,onEntered:R,onEntering:w,onExit:A,onExited:L,onExiting:k,addEndListener:e=>{"auto"===m&&(b.current=setTimeout(e,v.current||0)),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>X.cloneElement(o,Me({style:Me({opacity:0,transform:TS(.75),visibility:"exited"!==e||a?void 0:"hidden"},OS[e],f,o.props.style),ref:S},t))}))}));qS.muiSupportAuto=!0;var zS=qS;const FS=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],jS=kl(Mx,{shouldForwardProp:e=>wl(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Dx(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Me({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"},[`&.${Fx.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Fx.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,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(.${Fx.disabled}, .${Fx.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Fx.disabled}:before`]:{borderBottomStyle:"dotted"}})})),$S=kl(Tx,{name:"MuiInput",slot:"Input",overridesResolver:_x})({}),BS=X.forwardRef((function(e,t){var n,r,o,i;const a=El({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=Te(a,FS),b=(e=>{const{classes:t,disableUnderline:n}=e;return Me({},t,To({root:["root",!n&&"underline"],input:["input"]},zx,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Aa(null!=f?f:u,v):v,x=null!=(n=null!=(r=m.root)?r:s.Root)?n:jS,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:$S;return oa.jsx(qx,Me({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));BS.muiName="Input";var HS=BS;function WS(e){return Qa("MuiLink",e)}var VS=Za("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const US={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var GS=({theme:e,ownerState:t})=>{const n=(e=>US[e]||e)(t.color),r=Jo(e,`palette.${n}`,!1)||t.color,o=Jo(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Ca(r,.4)};const YS=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],KS=kl(ox,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${La(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>Me({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Me({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:GS({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"},[`&.${VS.focusVisible}`]:{outline:"auto"}}))),XS=X.forwardRef((function(e,t){const n=El({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=n,p=Te(n,YS),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=Ga(),[b,v]=X.useState(!1),y=qa(t,g),x=Me({},n,{color:o,component:i,focusVisible:b,underline:u,variant:c}),S=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return To({root:["root",`underline${La(o)}`,"button"===n&&"button",r&&"focusVisible"]},WS,t)})(x);return oa.jsx(KS,Me({color:o,className:Pl(S.root,r),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:y,ownerState:x,variant:c,sx:[...Object.keys(US).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var JS=XS;var QS=X.createContext({});function ZS(e){return Qa("MuiList",e)}Za("MuiList",["root","padding","dense","subheader"]);const eE=["children","className","component","dense","disablePadding","subheader"],tE=kl("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Me({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var nE=X.forwardRef((function(e,t){const n=El({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=Te(n,eE),c=X.useMemo((()=>({dense:a})),[a]),d=Me({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return To({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},ZS,t)})(d);return oa.jsx(QS.Provider,{value:c,children:oa.jsxs(tE,Me({as:i,className:Pl(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function rE(e){return Qa("MuiListItemIcon",e)}var oE=Za("MuiListItemIcon",["root","alignItemsFlexStart"]);const iE=["className"],aE=kl("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Me({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var lE=X.forwardRef((function(e,t){const n=El({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Te(n,iE),i=Me({},n,{alignItems:X.useContext(QS).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return To({root:["root","flex-start"===t&&"alignItemsFlexStart"]},rE,n)})(i);return oa.jsx(aE,Me({className:Pl(a.root,r),ownerState:i,ref:t},o))}));var sE=Za("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const uE=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function cE(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function dE(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function pE(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function fE(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&pE(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var mE=X.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Te(e,uE),p=X.useRef(null),f=X.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Da((()=>{r&&p.current.focus()}),[r]),X.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(Pa(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=qa(p,t);let h=-1;X.Children.forEach(i,((e,t)=>{X.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=X.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),X.cloneElement(e,t)}return e}));return oa.jsx(nE,Me({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Pa(t).activeElement;if("ArrowDown"===n)e.preventDefault(),fE(t,r,s,l,cE);else if("ArrowUp"===n)e.preventDefault(),fE(t,r,s,l,dE);else if("Home"===n)e.preventDefault(),fE(t,null,s,l,cE);else if("End"===n)e.preventDefault(),fE(t,null,s,l,dE);else if(1===n.length){const o=f.current,i=n.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=r&&!o.repeating&&pE(r,o);o.previousKeyMatched&&(s||fE(t,r,!1,l,cE,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function hE(e){return Qa("MuiPopover",e)}Za("MuiPopover",["root","paper"]);const gE=["onEntering"],bE=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],vE=["slotProps"];function yE(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function xE(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function SE(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function EE(e){return"function"==typeof e?e():e}const wE=kl(xS,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),CE=kl(ky,{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 RE=X.forwardRef((function(e,t){var n,r,o;const i=El({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:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=zS,transitionDuration:E="auto",TransitionProps:{onEntering:w}={},disableScrollLock:C=!1}=i,R=Te(i.TransitionProps,gE),k=Te(i,bE),A=null!=(n=null==y?void 0:y.paper)?n:b,L=X.useRef(),P=qa(L,A.ref),I=Me({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:A,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),D=(e=>{const{classes:t}=e;return To({root:["root"],paper:["paper"]},hE,t)})(I),_=X.useCallback((()=>{if("anchorPosition"===c)return u;const e=EE(l),t=(e&&1===e.nodeType?e:Pa(L.current).body).getBoundingClientRect();return{top:t.top+yE(t,s.vertical),left:t.left+xE(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),M=X.useCallback((e=>({vertical:yE(e,x.vertical),horizontal:xE(e,x.horizontal)})),[x.horizontal,x.vertical]),T=X.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=M(t);if("none"===c)return{top:null,left:null,transformOrigin:SE(n)};const r=_();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=Ia(EE(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:SE(n)}}),[l,c,_,M,h]),[O,N]=X.useState(g),q=X.useCallback((()=>{const e=L.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);X.useEffect((()=>(C&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,C,q]);X.useEffect((()=>{g&&q()})),X.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),X.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{q()})),t=Ia(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,q]);let z=E;"auto"!==E||S.muiSupportAuto||(z=void 0);const F=f||(l?Pa(EE(l)).body:void 0),j=null!=(r=null==v?void 0:v.root)?r:wE,$=null!=(o=null==v?void 0:v.paper)?o:CE,B=Dy({elementType:$,externalSlotProps:Me({},A,{style:O?A.style:Me({},A.style,{opacity:0})}),additionalProps:{elevation:m,ref:P},ownerState:I,className:Pl(D.paper,null==A?void 0:A.className)}),H=Dy({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:k,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:I,className:Pl(D.root,p)}),{slotProps:W}=H,V=Te(H,vE);return oa.jsx(j,Me({},V,!Ay(j)&&{slotProps:W,disableScrollLock:C},{children:oa.jsx(S,Me({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),q()},onExited:()=>{N(!1)},timeout:z},R,{children:oa.jsx($,Me({},B,{children:d}))}))}))}));function kE(e){return Qa("MuiMenu",e)}Za("MuiMenu",["root","paper","list"]);const AE=["onEntering"],LE=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],PE={vertical:"top",horizontal:"right"},IE={vertical:"top",horizontal:"left"},DE=kl(RE,{shouldForwardProp:e=>wl(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_E=kl(CE,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ME=kl(mE,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var TE=X.forwardRef((function(e,t){var n,r;const o=El({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,y=Te(o.TransitionProps,AE),x=Te(o,LE),S=Sl(),E="rtl"===S.direction,w=Me({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return To({root:["root"],paper:["paper"],list:["list"]},kE,t)})(w),R=i&&!s&&d,k=X.useRef(null);let A=-1;X.Children.map(a,((e,t)=>{X.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===A)&&(A=t))}));const L=null!=(n=b.paper)?n:_E,P=null!=(r=v.paper)?r:p,I=Dy({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[C.root,l]}),D=Dy({elementType:L,externalSlotProps:P,ownerState:w,className:C.paper});return oa.jsx(DE,Me({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?PE:IE,slots:{paper:L,root:b.root},slotProps:{root:I,paper:D},open:d,ref:t,transitionDuration:m,TransitionProps:Me({onEntering:(e,t)=>{k.current&&k.current.adjustStyleForScrollbar(e,S),h&&h(e,t)}},y),ownerState:w},x,{classes:f,children:oa.jsx(ME,Me({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:k,autoFocus:i&&(-1===A||s),autoFocusItem:R,variant:g},u,{className:Pl(C.list,u.className),children:a}))}))}));function OE(e){return Qa("MuiMenuItem",e)}var NE=Za("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const qE=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],zE=kl(Jy,{shouldForwardProp:e=>wl(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Me({},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"}},[`&.${NE.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ca(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${NE.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ca(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${NE.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ca(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})`:Ca(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${NE.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${NE.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ES.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ES.inset}`]:{marginLeft:52},[`& .${sE.root}`]:{marginTop:0,marginBottom:0},[`& .${sE.inset}`]:{paddingLeft:36},[`& .${oE.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Me({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${oE.root} svg`]:{fontSize:"1.25rem"}}))));var FE=X.forwardRef((function(e,t){const n=El({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=Te(n,qE),f=X.useContext(QS),m=X.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=X.useRef(null);Da((()=>{r&&h.current&&h.current.focus()}),[r]);const g=Me({},n,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Me({},a,To({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},OE,a))})(n),v=qa(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),oa.jsx(QS.Provider,{value:m,children:oa.jsx(zE,Me({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:Pl(b.focusVisible,s),className:Pl(b.root,d)},p,{ownerState:g,classes:b}))})}));function jE(e){return Qa("MuiNativeSelect",e)}var $E=Za("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const BE=["className","disabled","error","IconComponent","inputRef","variant"],HE=({ownerState:e,theme:t})=>Me({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Me({},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"},[`&.${$E.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}}),WE=kl("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:wl,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${$E.multiple}`]:t.multiple}]}})(HE),VE=({ownerState:e,theme:t})=>Me({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${$E.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),UE=kl("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${La(n.variant)}`],n.open&&t.iconOpen]}})(VE),GE=X.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=Te(e,BE),u=Me({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return To({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${La(n)}`,i&&"iconOpen",r&&"disabled"]},jE,t)})(u);return oa.jsxs(X.Fragment,{children:[oa.jsx(WE,Me({ownerState:u,className:Pl(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:oa.jsx(UE,{as:i,ownerState:u,className:c.icon})]})}));var YE,KE=GE;const XE=["children","classes","className","label","notched"],JE=kl("fieldset",{shouldForwardProp:wl})({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%"}),QE=kl("legend",{shouldForwardProp:wl})((({ownerState:e,theme:t})=>Me({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&&Me({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 ZE=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],ew=kl(Mx,{shouldForwardProp:e=>wl(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Dx})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Me({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${$x.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${$x.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${$x.focused} .${$x.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${$x.error} .${$x.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${$x.disabled} .${$x.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Me({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),tw=kl((function(e){const{className:t,label:n,notched:r}=e,o=Te(e,XE),i=null!=n&&""!==n,a=Me({},e,{notched:r,withLabel:i});return oa.jsx(JE,Me({"aria-hidden":!0,className:t,ownerState:a},o,{children:oa.jsx(QE,{ownerState:a,children:i?oa.jsx("span",{children:n}):YE||(YE=oa.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}})),nw=kl(Tx,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:_x})((({theme:e,ownerState:t})=>Me({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}))),rw=X.forwardRef((function(e,t){var n,r,o,i,a;const l=El({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=Te(l,ZE),b=(e=>{const{classes:t}=e;return Me({},t,To({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},jx,t))})(l),v=Cx(),y=Ex({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=Me({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:h}),S=null!=(n=null!=(r=m.root)?r:s.Root)?n:ew,E=null!=(o=null!=(i=m.input)?i:s.Input)?o:nw;return oa.jsx(qx,Me({slots:{root:S,input:E},renderSuffix:e=>oa.jsx(tw,{ownerState:x,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=oa.jsxs(X.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:Me({},b,{notchedOutline:null})}))}));rw.muiName="Input";var ow=rw;function iw(e){return Qa("MuiSelect",e)}var aw,lw=Za("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const sw=["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"],uw=kl("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${lw.select}`]:t.select},{[`&.${lw.select}`]:t[n.variant]},{[`&.${lw.error}`]:t.error},{[`&.${lw.multiple}`]:t.multiple}]}})(HE,{[`&.${lw.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),cw=kl("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${La(n.variant)}`],n.open&&t.iconOpen]}})(VE),dw=kl("input",{shouldForwardProp:e=>Cl(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 pw(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function fw(e){return null==e||"string"==typeof e&&!e.trim()}const mw=X.forwardRef((function(e,t){var n;const{"aria-describedby":r,"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:y,onBlur:x,onChange:S,onClose:E,onFocus:w,onOpen:C,open:R,readOnly:k,renderValue:A,SelectDisplayProps:L={},tabIndex:P,value:I,variant:D="standard"}=e,_=Te(e,sw),[M,T]=Oa({controlled:I,default:c,name:"Select"}),[O,N]=Oa({controlled:R,default:u,name:"Select"}),q=X.useRef(null),z=X.useRef(null),[F,j]=X.useState(null),{current:$}=X.useRef(null!=R),[B,H]=X.useState(),W=qa(t,h),V=X.useCallback((e=>{z.current=e,e&&j(e)}),[]),U=null==F?void 0:F.parentNode;X.useImperativeHandle(W,(()=>({focus:()=>{z.current.focus()},node:q.current,value:M})),[M]),X.useEffect((()=>{u&&O&&F&&!$&&(H(a?null:U.clientWidth),z.current.focus())}),[F,a]),X.useEffect((()=>{i&&z.current.focus()}),[i]),X.useEffect((()=>{if(!g)return;const e=Pa(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const G=(e,t)=>{e?C&&C(t):E&&E(t),$||(H(a?null:U.clientWidth),N(e))},Y=X.Children.toArray(l),K=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(M)?M.slice():[];const t=M.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),M!==n&&(T(n),S)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),S(o,e)}v||G(!1,t)}},J=null!==F&&O;let Q,Z;delete _["aria-invalid"];const ee=[];let te=!1;(Ax({value:M})||p)&&(A?Q=A(M):te=!0);const ne=Y.map((e=>{if(!X.isValidElement(e))return null;let t;if(v){if(!Array.isArray(M))throw new Error(De(2));t=M.some((t=>pw(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=pw(M,e.props.value),t&&te&&(Z=e.props.children);return X.cloneElement(e,{"aria-selected":t?"true":"false",onClick:K(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&&(Q=v?0===ee.length?null:ee.reduce(((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e)),[]):Z);let re,oe=B;!a&&$&&F&&(oe=U.clientWidth),re=void 0!==P?P:d?null:0;const ie=L.id||(y?`mui-component-select-${y}`:void 0),ae=Me({},e,{variant:D,value:M,open:J,error:f}),le=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return To({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${La(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},iw,t)})(ae),se=Me({},b.PaperProps,null==(n=b.slotProps)?void 0:n.paper),ue=Ta();return oa.jsxs(X.Fragment,{children:[oa.jsx(uw,Me({ref:V,tabIndex:re,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":r,onKeyDown:e=>{if(!k){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),G(!0,e))}},onMouseDown:d||k?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),G(!0,e))},onBlur:e=>{!J&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:M,name:y}}),x(e))},onFocus:w},L,{ownerState:ae,className:Pl(L.className,le.select,s),id:ie,children:fw(Q)?aw||(aw=oa.jsx("span",{className:"notranslate",children:"​"})):Q})),oa.jsx(dw,Me({"aria-invalid":f,value:Array.isArray(M)?M.join(","):M,name:y,ref:q,"aria-hidden":!0,onChange:e=>{const t=Y.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},_)),oa.jsx(cw,{as:m,className:le.icon,ownerState:ae}),oa.jsx(TE,Me({id:`menu-${y||""}`,anchorEl:U,open:J,onClose:e=>{G(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Me({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:Me({},b.slotProps,{paper:Me({},se,{style:Me({minWidth:oe},null!=se?se.style:null)})}),children:ne}))]})}));var hw=mw;const gw=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],bw=["root"],vw={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>wl(e)&&"variant"!==e,slot:"Root"},yw=kl(HS,vw)(""),xw=kl(ow,vw)(""),Sw=kl(_S,vw)(""),Ew=X.forwardRef((function(e,t){const n=El({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=Wx,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:E,variant:w="outlined"}=n,C=Te(n,gw),R=b?KE:hw,k=Ex({props:n,muiFormControl:Cx(),states:["variant","error"]}),A=k.variant||w,L=Me({},n,{variant:A,classes:i}),P=(e=>{const{classes:t}=e;return t})(L),I=Te(P,bw),D=d||{standard:oa.jsx(yw,{ownerState:L}),outlined:oa.jsx(xw,{label:f,ownerState:L}),filled:oa.jsx(Sw,{ownerState:L})}[A],_=qa(t,D.ref);return oa.jsx(X.Fragment,{children:X.cloneElement(D,Me({inputComponent:R,inputProps:Me({children:o,error:k.error,IconComponent:u,variant:A,type:void 0,multiple:g},b?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:Me({id:c},E)},p,{classes:p?Aa(I,p.classes):I},d?d.props.inputProps:{})},g&&b&&"outlined"===A?{notched:!0}:{},{ref:_,className:Pl(D.props.className,a,P.root)},!d&&{variant:A},C))})}));Ew.muiName="Select";var ww=Ew,Cw=(e={})=>J.createElement(be,{...e},J.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},J.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},J.createElement("rect",{stroke:ee.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const Rw={MuiAccordion:{styleOverrides:{root:{backgroundColor:ee.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:ee.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:J.createElement(me,{"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 ${ee.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:ee.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${ee.MISC_FOCUS_BORDER}`,borderRadius:ie,backgroundColor:ee.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 ${ee.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:ee.WHITE,color:ee.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:ie},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${ee.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:ee.GREYSCALE_0_15,backgroundColor:ee.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:ee.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${ee.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:ee.GREEN_PALE},"&:active":{backgroundColor:ee.GREEN_DARK},"&.Mui-focusVisible":{borderColor:ee.GREEN_PALE,boxShadow:`0 0 0 3px ${Ca(ee.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:ee.BLUE_PALE},"&:active":{backgroundColor:ee.BLUE_DARK},"&.Mui-focusVisible":{borderColor:ee.BLUE_PALE,boxShadow:`0 0 0 3px ${Ca(ee.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:ie,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:ee.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${ee.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:ee.GREYSCALE_0_15,backgroundColor:ee.GREYSCALE_100_60,"&:active":{backgroundColor:ee.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:ee.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${ee.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:ee.PURPLE,"&.Mui-focusVisible":{borderColor:ee.PURPLE,boxShadow:`0 0 0 3px ${Ca(ee.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:ee.GREEN,"&.Mui-focusVisible":{borderColor:ee.GREEN,boxShadow:`0 0 0 3px ${Ca(ee.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:ee.BLUE,"&.Mui-focusVisible":{borderColor:ee.BLUE,boxShadow:`0 0 0 3px ${Ca(ee.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:ee.ORANGE,"&.Mui-focusVisible":{borderColor:ee.ORANGE,boxShadow:`0 0 0 3px ${Ca(ee.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:ee.RED,"&.Mui-focusVisible":{borderColor:ee.RED,boxShadow:`0 0 0 3px ${Ca(ee.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:ee.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:ee.PURPLE_PALE},"&:active":{backgroundColor:ee.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:ee.PURPLE_PALE,boxShadow:`0 0 0 3px ${Ca(ee.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:ee.GREEN_PALE},"&:active":{backgroundColor:ee.GREEN_DARK},"&.Mui-focusVisible":{borderColor:ee.GREEN_PALE,boxShadow:`0 0 0 3px ${Ca(ee.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:ee.BLUE_PALE},"&:active":{backgroundColor:ee.BLUE_DARK},"&.Mui-focusVisible":{borderColor:ee.BLUE_PALE,boxShadow:`0 0 0 3px ${Ca(ee.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:ee.ORANGE_PALE},"&:active":{backgroundColor:ee.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:ee.ORANGE_PALE,boxShadow:`0 0 0 3px ${Ca(ee.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:ee.RED_PALE},"&:active":{backgroundColor:ee.RED_DARK},"&.Mui-focusVisible":{borderColor:ee.RED_PALE,boxShadow:`0 0 0 3px ${Ca(ee.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:ee.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:ee.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:ie,boxShadow:`inset 0 0 0 2px ${ee.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:J.createElement(ge,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:te,borderRadius:ie,color:ee.TEXT_PRIMARY,backgroundColor:ee.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:ee.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${ee.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:ee.GREYSCALE_0_05,color:ee.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:ee.GREEN,borderColor:ee.GREEN},"&.MuiChip-outlinedInfo":{color:ee.BLUE,borderColor:ee.BLUE},"&.MuiChip-outlinedWarning":{color:ee.ORANGE,borderColor:ee.ORANGE},"&.MuiChip-outlinedError":{color:ee.RED,borderColor:ee.RED}},outlined:{border:`solid 1px ${ee.GREYSCALE_0_15}`,backgroundColor:ee.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:ie,boxShadow:"none",backgroundColor:ee.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:ee.GREEN,borderColor:ee.GREEN},outlinedSecondary:{color:ee.BLUE,borderColor:ee.BLUE},label:{fontFamily:ce.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:J.createElement(ge,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:J.createElement(me,{"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:ie},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:ie,fontSize:ne,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:ee.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${ee.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:ee.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:ee.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:ee.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:ie,border:`solid 1px ${ee.GREYSCALE_0_15}`,color:ee.GREYSCALE_0_60,marginRight:0,width:oe,height:oe},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${ee.GREYSCALE_0_15}`},clearIndicator:{borderRadius:ie,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:ee.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:ne}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:te,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:ee.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:ee.GREYSCALE_25,fontSize:te,fontFamily:ce.FONT_FAMILY,fontWeight:se,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:ee.TEXT_PRIMARY},"&.Mui-error":{color:ee.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:ee.TEXT_SECONDARY,content:"'(optional)'",fontWeight:le,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:ee.TEXT_SECONDARY,content:"'(required)'",fontWeight:le,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:ne,lineHeight:"16px",backgroundColor:ee.WHITE,borderRadius:ie,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ee.GREYSCALE_0_05}`,borderColor:ee.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ee.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${ee.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${ee.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ee.RED}`,boxShadow:`0px 0px 0px 1px ${ee.RED}, inset 0 2px 0 0 ${ee.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ee.GREYSCALE_0_10}`,borderColor:ee.GREYSCALE_0_10,backgroundColor:ee.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:ee.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:ee.GREYSCALE_0_15,borderRadius:ie,boxShadow:`inset 0 2px 0 0 ${ee.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>J.createElement(me,{...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:ee.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:ee.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:ee.GREYSCALE_0_03},"&:active":{backgroundColor:ee.GREYSCALE_0_10},"&:focus":{backgroundColor:ee.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${ee.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${ee.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:ee.GREYSCALE_0_30,"&:hover":{backgroundColor:ee.GREYSCALE_0_0,borderColor:ee.GREYSCALE_0_15},"& ~svg":{color:ee.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${ee.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:ie}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:ee.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${ee.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:ee.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:ne,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:te,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:te,fontWeight:se,color:ee.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:se}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${ee.GREYSCALE_0_15}, 0px 0px 0px 1px ${ee.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:J.createElement(xe,null),checkedIcon:J.createElement(Se,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:ee.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${ee.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:ee.GREEN_PALE,boxShadow:`0 0 0 3px ${Ca(ee.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:ee.BLUE_PALE,boxShadow:`0 0 0 3px ${Ca(ee.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:ee.GREYSCALE_0_20}},"&.Mui-disabled":{fill:ee.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:J.createElement(Cw,null),checkedIcon:J.createElement(ve,null),indeterminateIcon:J.createElement(ye,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:ie,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:ee.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:ee.GREYSCALE_0_55,color:ee.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:ee.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:ee.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:ee.GREYSCALE_0_55,"&:hover":{color:ee.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:ee.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:ee.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:ne,color:ee.TEXT_PRIMARY,lineHeight:"16px",fontWeight:se},secondary:{fontSize:te,color:ee.GREYSCALE_45,fontWeight:le,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:ne,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:ee.GREYSCALE_0_03},"&:active":{backgroundColor:ee.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:ne,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:ee.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:te,borderBottom:`solid 1px ${ee.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:ne,color:ee.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:ee.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:ee.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:ee.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:ee.RED}}},"&.Mui-focusVisible":{backgroundColor:ee.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:ee.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:ee.GREEN,height:"24px","&.Mui-disabled":{color:ee.GREYSCALE_0_15}},rail:{backgroundColor:ee.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${ee.GREYSCALE_0_05}`,borderRadius:ie,boxShadow:`inset 0px 0px 0px 1px ${ee.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${ee.GREYSCALE_0_05}`,borderRadius:ie},thumb:{height:"16px",width:"16px",borderRadius:ie,backgroundColor:ee.WHITE,boxShadow:`0px 1px 2px 0px ${ee.GREYSCALE_0_15}, 0px 0px 0px 1px ${ee.GREYSCALE_0_05}`,"&:hover":{borderRadius:ie,boxShadow:`0 2px 4px 0 ${ee.GREYSCALE_0_30}, 0 0 0 1px ${ee.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${ee.GREYSCALE_0_15}, 0 0 0 1px ${ee.GREYSCALE_0_06}, 0 0 0 2px ${ee.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${ee.GREYSCALE_0_15}, 0 0 0 1px ${ee.GREYSCALE_0_06}, 0 0 0 2px ${ee.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:ee.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:ee.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:ee.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:ee.GREYSCALE_0_15},markLabel:{color:ee.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:ee.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:ee.WHITE,color:ee.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:ee.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:ee.GREEN_PALE,boxShadow:`0 0 0 3px ${Ca(ee.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:ee.BLUE_PALE,boxShadow:`0 0 0 3px ${Ca(ee.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:ee.GREYSCALE_0_15,borderRadius:ie},thumb:{height:"16px",width:"16px",borderRadius:ie,backgroundColor:ee.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:ne,fontWeight:se,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${ee.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${ee.MISC_FOCUS_BORDER}`,backgroundColor:ee.GREYSCALE_0_03,borderRadius:ie},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:ee.GREYSCALE_25,"&.Mui-selected":{color:ee.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:ne,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${ee.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${ee.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${ee.GREYSCALE_85}`,borderRight:`1px solid ${ee.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:se,backgroundColor:ee.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:ee.GREYSCALE_98,borderBottom:`1px solid ${ee.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${ee.GREYSCALE_85}`,borderTop:`1px solid ${ee.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:ee.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:ee.GREYSCALE_0_05,"&:hover":{backgroundColor:ee.GREYSCALE_0_03}},"&&:hover":{backgroundColor:ee.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>J.createElement(Ee,{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 ${ee.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:ne,borderRadius:ie,padding:"7px 16px",border:`1px solid ${ee.GREYSCALE_0_15}`,backgroundColor:ee.GREYSCALE_100_60,color:ee.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:ee.GREYSCALE_0_10,border:`1px solid ${ee.GREYSCALE_0_30}`},"&:hover":{backgroundColor:ee.GREYSCALE_0_03,border:`1px solid ${ee.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:ee.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${ee.MISC_FOCUS_BORDER}`,border:`1px solid ${ee.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:ee.GREYSCALE_25,backgroundColor:ee.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:ee.GREYSCALE_0_10,border:`1px solid ${ee.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:te,height:24,width:24,padding:7},sizeLarge:{fontSize:re,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:ne,borderRadius:ie}}},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:ee.GREYSCALE_20},tooltip:{backgroundColor:ee.GREYSCALE_20,fontSize:te,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const kw={mode:"light",primary:{light:ee.GREEN_PALE,main:ee.GREEN,dark:ee.GREEN_DARK,contrastText:ee.WHITE},secondary:{light:ee.BLUE_PALE,main:ee.BLUE,dark:ee.BLUE_DARK,contrastText:ee.WHITE},error:{light:ee.RED_PALE,main:ee.RED,dark:ee.RED_DARK,contrastText:ee.WHITE},warning:{light:ee.ORANGE_PALE,main:ee.ORANGE,dark:ee.ORANGE_DARK,contrastText:ee.WHITE},success:{light:ee.GREEN_PALE,main:ee.GREEN,dark:ee.GREEN_DARK,contrastText:ee.WHITE},info:{light:ee.BLUE_PALE,main:ee.BLUE,dark:ee.BLUE_DARK,contrastText:ee.WHITE},text:{primary:ee.TEXT_PRIMARY,secondary:ee.TEXT_SECONDARY,disabled:ee.GREYSCALE_0_30},action:{hover:ee.GREYSCALE_0_03,hoverOpacity:.05,selected:ee.GREYSCALE_0_05,focus:ee.MISC_FOCUS_BORDER},amethyst:{main:ee.PURPLE,light:ee.PURPLE_PALE,dark:ee.PURPLE_DARK,contrastText:ee.WHITE},background:{paper:ee.WHITE,default:ee.GREYSCALE_95},divider:ee.GREYSCALE_0_15},Aw=e=>({components:Rw,palette:kw,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:ne,fontWeightLight:ae,fontWeightRegular:le,fontWeightMedium:se,fontWeightBold:ue,htmlFontSize:ne,fontFamily:ce.FONT_FAMILY,button:{fontWeight:se,fontSize:ne,textTransform:"none"},body1:{fontSize:re,lineHeight:"24px"},body2:{fontSize:ne,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:oe,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:re,fontWeight:se,lineHeight:"16px"},h6:{fontSize:ne,fontWeight:se,lineHeight:"16px"},caption:{color:ee.TEXT_SECONDARY},subtitle1:{fontSize:ne,color:ee.TEXT_SECONDARY},subtitle2:{fontSize:te,color:ee.TEXT_SECONDARY}},shape:{borderRadius:ie}}),Lw={...Z,MISC_FOCUS_BORDER:ee.MISC_FOCUS_BORDER},Pw=Aw().palette,Iw={TEXT:Pw.text.primary,DISABLED:Pw.text.disabled,HOVER:Pw.action.hover,WHITE:Lw.GREYSCALE_100,BORDER_LIGHT:Lw.GREYSCALE_90,BORDER_MEDIUM:Lw.GREYSCALE_85,BORDER_HEAVY:Lw.GREYSCALE_50,DARK_MODE_TEXT:Lw.GREYSCALE_95,DARK_MODE_BORDER:Lw.GREYSCALE_95,DARK_MODE_DISABLED:Lw.GREYSCALE_70,DARK_MODE_BACKGROUND:Lw.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:Lw.GREYSCALE_95};function Dw(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function _w(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Mw(){}var Tw=.7,Ow=1/Tw,Nw="\\s*([+-]?\\d+)\\s*",qw="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",zw="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Fw=/^#([0-9a-f]{3,8})$/,jw=new RegExp(`^rgb\\(${Nw},${Nw},${Nw}\\)$`),$w=new RegExp(`^rgb\\(${zw},${zw},${zw}\\)$`),Bw=new RegExp(`^rgba\\(${Nw},${Nw},${Nw},${qw}\\)$`),Hw=new RegExp(`^rgba\\(${zw},${zw},${zw},${qw}\\)$`),Ww=new RegExp(`^hsl\\(${qw},${zw},${zw}\\)$`),Vw=new RegExp(`^hsla\\(${qw},${zw},${zw},${qw}\\)$`),Uw={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 Gw(){return this.rgb().formatHex()}function Yw(){return this.rgb().formatRgb()}function Kw(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Fw.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Xw(t):3===n?new eC(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Jw(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Jw(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=jw.exec(e))?new eC(t[1],t[2],t[3],1):(t=$w.exec(e))?new eC(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Bw.exec(e))?Jw(t[1],t[2],t[3],t[4]):(t=Hw.exec(e))?Jw(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ww.exec(e))?aC(t[1],t[2]/100,t[3]/100,1):(t=Vw.exec(e))?aC(t[1],t[2]/100,t[3]/100,t[4]):Uw.hasOwnProperty(e)?Xw(Uw[e]):"transparent"===e?new eC(NaN,NaN,NaN,0):null}function Xw(e){return new eC(e>>16&255,e>>8&255,255&e,1)}function Jw(e,t,n,r){return r<=0&&(e=t=n=NaN),new eC(e,t,n,r)}function Qw(e){return e instanceof Mw||(e=Kw(e)),e?new eC((e=e.rgb()).r,e.g,e.b,e.opacity):new eC}function Zw(e,t,n,r){return 1===arguments.length?Qw(e):new eC(e,t,n,null==r?1:r)}function eC(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function tC(){return`#${iC(this.r)}${iC(this.g)}${iC(this.b)}`}function nC(){const e=rC(this.opacity);return`${1===e?"rgb(":"rgba("}${oC(this.r)}, ${oC(this.g)}, ${oC(this.b)}${1===e?")":`, ${e})`}`}function rC(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function oC(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function iC(e){return((e=oC(e))<16?"0":"")+e.toString(16)}function aC(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new sC(e,t,n,r)}function lC(e){if(e instanceof sC)return new sC(e.h,e.s,e.l,e.opacity);if(e instanceof Mw||(e=Kw(e)),!e)return new sC;if(e instanceof sC)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new sC(a,l,s,e.opacity)}function sC(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function uC(e){return(e=(e||0)%360)<0?e+360:e}function cC(e){return Math.max(0,Math.min(1,e||0))}function dC(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Dw(Mw,Kw,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Gw,formatHex:Gw,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return lC(this).formatHsl()},formatRgb:Yw,toString:Yw}),Dw(eC,Zw,_w(Mw,{brighter(e){return e=null==e?Ow:Math.pow(Ow,e),new eC(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Tw:Math.pow(Tw,e),new eC(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new eC(oC(this.r),oC(this.g),oC(this.b),rC(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:tC,formatHex:tC,formatHex8:function(){return`#${iC(this.r)}${iC(this.g)}${iC(this.b)}${iC(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:nC,toString:nC})),Dw(sC,(function(e,t,n,r){return 1===arguments.length?lC(e):new sC(e,t,n,null==r?1:r)}),_w(Mw,{brighter(e){return e=null==e?Ow:Math.pow(Ow,e),new sC(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Tw:Math.pow(Tw,e),new sC(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,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new eC(dC(e>=240?e-240:e+120,o,r),dC(e,o,r),dC(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new sC(uC(this.h),cC(this.s),cC(this.l),rC(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=rC(this.opacity);return`${1===e?"hsl(":"hsla("}${uC(this.h)}, ${100*cC(this.s)}%, ${100*cC(this.l)}%${1===e?")":`, ${e})`}`}}));const pC=Math.PI/180,fC=180/Math.PI,mC=.96422,hC=1,gC=.82521,bC=4/29,vC=6/29,yC=3*vC*vC,xC=vC*vC*vC;function SC(e){if(e instanceof EC)return new EC(e.l,e.a,e.b,e.opacity);if(e instanceof LC)return PC(e);e instanceof eC||(e=Qw(e));var t,n,r=kC(e.r),o=kC(e.g),i=kC(e.b),a=wC((.2225045*r+.7168786*o+.0606169*i)/hC);return r===o&&o===i?t=n=a:(t=wC((.4360747*r+.3850649*o+.1430804*i)/mC),n=wC((.0139322*r+.0971045*o+.7141733*i)/gC)),new EC(116*a-16,500*(t-a),200*(a-n),e.opacity)}function EC(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function wC(e){return e>xC?Math.pow(e,1/3):e/yC+bC}function CC(e){return e>vC?e*e*e:yC*(e-bC)}function RC(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function kC(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function AC(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof LC)return new LC(e.h,e.c,e.l,e.opacity);if(e instanceof EC||(e=SC(e)),0===e.a&&0===e.b)return new LC(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*fC;return new LC(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new LC(e,t,n,null==r?1:r)}function LC(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function PC(e){if(isNaN(e.h))return new EC(e.l,0,0,e.opacity);var t=e.h*pC;return new EC(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Dw(EC,(function(e,t,n,r){return 1===arguments.length?SC(e):new EC(e,t,n,null==r?1:r)}),_w(Mw,{brighter(e){return new EC(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new EC(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,n=isNaN(this.b)?e:e-this.b/200;return new eC(RC(3.1338561*(t=mC*CC(t))-1.6168667*(e=hC*CC(e))-.4906146*(n=gC*CC(n))),RC(-.9787684*t+1.9161415*e+.033454*n),RC(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Dw(LC,AC,_w(Mw,{brighter(e){return new LC(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new LC(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return PC(this).rgb()}}));const IC=(e,t)=>{const n=AC(e),r=n.l<70;return 0===n.opacity?(n.opacity=t.opacity,n.toString()):r?n.brighter(t.brighter).toString():n.darker(t.darker).toString()},DC=e=>{if(e){const t=Zw(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},_C=e=>!!e&&0===Zw(e).opacity,MC=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,TC=e=>{const t=MC.exec(e);if(t){const[,e,n,r,o]=t;return Zw(+n,+r,+o,+e/255)}return Zw(e)},OC=e=>{const t=TC(e);return Number.isNaN(t.r)?null:t.toString()},NC=e=>{if(void 0===e)return;const t=TC(e);return t.opacity=1,t.toString()},qC=(e,t,n)=>{var r,o,i,a;const l=null!==(r=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!==r?r: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,n)},zC=e=>{e.stopPropagation(),e.preventDefault()},FC="#grid",jC=(e,t)=>{const n=null==t?void 0:t.closest(e);return n&&window.getComputedStyle(n).backgroundColor},$C=(e,t,n,r,o)=>{const i=jC(".qv-object .qv-inner-object",n),a=jC(".qv-panel-sheet",n),l=jC(FC,n),s=null!=l?l:a,u=(e=>{var t,n,r,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(n=l.bgColor)||void 0===n?void 0:n.colorExpression,u=null==l||null===(r=l.bgColor)||void 0===r||null===(r=r.color)||void 0===r?void 0:r.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return OC(s);if("none"===u)return"transparent";if(void 0===u)return;const c=TC(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==r?void 0:r(t),d=null==o?void 0:o(t),p=c||i||d,f=_C(p),m=DC(f?s:p),h=((e,t,n)=>e&&!_C(e)?e:_C(t)?n&&!_C(n)?n:Iw.WHITE:t)(u,p,s);return{color:p,headerColor:h,isDark:m}},BC=(t,n,r,o)=>{const i=e.useTheme(),a=((t,n={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,o]=e.useState([]);return e.useEffect((()=>{let e;return t&&(e=new MutationObserver((e=>{o(e)})),e.observe(t,n)),()=>{var t;null===(t=e)||void 0===t||t.disconnect()}}),[t,n]),r})(null==n?void 0:n.closest(FC),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return e.useMemo((()=>({...i,background:$C(t,i,n,r,o)})),[i.name(),n,r,o,t,a])};var HC=Object.prototype.hasOwnProperty,WC=Object.prototype.toString,VC=Object.defineProperty,UC=Object.getOwnPropertyDescriptor,GC=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===WC.call(e)},YC=function(e){if(!e||"[object Object]"!==WC.call(e))return!1;var t,n=HC.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&HC.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||HC.call(e,t)},KC=function(e,t){VC&&"__proto__"===t.name?VC(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},XC=function(e,t){if("__proto__"===t){if(!HC.call(e,t))return;if(UC)return UC(e,t).value}return e[t]};function JC(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function QC(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ZC(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=XC(l,n),l!==(o=XC(t,n))&&(c&&o&&(YC(o)||(i=GC(o)))?(i?(i=!1,a=r&&GC(r)?r:[]):a=r&&YC(r)?r:{},KC(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&KC(l,{name:n,newValue:o}));return l}));var eR=1/.7,tR="\\s*([+-]?\\d+)\\s*",nR="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",rR="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",oR=/^#([0-9a-f]{3,8})$/,iR=new RegExp(`^rgb\\(${tR},${tR},${tR}\\)$`),aR=new RegExp(`^rgb\\(${rR},${rR},${rR}\\)$`),lR=new RegExp(`^rgba\\(${tR},${tR},${tR},${nR}\\)$`),sR=new RegExp(`^rgba\\(${rR},${rR},${rR},${nR}\\)$`),uR=new RegExp(`^hsl\\(${nR},${rR},${rR}\\)$`),cR=new RegExp(`^hsla\\(${nR},${rR},${rR},${nR}\\)$`),dR={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 pR(){return this.rgb().formatHex()}function fR(){return this.rgb().formatRgb()}function mR(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=oR.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?hR(t):3===n?new yR(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?gR(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?gR(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=iR.exec(e))?new yR(t[1],t[2],t[3],1):(t=aR.exec(e))?new yR(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=lR.exec(e))?gR(t[1],t[2],t[3],t[4]):(t=sR.exec(e))?gR(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=uR.exec(e))?RR(t[1],t[2]/100,t[3]/100,1):(t=cR.exec(e))?RR(t[1],t[2]/100,t[3]/100,t[4]):dR.hasOwnProperty(e)?hR(dR[e]):"transparent"===e?new yR(NaN,NaN,NaN,0):null}function hR(e){return new yR(e>>16&255,e>>8&255,255&e,1)}function gR(e,t,n,r){return r<=0&&(e=t=n=NaN),new yR(e,t,n,r)}function bR(e){return e instanceof ZC||(e=mR(e)),e?new yR((e=e.rgb()).r,e.g,e.b,e.opacity):new yR}function vR(e,t,n,r){return 1===arguments.length?bR(e):new yR(e,t,n,null==r?1:r)}function yR(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function xR(){return`#${CR(this.r)}${CR(this.g)}${CR(this.b)}`}function SR(){const e=ER(this.opacity);return`${1===e?"rgb(":"rgba("}${wR(this.r)}, ${wR(this.g)}, ${wR(this.b)}${1===e?")":`, ${e})`}`}function ER(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function wR(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function CR(e){return((e=wR(e))<16?"0":"")+e.toString(16)}function RR(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new AR(e,t,n,r)}function kR(e){if(e instanceof AR)return new AR(e.h,e.s,e.l,e.opacity);if(e instanceof ZC||(e=mR(e)),!e)return new AR;if(e instanceof AR)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new AR(a,l,s,e.opacity)}function AR(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function LR(e){return(e=(e||0)%360)<0?e+360:e}function PR(e){return Math.max(0,Math.min(1,e||0))}function IR(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}JC(ZC,mR,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:pR,formatHex:pR,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return kR(this).formatHsl()},formatRgb:fR,toString:fR}),JC(yR,vR,QC(ZC,{brighter(e){return e=null==e?eR:Math.pow(eR,e),new yR(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new yR(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new yR(wR(this.r),wR(this.g),wR(this.b),ER(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:xR,formatHex:xR,formatHex8:function(){return`#${CR(this.r)}${CR(this.g)}${CR(this.b)}${CR(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:SR,toString:SR})),JC(AR,(function(e,t,n,r){return 1===arguments.length?kR(e):new AR(e,t,n,null==r?1:r)}),QC(ZC,{brighter(e){return e=null==e?eR:Math.pow(eR,e),new AR(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new AR(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,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new yR(IR(e>=240?e-240:e+120,o,r),IR(e,o,r),IR(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new AR(LR(this.h),PR(this.s),PR(this.l),ER(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=ER(this.opacity);return`${1===e?"hsl(":"hsla("}${LR(this.h)}, ${100*PR(this.s)}%, ${100*PR(this.l)}%${1===e?")":`, ${e})`}`}}));const DR=Math.PI/180,_R=180/Math.PI,MR=4/29,TR=6/29,OR=3*TR*TR;function NR(e){if(e instanceof qR)return new qR(e.l,e.a,e.b,e.opacity);if(e instanceof BR)return HR(e);e instanceof yR||(e=bR(e));var t,n,r=$R(e.r),o=$R(e.g),i=$R(e.b),a=zR((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=zR((.4360747*r+.3850649*o+.1430804*i)/.96422),n=zR((.0139322*r+.0971045*o+.7141733*i)/.82521)),new qR(116*a-16,500*(t-a),200*(a-n),e.opacity)}function qR(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function zR(e){return e>.008856451679035631?Math.pow(e,1/3):e/OR+MR}function FR(e){return e>TR?e*e*e:OR*(e-MR)}function jR(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function $R(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function BR(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function HR(e){if(isNaN(e.h))return new qR(e.l,0,0,e.opacity);var t=e.h*DR;return new qR(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}JC(qR,(function(e,t,n,r){return 1===arguments.length?NR(e):new qR(e,t,n,null==r?1:r)}),QC(ZC,{brighter(e){return new qR(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new qR(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,n=isNaN(this.b)?e:e-this.b/200;return new yR(jR(3.1338561*(t=.96422*FR(t))-1.6168667*(e=1*FR(e))-.4906146*(n=.82521*FR(n))),jR(-.9787684*t+1.9161415*e+.033454*n),jR(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),JC(BR,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof BR)return new BR(e.h,e.c,e.l,e.opacity);if(e instanceof qR||(e=NR(e)),0===e.a&&0===e.b)return new BR(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*_R;return new BR(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new BR(e,t,n,null==r?1:r)}),QC(ZC,{brighter(e){return new BR(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new BR(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return HR(this).rgb()}}));var WR,VR=e=>()=>e;function UR(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):VR(isNaN(e)?t:e)}function GR(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function YR(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function KR(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=JR)):void 0===t&&(t=XR);for(var n,r,o,i,a,l=new ek(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new ek(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(ZR)}function XR(e){return e.children}function JR(e){return Array.isArray(e)?e[1]:null}function QR(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function ZR(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function ek(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var n=function(e){return 1==(e=+e)?UR:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):VR(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=vR(e)).r,(t=vR(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=UR(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1),ek.prototype=KR.prototype={constructor:ek,count:function(){return this.eachAfter(YR)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},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(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return KR(this).eachBefore(QR)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},WR=function(e){
116
+ `),Ly.rippleVisible,Ny,550,(({theme:e})=>e.transitions.easing.easeInOut),Ly.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Ly.child,Ly.childLeaving,qy,550,(({theme:e})=>e.transitions.easing.easeInOut),Ly.childPulsate,zy,(({theme:e})=>e.transitions.easing.easeInOut)),$y=X.forwardRef((function(e,t){const n=yl({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Te(n,Iy),[l,s]=X.useState([]),u=X.useRef(0),c=X.useRef(null);X.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=X.useRef(!1),p=X.useRef(0),f=X.useRef(null),m=X.useRef(null);X.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=X.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,ta.jsx(jy,{classes:{ripple:kl(o.ripple,Ly.ripple),rippleVisible:kl(o.rippleVisible,Ly.rippleVisible),ripplePulsate:kl(o.ripplePulsate,Ly.ripplePulsate),child:kl(o.child,Ly.child),childLeaving:kl(o.childLeaving,Ly.childLeaving),childPulsate:kl(o.childPulsate,Ly.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=X.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||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:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-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:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h]),b=X.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=X.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 X.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),ta.jsx(Fy,Me({className:kl(Ly.root,o.root,i),ref:m},a,{children:ta.jsx(by,{component:null,exit:!0,children:l})}))}));var By=$y;function Hy(e){return Ka("MuiButtonBase",e)}var Vy=Xa("MuiButtonBase",["root","disabled","focusVisible"]);const Wy=["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"],Uy=wl("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"},[`&.${Vy.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Gy=X.forwardRef((function(e,t){const n=yl({props:e,name:"MuiButtonBase"}),{action:r,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:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:w,onTouchEnd:C,onTouchMove:R,onTouchStart:k,tabIndex:A=0,TouchRippleProps:P,touchRippleRef:L,type:I}=n,D=Te(n,Wy),_=X.useRef(null),M=X.useRef(null),T=Ta(M,L),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:z}=Va(),[F,j]=X.useState(!1);s&&F&&j(!1),X.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),_.current.focus()}})),[]);const[$,B]=X.useState(!1);X.useEffect((()=>{B(!0)}),[]);const H=$&&!u&&!s;function V(e,t,n=c){return Ma((r=>{t&&t(r);return!n&&M.current&&M.current[e](r),!0}))}X.useEffect((()=>{F&&d&&!u&&$&&M.current.pulsate()}),[u,d,F,$]);const W=V("start",S),U=V("stop",h),G=V("stop",g),Y=V("stop",w),K=V("stop",(e=>{F&&e.preventDefault(),E&&E(e)})),J=V("start",k),Q=V("stop",C),Z=V("stop",R),ee=V("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),te=Ma((e=>{_.current||(_.current=e.currentTarget),N(e),!0===O.current&&(j(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=_.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=X.useRef(!1),oe=Ma((e=>{d&&!re.current&&F&&M.current&&" "===e.key&&(re.current=!0,M.current.stop(e,(()=>{M.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=Ma((e=>{d&&" "===e.key&&M.current&&F&&!e.defaultPrevented&&(re.current=!1,M.current.stop(e,(()=>{M.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(D.href||D.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===I?"button":I,le.disabled=s):(D.href||D.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Ta(t,z,_),ue=Me({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:A,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Do({root:["root",t&&"disabled",n&&"focusVisible"]},Hy,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return ta.jsxs(Uy,Me({as:ae,className:kl(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:W,onMouseLeave:K,onMouseUp:Y,onDragLeave:G,onTouchEnd:Q,onTouchMove:Z,onTouchStart:J,ref:se,tabIndex:s?-1:A,type:I},le,D,{children:[i,H?ta.jsx(By,Me({ref:T,center:o},P)):null]}))}));var Yy=Gy;function Ky(e){return Ka("MuiTypography",e)}Xa("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Xy=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Jy=wl("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${Ra(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Me({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}))),Qy={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Zy={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ex=X.forwardRef((function(e,t){const n=yl({props:e,name:"MuiTypography"}),r=(e=>Zy[e]||e)(n.color),o=ia(Me({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Qy}=o,f=Te(o,Xy),m=Me({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||Qy[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Do({root:["root",i,"inherit"!==e.align&&`align${Ra(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Ky,a)})(m);return ta.jsx(Jy,Me({as:h,ref:t,ownerState:m,className:kl(g.root,a)},f))}));var tx=ex;const nx=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function rx(e){const t=[],n=[];return Array.from(e.querySelectorAll(nx)).forEach(((e,r)=>{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 n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function ox(){return!0}function ix(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=rx,isEnabled:a=ox,open:l}=e,s=X.useRef(!1),u=X.useRef(null),c=X.useRef(null),d=X.useRef(null),p=X.useRef(null),f=X.useRef(!1),m=X.useRef(null),h=go(t.ref,m),g=X.useRef(null);X.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),X.useEffect((()=>{if(!l||!m.current)return;const e=co(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]),X.useEffect((()=>{if(!l||!m.current)return;const e=co(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{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(r&&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 n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.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=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return ta.jsxs(X.Fragment,{children:[ta.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),X.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),ta.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const ax=X.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=X.useState(null),l=go(X.isValidElement(n)?n.ref:null,t);if(mo((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),mo((()=>{if(i&&!o)return fo(t,i),()=>{fo(t,null)}}),[t,i,o]),o){if(X.isValidElement(n)){const e={ref:l};return X.cloneElement(n,e)}return ta.jsx(X.Fragment,{children:n})}return ta.jsx(X.Fragment,{children:i?ey.createPortal(n,i):i})}));function lx(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function sx(e){return parseInt(po(e).getComputedStyle(e).paddingRight,10)||0}function ux(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&lx(e,o)}))}function cx(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function dx(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=co(e);return t.body===e?po(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(co(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${sx(r)+e}px`;const t=co(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${sx(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=co(r).body;else{const t=r.parentElement,n=po(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.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()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const px=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&lx(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);ux(t,e.mount,e.modalRef,r,!0);const o=cx(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=cx(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=dx(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=cx(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&lx(e.modalRef,t),ux(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&lx(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function fx(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:o=!1,manager:i=px,closeAfterTransition:a=!1,onTransitionEnter:l,onTransitionExited:s,children:u,onClose:c,open:d,rootRef:p}=e,f=X.useRef({}),m=X.useRef(null),h=X.useRef(null),g=go(h,p),[b,v]=X.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(f.current.modalRef=h.current,f.current.mount=m.current,f.current),E=()=>{i.mount(S(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},w=ho((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||co(m.current).body;i.add(S(),e),h.current&&E()})),C=X.useCallback((()=>i.isTopModal(S())),[i]),R=ho((e=>{m.current=e,e&&(d&&C()?E():h.current&&lx(h.current,x))})),k=X.useCallback((()=>{i.remove(S(),x)}),[x,i]);X.useEffect((()=>()=>{k()}),[k]),X.useEffect((()=>{d?w():y&&a||k()}),[d,k,y,a,w]);const A=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(r||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},P=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Ry(e);delete r.onTransitionEnter,delete r.onTransitionExited;const o=n({},r,t);return n({role:"presentation"},o,{onKeyDown:A(o),ref:g})},getBackdropProps:(e={})=>n({"aria-hidden":!0},e,{onClick:P(e),open:d}),getTransitionProps:()=>({onEnter:uo((()=>{v(!1),l&&l()}),null==u?void 0:u.props.onEnter),onExited:uo((()=>{v(!0),s&&s(),a&&k()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:R,isTopModal:C,exited:b,hasTransition:y}}const mx=["onChange","maxRows","minRows","style","value"];function hx(e){return parseInt(e,10)||0}const gx={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function bx(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const vx=X.forwardRef((function(e,t){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:l}=e,s=d(e,mx),{current:u}=X.useRef(null!=l),c=X.useRef(null),p=go(t,c),f=X.useRef(null),m=X.useRef(0),[h,g]=X.useState({outerHeightStyle:0}),b=X.useCallback((()=>{const t=c.current,n=po(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const r=f.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=n.boxSizing,l=hx(n.paddingBottom)+hx(n.paddingTop),s=hx(n.borderBottomWidth)+hx(n.borderTopWidth),u=r.scrollHeight;r.value="x";const d=r.scrollHeight;let p=u;i&&(p=Math.max(Number(i)*d,p)),o&&(p=Math.min(Number(o)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===a?l+s:0),overflow:Math.abs(p-u)<=1}}),[o,i,e.placeholder]),v=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return m.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(m.current+=1,{overflow:r,outerHeightStyle:n}):e},y=X.useCallback((()=>{const e=b();bx(e)||g((t=>v(t,e)))}),[b]);mo((()=>{const e=()=>{m.current=0,(()=>{const e=b();bx(e)||ey.flushSync((()=>{g((t=>v(t,e)))}))})()};const t=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}(e),n=c.current,r=po(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[b]),mo((()=>{y()})),X.useEffect((()=>{m.current=0}),[l]);return ta.jsxs(X.Fragment,{children:[ta.jsx("textarea",n({value:l,onChange:e=>{m.current=0,u||y(),r&&r(e)},ref:p,rows:i,style:n({height:h.outerHeightStyle,overflow:h.overflow?"hidden":void 0},a)},s)),ta.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:n({},gx,a,{paddingTop:0,paddingBottom:0})})]})}));function yx({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var xx=X.createContext(void 0);function Sx(){return X.useContext(xx)}function Ex(e){return ta.jsx(na,Me({},e,{defaultTheme:bl,themeId:_e}))}function wx(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Cx(e,t=!1){return e&&(wx(e.value)&&""!==e.value||t&&wx(e.defaultValue)&&""!==e.defaultValue)}function Rx(e){return Ka("MuiInputBase",e)}var kx=Xa("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const Ax=["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"],Px=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Ra(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Lx=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Ix=wl("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Px})((({theme:e,ownerState:t})=>Me({},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",[`&.${kx.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Me({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Dx=wl("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Lx})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Me({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.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:n?.42:.5};return Me({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":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${kx.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},[`&.${kx.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"})})),_x=ta.jsx(Ex,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Mx=X.forwardRef((function(e,t){var n;const r=yl({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:y,minRows:x,multiline:S=!1,name:E,onBlur:w,onChange:C,onClick:R,onFocus:k,onKeyDown:A,onKeyUp:P,placeholder:L,readOnly:I,renderSuffix:D,rows:_,slotProps:M={},slots:T={},startAdornment:O,type:N="text",value:q}=r,z=Te(r,Ax),F=null!=b.value?b.value:q,{current:j}=X.useRef(null!=F),$=X.useRef(),B=X.useCallback((e=>{}),[]),H=Ta($,v,b.ref,B),[V,W]=X.useState(!1),U=Sx(),G=yx({props:r,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});G.focused=U?U.focused:V,X.useEffect((()=>{!U&&d&&V&&(W(!1),w&&w())}),[U,d,V,w]);const Y=U&&U.onFilled,K=U&&U.onEmpty,J=X.useCallback((e=>{Cx(e)?Y&&Y():K&&K()}),[Y,K]);Pa((()=>{j&&J({value:F})}),[F,J,j]);X.useEffect((()=>{J($.current)}),[]);let Q=g,Z=b;S&&"input"===Q&&(Z=Me(_?{type:void 0,minRows:_,maxRows:_}:{type:void 0,maxRows:y,minRows:x},Z),Q=vx);X.useEffect((()=>{U&&U.setAdornedStart(Boolean(O))}),[U,O]);const ee=Me({},r,{color:G.color||"primary",disabled:G.disabled,endAdornment:f,error:G.error,focused:G.focused,formControl:U,fullWidth:m,hiddenLabel:G.hiddenLabel,multiline:S,size:G.size,startAdornment:O,type:N}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return Do({root:["root",`color${Ra(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${Ra(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Rx,t)})(ee),ne=T.root||s.Root||Ix,re=M.root||u.root||{},oe=T.input||s.Input||Dx;return Z=Me({},Z,null!=(n=M.input)?n:u.input),ta.jsxs(X.Fragment,{children:[!p&&_x,ta.jsxs(ne,Me({},re,!Cy(ne)&&{ownerState:Me({},ee,re.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),R&&R(e)}},z,{className:kl(te.root,re.className,l,I&&"MuiInputBase-readOnly"),children:[O,ta.jsx(xx.Provider,{value:null,children:ta.jsx(oe,Me({ownerState:ee,"aria-invalid":G.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:G.disabled,id:h,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:E,placeholder:L,readOnly:I,required:G.required,rows:_,value:F,onKeyDown:A,onKeyUp:P,type:N},Z,!Cy(oe)&&{as:Q,ownerState:Me({},ee,Z.ownerState)},{ref:H,className:kl(te.input,Z.className,I&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),U&&U.onBlur?U.onBlur(e):W(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||$.current;if(null==t)throw new Error(De(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{G.disabled?e.stopPropagation():(k&&k(e),b.onFocus&&b.onFocus(e),U&&U.onFocus?U.onFocus(e):W(!0))}}))}),f,D?D(Me({},G,{startAdornment:O})):null]}))]})}));var Tx=Mx;function Ox(e){return Ka("MuiInput",e)}var Nx=Me({},kx,Xa("MuiInput",["root","underline","input"]));function qx(e){return Ka("MuiOutlinedInput",e)}var zx=Me({},kx,Xa("MuiOutlinedInput",["root","notchedOutline","input"]));function Fx(e){return Ka("MuiFilledInput",e)}var jx=Me({},kx,Xa("MuiFilledInput",["root","underline","input"])),$x=function(e,t){function n(n,r){return ta.jsx(Dl,Me({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Dl.muiName,X.memo(X.forwardRef(n))}(ta.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Bx=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Hx={entering:{opacity:1},entered:{opacity:1}},Vx=X.forwardRef((function(e,t){const n=vl(),r={enter:n.transitions.duration.enteringScreen,exit:n.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=r,TransitionComponent:b=dy}=e,v=Te(e,Bx),y=X.useRef(null),x=Ta(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),w=S(((e,t)=>{vy(e);const r=yy({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),C=S(c),R=S(m),k=S((e=>{const t=yy({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),A=S(f);return ta.jsx(b,Me({appear:i,in:s,nodeRef:y,onEnter:w,onEntered:C,onEntering:E,onExit:k,onExited:A,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>X.cloneElement(a,Me({style:Me({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},Hx[e],h,a.props.style),ref:x},t))}))}));var Wx=Vx;function Ux(e){return Ka("MuiBackdrop",e)}Xa("MuiBackdrop",["root","invisible"]);const Gx=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Yx=wl("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Me({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"}))),Kx=X.forwardRef((function(e,t){var n,r,o;const i=yl({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=Wx,transitionDuration:g}=i,b=Te(i,Gx),v=Me({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Do({root:["root",n&&"invisible"]},Ux,t)})(v),x=null!=(n=f.root)?n:c.root;return ta.jsx(h,Me({in:p,timeout:g},b,{children:ta.jsx(Yx,Me({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:kl(y.root,l,null==x?void 0:x.className),ownerState:Me({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var Xx=Kx;var Jx=Xa("MuiBox",["root"]);const Qx=gl(),Zx=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:o="MuiBox-root",generateClassName:i}=e,a=Ir("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Fi);return X.forwardRef((function(e,l){const s=Wi(r),u=ia(e),{className:c,component:p="div"}=u,f=d(u,aa);return ta.jsx(a,n({as:p,ref:l,className:jo(c,i?i(o):o),theme:t&&s[t]||s},f))}))}({themeId:_e,defaultTheme:Qx,defaultClassName:Jx.root,generateClassName:Ga.generate});var eS=Zx;function tS(e){return Ka("MuiButton",e)}var nS=Xa("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 rS=X.createContext({});var oS=X.createContext(void 0);const iS=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],aS=e=>Me({},"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}}),lS=wl(Yy,{shouldForwardProp:e=>xl(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Ra(n.color)}`],t[`size${Ra(n.size)}`],t[`${n.variant}Size${Ra(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;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 Me({},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":Me({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Sa(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})`:Sa(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})`:Sa(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":Me({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${nS.focusVisible}`]:Me({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${nS.disabled}`]:Me({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 ${Sa(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,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"},[`&.${nS.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${nS.disabled}`]:{boxShadow:"none"}})),sS=wl("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Ra(n.size)}`]]}})((({ownerState:e})=>Me({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},aS(e)))),uS=wl("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Ra(n.size)}`]]}})((({ownerState:e})=>Me({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},aS(e)))),cS=X.forwardRef((function(e,t){const n=X.useContext(rS),r=X.useContext(oS),o=yl({props:Wa(n,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,y=Te(o,iS),x=Me({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:v}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Me({},a,Do({root:["root",i,`${i}${Ra(t)}`,`size${Ra(o)}`,`${i}Size${Ra(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Ra(o)}`],endIcon:["endIcon",`iconSize${Ra(o)}`]},tS,a))})(x),E=g&&ta.jsx(sS,{className:S.startIcon,ownerState:x,children:g}),w=p&&ta.jsx(uS,{className:S.endIcon,ownerState:x,children:p}),C=r||"";return ta.jsxs(lS,Me({ownerState:x,className:kl(n.className,S.root,s,C),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:kl(S.focusVisible,f),ref:t,type:b},y,{classes:S,children:[E,i,w]}))}));var dS=cS;function pS(e){return Ka("MuiModal",e)}Xa("MuiModal",["root","hidden","backdrop"]);const fS=["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"],mS=wl("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Me({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),hS=wl(Xx,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),gS=X.forwardRef((function(e,t){var n,r,o,i,a,l;const s=yl({name:"MuiModal",props:e}),{BackdropComponent:u=hS,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:w=!1,hideBackdrop:C=!1,keepMounted:R=!1,onBackdropClick:k,open:A,slotProps:P,slots:L}=s,I=Te(s,fS),D=Me({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:w,hideBackdrop:C,keepMounted:R}),{getRootProps:_,getBackdropProps:M,getTransitionProps:T,portalRef:O,isTopModal:N,exited:q,hasTransition:z}=fx(Me({},D,{rootRef:t})),F=Me({},D,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return Do({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},pS,r)})(F),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),z){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(r=null==L?void 0:L.root)?r:g.Root)?n:mS,H=null!=(o=null!=(i=null==L?void 0:L.backdrop)?i:g.Backdrop)?o:u,V=null!=(a=null==P?void 0:P.root)?a:b.root,W=null!=(l=null==P?void 0:P.backdrop)?l:b.backdrop,U=Py({elementType:B,externalSlotProps:V,externalForwardedProps:I,getSlotProps:_,additionalProps:{ref:t,as:h},ownerState:F,className:kl(d,null==V?void 0:V.className,null==j?void 0:j.root,!F.open&&F.exited&&(null==j?void 0:j.hidden))}),G=Py({elementType:H,externalSlotProps:W,additionalProps:c,getSlotProps:e=>M(Me({},e,{onClick:t=>{k&&k(t),null!=e&&e.onClick&&e.onClick(t)}})),className:kl(null==W?void 0:W.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:F});return R||A||z&&!q?ta.jsx(ax,{ref:O,container:m,disablePortal:S,children:ta.jsxs(B,Me({},U,{children:[!C&&u?ta.jsx(H,Me({},G)):null,ta.jsx(ix,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:E,isEnabled:N,open:A,children:X.cloneElement(f,$)})]}))}):null}));var bS=gS;function vS(e){return Ka("MuiDivider",e)}var yS=Xa("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const xS=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],SS=wl("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Me({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)`:Sa(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})=>Me({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Me({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Me({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Me({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),ES=wl("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Me({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)`}))),wS=X.forwardRef((function(e,t){const n=yl({props:e,name:"MuiDivider"}),{absolute:r=!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"}=n,f=Te(n,xS),m=Me({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return Do({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},vS,r)})(m);return ta.jsx(SS,Me({as:a,className:kl(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?ta.jsx(ES,{className:h.wrapper,ownerState:m,children:o}):null}))}));wS.muiSkipListHighlight=!0;var CS=wS;const RS=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],kS=wl(Ix,{shouldForwardProp:e=>xl(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Px(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Me({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}},[`&.${jx.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${jx.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.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"},[`&.${jx.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${jx.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(.${jx.disabled}, .${jx.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${jx.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Me({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}))})),AS=wl(Dx,{name:"MuiFilledInput",slot:"Input",overridesResolver:Lx})((({theme:e,ownerState:t})=>Me({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}))),PS=X.forwardRef((function(e,t){var n,r,o,i;const a=yl({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=Te(a,RS),g=Me({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:n}=e;return Me({},t,Do({root:["root",!n&&"underline"],input:["input"]},Fx,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Ca(v,null!=p?p:s):v,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:kS,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:AS;return ta.jsx(Tx,Me({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));PS.muiName="Input";var LS=PS;const IS=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function DS(e){return`scale(${e}, ${e**2})`}const _S={entering:{opacity:1,transform:DS(1)},entered:{opacity:1,transform:"none"}},MS="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),TS=X.forwardRef((function(e,t){const{addEndListener:n,appear:r=!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=dy}=e,g=Te(e,IS),b=X.useRef(),v=X.useRef(),y=vl(),x=X.useRef(null),S=Ta(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},w=E(u),C=E(((e,t)=>{vy(e);const{duration:n,delay:r,easing:o}=yy({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:MS?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),k=E(p),A=E((e=>{const{duration:t,delay:n,easing:r}=yy({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:MS?o:.666*o,delay:MS?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=DS(.75),c&&c(e)})),P=E(d);return X.useEffect((()=>()=>{clearTimeout(b.current)}),[]),ta.jsx(h,Me({appear:r,in:a,nodeRef:x,onEnter:C,onEntered:R,onEntering:w,onExit:A,onExited:P,onExiting:k,addEndListener:e=>{"auto"===m&&(b.current=setTimeout(e,v.current||0)),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>X.cloneElement(o,Me({style:Me({opacity:0,transform:DS(.75),visibility:"exited"!==e||a?void 0:"hidden"},_S[e],f,o.props.style),ref:S},t))}))}));TS.muiSupportAuto=!0;var OS=TS;const NS=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],qS=wl(Ix,{shouldForwardProp:e=>xl(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Px(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Me({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"},[`&.${Nx.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Nx.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,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(.${Nx.disabled}, .${Nx.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Nx.disabled}:before`]:{borderBottomStyle:"dotted"}})})),zS=wl(Dx,{name:"MuiInput",slot:"Input",overridesResolver:Lx})({}),FS=X.forwardRef((function(e,t){var n,r,o,i;const a=yl({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=Te(a,NS),b=(e=>{const{classes:t,disableUnderline:n}=e;return Me({},t,Do({root:["root",!n&&"underline"],input:["input"]},Ox,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Ca(null!=f?f:u,v):v,x=null!=(n=null!=(r=m.root)?r:s.Root)?n:qS,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:zS;return ta.jsx(Tx,Me({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));FS.muiName="Input";var jS=FS;function $S(e){return Ka("MuiLink",e)}var BS=Xa("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const HS={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var VS=({theme:e,ownerState:t})=>{const n=(e=>HS[e]||e)(t.color),r=Yo(e,`palette.${n}`,!1)||t.color,o=Yo(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Sa(r,.4)};const WS=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],US=wl(tx,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Ra(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>Me({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Me({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:VS({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"},[`&.${BS.focusVisible}`]:{outline:"auto"}}))),GS=X.forwardRef((function(e,t){const n=yl({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=n,p=Te(n,WS),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=Va(),[b,v]=X.useState(!1),y=Ta(t,g),x=Me({},n,{color:o,component:i,focusVisible:b,underline:u,variant:c}),S=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return Do({root:["root",`underline${Ra(o)}`,"button"===n&&"button",r&&"focusVisible"]},$S,t)})(x);return ta.jsx(US,Me({color:o,className:kl(S.root,r),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:y,ownerState:x,variant:c,sx:[...Object.keys(HS).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var YS=GS;var KS=X.createContext({});function XS(e){return Ka("MuiList",e)}Xa("MuiList",["root","padding","dense","subheader"]);const JS=["children","className","component","dense","disablePadding","subheader"],QS=wl("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Me({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var ZS=X.forwardRef((function(e,t){const n=yl({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=Te(n,JS),c=X.useMemo((()=>({dense:a})),[a]),d=Me({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Do({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},XS,t)})(d);return ta.jsx(KS.Provider,{value:c,children:ta.jsxs(QS,Me({as:i,className:kl(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function eE(e){return Ka("MuiListItemIcon",e)}var tE=Xa("MuiListItemIcon",["root","alignItemsFlexStart"]);const nE=["className"],rE=wl("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Me({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var oE=X.forwardRef((function(e,t){const n=yl({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Te(n,nE),i=Me({},n,{alignItems:X.useContext(KS).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Do({root:["root","flex-start"===t&&"alignItemsFlexStart"]},eE,n)})(i);return ta.jsx(rE,Me({className:kl(a.root,r),ownerState:i,ref:t},o))}));var iE=Xa("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const aE=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function lE(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function sE(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function uE(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function cE(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&uE(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var dE=X.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Te(e,aE),p=X.useRef(null),f=X.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Pa((()=>{r&&p.current.focus()}),[r]),X.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(ka(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=Ta(p,t);let h=-1;X.Children.forEach(i,((e,t)=>{X.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=X.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),X.cloneElement(e,t)}return e}));return ta.jsx(ZS,Me({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=ka(t).activeElement;if("ArrowDown"===n)e.preventDefault(),cE(t,r,s,l,lE);else if("ArrowUp"===n)e.preventDefault(),cE(t,r,s,l,sE);else if("Home"===n)e.preventDefault(),cE(t,null,s,l,lE);else if("End"===n)e.preventDefault(),cE(t,null,s,l,sE);else if(1===n.length){const o=f.current,i=n.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=r&&!o.repeating&&uE(r,o);o.previousKeyMatched&&(s||cE(t,r,!1,l,lE,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function pE(e){return Ka("MuiPopover",e)}Xa("MuiPopover",["root","paper"]);const fE=["onEntering"],mE=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],hE=["slotProps"];function gE(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function bE(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function vE(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function yE(e){return"function"==typeof e?e():e}const xE=wl(bS,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),SE=wl(wy,{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 EE=X.forwardRef((function(e,t){var n,r,o;const i=yl({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:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=OS,transitionDuration:E="auto",TransitionProps:{onEntering:w}={},disableScrollLock:C=!1}=i,R=Te(i.TransitionProps,fE),k=Te(i,mE),A=null!=(n=null==y?void 0:y.paper)?n:b,P=X.useRef(),L=Ta(P,A.ref),I=Me({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:A,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),D=(e=>{const{classes:t}=e;return Do({root:["root"],paper:["paper"]},pE,t)})(I),_=X.useCallback((()=>{if("anchorPosition"===c)return u;const e=yE(l),t=(e&&1===e.nodeType?e:ka(P.current).body).getBoundingClientRect();return{top:t.top+gE(t,s.vertical),left:t.left+bE(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),M=X.useCallback((e=>({vertical:gE(e,x.vertical),horizontal:bE(e,x.horizontal)})),[x.horizontal,x.vertical]),T=X.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=M(t);if("none"===c)return{top:null,left:null,transformOrigin:vE(n)};const r=_();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=Aa(yE(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:vE(n)}}),[l,c,_,M,h]),[O,N]=X.useState(g),q=X.useCallback((()=>{const e=P.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);X.useEffect((()=>(C&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,C,q]);X.useEffect((()=>{g&&q()})),X.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),X.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{q()})),t=Aa(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,q]);let z=E;"auto"!==E||S.muiSupportAuto||(z=void 0);const F=f||(l?ka(yE(l)).body:void 0),j=null!=(r=null==v?void 0:v.root)?r:xE,$=null!=(o=null==v?void 0:v.paper)?o:SE,B=Py({elementType:$,externalSlotProps:Me({},A,{style:O?A.style:Me({},A.style,{opacity:0})}),additionalProps:{elevation:m,ref:L},ownerState:I,className:kl(D.paper,null==A?void 0:A.className)}),H=Py({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:k,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:I,className:kl(D.root,p)}),{slotProps:V}=H,W=Te(H,hE);return ta.jsx(j,Me({},W,!Cy(j)&&{slotProps:V,disableScrollLock:C},{children:ta.jsx(S,Me({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),q()},onExited:()=>{N(!1)},timeout:z},R,{children:ta.jsx($,Me({},B,{children:d}))}))}))}));function wE(e){return Ka("MuiMenu",e)}Xa("MuiMenu",["root","paper","list"]);const CE=["onEntering"],RE=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],kE={vertical:"top",horizontal:"right"},AE={vertical:"top",horizontal:"left"},PE=wl(EE,{shouldForwardProp:e=>xl(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),LE=wl(SE,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),IE=wl(dE,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var DE=X.forwardRef((function(e,t){var n,r;const o=yl({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,y=Te(o.TransitionProps,CE),x=Te(o,RE),S=vl(),E="rtl"===S.direction,w=Me({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return Do({root:["root"],paper:["paper"],list:["list"]},wE,t)})(w),R=i&&!s&&d,k=X.useRef(null);let A=-1;X.Children.map(a,((e,t)=>{X.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===A)&&(A=t))}));const P=null!=(n=b.paper)?n:LE,L=null!=(r=v.paper)?r:p,I=Py({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[C.root,l]}),D=Py({elementType:P,externalSlotProps:L,ownerState:w,className:C.paper});return ta.jsx(PE,Me({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?kE:AE,slots:{paper:P,root:b.root},slotProps:{root:I,paper:D},open:d,ref:t,transitionDuration:m,TransitionProps:Me({onEntering:(e,t)=>{k.current&&k.current.adjustStyleForScrollbar(e,S),h&&h(e,t)}},y),ownerState:w},x,{classes:f,children:ta.jsx(IE,Me({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:k,autoFocus:i&&(-1===A||s),autoFocusItem:R,variant:g},u,{className:kl(C.list,u.className),children:a}))}))}));function _E(e){return Ka("MuiMenuItem",e)}var ME=Xa("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const TE=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],OE=wl(Yy,{shouldForwardProp:e=>xl(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Me({},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"}},[`&.${ME.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Sa(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ME.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Sa(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ME.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Sa(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})`:Sa(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ME.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ME.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${yS.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${yS.inset}`]:{marginLeft:52},[`& .${iE.root}`]:{marginTop:0,marginBottom:0},[`& .${iE.inset}`]:{paddingLeft:36},[`& .${tE.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Me({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${tE.root} svg`]:{fontSize:"1.25rem"}}))));var NE=X.forwardRef((function(e,t){const n=yl({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=Te(n,TE),f=X.useContext(KS),m=X.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=X.useRef(null);Pa((()=>{r&&h.current&&h.current.focus()}),[r]);const g=Me({},n,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Me({},a,Do({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},_E,a))})(n),v=Ta(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),ta.jsx(KS.Provider,{value:m,children:ta.jsx(OE,Me({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:kl(b.focusVisible,s),className:kl(b.root,d)},p,{ownerState:g,classes:b}))})}));function qE(e){return Ka("MuiNativeSelect",e)}var zE=Xa("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const FE=["className","disabled","error","IconComponent","inputRef","variant"],jE=({ownerState:e,theme:t})=>Me({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Me({},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"},[`&.${zE.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}}),$E=wl("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:xl,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${zE.multiple}`]:t.multiple}]}})(jE),BE=({ownerState:e,theme:t})=>Me({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${zE.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),HE=wl("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Ra(n.variant)}`],n.open&&t.iconOpen]}})(BE),VE=X.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=Te(e,FE),u=Me({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Do({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Ra(n)}`,i&&"iconOpen",r&&"disabled"]},qE,t)})(u);return ta.jsxs(X.Fragment,{children:[ta.jsx($E,Me({ownerState:u,className:kl(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:ta.jsx(HE,{as:i,ownerState:u,className:c.icon})]})}));var WE,UE=VE;const GE=["children","classes","className","label","notched"],YE=wl("fieldset",{shouldForwardProp:xl})({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%"}),KE=wl("legend",{shouldForwardProp:xl})((({ownerState:e,theme:t})=>Me({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&&Me({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 XE=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],JE=wl(Ix,{shouldForwardProp:e=>xl(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Px})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Me({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${zx.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${zx.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${zx.focused} .${zx.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${zx.error} .${zx.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${zx.disabled} .${zx.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Me({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),QE=wl((function(e){const{className:t,label:n,notched:r}=e,o=Te(e,GE),i=null!=n&&""!==n,a=Me({},e,{notched:r,withLabel:i});return ta.jsx(YE,Me({"aria-hidden":!0,className:t,ownerState:a},o,{children:ta.jsx(KE,{ownerState:a,children:i?ta.jsx("span",{children:n}):WE||(WE=ta.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}})),ZE=wl(Dx,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Lx})((({theme:e,ownerState:t})=>Me({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}))),ew=X.forwardRef((function(e,t){var n,r,o,i,a;const l=yl({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=Te(l,XE),b=(e=>{const{classes:t}=e;return Me({},t,Do({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},qx,t))})(l),v=Sx(),y=yx({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=Me({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:h}),S=null!=(n=null!=(r=m.root)?r:s.Root)?n:JE,E=null!=(o=null!=(i=m.input)?i:s.Input)?o:ZE;return ta.jsx(Tx,Me({slots:{root:S,input:E},renderSuffix:e=>ta.jsx(QE,{ownerState:x,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=ta.jsxs(X.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:Me({},b,{notchedOutline:null})}))}));ew.muiName="Input";var tw=ew;function nw(e){return Ka("MuiSelect",e)}var rw,ow=Xa("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const iw=["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"],aw=wl("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ow.select}`]:t.select},{[`&.${ow.select}`]:t[n.variant]},{[`&.${ow.error}`]:t.error},{[`&.${ow.multiple}`]:t.multiple}]}})(jE,{[`&.${ow.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),lw=wl("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Ra(n.variant)}`],n.open&&t.iconOpen]}})(BE),sw=wl("input",{shouldForwardProp:e=>Sl(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 uw(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function cw(e){return null==e||"string"==typeof e&&!e.trim()}const dw=X.forwardRef((function(e,t){var n;const{"aria-describedby":r,"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:y,onBlur:x,onChange:S,onClose:E,onFocus:w,onOpen:C,open:R,readOnly:k,renderValue:A,SelectDisplayProps:P={},tabIndex:L,value:I,variant:D="standard"}=e,_=Te(e,iw),[M,T]=_a({controlled:I,default:c,name:"Select"}),[O,N]=_a({controlled:R,default:u,name:"Select"}),q=X.useRef(null),z=X.useRef(null),[F,j]=X.useState(null),{current:$}=X.useRef(null!=R),[B,H]=X.useState(),V=Ta(t,h),W=X.useCallback((e=>{z.current=e,e&&j(e)}),[]),U=null==F?void 0:F.parentNode;X.useImperativeHandle(V,(()=>({focus:()=>{z.current.focus()},node:q.current,value:M})),[M]),X.useEffect((()=>{u&&O&&F&&!$&&(H(a?null:U.clientWidth),z.current.focus())}),[F,a]),X.useEffect((()=>{i&&z.current.focus()}),[i]),X.useEffect((()=>{if(!g)return;const e=ka(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const G=(e,t)=>{e?C&&C(t):E&&E(t),$||(H(a?null:U.clientWidth),N(e))},Y=X.Children.toArray(l),K=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(M)?M.slice():[];const t=M.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),M!==n&&(T(n),S)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),S(o,e)}v||G(!1,t)}},J=null!==F&&O;let Q,Z;delete _["aria-invalid"];const ee=[];let te=!1;(Cx({value:M})||p)&&(A?Q=A(M):te=!0);const ne=Y.map((e=>{if(!X.isValidElement(e))return null;let t;if(v){if(!Array.isArray(M))throw new Error(De(2));t=M.some((t=>uw(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=uw(M,e.props.value),t&&te&&(Z=e.props.children);return X.cloneElement(e,{"aria-selected":t?"true":"false",onClick:K(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&&(Q=v?0===ee.length?null:ee.reduce(((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e)),[]):Z);let re,oe=B;!a&&$&&F&&(oe=U.clientWidth),re=void 0!==L?L:d?null:0;const ie=P.id||(y?`mui-component-select-${y}`:void 0),ae=Me({},e,{variant:D,value:M,open:J,error:f}),le=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Do({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Ra(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},nw,t)})(ae),se=Me({},b.PaperProps,null==(n=b.slotProps)?void 0:n.paper),ue=Da();return ta.jsxs(X.Fragment,{children:[ta.jsx(aw,Me({ref:W,tabIndex:re,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":r,onKeyDown:e=>{if(!k){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),G(!0,e))}},onMouseDown:d||k?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),G(!0,e))},onBlur:e=>{!J&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:M,name:y}}),x(e))},onFocus:w},P,{ownerState:ae,className:kl(P.className,le.select,s),id:ie,children:cw(Q)?rw||(rw=ta.jsx("span",{className:"notranslate",children:"​"})):Q})),ta.jsx(sw,Me({"aria-invalid":f,value:Array.isArray(M)?M.join(","):M,name:y,ref:q,"aria-hidden":!0,onChange:e=>{const t=Y.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},_)),ta.jsx(lw,{as:m,className:le.icon,ownerState:ae}),ta.jsx(DE,Me({id:`menu-${y||""}`,anchorEl:U,open:J,onClose:e=>{G(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Me({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:Me({},b.slotProps,{paper:Me({},se,{style:Me({minWidth:oe},null!=se?se.style:null)})}),children:ne}))]})}));var pw=dw;const fw=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],mw=["root"],hw={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>xl(e)&&"variant"!==e,slot:"Root"},gw=wl(jS,hw)(""),bw=wl(tw,hw)(""),vw=wl(LS,hw)(""),yw=X.forwardRef((function(e,t){const n=yl({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=$x,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:E,variant:w="outlined"}=n,C=Te(n,fw),R=b?UE:pw,k=yx({props:n,muiFormControl:Sx(),states:["variant","error"]}),A=k.variant||w,P=Me({},n,{variant:A,classes:i}),L=(e=>{const{classes:t}=e;return t})(P),I=Te(L,mw),D=d||{standard:ta.jsx(gw,{ownerState:P}),outlined:ta.jsx(bw,{label:f,ownerState:P}),filled:ta.jsx(vw,{ownerState:P})}[A],_=Ta(t,D.ref);return ta.jsx(X.Fragment,{children:X.cloneElement(D,Me({inputComponent:R,inputProps:Me({children:o,error:k.error,IconComponent:u,variant:A,type:void 0,multiple:g},b?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:Me({id:c},E)},p,{classes:p?Ca(I,p.classes):I},d?d.props.inputProps:{})},g&&b&&"outlined"===A?{notched:!0}:{},{ref:_,className:kl(D.props.className,a,L.root)},!d&&{variant:A},C))})}));yw.muiName="Select";var xw=yw,Sw=(e={})=>J.createElement(be,{...e},J.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},J.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},J.createElement("rect",{stroke:ee.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const Ew={MuiAccordion:{styleOverrides:{root:{backgroundColor:ee.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:ee.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:J.createElement(me,{"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 ${ee.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:ee.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${ee.MISC_FOCUS_BORDER}`,borderRadius:ie,backgroundColor:ee.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 ${ee.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:ee.WHITE,color:ee.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:ie},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${ee.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:ee.GREYSCALE_0_15,backgroundColor:ee.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:ee.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${ee.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:ee.GREEN_PALE},"&:active":{backgroundColor:ee.GREEN_DARK},"&.Mui-focusVisible":{borderColor:ee.GREEN_PALE,boxShadow:`0 0 0 3px ${Sa(ee.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:ee.BLUE_PALE},"&:active":{backgroundColor:ee.BLUE_DARK},"&.Mui-focusVisible":{borderColor:ee.BLUE_PALE,boxShadow:`0 0 0 3px ${Sa(ee.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:ie,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:ee.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${ee.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:ee.GREYSCALE_0_15,backgroundColor:ee.GREYSCALE_100_60,"&:active":{backgroundColor:ee.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:ee.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${ee.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:ee.PURPLE,"&.Mui-focusVisible":{borderColor:ee.PURPLE,boxShadow:`0 0 0 3px ${Sa(ee.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:ee.GREEN,"&.Mui-focusVisible":{borderColor:ee.GREEN,boxShadow:`0 0 0 3px ${Sa(ee.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:ee.BLUE,"&.Mui-focusVisible":{borderColor:ee.BLUE,boxShadow:`0 0 0 3px ${Sa(ee.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:ee.ORANGE,"&.Mui-focusVisible":{borderColor:ee.ORANGE,boxShadow:`0 0 0 3px ${Sa(ee.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:ee.RED,"&.Mui-focusVisible":{borderColor:ee.RED,boxShadow:`0 0 0 3px ${Sa(ee.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:ee.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:ee.PURPLE_PALE},"&:active":{backgroundColor:ee.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:ee.PURPLE_PALE,boxShadow:`0 0 0 3px ${Sa(ee.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:ee.GREEN_PALE},"&:active":{backgroundColor:ee.GREEN_DARK},"&.Mui-focusVisible":{borderColor:ee.GREEN_PALE,boxShadow:`0 0 0 3px ${Sa(ee.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:ee.BLUE_PALE},"&:active":{backgroundColor:ee.BLUE_DARK},"&.Mui-focusVisible":{borderColor:ee.BLUE_PALE,boxShadow:`0 0 0 3px ${Sa(ee.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:ee.ORANGE_PALE},"&:active":{backgroundColor:ee.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:ee.ORANGE_PALE,boxShadow:`0 0 0 3px ${Sa(ee.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:ee.RED_PALE},"&:active":{backgroundColor:ee.RED_DARK},"&.Mui-focusVisible":{borderColor:ee.RED_PALE,boxShadow:`0 0 0 3px ${Sa(ee.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:ee.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:ee.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:ie,boxShadow:`inset 0 0 0 2px ${ee.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:J.createElement(ge,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:te,borderRadius:ie,color:ee.TEXT_PRIMARY,backgroundColor:ee.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:ee.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${ee.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:ee.GREYSCALE_0_05,color:ee.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:ee.GREEN,borderColor:ee.GREEN},"&.MuiChip-outlinedInfo":{color:ee.BLUE,borderColor:ee.BLUE},"&.MuiChip-outlinedWarning":{color:ee.ORANGE,borderColor:ee.ORANGE},"&.MuiChip-outlinedError":{color:ee.RED,borderColor:ee.RED}},outlined:{border:`solid 1px ${ee.GREYSCALE_0_15}`,backgroundColor:ee.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:ie,boxShadow:"none",backgroundColor:ee.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:ee.GREEN,borderColor:ee.GREEN},outlinedSecondary:{color:ee.BLUE,borderColor:ee.BLUE},label:{fontFamily:ce.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:J.createElement(ge,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:J.createElement(me,{"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:ie},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:ie,fontSize:ne,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:ee.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${ee.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:ee.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:ee.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:ee.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:ie,border:`solid 1px ${ee.GREYSCALE_0_15}`,color:ee.GREYSCALE_0_60,marginRight:0,width:oe,height:oe},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${ee.GREYSCALE_0_15}`},clearIndicator:{borderRadius:ie,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:ee.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:ne}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:te,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:ee.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:ee.GREYSCALE_25,fontSize:te,fontFamily:ce.FONT_FAMILY,fontWeight:se,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:ee.TEXT_PRIMARY},"&.Mui-error":{color:ee.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:ee.TEXT_SECONDARY,content:"'(optional)'",fontWeight:le,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:ee.TEXT_SECONDARY,content:"'(required)'",fontWeight:le,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:ne,lineHeight:"16px",backgroundColor:ee.WHITE,borderRadius:ie,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ee.GREYSCALE_0_05}`,borderColor:ee.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ee.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${ee.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${ee.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ee.RED}`,boxShadow:`0px 0px 0px 1px ${ee.RED}, inset 0 2px 0 0 ${ee.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ee.GREYSCALE_0_10}`,borderColor:ee.GREYSCALE_0_10,backgroundColor:ee.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:ee.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:ee.GREYSCALE_0_15,borderRadius:ie,boxShadow:`inset 0 2px 0 0 ${ee.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>J.createElement(me,{...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:ee.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:ee.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:ee.GREYSCALE_0_03},"&:active":{backgroundColor:ee.GREYSCALE_0_10},"&:focus":{backgroundColor:ee.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${ee.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${ee.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:ee.GREYSCALE_0_30,"&:hover":{backgroundColor:ee.GREYSCALE_0_0,borderColor:ee.GREYSCALE_0_15},"& ~svg":{color:ee.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${ee.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:ie}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:ee.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${ee.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:ee.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:ne,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:te,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:te,fontWeight:se,color:ee.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:se}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${ee.GREYSCALE_0_15}, 0px 0px 0px 1px ${ee.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:J.createElement(xe,null),checkedIcon:J.createElement(Se,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:ee.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${ee.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:ee.GREEN_PALE,boxShadow:`0 0 0 3px ${Sa(ee.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:ee.BLUE_PALE,boxShadow:`0 0 0 3px ${Sa(ee.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:ee.GREYSCALE_0_20}},"&.Mui-disabled":{fill:ee.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:J.createElement(Sw,null),checkedIcon:J.createElement(ve,null),indeterminateIcon:J.createElement(ye,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:ie,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:ee.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:ee.GREYSCALE_0_55,color:ee.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:ee.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:ee.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:ee.GREYSCALE_0_55,"&:hover":{color:ee.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:ee.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:ee.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:ne,color:ee.TEXT_PRIMARY,lineHeight:"16px",fontWeight:se},secondary:{fontSize:te,color:ee.GREYSCALE_45,fontWeight:le,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:ne,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:ee.GREYSCALE_0_03},"&:active":{backgroundColor:ee.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:ne,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:ee.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:te,borderBottom:`solid 1px ${ee.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:ne,color:ee.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:ee.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:ee.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:ee.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:ee.RED}}},"&.Mui-focusVisible":{backgroundColor:ee.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:ee.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:ee.GREEN,height:"24px","&.Mui-disabled":{color:ee.GREYSCALE_0_15}},rail:{backgroundColor:ee.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${ee.GREYSCALE_0_05}`,borderRadius:ie,boxShadow:`inset 0px 0px 0px 1px ${ee.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${ee.GREYSCALE_0_05}`,borderRadius:ie},thumb:{height:"16px",width:"16px",borderRadius:ie,backgroundColor:ee.WHITE,boxShadow:`0px 1px 2px 0px ${ee.GREYSCALE_0_15}, 0px 0px 0px 1px ${ee.GREYSCALE_0_05}`,"&:hover":{borderRadius:ie,boxShadow:`0 2px 4px 0 ${ee.GREYSCALE_0_30}, 0 0 0 1px ${ee.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${ee.GREYSCALE_0_15}, 0 0 0 1px ${ee.GREYSCALE_0_06}, 0 0 0 2px ${ee.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${ee.GREYSCALE_0_15}, 0 0 0 1px ${ee.GREYSCALE_0_06}, 0 0 0 2px ${ee.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:ee.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:ee.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:ee.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:ee.GREYSCALE_0_15},markLabel:{color:ee.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:ee.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:ee.WHITE,color:ee.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:ee.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:ee.GREEN_PALE,boxShadow:`0 0 0 3px ${Sa(ee.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:ee.BLUE_PALE,boxShadow:`0 0 0 3px ${Sa(ee.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:ee.GREYSCALE_0_15,borderRadius:ie},thumb:{height:"16px",width:"16px",borderRadius:ie,backgroundColor:ee.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:ne,fontWeight:se,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${ee.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${ee.MISC_FOCUS_BORDER}`,backgroundColor:ee.GREYSCALE_0_03,borderRadius:ie},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:ee.GREYSCALE_25,"&.Mui-selected":{color:ee.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:ne,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${ee.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${ee.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${ee.GREYSCALE_85}`,borderRight:`1px solid ${ee.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:se,backgroundColor:ee.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:ee.GREYSCALE_98,borderBottom:`1px solid ${ee.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${ee.GREYSCALE_85}`,borderTop:`1px solid ${ee.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:ee.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:ee.GREYSCALE_0_05,"&:hover":{backgroundColor:ee.GREYSCALE_0_03}},"&&:hover":{backgroundColor:ee.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>J.createElement(Ee,{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 ${ee.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:ne,borderRadius:ie,padding:"7px 16px",border:`1px solid ${ee.GREYSCALE_0_15}`,backgroundColor:ee.GREYSCALE_100_60,color:ee.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:ee.GREYSCALE_0_10,border:`1px solid ${ee.GREYSCALE_0_30}`},"&:hover":{backgroundColor:ee.GREYSCALE_0_03,border:`1px solid ${ee.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:ee.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${ee.MISC_FOCUS_BORDER}`,border:`1px solid ${ee.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:ee.GREYSCALE_25,backgroundColor:ee.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:ee.GREYSCALE_0_10,border:`1px solid ${ee.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:te,height:24,width:24,padding:7},sizeLarge:{fontSize:re,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:ne,borderRadius:ie}}},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:ee.GREYSCALE_20},tooltip:{backgroundColor:ee.GREYSCALE_20,fontSize:te,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const ww={mode:"light",primary:{light:ee.GREEN_PALE,main:ee.GREEN,dark:ee.GREEN_DARK,contrastText:ee.WHITE},secondary:{light:ee.BLUE_PALE,main:ee.BLUE,dark:ee.BLUE_DARK,contrastText:ee.WHITE},error:{light:ee.RED_PALE,main:ee.RED,dark:ee.RED_DARK,contrastText:ee.WHITE},warning:{light:ee.ORANGE_PALE,main:ee.ORANGE,dark:ee.ORANGE_DARK,contrastText:ee.WHITE},success:{light:ee.GREEN_PALE,main:ee.GREEN,dark:ee.GREEN_DARK,contrastText:ee.WHITE},info:{light:ee.BLUE_PALE,main:ee.BLUE,dark:ee.BLUE_DARK,contrastText:ee.WHITE},text:{primary:ee.TEXT_PRIMARY,secondary:ee.TEXT_SECONDARY,disabled:ee.GREYSCALE_0_30},action:{hover:ee.GREYSCALE_0_03,hoverOpacity:.05,selected:ee.GREYSCALE_0_05,focus:ee.MISC_FOCUS_BORDER},amethyst:{main:ee.PURPLE,light:ee.PURPLE_PALE,dark:ee.PURPLE_DARK,contrastText:ee.WHITE},background:{paper:ee.WHITE,default:ee.GREYSCALE_95},divider:ee.GREYSCALE_0_15},Cw=e=>({components:Ew,palette:ww,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:ne,fontWeightLight:ae,fontWeightRegular:le,fontWeightMedium:se,fontWeightBold:ue,htmlFontSize:ne,fontFamily:ce.FONT_FAMILY,button:{fontWeight:se,fontSize:ne,textTransform:"none"},body1:{fontSize:re,lineHeight:"24px"},body2:{fontSize:ne,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:oe,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:re,fontWeight:se,lineHeight:"16px"},h6:{fontSize:ne,fontWeight:se,lineHeight:"16px"},caption:{color:ee.TEXT_SECONDARY},subtitle1:{fontSize:ne,color:ee.TEXT_SECONDARY},subtitle2:{fontSize:te,color:ee.TEXT_SECONDARY}},shape:{borderRadius:ie}}),Rw={...Z,MISC_FOCUS_BORDER:ee.MISC_FOCUS_BORDER},kw=Cw().palette,Aw={TEXT:kw.text.primary,DISABLED:kw.text.disabled,HOVER:kw.action.hover,WHITE:Rw.GREYSCALE_100,BORDER_LIGHT:Rw.GREYSCALE_90,BORDER_MEDIUM:Rw.GREYSCALE_85,BORDER_HEAVY:Rw.GREYSCALE_50,DARK_MODE_TEXT:Rw.GREYSCALE_95,DARK_MODE_BORDER:Rw.GREYSCALE_95,DARK_MODE_DISABLED:Rw.GREYSCALE_70,DARK_MODE_BACKGROUND:Rw.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:Rw.GREYSCALE_95};function Pw(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Lw(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Iw(){}var Dw=.7,_w=1/Dw,Mw="\\s*([+-]?\\d+)\\s*",Tw="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ow="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Nw=/^#([0-9a-f]{3,8})$/,qw=new RegExp(`^rgb\\(${Mw},${Mw},${Mw}\\)$`),zw=new RegExp(`^rgb\\(${Ow},${Ow},${Ow}\\)$`),Fw=new RegExp(`^rgba\\(${Mw},${Mw},${Mw},${Tw}\\)$`),jw=new RegExp(`^rgba\\(${Ow},${Ow},${Ow},${Tw}\\)$`),$w=new RegExp(`^hsl\\(${Tw},${Ow},${Ow}\\)$`),Bw=new RegExp(`^hsla\\(${Tw},${Ow},${Ow},${Tw}\\)$`),Hw={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 Vw(){return this.rgb().formatHex()}function Ww(){return this.rgb().formatRgb()}function Uw(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Nw.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Gw(t):3===n?new Jw(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Yw(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Yw(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=qw.exec(e))?new Jw(t[1],t[2],t[3],1):(t=zw.exec(e))?new Jw(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Fw.exec(e))?Yw(t[1],t[2],t[3],t[4]):(t=jw.exec(e))?Yw(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=$w.exec(e))?rC(t[1],t[2]/100,t[3]/100,1):(t=Bw.exec(e))?rC(t[1],t[2]/100,t[3]/100,t[4]):Hw.hasOwnProperty(e)?Gw(Hw[e]):"transparent"===e?new Jw(NaN,NaN,NaN,0):null}function Gw(e){return new Jw(e>>16&255,e>>8&255,255&e,1)}function Yw(e,t,n,r){return r<=0&&(e=t=n=NaN),new Jw(e,t,n,r)}function Kw(e){return e instanceof Iw||(e=Uw(e)),e?new Jw((e=e.rgb()).r,e.g,e.b,e.opacity):new Jw}function Xw(e,t,n,r){return 1===arguments.length?Kw(e):new Jw(e,t,n,null==r?1:r)}function Jw(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Qw(){return`#${nC(this.r)}${nC(this.g)}${nC(this.b)}`}function Zw(){const e=eC(this.opacity);return`${1===e?"rgb(":"rgba("}${tC(this.r)}, ${tC(this.g)}, ${tC(this.b)}${1===e?")":`, ${e})`}`}function eC(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function tC(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function nC(e){return((e=tC(e))<16?"0":"")+e.toString(16)}function rC(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new iC(e,t,n,r)}function oC(e){if(e instanceof iC)return new iC(e.h,e.s,e.l,e.opacity);if(e instanceof Iw||(e=Uw(e)),!e)return new iC;if(e instanceof iC)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new iC(a,l,s,e.opacity)}function iC(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function aC(e){return(e=(e||0)%360)<0?e+360:e}function lC(e){return Math.max(0,Math.min(1,e||0))}function sC(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Pw(Iw,Uw,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Vw,formatHex:Vw,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return oC(this).formatHsl()},formatRgb:Ww,toString:Ww}),Pw(Jw,Xw,Lw(Iw,{brighter(e){return e=null==e?_w:Math.pow(_w,e),new Jw(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Dw:Math.pow(Dw,e),new Jw(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Jw(tC(this.r),tC(this.g),tC(this.b),eC(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:Qw,formatHex:Qw,formatHex8:function(){return`#${nC(this.r)}${nC(this.g)}${nC(this.b)}${nC(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Zw,toString:Zw})),Pw(iC,(function(e,t,n,r){return 1===arguments.length?oC(e):new iC(e,t,n,null==r?1:r)}),Lw(Iw,{brighter(e){return e=null==e?_w:Math.pow(_w,e),new iC(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Dw:Math.pow(Dw,e),new iC(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,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Jw(sC(e>=240?e-240:e+120,o,r),sC(e,o,r),sC(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new iC(aC(this.h),lC(this.s),lC(this.l),eC(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=eC(this.opacity);return`${1===e?"hsl(":"hsla("}${aC(this.h)}, ${100*lC(this.s)}%, ${100*lC(this.l)}%${1===e?")":`, ${e})`}`}}));const uC=Math.PI/180,cC=180/Math.PI,dC=.96422,pC=1,fC=.82521,mC=4/29,hC=6/29,gC=3*hC*hC,bC=hC*hC*hC;function vC(e){if(e instanceof yC)return new yC(e.l,e.a,e.b,e.opacity);if(e instanceof RC)return kC(e);e instanceof Jw||(e=Kw(e));var t,n,r=wC(e.r),o=wC(e.g),i=wC(e.b),a=xC((.2225045*r+.7168786*o+.0606169*i)/pC);return r===o&&o===i?t=n=a:(t=xC((.4360747*r+.3850649*o+.1430804*i)/dC),n=xC((.0139322*r+.0971045*o+.7141733*i)/fC)),new yC(116*a-16,500*(t-a),200*(a-n),e.opacity)}function yC(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function xC(e){return e>bC?Math.pow(e,1/3):e/gC+mC}function SC(e){return e>hC?e*e*e:gC*(e-mC)}function EC(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function wC(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function CC(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof RC)return new RC(e.h,e.c,e.l,e.opacity);if(e instanceof yC||(e=vC(e)),0===e.a&&0===e.b)return new RC(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*cC;return new RC(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new RC(e,t,n,null==r?1:r)}function RC(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function kC(e){if(isNaN(e.h))return new yC(e.l,0,0,e.opacity);var t=e.h*uC;return new yC(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Pw(yC,(function(e,t,n,r){return 1===arguments.length?vC(e):new yC(e,t,n,null==r?1:r)}),Lw(Iw,{brighter(e){return new yC(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new yC(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,n=isNaN(this.b)?e:e-this.b/200;return new Jw(EC(3.1338561*(t=dC*SC(t))-1.6168667*(e=pC*SC(e))-.4906146*(n=fC*SC(n))),EC(-.9787684*t+1.9161415*e+.033454*n),EC(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Pw(RC,CC,Lw(Iw,{brighter(e){return new RC(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new RC(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return kC(this).rgb()}}));const AC=(e,t)=>{const n=CC(e),r=n.l<70;return 0===n.opacity?(n.opacity=t.opacity,n.toString()):r?n.brighter(t.brighter).toString():n.darker(t.darker).toString()},PC=e=>{if(e){const t=Xw(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},LC=e=>!!e&&0===Xw(e).opacity,IC=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,DC=e=>{const t=IC.exec(e);if(t){const[,e,n,r,o]=t;return Xw(+n,+r,+o,+e/255)}return Xw(e)},_C=e=>{const t=DC(e);return Number.isNaN(t.r)?null:t.toString()},MC=e=>{if(void 0===e)return;const t=DC(e);return t.opacity=1,t.toString()},TC=(e,t,n)=>{var r,o,i,a;const l=null!==(r=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!==r?r: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,n)},OC=e=>{e.stopPropagation(),e.preventDefault()},NC="#grid",qC=(e,t)=>{const n=null==t?void 0:t.closest(e);return n&&window.getComputedStyle(n).backgroundColor},zC=(e,t,n,r,o)=>{const i=qC(".qv-object .qv-inner-object",n),a=qC(".qv-panel-sheet",n),l=qC(NC,n),s=null!=l?l:a,u=(e=>{var t,n,r,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(n=l.bgColor)||void 0===n?void 0:n.colorExpression,u=null==l||null===(r=l.bgColor)||void 0===r||null===(r=r.color)||void 0===r?void 0:r.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return _C(s);if("none"===u)return"transparent";if(void 0===u)return;const c=DC(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==r?void 0:r(t),d=null==o?void 0:o(t),p=c||i||d,f=LC(p),m=PC(f?s:p),h=((e,t,n)=>e&&!LC(e)?e:LC(t)?n&&!LC(n)?n:Aw.WHITE:t)(u,p,s);return{color:p,headerColor:h,isDark:m}},FC=(t,n,r,o)=>{const i=e.useTheme(),a=((t,n={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,o]=e.useState([]);return e.useEffect((()=>{let e;return t&&(e=new MutationObserver((e=>{o(e)})),e.observe(t,n)),()=>{var t;null===(t=e)||void 0===t||t.disconnect()}}),[t,n]),r})(null==n?void 0:n.closest(NC),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return e.useMemo((()=>({...i,background:zC(t,i,n,r,o)})),[i.name(),n,r,o,t,a])};var jC=Object.prototype.hasOwnProperty,$C=Object.prototype.toString,BC=Object.defineProperty,HC=Object.getOwnPropertyDescriptor,VC=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===$C.call(e)},WC=function(e){if(!e||"[object Object]"!==$C.call(e))return!1;var t,n=jC.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&jC.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||jC.call(e,t)},UC=function(e,t){BC&&"__proto__"===t.name?BC(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},GC=function(e,t){if("__proto__"===t){if(!jC.call(e,t))return;if(HC)return HC(e,t).value}return e[t]};function YC(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function KC(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function XC(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=GC(l,n),l!==(o=GC(t,n))&&(c&&o&&(WC(o)||(i=VC(o)))?(i?(i=!1,a=r&&VC(r)?r:[]):a=r&&WC(r)?r:{},UC(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&UC(l,{name:n,newValue:o}));return l}));var JC=1/.7,QC="\\s*([+-]?\\d+)\\s*",ZC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",eR="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tR=/^#([0-9a-f]{3,8})$/,nR=new RegExp(`^rgb\\(${QC},${QC},${QC}\\)$`),rR=new RegExp(`^rgb\\(${eR},${eR},${eR}\\)$`),oR=new RegExp(`^rgba\\(${QC},${QC},${QC},${ZC}\\)$`),iR=new RegExp(`^rgba\\(${eR},${eR},${eR},${ZC}\\)$`),aR=new RegExp(`^hsl\\(${ZC},${eR},${eR}\\)$`),lR=new RegExp(`^hsla\\(${ZC},${eR},${eR},${ZC}\\)$`),sR={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 uR(){return this.rgb().formatHex()}function cR(){return this.rgb().formatRgb()}function dR(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=tR.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?pR(t):3===n?new gR(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?fR(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?fR(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=nR.exec(e))?new gR(t[1],t[2],t[3],1):(t=rR.exec(e))?new gR(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=oR.exec(e))?fR(t[1],t[2],t[3],t[4]):(t=iR.exec(e))?fR(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=aR.exec(e))?ER(t[1],t[2]/100,t[3]/100,1):(t=lR.exec(e))?ER(t[1],t[2]/100,t[3]/100,t[4]):sR.hasOwnProperty(e)?pR(sR[e]):"transparent"===e?new gR(NaN,NaN,NaN,0):null}function pR(e){return new gR(e>>16&255,e>>8&255,255&e,1)}function fR(e,t,n,r){return r<=0&&(e=t=n=NaN),new gR(e,t,n,r)}function mR(e){return e instanceof XC||(e=dR(e)),e?new gR((e=e.rgb()).r,e.g,e.b,e.opacity):new gR}function hR(e,t,n,r){return 1===arguments.length?mR(e):new gR(e,t,n,null==r?1:r)}function gR(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function bR(){return`#${SR(this.r)}${SR(this.g)}${SR(this.b)}`}function vR(){const e=yR(this.opacity);return`${1===e?"rgb(":"rgba("}${xR(this.r)}, ${xR(this.g)}, ${xR(this.b)}${1===e?")":`, ${e})`}`}function yR(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function xR(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function SR(e){return((e=xR(e))<16?"0":"")+e.toString(16)}function ER(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new CR(e,t,n,r)}function wR(e){if(e instanceof CR)return new CR(e.h,e.s,e.l,e.opacity);if(e instanceof XC||(e=dR(e)),!e)return new CR;if(e instanceof CR)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new CR(a,l,s,e.opacity)}function CR(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function RR(e){return(e=(e||0)%360)<0?e+360:e}function kR(e){return Math.max(0,Math.min(1,e||0))}function AR(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}YC(XC,dR,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:uR,formatHex:uR,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return wR(this).formatHsl()},formatRgb:cR,toString:cR}),YC(gR,hR,KC(XC,{brighter(e){return e=null==e?JC:Math.pow(JC,e),new gR(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new gR(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new gR(xR(this.r),xR(this.g),xR(this.b),yR(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:bR,formatHex:bR,formatHex8:function(){return`#${SR(this.r)}${SR(this.g)}${SR(this.b)}${SR(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:vR,toString:vR})),YC(CR,(function(e,t,n,r){return 1===arguments.length?wR(e):new CR(e,t,n,null==r?1:r)}),KC(XC,{brighter(e){return e=null==e?JC:Math.pow(JC,e),new CR(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new CR(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,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new gR(AR(e>=240?e-240:e+120,o,r),AR(e,o,r),AR(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new CR(RR(this.h),kR(this.s),kR(this.l),yR(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=yR(this.opacity);return`${1===e?"hsl(":"hsla("}${RR(this.h)}, ${100*kR(this.s)}%, ${100*kR(this.l)}%${1===e?")":`, ${e})`}`}}));const PR=Math.PI/180,LR=180/Math.PI,IR=4/29,DR=6/29,_R=3*DR*DR;function MR(e){if(e instanceof TR)return new TR(e.l,e.a,e.b,e.opacity);if(e instanceof FR)return jR(e);e instanceof gR||(e=mR(e));var t,n,r=zR(e.r),o=zR(e.g),i=zR(e.b),a=OR((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=OR((.4360747*r+.3850649*o+.1430804*i)/.96422),n=OR((.0139322*r+.0971045*o+.7141733*i)/.82521)),new TR(116*a-16,500*(t-a),200*(a-n),e.opacity)}function TR(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function OR(e){return e>.008856451679035631?Math.pow(e,1/3):e/_R+IR}function NR(e){return e>DR?e*e*e:_R*(e-IR)}function qR(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function zR(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function FR(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function jR(e){if(isNaN(e.h))return new TR(e.l,0,0,e.opacity);var t=e.h*PR;return new TR(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}YC(TR,(function(e,t,n,r){return 1===arguments.length?MR(e):new TR(e,t,n,null==r?1:r)}),KC(XC,{brighter(e){return new TR(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new TR(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,n=isNaN(this.b)?e:e-this.b/200;return new gR(qR(3.1338561*(t=.96422*NR(t))-1.6168667*(e=1*NR(e))-.4906146*(n=.82521*NR(n))),qR(-.9787684*t+1.9161415*e+.033454*n),qR(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),YC(FR,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof FR)return new FR(e.h,e.c,e.l,e.opacity);if(e instanceof TR||(e=MR(e)),0===e.a&&0===e.b)return new FR(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*LR;return new FR(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new FR(e,t,n,null==r?1:r)}),KC(XC,{brighter(e){return new FR(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new FR(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return jR(this).rgb()}}));var $R,BR=e=>()=>e;function HR(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):BR(isNaN(e)?t:e)}function VR(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function WR(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function UR(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=YR)):void 0===t&&(t=GR);for(var n,r,o,i,a,l=new JR(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new JR(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(XR)}function GR(e){return e.children}function YR(e){return Array.isArray(e)?e[1]:null}function KR(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function XR(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function JR(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var n=function(e){return 1==(e=+e)?HR:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):BR(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=hR(e)).r,(t=hR(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=HR(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1),JR.prototype=UR.prototype={constructor:JR,count:function(){return this.eachAfter(WR)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},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(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return UR(this).eachBefore(KR)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},$R=function(e){
117
117
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
118
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,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(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[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"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},WR({exports:{}});var tk=["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"],nk=["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 rk(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?nk:tk}const ok=3;function ik(e,t,n){let r=0,o=e.length;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=o;){const i=Math.floor((r+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=n(a),u=n(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?r=i+1:o=i}return null}function ak({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=ok}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=X.useMemo((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const a=GR(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=GR((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,o=e;do{r+=1,o=ik(o,t,l)}while(null!==o&&r<i);return r}),(({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:s}}),[n,r,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var lk,sk=ry;function uk(e,t){const[n,r]=X.useState(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}lk=sk.createRoot,sk.hydrateRoot;var ck={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 dk=({translator:e})=>(X.useMemo((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(ck).forEach((t=>{e.add(ck[t])}))}}(e)),[e]),e),pk="12px",fk="nebula-table-utils-head-menu-button",mk="nebula-table-utils-head-menu-wrapper",hk="nebula-table-utils-head-menu",gk="nebula-table-utils-head-menu-list-id",bk="sn-copy-cell";let vk=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 yk="nebula-table-utils-column-adjuster",xk=`${yk}-border`;let Sk=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}({}),Ek=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const wk={hover:{darker:.15,brighter:.3,opacity:.03},active:{darker:.3,brighter:.5,opacity:.05}},Ck=document.createElement("textarea");function Rk(e){Ck.value=e,document.body.appendChild(Ck),Ck.select(),Ck.setSelectionRange(0,Ck.value.length),document.execCommand("copy"),document.body.removeChild(Ck)}Ck.style.position="absolute",Ck.style.left="-9999px",Ck.setAttribute("readonly","");const kk=e=>{var t;const n=e.title;n&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(n).catch((()=>Rk(n))):Rk(n))};var Ak=Object.prototype.hasOwnProperty,Lk=Object.prototype.toString,Pk=Object.defineProperty,Ik=Object.getOwnPropertyDescriptor,Dk=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Lk.call(e)},_k=function(e){if(!e||"[object Object]"!==Lk.call(e))return!1;var t,n=Ak.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Ak.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Ak.call(e,t)},Mk=function(e,t){Pk&&"__proto__"===t.name?Pk(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Tk=function(e,t){if("__proto__"===t){if(!Ak.call(e,t))return;if(Ik)return Ik(e,t).value}return e[t]};function Ok(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Nk(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function qk(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=Tk(l,n),l!==(o=Tk(t,n))&&(c&&o&&(_k(o)||(i=Dk(o)))?(i?(i=!1,a=r&&Dk(r)?r:[]):a=r&&_k(r)?r:{},Mk(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&Mk(l,{name:n,newValue:o}));return l}));var zk=1/.7,Fk="\\s*([+-]?\\d+)\\s*",jk="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",$k="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Bk=/^#([0-9a-f]{3,8})$/,Hk=new RegExp(`^rgb\\(${Fk},${Fk},${Fk}\\)$`),Wk=new RegExp(`^rgb\\(${$k},${$k},${$k}\\)$`),Vk=new RegExp(`^rgba\\(${Fk},${Fk},${Fk},${jk}\\)$`),Uk=new RegExp(`^rgba\\(${$k},${$k},${$k},${jk}\\)$`),Gk=new RegExp(`^hsl\\(${jk},${$k},${$k}\\)$`),Yk=new RegExp(`^hsla\\(${jk},${$k},${$k},${jk}\\)$`),Kk={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 Xk(){return this.rgb().formatHex()}function Jk(){return this.rgb().formatRgb()}function Qk(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Bk.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Zk(t):3===n?new rA(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?eA(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?eA(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=Hk.exec(e))?new rA(t[1],t[2],t[3],1):(t=Wk.exec(e))?new rA(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Vk.exec(e))?eA(t[1],t[2],t[3],t[4]):(t=Uk.exec(e))?eA(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Gk.exec(e))?uA(t[1],t[2]/100,t[3]/100,1):(t=Yk.exec(e))?uA(t[1],t[2]/100,t[3]/100,t[4]):Kk.hasOwnProperty(e)?Zk(Kk[e]):"transparent"===e?new rA(NaN,NaN,NaN,0):null}function Zk(e){return new rA(e>>16&255,e>>8&255,255&e,1)}function eA(e,t,n,r){return r<=0&&(e=t=n=NaN),new rA(e,t,n,r)}function tA(e){return e instanceof qk||(e=Qk(e)),e?new rA((e=e.rgb()).r,e.g,e.b,e.opacity):new rA}function nA(e,t,n,r){return 1===arguments.length?tA(e):new rA(e,t,n,null==r?1:r)}function rA(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function oA(){return`#${sA(this.r)}${sA(this.g)}${sA(this.b)}`}function iA(){const e=aA(this.opacity);return`${1===e?"rgb(":"rgba("}${lA(this.r)}, ${lA(this.g)}, ${lA(this.b)}${1===e?")":`, ${e})`}`}function aA(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function lA(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function sA(e){return((e=lA(e))<16?"0":"")+e.toString(16)}function uA(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new dA(e,t,n,r)}function cA(e){if(e instanceof dA)return new dA(e.h,e.s,e.l,e.opacity);if(e instanceof qk||(e=Qk(e)),!e)return new dA;if(e instanceof dA)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new dA(a,l,s,e.opacity)}function dA(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function pA(e){return(e=(e||0)%360)<0?e+360:e}function fA(e){return Math.max(0,Math.min(1,e||0))}function mA(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ok(qk,Qk,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Xk,formatHex:Xk,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return cA(this).formatHsl()},formatRgb:Jk,toString:Jk}),Ok(rA,nA,Nk(qk,{brighter(e){return e=null==e?zk:Math.pow(zk,e),new rA(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new rA(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new rA(lA(this.r),lA(this.g),lA(this.b),aA(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:oA,formatHex:oA,formatHex8:function(){return`#${sA(this.r)}${sA(this.g)}${sA(this.b)}${sA(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:iA,toString:iA})),Ok(dA,(function(e,t,n,r){return 1===arguments.length?cA(e):new dA(e,t,n,null==r?1:r)}),Nk(qk,{brighter(e){return e=null==e?zk:Math.pow(zk,e),new dA(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new dA(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,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new rA(mA(e>=240?e-240:e+120,o,r),mA(e,o,r),mA(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new dA(pA(this.h),fA(this.s),fA(this.l),aA(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=aA(this.opacity);return`${1===e?"hsl(":"hsla("}${pA(this.h)}, ${100*fA(this.s)}%, ${100*fA(this.l)}%${1===e?")":`, ${e})`}`}}));const hA=Math.PI/180,gA=180/Math.PI,bA=4/29,vA=6/29,yA=3*vA*vA;function xA(e){if(e instanceof SA)return new SA(e.l,e.a,e.b,e.opacity);if(e instanceof kA)return AA(e);e instanceof rA||(e=tA(e));var t,n,r=RA(e.r),o=RA(e.g),i=RA(e.b),a=EA((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=EA((.4360747*r+.3850649*o+.1430804*i)/.96422),n=EA((.0139322*r+.0971045*o+.7141733*i)/.82521)),new SA(116*a-16,500*(t-a),200*(a-n),e.opacity)}function SA(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function EA(e){return e>.008856451679035631?Math.pow(e,1/3):e/yA+bA}function wA(e){return e>vA?e*e*e:yA*(e-bA)}function CA(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function RA(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function kA(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function AA(e){if(isNaN(e.h))return new SA(e.l,0,0,e.opacity);var t=e.h*hA;return new SA(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ok(SA,(function(e,t,n,r){return 1===arguments.length?xA(e):new SA(e,t,n,null==r?1:r)}),Nk(qk,{brighter(e){return new SA(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new SA(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,n=isNaN(this.b)?e:e-this.b/200;return new rA(CA(3.1338561*(t=.96422*wA(t))-1.6168667*(e=1*wA(e))-.4906146*(n=.82521*wA(n))),CA(-.9787684*t+1.9161415*e+.033454*n),CA(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ok(kA,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof kA)return new kA(e.h,e.c,e.l,e.opacity);if(e instanceof SA||(e=xA(e)),0===e.a&&0===e.b)return new kA(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*gA;return new kA(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new kA(e,t,n,null==r?1:r)}),Nk(qk,{brighter(e){return new kA(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new kA(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return AA(this).rgb()}}));var LA=e=>()=>e;function PA(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):LA(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?PA:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):LA(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=nA(e)).r,(t=nA(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=PA(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var IA="center",DA="bottom";[{key:"NoDataExist",alignment:IA,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:IA,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:IA,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:IA},{key:"DataRangeIncludingZero",alignment:DA},{key:"LimitedData",alignment:DA},{key:"NegativeOrZeroValues",alignment:DA}].reduce((function(e,t){return e[t.key]=t,e}),{});var _A,MA=["__proto__","constructor"];function TA(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!MA.some((function(e){return r.includes(e)}))){for(var i=e,a=0;a<r.length-1;++a){var l=r[a];void 0===i[l]&&(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}}}function OA(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function NA(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=zA)):void 0===t&&(t=qA);for(var n,r,o,i,a,l=new $A(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new $A(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(jA)}function qA(e){return e.children}function zA(e){return Array.isArray(e)?e[1]:null}function FA(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function jA(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function $A(e){this.data=e,this.depth=this.height=0,this.parent=null}$A.prototype=NA.prototype={constructor:$A,count:function(){return this.eachAfter(OA)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},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(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return NA(this).eachBefore(FA)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},_A=function(e){
118
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,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(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[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"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},$R({exports:{}});var QR=["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"],ZR=["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 ek(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?ZR:QR}const tk=3;function nk(e,t,n){let r=0,o=e.length;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=o;){const i=Math.floor((r+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=n(a),u=n(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?r=i+1:o=i}return null}function rk({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=tk}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=X.useMemo((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const a=VR(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=VR((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,o=e;do{r+=1,o=nk(o,t,l)}while(null!==o&&r<i);return r}),(({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:s}}),[n,r,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var ok,ik=ey;function ak(e,t){const[n,r]=X.useState(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}ok=ik.createRoot,ik.hydrateRoot;var lk={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 sk=({translator:e})=>(X.useMemo((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(lk).forEach((t=>{e.add(lk[t])}))}}(e)),[e]),e),uk="12px",ck="nebula-table-utils-head-menu-button",dk="nebula-table-utils-head-menu-wrapper",pk="nebula-table-utils-head-menu",fk="nebula-table-utils-head-menu-list-id",mk="sn-copy-cell";let hk=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 gk="nebula-table-utils-column-adjuster",bk=`${gk}-border`;let vk=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}({}),yk=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const xk={hover:{darker:.15,brighter:.3,opacity:.03},active:{darker:.3,brighter:.5,opacity:.05}},Sk=document.createElement("textarea");function Ek(e){Sk.value=e,document.body.appendChild(Sk),Sk.select(),Sk.setSelectionRange(0,Sk.value.length),document.execCommand("copy"),document.body.removeChild(Sk)}Sk.style.position="absolute",Sk.style.left="-9999px",Sk.setAttribute("readonly","");const wk=e=>{var t;const n=e.title;n&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(n).catch((()=>Ek(n))):Ek(n))};var Ck=Object.prototype.hasOwnProperty,Rk=Object.prototype.toString,kk=Object.defineProperty,Ak=Object.getOwnPropertyDescriptor,Pk=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Rk.call(e)},Lk=function(e){if(!e||"[object Object]"!==Rk.call(e))return!1;var t,n=Ck.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Ck.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Ck.call(e,t)},Ik=function(e,t){kk&&"__proto__"===t.name?kk(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Dk=function(e,t){if("__proto__"===t){if(!Ck.call(e,t))return;if(Ak)return Ak(e,t).value}return e[t]};function _k(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Mk(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Tk(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=Dk(l,n),l!==(o=Dk(t,n))&&(c&&o&&(Lk(o)||(i=Pk(o)))?(i?(i=!1,a=r&&Pk(r)?r:[]):a=r&&Lk(r)?r:{},Ik(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&Ik(l,{name:n,newValue:o}));return l}));var Ok=1/.7,Nk="\\s*([+-]?\\d+)\\s*",qk="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",zk="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Fk=/^#([0-9a-f]{3,8})$/,jk=new RegExp(`^rgb\\(${Nk},${Nk},${Nk}\\)$`),$k=new RegExp(`^rgb\\(${zk},${zk},${zk}\\)$`),Bk=new RegExp(`^rgba\\(${Nk},${Nk},${Nk},${qk}\\)$`),Hk=new RegExp(`^rgba\\(${zk},${zk},${zk},${qk}\\)$`),Vk=new RegExp(`^hsl\\(${qk},${zk},${zk}\\)$`),Wk=new RegExp(`^hsla\\(${qk},${zk},${zk},${qk}\\)$`),Uk={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 Gk(){return this.rgb().formatHex()}function Yk(){return this.rgb().formatRgb()}function Kk(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Fk.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Xk(t):3===n?new eA(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Jk(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Jk(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=jk.exec(e))?new eA(t[1],t[2],t[3],1):(t=$k.exec(e))?new eA(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Bk.exec(e))?Jk(t[1],t[2],t[3],t[4]):(t=Hk.exec(e))?Jk(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Vk.exec(e))?aA(t[1],t[2]/100,t[3]/100,1):(t=Wk.exec(e))?aA(t[1],t[2]/100,t[3]/100,t[4]):Uk.hasOwnProperty(e)?Xk(Uk[e]):"transparent"===e?new eA(NaN,NaN,NaN,0):null}function Xk(e){return new eA(e>>16&255,e>>8&255,255&e,1)}function Jk(e,t,n,r){return r<=0&&(e=t=n=NaN),new eA(e,t,n,r)}function Qk(e){return e instanceof Tk||(e=Kk(e)),e?new eA((e=e.rgb()).r,e.g,e.b,e.opacity):new eA}function Zk(e,t,n,r){return 1===arguments.length?Qk(e):new eA(e,t,n,null==r?1:r)}function eA(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function tA(){return`#${iA(this.r)}${iA(this.g)}${iA(this.b)}`}function nA(){const e=rA(this.opacity);return`${1===e?"rgb(":"rgba("}${oA(this.r)}, ${oA(this.g)}, ${oA(this.b)}${1===e?")":`, ${e})`}`}function rA(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function oA(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function iA(e){return((e=oA(e))<16?"0":"")+e.toString(16)}function aA(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new sA(e,t,n,r)}function lA(e){if(e instanceof sA)return new sA(e.h,e.s,e.l,e.opacity);if(e instanceof Tk||(e=Kk(e)),!e)return new sA;if(e instanceof sA)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new sA(a,l,s,e.opacity)}function sA(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function uA(e){return(e=(e||0)%360)<0?e+360:e}function cA(e){return Math.max(0,Math.min(1,e||0))}function dA(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}_k(Tk,Kk,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Gk,formatHex:Gk,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return lA(this).formatHsl()},formatRgb:Yk,toString:Yk}),_k(eA,Zk,Mk(Tk,{brighter(e){return e=null==e?Ok:Math.pow(Ok,e),new eA(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new eA(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new eA(oA(this.r),oA(this.g),oA(this.b),rA(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:tA,formatHex:tA,formatHex8:function(){return`#${iA(this.r)}${iA(this.g)}${iA(this.b)}${iA(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:nA,toString:nA})),_k(sA,(function(e,t,n,r){return 1===arguments.length?lA(e):new sA(e,t,n,null==r?1:r)}),Mk(Tk,{brighter(e){return e=null==e?Ok:Math.pow(Ok,e),new sA(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new sA(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,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new eA(dA(e>=240?e-240:e+120,o,r),dA(e,o,r),dA(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new sA(uA(this.h),cA(this.s),cA(this.l),rA(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=rA(this.opacity);return`${1===e?"hsl(":"hsla("}${uA(this.h)}, ${100*cA(this.s)}%, ${100*cA(this.l)}%${1===e?")":`, ${e})`}`}}));const pA=Math.PI/180,fA=180/Math.PI,mA=4/29,hA=6/29,gA=3*hA*hA;function bA(e){if(e instanceof vA)return new vA(e.l,e.a,e.b,e.opacity);if(e instanceof wA)return CA(e);e instanceof eA||(e=Qk(e));var t,n,r=EA(e.r),o=EA(e.g),i=EA(e.b),a=yA((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=yA((.4360747*r+.3850649*o+.1430804*i)/.96422),n=yA((.0139322*r+.0971045*o+.7141733*i)/.82521)),new vA(116*a-16,500*(t-a),200*(a-n),e.opacity)}function vA(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function yA(e){return e>.008856451679035631?Math.pow(e,1/3):e/gA+mA}function xA(e){return e>hA?e*e*e:gA*(e-mA)}function SA(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function EA(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function wA(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function CA(e){if(isNaN(e.h))return new vA(e.l,0,0,e.opacity);var t=e.h*pA;return new vA(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}_k(vA,(function(e,t,n,r){return 1===arguments.length?bA(e):new vA(e,t,n,null==r?1:r)}),Mk(Tk,{brighter(e){return new vA(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new vA(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,n=isNaN(this.b)?e:e-this.b/200;return new eA(SA(3.1338561*(t=.96422*xA(t))-1.6168667*(e=1*xA(e))-.4906146*(n=.82521*xA(n))),SA(-.9787684*t+1.9161415*e+.033454*n),SA(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),_k(wA,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof wA)return new wA(e.h,e.c,e.l,e.opacity);if(e instanceof vA||(e=bA(e)),0===e.a&&0===e.b)return new wA(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*fA;return new wA(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new wA(e,t,n,null==r?1:r)}),Mk(Tk,{brighter(e){return new wA(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new wA(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return CA(this).rgb()}}));var RA=e=>()=>e;function kA(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):RA(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?kA:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):RA(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Zk(e)).r,(t=Zk(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=kA(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var AA="center",PA="bottom";[{key:"NoDataExist",alignment:AA,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:AA,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:AA,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:AA},{key:"DataRangeIncludingZero",alignment:PA},{key:"LimitedData",alignment:PA},{key:"NegativeOrZeroValues",alignment:PA}].reduce((function(e,t){return e[t.key]=t,e}),{});var LA,IA=["__proto__","constructor"];function DA(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!IA.some((function(e){return r.includes(e)}))){for(var i=e,a=0;a<r.length-1;++a){var l=r[a];void 0===i[l]&&(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}}}function _A(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function MA(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=OA)):void 0===t&&(t=TA);for(var n,r,o,i,a,l=new zA(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new zA(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(qA)}function TA(e){return e.children}function OA(e){return Array.isArray(e)?e[1]:null}function NA(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function qA(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function zA(e){this.data=e,this.depth=this.height=0,this.parent=null}zA.prototype=MA.prototype={constructor:zA,count:function(){return this.eachAfter(_A)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},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(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return MA(this).eachBefore(NA)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},LA=function(e){
119
119
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
120
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,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(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[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"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},_A({exports:{}});var BA={exports:{}};!function(e){self,e.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,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(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,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(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,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(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,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(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](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 o={};(()=>{r.r(o),r.d(o,{default:()=>De});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}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 n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.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 r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"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),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"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,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[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,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.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 n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.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&&(r=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);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}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),k={},A=Array.isArray;function L(e){return null!=e&&!Array.isArray(e)&&"object"===C(e)}function P(e){return void 0===e}function I(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function D(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=P(e[n||t])?i:e[t],e=e[n||t]}})),e}function _(e,t){var n=!0;if(L(e)&&L(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){_(e[r],t[r])||(n=!1)})),n);if(A(e)&&A(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!_(e[r],t[r]))return!1;return!0}return e===t}k.generate=function(e,t,n){n=n||"";var r=[];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(n,"/").concat(o);_(i,a)||I(t,o)||(P(a)?r.push({op:"add",path:l,value:i}):L(i)&&L(a)?r=r.concat(k.generate(a,i,l)):A(i)&&A(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&P(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(_(t,o))return r;if(!P(t[0])&&P(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(k.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){P(t[o])&&!I(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},k.apply=function(e,t){t.forEach((function(t){var n,r,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(A(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(A(a)&&A(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)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(r)||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))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!I(n,e)&&delete n[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=D(e,t.from);A(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(A(o)?o.splice(+i,1):delete o[i])}))},k.clone=function(e){return R({},e)},k.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},k.updateObject=function(e,t){Object.keys(e).length?k.apply(e,k.generate(e,t)):R(e,t)};const M=k,T=function(e,n,r){if(!e)return Promise.resolve();var o=M.generate(n,r);return t()(!0,n,r),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 O="accumulation";function N(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===O)return n[r]}function q(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===O)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,z)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={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(q(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(q(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(q(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(q(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=N(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=N(t,e);return n&&!n.fullAccumulation}},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 E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(O))return!1;var i=N(t,e);return i&&!i.disabled}};return n}};var j="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function B(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var H={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,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),m=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var V="timeSeriesDecomposition";function U(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===V)return n[r]}function G(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===V)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):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,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):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]:{},n={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(G(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(G(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=U(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.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 n=U(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(V))return!1;var i=U(t,e);return i&&!i.disabled}};return n}};var X="difference";function J(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Q(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Z={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,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Z).forEach((function(t){void 0===e[t]&&(e[t]=Z[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={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(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 E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;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,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.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]:{},n={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(re(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(n){return function(e,t,n){var r=[{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 r=function(e,t){if(1===e){var n=oe(t,0);t.splice(n,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(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(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var n=oe(t,0);t.splice(n,1)}return t}(o,i),i=function(e,t){if(0===e){var n=oe(t,1);t.splice(n,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(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,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},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",ke="qDef.base.qAggrFunc",Ae={initBase:function(e,t){(t||Ae.isValid(e))&&(n(e,ve,i(e,be)),n(e,xe,i(e,ye)),n(e,we,i(e,Se)),n(e,Ce,i(e,Ee)))},restoreBase:function(e){Ae.isValid(e)&&(n(e,be,i(e,ve)),n(e,ye,i(e,xe)),n(e,Se,i(e,we)),n(e,Ee,i(e,Ce)),i(e,Re)&&i(e,ke)&&n(e,Re,i(e,ke)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),n=i(e,xe);return void 0!==t||void 0!==n}};const Le=Ae;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 Ie={accumulation:F,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const De={modifiers:Ie,apply:Me,applyModifiers:Te,cleanUpMeasure:Oe,destroy:function(e){e&&_e[e.id]&&_e[e.id].masterItemSubscriber&&(_e[e.id].masterItemSubscriber&&_e[e.id].masterItemSubscriber.unsubscribe(),delete _e[e.id])},hasActiveModifiers:Ne,getActiveModifier:qe,initBase:Le.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ie[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Ie[e]&&Ie[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Ge({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Qe({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:ze};var _e={};function Me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;_e[n.id]=_e[n.id]||{isFirstTime:!0};var u=_e[n.id].isFirstTime;if(_e[n.id].isFirstTime=!1,r&&"object"===Pe(r))return Te({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=_e[n.id].lastReloadTime;if(_e[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return m||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ge({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);Be(r);var o=Ze(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return m&&function(e){var t=e.properties;Fe(t).forEach((function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Pe(e)&&!e.disabled){if(n++,"object"!==Pe(Ie[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=Ie[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Te({model:n,oldProperties:e,properties:r,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)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Ze(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return Fe(r).forEach((function(e){return Oe(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function Te(e){var n=e.model,r=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===r&&(r=s?t()(!0,{},o):o),Be(o);var p=Ze(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=Fe(r)),!n.length)return Promise.resolve();if(!Ne({measures:n,properties:r}))return n.forEach((function(e){return Oe(e)})),Promise.resolve();var s=a?void 0:Ze(r);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ge({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Le.isValid(n)||Le.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Pe(e)&&!e.disabled){if(l++,"object"!==Pe(Ie[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)");Ie[e.type].initModifier(e,n);var s=n.qLibraryId||c&&c.qLibraryId;s?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Ie[r.type].generateExpression({expression:l,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:s,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Ie[r.type].updateModifier&&Ie[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:Ie[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||ze(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&ze(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),He(n)):Oe(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function Oe(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Pe(e)&&!e.disabled&&!Ie[e.type]}))}(e)?Le.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function Ne(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({modifiers:je(e),properties:n,layout:r})}))}function qe(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Ie[r.type]&&!r.disabled)return r}}function ze(e){var t=qe(e);return!t||Ie[t.type].enableTotalsFunction(e)}function Fe(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){Fe(e).forEach((function(e){return function(e){var n=qe(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!Le.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function He(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Pe(t)&&(t.disabled||!Ie[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ve(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,n=e.properties,r=e.layout;return!Ve(t)&&Ge({modifiers:je(t),properties:n,layout:r})}function Ge(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Pe(e)||e.disabled||!Ie[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ie[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.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,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):T(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Qe(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Pe(e)&&!e.disabled&&Ie[e.type]&&Ie[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Ze(e){var t=Fe(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ge({modifiers:r,properties:e})){var i=Ve(t);i&&n.push(i),o=o||Qe({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(_e[t.id].masterItemSubscriber=_e[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=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:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Me({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),_e[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](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);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),o=Math.floor(n/62);return o>0?t(o)+r:r}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)}n.d(r,{default:()=>Be});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var l=r[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n: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 n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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 n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}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 n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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 n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c};var p=n(645),f=n.n(p);const m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var l,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,s(r.qMeasures));var a,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.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)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!i.isEmpty(n.qLayoutExclude.quarantine)||delete n.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,n){var r,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(r=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(r)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=a}var S=n(229),E=n.n(S);function w(e,t){var n=E()(!0,{},t,e);return i.getValue(n,"qOtherTotalSpec.qOtherCounted")||i.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(n,"qOtherTotalSpec.qOtherLimit")||i.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function C(e,t){return E()(!0,{},t,e)}function R(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var k=Math.pow(2,53)-1;function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const P=function(e,t,n){var r="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(n,"qInfo.qType");i.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},I=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},D=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},_=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}}},M=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},T=function(e){var t,n=e.exportFormat,r=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=n.data[0];for(t=0;t<l.dimensions.length;++t){var s=w(l.dimensions[t],a);i.qDimensions.length<r?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)}},O=function(e){var t,n=e.exportFormat,r=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=n.data[0];for(t=0;t<l.measures.length;++t){var s=C(l.measures[t],a);i.qMeasures.length<r?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)}},N=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,o=t.data[0],i=r.dimensions||{max:0},a=r.measures||{max:0},l=R(a.max,o.dimensions.length,k),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,k),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},q=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(n.qInterColumnSortOrder,i))},z=function(e){var t=e.exportFormat,n=e.initialProperties,r=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&&r?i.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.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,{},n,o)).components&&(o.components=[]),o},F=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=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>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(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=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return A(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},B=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return L(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return L(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},H=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){i.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const V={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,n||""),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}),n&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),r||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,n=e.initialProperties,r=void 0===n?{}:n,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=z({exportFormat:t,initialProperties:r,hypercubePath:u}),b=i.getValue(r,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,w=y.minMeasures,C=s.defaultDimension,R=void 0===C?_():C,k=s.defaultMeasure,A=void 0===k?M():k;v.qDimensions.length=0,v.qMeasures.length=0,F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:w})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:w,newHyperCubeDef:v}),T({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),O({exportFormat:t,maxMeasures:E,minMeasures:w,newHyperCubeDef:v,defaultMeasure:A}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),q({exportFormat:t,newHyperCubeDef:v}),I("qMaxStackedCells",b,v),I("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,r),h.qProperty=g;var L=i.getValue(c||{},"support.modifiers");return H({measures:v.qMeasures,modifierTypes:L}),p&&W(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&W(h.qProperty,"dynamicScript"),h}};var U={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function G(e,t,n,r){t=t||[];var o=c(e,r,n),i=c(t,r,n);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!U[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,o){n=n||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][n],l=t.length;if(G(a,t,r,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}}},Q={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 Z={scatterplot:Q,"sn-scatter-plot":Q,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,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(r,o);var s=r[r.length-1];if(s){var u=n?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,n=e.label,r=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,o?t.qDef=r.key:(t.qExpression=r.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:f,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p})}n?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,n,r){var o,i,a,l={};switch(e){case"dimension":n.qLibraryId?(l.type="dimension",l.name=n.qLibraryId,l.id=n.qLibraryId):(l.type="field",t?(l.name=n.label||n.qDef,l.id=n.qDef):(l.name=n.qDef.qFieldDefs[0],l.label=(a=n.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)}(n,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}(n,r),i&&(l.expression=i)):(l.type="expression",t?(l.name=n.label||n.qExpression,l.id=n.qExpression):(l.name=n.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));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,n,r){var o=n?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(ne(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:n||l,key:n||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)}r||(i.auto=!1,i.mode=a)}function le(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var o=oe("dimension",!1,n[r.activeDimensionIndex]);o.activeDimensionIndex=r.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=i.getValue(t,"visualization"),o=n.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===l}(n,e,t)?0:n.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Z[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},de=function(e,t){var n,r=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):!(n={auto:o,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?le(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==l&&!o.length)}({auto:o,colorMode:r,dimensions:a,measures:l,properties:e})?function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qMeasures"),[]),r=i.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var o=oe("measure",!1,n[r.activeMeasureIndex],!0);o.activeMeasureIndex=r.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||r[0])),!!l}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=i.getValue(e,"color.mode"),r=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&o.length<2&&i.setValue(e,"color.mode","primary"),te(r,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,n=e.properties,r=i.getValue(n,"qHyperCubeDef.qMeasures",[]),o=i.getValue(n,"color.mode","");return!t&&"byExpression"===o&&r.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,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",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n},be={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=V.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),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,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=V.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,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,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(n,"unsupportedAutoMinMax")||E()(n.measureAxis,t.measureAxis):W(n,"supportedAutoMinMax")||E()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=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:n,initialProperties:r})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,o=n.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[o].type[r]++,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,n.properties.measureAxes[t[0].axis])):E()(l,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},Ee={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),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,n=e.initialProperties,r=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:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function we(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function Ce(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=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(n,r,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=we(n,r,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}var ke="qHyperCubeDef.qMeasures",Ae="conditionalColoring",Le="measures",Pe="qDef.conditionalColoring";const Ie={quarantine:function(e){Ce({properties:e,arrayPath:ke,quarantineName:Ae,arrayName:Le,itemPath:Pe})},unquarantine:function(e){Re({properties:e,arrayPath:ke,itemPath:Pe,arrayName:Le,quarantineName:Ae})}};var De="qHyperCubeDef.qMeasures",_e="measures",Me="qHyperCubeDef.qDimensions",Te="dimensions",Oe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",qe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",ze="alternativeDimensions",Fe="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){Ce({properties:e,arrayPath:De,quarantineName:je,arrayName:_e,itemPath:Fe}),Ce({properties:e,arrayPath:Me,quarantineName:je,arrayName:Te,itemPath:Fe})},unquarantine:function(e){Re({properties:e,arrayPath:De,quarantineName:je,arrayName:_e,itemPath:Fe}),Re({properties:e,arrayPath:Me,quarantineName:je,arrayName:Te,itemPath:Fe})},quarantineAlternative:function(e){Ce({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ne,itemPath:Fe}),Ce({properties:e,arrayPath:qe,quarantineName:je,arrayName:ze,itemPath:Fe})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ne,itemPath:Fe}),Re({properties:e,arrayPath:qe,quarantineName:je,arrayName:ze,itemPath:Fe})}},Be={hypercube:V,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:Ce,unquarantineArrayProp:Re,conditionalColoring:Ie,conditionalShow:$e}})(),r.default})()}(BA);var HA=r(BA.exports);const WA="qHyperCubeDef.qDimensions",VA="dimensions",UA="qDef.representation",GA="tableRepresentation",YA=(e,t,n)=>{const r=e.length+t.length,o=((null==n?void 0:n.length)===r?n:Array.from(Array(r).keys())).map((n=>((e,t,n)=>{var r;const o=t.length,i=e<o?t[e]:n[e-o],{columnWidth:a}=i.qDef;return"pixels"===(null==a?void 0:a.type)?null!==(r=a.pixels)&&void 0!==r?r:Sk.PixelsDefault:-1})(n,e,t)));return o},KA=({propertyTree:e,hyperCubePath:t})=>{const n=HA.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:r,qDimensions:o,qMeasures:i}}=n.properties,a=YA(o,i,r);return TA(n,"properties.qHyperCubeDef",{...n.properties.qHyperCubeDef,columnWidths:a}),HA.quarantineProperty(n.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),HA.quarantineProperty(n.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),HA.quarantineProperty(n.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{HA.quarantineArrayProp({properties:e,arrayPath:WA,itemPath:UA,arrayName:VA,quarantineName:GA})})(n.properties),n};const XA=(e,t,n,r)=>{let o=t;r&&(o=t-r);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(n)&&n.length>0){const e=n[t];i.qDef.columnWidth="number"==typeof e&&e>0?{type:Ek.Pixels,pixels:e}:{type:Ek.FitToContent}}return i},JA=({exportFormat:e,initialProperties:t,extension:n,hypercubePath:r,defaultPropertyValues:o,viewDataMode:i})=>{const a=HA.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:r,extension:n});HA.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{HA.unquarantineArrayProp({properties:e,arrayPath:WA,itemPath:UA,arrayName:VA,quarantineName:GA})})(a.qProperty);const{qHyperCubeDef:{qDimensions:l,qMeasures:s,qColumnOrder:u,columnWidths:c}}=a.qProperty,{dimensions:d,measures:p}=((e,t,n,r)=>{const o=e.length,i=o+t.length,a=(null==n?void 0:n.length)===i?n:Array.from(Array(i).keys());return{dimensions:a.filter((e=>e<o)).map((t=>XA(e,t,r))),measures:a.filter((e=>e>=o)).map((e=>XA(t,e,r,o)))}})(l,s,u,c);return Array.isArray(c)&&c.length>0&&(TA(a,"qProperty.qHyperCubeDef.qDimensions",d),TA(a,"qProperty.qHyperCubeDef.qMeasures",p)),i&&(TA(a,"qProperty.totals.show",!1),TA(a,"qProperty.usePagination",!0)),HA.conditionalShow.unquarantine(a.qProperty),a};var QA={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};function ZA(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function eL(e,t){let n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r}function tL(e){return e>0?0:1}function nL(e){return e.translator.get("Visualizations.Descriptions.Column")}function rL(e){return{measures:{min:tL,max:1e3,description:()=>nL(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;ZA(r,n.getDimensions().length+n.getMeasures().length-1)},remove(e,t,n,r){const{qColumnOrder:o}=n.hcProperties;eL(o,(n.hcProperties.qDimensions?n.hcProperties.qDimensions.length:0)+r)}},dimensions:{min:tL,max:1e3,description:()=>nL(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;return ZA(r,n.getDimensions().length-1),e},remove(e,t,n,r){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=n.hcProperties;eL(o,r)}}}}var oL={};!function(e){(()=>{var t={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,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(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,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(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](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 o={};(()=>{r.r(o),r.d(o,{default:()=>De});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}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 n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.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 r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"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),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"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,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[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,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.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 n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.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&&(r=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);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}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),k={},A=Array.isArray;function L(e){return null!=e&&!Array.isArray(e)&&"object"===C(e)}function P(e){return void 0===e}function I(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function D(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=P(e[n||t])?i:e[t],e=e[n||t]}})),e}function _(e,t){var n=!0;if(L(e)&&L(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){_(e[r],t[r])||(n=!1)})),n);if(A(e)&&A(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!_(e[r],t[r]))return!1;return!0}return e===t}k.generate=function(e,t,n){n=n||"";var r=[];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(n,"/").concat(o);_(i,a)||I(t,o)||(P(a)?r.push({op:"add",path:l,value:i}):L(i)&&L(a)?r=r.concat(k.generate(a,i,l)):A(i)&&A(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&P(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(_(t,o))return r;if(!P(t[0])&&P(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(k.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){P(t[o])&&!I(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},k.apply=function(e,t){t.forEach((function(t){var n,r,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(A(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(A(a)&&A(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)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(r)||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))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!I(n,e)&&delete n[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=D(e,t.from);A(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(A(o)?o.splice(+i,1):delete o[i])}))},k.clone=function(e){return R({},e)},k.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},k.updateObject=function(e,t){Object.keys(e).length?k.apply(e,k.generate(e,t)):R(e,t)};const M=k,T=function(e,n,r){if(!e)return Promise.resolve();var o=M.generate(n,r);return t()(!0,n,r),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 O="accumulation";function N(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===O)return n[r]}function q(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===O)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,z)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={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(q(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(q(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(q(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(q(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=N(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=N(t,e);return n&&!n.fullAccumulation}},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 E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(O))return!1;var i=N(t,e);return i&&!i.disabled}};return n}};var j="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function B(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var H={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,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),m=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var V="timeSeriesDecomposition";function U(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===V)return n[r]}function G(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===V)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):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,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):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]:{},n={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(G(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(G(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=U(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.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 n=U(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(V))return!1;var i=U(t,e);return i&&!i.disabled}};return n}};var X="difference";function J(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Q(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Z={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,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Z).forEach((function(t){void 0===e[t]&&(e[t]=Z[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={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(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 E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;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,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.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]:{},n={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(re(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(n){return function(e,t,n){var r=[{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 r=function(e,t){if(1===e){var n=oe(t,0);t.splice(n,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(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(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var n=oe(t,0);t.splice(n,1)}return t}(o,i),i=function(e,t){if(0===e){var n=oe(t,1);t.splice(n,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(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,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},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",ke="qDef.base.qAggrFunc",Ae={initBase:function(e,t){(t||Ae.isValid(e))&&(n(e,ve,i(e,be)),n(e,xe,i(e,ye)),n(e,we,i(e,Se)),n(e,Ce,i(e,Ee)))},restoreBase:function(e){Ae.isValid(e)&&(n(e,be,i(e,ve)),n(e,ye,i(e,xe)),n(e,Se,i(e,we)),n(e,Ee,i(e,Ce)),i(e,Re)&&i(e,ke)&&n(e,Re,i(e,ke)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),n=i(e,xe);return void 0!==t||void 0!==n}};const Le=Ae;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 Ie={accumulation:F,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const De={modifiers:Ie,apply:Me,applyModifiers:Te,cleanUpMeasure:Oe,destroy:function(e){e&&_e[e.id]&&_e[e.id].masterItemSubscriber&&(_e[e.id].masterItemSubscriber&&_e[e.id].masterItemSubscriber.unsubscribe(),delete _e[e.id])},hasActiveModifiers:Ne,getActiveModifier:qe,initBase:Le.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ie[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Ie[e]&&Ie[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Ge({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Qe({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:ze};var _e={};function Me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;_e[n.id]=_e[n.id]||{isFirstTime:!0};var u=_e[n.id].isFirstTime;if(_e[n.id].isFirstTime=!1,r&&"object"===Pe(r))return Te({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=_e[n.id].lastReloadTime;if(_e[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.model,o=e.lastReloadTime;return i(r,"app.layout.qLastReloadTime")!==o&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return m||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ge({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);Be(r);var o=Ze(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return m&&function(e){var t=e.properties;Fe(t).forEach((function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Pe(e)&&!e.disabled){if(n++,"object"!==Pe(Ie[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=Ie[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Te({model:n,oldProperties:e,properties:r,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)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Ze(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return Fe(r).forEach((function(e){return Oe(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function Te(e){var n=e.model,r=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===r&&(r=s?t()(!0,{},o):o),Be(o);var p=Ze(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=Fe(r)),!n.length)return Promise.resolve();if(!Ne({measures:n,properties:r}))return n.forEach((function(e){return Oe(e)})),Promise.resolve();var s=a?void 0:Ze(r);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ge({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Le.isValid(n)||Le.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Pe(e)&&!e.disabled){if(l++,"object"!==Pe(Ie[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)");Ie[e.type].initModifier(e,n);var s=n.qLibraryId||c&&c.qLibraryId;s?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Ie[r.type].generateExpression({expression:l,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:s,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Ie[r.type].updateModifier&&Ie[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:Ie[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||ze(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&ze(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),He(n)):Oe(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function Oe(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Pe(e)&&!e.disabled&&!Ie[e.type]}))}(e)?Le.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function Ne(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({modifiers:je(e),properties:n,layout:r})}))}function qe(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Ie[r.type]&&!r.disabled)return r}}function ze(e){var t=qe(e);return!t||Ie[t.type].enableTotalsFunction(e)}function Fe(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){Fe(e).forEach((function(e){return function(e){var n=qe(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!Le.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function He(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Pe(t)&&(t.disabled||!Ie[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ve(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,n=e.properties,r=e.layout;return!Ve(t)&&Ge({modifiers:je(t),properties:n,layout:r})}function Ge(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Pe(e)||e.disabled||!Ie[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ie[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.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,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):T(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Qe(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Pe(e)&&!e.disabled&&Ie[e.type]&&Ie[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Ze(e){var t=Fe(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ge({modifiers:r,properties:e})){var i=Ve(t);i&&n.push(i),o=o||Qe({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(_e[t.id].masterItemSubscriber=_e[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=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:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Me({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),_e[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),e.default=o.default,Object.defineProperty(e,"__esModule",{value:!0})})()}(oL);var iL=r(oL);let aL=function(e){return e.Text="text",e.Link="link",e.Image="image",e}({}),lL=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const sL=e=>{switch(null==e?void 0:e.type){case"url":return aL.Link;case"image":return aL.Image;default:return aL.Text}},uL=(e,t)=>!e.properties.qHyperCubeDef.qIndentMode||!t,cL=(e,t,n)=>{if(e||t)return{uses:"dimensionRepresentationItems.representationType",show:(e,t,r)=>uL(r,n),options(){const n=[{value:"text",translation:"Object.Table.Representation.Text"}];return t&&n.push({value:"url",translation:"Object.Table.Representation.Link"}),e&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),n}}},dL=(e,t)=>{if(e)return{representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:(e,n,r)=>sL(e.qDef.representation)===aL.Link&&uL(r,t)},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:(e,n,r)=>{var o;return sL(e.qDef.representation)===aL.Link&&(null===(o=e.qDef.representation)||void 0===o?void 0:o.urlPosition)===lL.Dimension&&uL(r,t)}},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:(e,n,r)=>{var o;return sL(e.qDef.representation)===aL.Link&&(null===(o=e.qDef.representation)||void 0===o?void 0:o.urlPosition)===lL.Attribute&&uL(r,t)}}}},pL=(e,t)=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:(e,n,r)=>sL(e.qDef.representation)===aL.Image&&uL(r,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"}]}}}}},fL=e=>{var t,n;const{anything:r,flags:o}=e,i=o.isEnabled("CLIENT_IM_5975_INDENT_MODE"),a=o.isEnabled("CLIENT_IM_5715_LINKS"),l=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=r&&null!==(t=r.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages"));return{representationType:cL(l,a,i),...dL(a,i),...pL(l,i)}},mL=e=>{var t,n;const{flags:r,anything:o}=e,i=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=o&&null!==(t=o.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages")),a=r.isEnabled("CLIENT_IM_5975_INDENT_MODE");return{representationType:i?{uses:"measureRepresentationItems.representationType",show:(e,t,n)=>uL(n,a),options:[{value:"text",translation:"Object.Table.Representation.Text"},{value:"image",translation:"Object.Table.Representation.Image"}]}:void 0,representationImage:i?{uses:"measureRepresentationItems.representationImage",show:(e,t,n)=>sL(e.qDef.representation)===aL.Image&&uL(n,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}},hL={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},gL=e=>({visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},tableCellColoring:{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},...e.flags.isEnabled("CLIENT_IM_6573_TEXT_STYLE")?[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"}]:[],{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]}}),bL={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}},vL=e=>{var t,n,r,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)=>(!iL.hasActiveModifiers({measures:[e],properties:t.properties})||iL.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!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"totals")?"None":"Expr"}}}},show:!(null!=e&&null!==(r=e.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"totals"))}},yL={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:Ek.Auto,translation:"Common.Auto"},{value:Ek.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:Ek.Pixels,translation:"Object.Table.Column.Pixels"},{value:Ek.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:Ek.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)===Ek.Pixels},change(e){e.qDef.columnWidth.pixels=void 0===e.qDef.columnWidth.pixels?e.qDef.columnWidth.pixels:Math.max(1,Math.min(Sk.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)===Ek.Percentage},change(e){e.qDef.columnWidth.percentage=void 0===e.qDef.columnWidth.percentage?e.qDef.columnWidth.percentage:Math.max(1,Math.min(Sk.PercentageMax,e.qDef.columnWidth.percentage))}}},xL=e=>({...hL,...gL(e),...bL,...yL}),SL={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"}},EL=(e,t)=>({libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>{var n;return t?!!(e.qLibraryId||null!==(n=e.qDef.base)&&void 0!==n&&n.qLibraryId):!!e.qLibraryId}},inlineMeasure:{component:"inline-measure",show:e=>{var n;return t?!(e.qLibraryId||null!==(n=e.qDef.base)&&void 0!==n&&n.qLibraryId):!e.qLibraryId}},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:vL(e)}),wL=(e,t)=>({type:"items",translation:"Common.Data",component:"data-assets-panel",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:SL},presentation:{type:"items",translation:"properties.presentation",items:{...xL(e),...fL(e)}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:EL(e,t)},presentation:{type:"items",translation:"properties.presentation",items:{...xL(e),...mL(e)}}}}}}),CL={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}},RL=e=>{var t,n;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!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"totals"))}},kL=(e,t,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:!1,defaultValue(e,t,r){const o=r.theme.current(),i=n(o);return{color:"transparent"===i?"none":i}}}),AL=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},LL=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,n,r)=>{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:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>AL(e,!0)))],c=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...rk(r).filter((e=>!s.includes(e))).map((e=>AL(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),PL=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],IL=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{var r;const o=t.fontSize,i=null!==(r=t.fontSizes)&&void 0!==r?r:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>AL(e,!1)))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...PL.filter((e=>!a.includes(e))).map((e=>AL(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),DL=({section:e,defaultFontStyle:t,translator:n,flags:r,getThemeValue:o,translation:i})=>({component:"panel-section",translation:null!=i?i:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:LL({ref:`${e}.fontFamily`,themeAccessor:t=>{var n;return null!==(n=o(t,e,"fontFamily"))&&void 0!==n?n:t.fontFamily},translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:IL({ref:`${e}.fontSize`,themeAccessor:t=>{var n;return null!==(n=o(t,e,"fontSize"))&&void 0!==n?n:t.fontSize},translator:n}),fontColor:kL(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=o(t,e,"color"))&&void 0!==n?n:t.color}))}},background:kL(`${e}.background`,"properties.background",(t=>{var n;return null!==(n=o(t,e,"backgroundColor"))&&void 0!==n?n:"transparent"}))}}}}),_L=({section:e,defaultFontStyle:t,fallbackBackground:n,getThemeValue:r})=>({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:kL(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=r(t,e,"color"))&&void 0!==n?n:t.color}))}},background:kL(`${e}.background`,"properties.background",(t=>{var o,i;return null!==(o=null!==(i=r(t,e,"backgroundColor"))&&void 0!==i?i:n)&&void 0!==o?o:"transparent"}))}}}}),ML=e=>{var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},TL={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:ML,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:ML,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},OL=(e,t,n)=>{var r,o,i,a,l;switch(t){case"header":return null===(r=e.object)||void 0===r||null===(r=r.straightTableV2)||void 0===r||null===(r=r.dimension)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.name)||void 0===r?void 0:r[n];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[n];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[n];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[n];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[n];default:return}},NL={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,change(e){var t,n,r;null!==(null==e||null===(t=e.content)||void 0===t?void 0:t.rowHeight)&&void 0!==(null==e||null===(n=e.content)||void 0===n?void 0:n.rowHeight)&&""!==(null==e||null===(r=e.content)||void 0===r?void 0:r.rowHeight)?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):e.content.rowHeight=void 0}},qL=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"),...NL},border:kL("grid.border","properties.border",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.straightTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:Iw.BORDER_MEDIUM})),divider:kL("grid.divider","properties.pivot.divider",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.straightTableV2)||void 0===n||null===(n=n.grid)||void 0===n||null===(n=n.divider)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:Iw.BORDER_HEAVY}))}}}}),zL=({flags:e,translator:t})=>({headerSection:DL({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:OL}),dimensionValueSection:DL({section:"dimensionValues",translator:t,flags:e,getThemeValue:OL}),measureValueSection:DL({section:"measureValues",translator:t,flags:e,getThemeValue:OL}),totalRowSection:DL({section:"totalRow",translation:"properties.totals",translator:t,flags:e,getThemeValue:OL}),nullValues:_L({section:"nullValues",fallbackBackground:Iw.NULL_VALUE_BACKGROUND,getThemeValue:OL}),grid:qL(e),hoverEffectSection:TL}),FL=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,n){var r,o;const i=n.theme.current();return parseInt(null!==(r=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!==r?r: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,n){var r,o;const i=n.theme.current();return{color:null!==(r=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!==r?r: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,n){var r,o;const i=n.theme.current();return parseInt(null!==(r=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!==r?r: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,n){var r,o;const i=n.theme.current();return{color:null!==(r=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!==r?r: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:NL}}}},hoverEffectSection:TL}),jL=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")?zL(e):FL(e)}]}),$L=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[jL(e),RL(e),{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1}]},...CL}}),BL={uses:"sorting"},HL={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},WL=(e,t)=>({type:"items",component:"accordion",items:{data:wL(e,t),sorting:BL,addOns:HL,settings:$L(e)}});function VL(e){const t=e.flags.isEnabled("CLIENT_IM-6276_PIVOT_MODIFIER");return{definition:WL(e,t),exploration:QA,data:rL(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:t?["accumulation","movingAverage","difference","normalization"]:void 0},importProperties(e,t,n,r){const o={defaultDimension:n.getDefaultDimensionProperties(),defaultMeasure:n.getDefaultMeasureProperties()};return JA({exportFormat:e,initialProperties:t,extension:n,hypercubePath:r,defaultPropertyValues:o})},exportProperties:(e,t)=>KA({propertyTree:e,hyperCubePath:t})}}const UL=(t,n)=>e.useMemo((()=>((e,t)=>(n,{isDim:r,colIdx:o})=>{const i=r?o:o-e.qDimensionInfo.length,a=`/qHyperCubeDef/${r?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,l=e[r?"qDimensionInfo":"qMeasureInfo"][i].columnWidth,s=l?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...l,...n})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(n)};null==t||t.applyPatches([s],!0)})(t,n)),[t,n]),GL=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},n)=>(e[t]=n,e)),{});let YL;const KL=new Uint8Array(16);function XL(){if(!YL&&(YL="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!YL))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return YL(KL)}const JL=[];for(let e=0;e<256;++e)JL.push((e+256).toString(16).slice(1));var QL={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ZL(e,t,n){if(QL.randomUUID&&!t&&!e)return QL.randomUUID();const r=(e=e||{}).random||(e.rng||XL)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return JL[e[t+0]]+JL[e[t+1]]+JL[e[t+2]]+JL[e[t+3]]+"-"+JL[e[t+4]]+JL[e[t+5]]+"-"+JL[e[t+6]]+JL[e[t+7]]+"-"+JL[e[t+8]]+JL[e[t+9]]+"-"+JL[e[t+10]]+JL[e[t+11]]+JL[e[t+12]]+JL[e[t+13]]+JL[e[t+14]]+JL[e[t+15]]}(r)}const eP=()=>{var e,t,n;return null!==(e=null===(t=crypto)||void 0===t||null===(n=t.randomUUID)||void 0===n?void 0:n.call(t))&&void 0!==e?e:ZL()},tP=({qLibraryId:e,cId:t})=>{var n;return null!==(n=null!=e?e:t)&&void 0!==n?n:eP()};function nP(e){return nP="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},nP(e)}function rP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),r)}var o,i}function iP(e,t,n){return t&&oP(e.prototype,t),n&&oP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function aP(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&&sP(e,t)}function lP(e){return lP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lP(e)}function sP(e,t){return sP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sP(e,t)}function uP(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 cP(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 n,r=lP(e);if(t){var o=lP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return uP(this,n)}}function dP(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.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 pP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pP(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 pP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var fP={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var n,r=e.indexOf("="),o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,n){return{key:mP(e),value:mP(t),useEqualSign:n}}(n,o,i))}})),t}};function mP(e){try{return decodeURIComponent(e)}catch(t){return e}}function hP(e){if(!(this instanceof hP))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:""},n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));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 fP.fromSearchString(t.search)}}})}function gP(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}hP.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},hP.encodeSearchParams=function(e){for(var t,n="",r=0;r<e.length;r++)n+=0===r?"?":"&",n+=gP((t=e[r]).key),t.value?n+="=".concat(gP(t.value)):n+=t.useEqualSign?"=":"";return n};var bP,vP=function(){function e(t){rP(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return iP(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}(),yP=function(){function e(){rP(this,e)}return iP(e,[{key:"decode",value:function(e){for(var t,n="",r=new vP(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),xP=function(e){return e>=0&&e<=1114111},SP=function(e){return e.match(/[\s]/)},EP=function(e){aP(n,e);var t=cP(n);function n(){return rP(this,n),t.apply(this,arguments)}return iP(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,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,n=0;n<5&&(null!=(r=e.next())&&!SP(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return xP(a)?String.fromCharCode(a):"�"}}]),n}(yP),wP=function(){function e(t,n){rP(this,e),this._key=t,this._value=n}return iP(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,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}}]),e}(),CP=function(){function e(){rP(this,e)}return iP(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,n,r){var o,i;if(t.length===n)return i=this._value,this.setValue(r),i;var a=t.charAt(n);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,n+1,r)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return wP.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return wP.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||wP.newInstanceIfNeeded(e,t,this._value)}}]),e}(),RP=function(){function e(){rP(this,e),this.clear()}return iP(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 CP);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),kP=function(){var e,t,n,r=[],o=[],i=new RP;for(e in r["&quot"]="34",r["&amp"]="38",r["&lt"]="60",r["&gt"]="62",r["&nbsp"]="160",r["&iexcl"]="161",r["&cent"]="162",r["&pound"]="163",r["&curren"]="164",r["&yen"]="165",r["&brvbar"]="166",r["&sect"]="167",r["&uml"]="168",r["&copy"]="169",r["&ordf"]="170",r["&laquo"]="171",r["&not"]="172",r["&shy"]="173",r["&reg"]="174",r["&macr"]="175",r["&deg"]="176",r["&plusmn"]="177",r["&sup2"]="178",r["&sup3"]="179",r["&acute"]="180",r["&micro"]="181",r["&para"]="182",r["&middot"]="183",r["&cedil"]="184",r["&sup1"]="185",r["&ordm"]="186",r["&raquo"]="187",r["&frac14"]="188",r["&frac12"]="189",r["&frac34"]="190",r["&iquest"]="191",r["&Agrave"]="192",r["&Aacute"]="193",r["&Acirc"]="194",r["&Atilde"]="195",r["&Auml"]="196",r["&Aring"]="197",r["&AElig"]="198",r["&Ccedil"]="199",r["&Egrave"]="200",r["&Eacute"]="201",r["&Ecirc"]="202",r["&Euml"]="203",r["&Igrave"]="204",r["&Iacute"]="205",r["&Icirc"]="206",r["&Iuml"]="207",r["&ETH"]="208",r["&Ntilde"]="209",r["&Ograve"]="210",r["&Oacute"]="211",r["&Ocirc"]="212",r["&Otilde"]="213",r["&Ouml"]="214",r["&times"]="215",r["&Oslash"]="216",r["&Ugrave"]="217",r["&Uacute"]="218",r["&Ucirc"]="219",r["&Uuml"]="220",r["&Yacute"]="221",r["&THORN"]="222",r["&szlig"]="223",r["&agrave"]="224",r["&aacute"]="225",r["&acirc"]="226",r["&atilde"]="227",r["&auml"]="228",r["&aring"]="229",r["&aelig"]="230",r["&ccedil"]="231",r["&egrave"]="232",r["&eacute"]="233",r["&ecirc"]="234",r["&euml"]="235",r["&igrave"]="236",r["&iacute"]="237",r["&icirc"]="238",r["&iuml"]="239",r["&eth"]="240",r["&ntilde"]="241",r["&ograve"]="242",r["&oacute"]="243",r["&ocirc"]="244",r["&otilde"]="245",r["&ouml"]="246",r["&divide"]="247",r["&oslash"]="248",r["&ugrave"]="249",r["&uacute"]="250",r["&ucirc"]="251",r["&uuml"]="252",r["&yacute"]="253",r["&thorn"]="254",r["&yuml"]="255",r["&OElig"]="338",r["&oelig"]="339",r["&Scaron"]="352",r["&scaron"]="353",r["&Yuml"]="376",r["&fnof"]="402",r["&circ"]="710",r["&tilde"]="732",r["&Alpha"]="913",r["&Beta"]="914",r["&Gamma"]="915",r["&Delta"]="916",r["&Epsilon"]="917",r["&Zeta"]="918",r["&Eta"]="919",r["&Theta"]="920",r["&Iota"]="921",r["&Kappa"]="922",r["&Lambda"]="923",r["&Mu"]="924",r["&Nu"]="925",r["&Xi"]="926",r["&Omicron"]="927",r["&Pi"]="928",r["&Rho"]="929",r["&Sigma"]="931",r["&Tau"]="932",r["&Upsilon"]="933",r["&Phi"]="934",r["&Chi"]="935",r["&Psi"]="936",r["&Omega"]="937",r["&alpha"]="945",r["&beta"]="946",r["&gamma"]="947",r["&delta"]="948",r["&epsilon"]="949",r["&zeta"]="950",r["&eta"]="951",r["&theta"]="952",r["&iota"]="953",r["&kappa"]="954",r["&lambda"]="955",r["&mu"]="956",r["&nu"]="957",r["&xi"]="958",r["&omicron"]="959",r["&pi"]="960",r["&rho"]="961",r["&sigmaf"]="962",r["&sigma"]="963",r["&tau"]="964",r["&upsilon"]="965",r["&phi"]="966",r["&chi"]="967",r["&psi"]="968",r["&omega"]="969",r["&thetasym"]="977",r["&upsih"]="978",r["&piv"]="982",r["&ensp"]="8194",r["&emsp"]="8195",r["&thinsp"]="8201",r["&zwnj"]="8204",r["&zwj"]="8205",r["&lrm"]="8206",r["&rlm"]="8207",r["&ndash"]="8211",r["&mdash"]="8212",r["&lsquo"]="8216",r["&rsquo"]="8217",r["&sbquo"]="8218",r["&ldquo"]="8220",r["&rdquo"]="8221",r["&bdquo"]="8222",r["&dagger"]="8224",r["&Dagger"]="8225",r["&bull"]="8226",r["&hellip"]="8230",r["&permil"]="8240",r["&prime"]="8242",r["&Prime"]="8243",r["&lsaquo"]="8249",r["&rsaquo"]="8250",r["&oline"]="8254",r["&frasl"]="8260",r["&euro"]="8364",r["&image"]="8365",r["&weierp"]="8472",r["&real"]="8476",r["&trade"]="8482",r["&alefsym"]="8501",r["&larr"]="8592",r["&uarr"]="8593",r["&rarr"]="8594",r["&darr"]="8595",r["&harr"]="8596",r["&crarr"]="8629",r["&lArr"]="8656",r["&uArr"]="8657",r["&rArr"]="8658",r["&dArr"]="8659",r["&hArr"]="8660",r["&forall"]="8704",r["&part"]="8706",r["&exist"]="8707",r["&empty"]="8709",r["&nabla"]="8711",r["&isin"]="8712",r["&notin"]="8713",r["&ni"]="8715",r["&prod"]="8719",r["&sum"]="8721",r["&minus"]="8722",r["&lowast"]="8727",r["&radic"]="8730",r["&prop"]="8733",r["&infin"]="8734",r["&ang"]="8736",r["&and"]="8743",r["&or"]="8744",r["&cap"]="8745",r["&cup"]="8746",r["&int"]="8747",r["&there4"]="8756",r["&sim"]="8764",r["&cong"]="8773",r["&asymp"]="8776",r["&ne"]="8800",r["&equiv"]="8801",r["&le"]="8804",r["&ge"]="8805",r["&sub"]="8834",r["&sup"]="8835",r["&nsub"]="8836",r["&sube"]="8838",r["&supe"]="8839",r["&oplus"]="8853",r["&otimes"]="8855",r["&perp"]="8869",r["&sdot"]="8901",r["&lceil"]="8968",r["&rceil"]="8969",r["&lfloor"]="8970",r["&rfloor"]="8971",r["&lang"]="9001",r["&rang"]="9002",r["&loz"]="9674",r["&spades"]="9824",r["&clubs"]="9827",r["&hearts"]="9829",r["&diams"]="9830",r)"function"!=typeof r[e]&&r.hasOwnProperty(e)&&(o[r[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(n=o[t].toLowerCase().substr(1),i.put(n,String.fromCharCode(t)));return i}(),AP=function(e){aP(n,e);var t=cP(n);function n(){return rP(this,n),t.apply(this,arguments)}return iP(n,[{key:"decodeCharacter",value:function(e){var t;e.mark();var n=e.next();if(null==n||"&"!==n)return e.reset(),null;var r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(null!=(t=this._getNumericEntity(e)))return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,n,r,o="";for(t=Math.min(e.remainder().length,kP.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=kP.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)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,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,16);return!Number.isNaN(+r)&&xP(r)?String.fromCharCode(r):null}},{key:"_parseNumber",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,10);return!Number.isNaN(+r)&&xP(r)?String.fromCharCode(r):null}}]),n}(yP),LP=function(e){aP(n,e);var t=cP(n);function n(){return rP(this,n),t.apply(this,arguments)}return iP(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",n=0;n<2;n++)null!=(r=e.nextHex())&&(t+=r);return 2===t.length&&(o=parseInt(t,16),xP(o))?String.fromCharCode(o):(e.reset(),null)}}]),n}(yP),PP=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(bP=document.createElement("div"));var IP=Array.prototype.indexOf,DP=[",",".","_"," "],_P={default:[",",".","-","_"," "]},MP={width:["%"],height:["%"]},TP={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},OP={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":TP.image,"background-color":TP.color,"border-color":TP.color,"border-image":TP.image,color:TP.color,icon:TP.image,"list-style-image":TP.image,"outline-color":TP.color},NP={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function qP(e,t,n){var r;if(t){if(IP)return IP.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function zP(e){if(null==e)return"";var t,n=document.createTextNode(e);return bP.appendChild(n),t=bP.innerHTML,bP.removeChild(n),t}function FP(e,t,n){var r,o,i,a,l,s,u,c,d;if(e=$P(e).toLowerCase(),t=$P(t),qP(e,NP.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<NP.attr_val;i++)if(t.toLowerCase().match(NP.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=MP[e])||(r=_P.default),o="",!n){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]/)&&qP(u,r)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return n||(o+='"'),o}function jP(e,t,n){var r,o,i,a,l,s,u,c,d,p;if(e=$P(e).toLowerCase(),t=$P(t),qP(e,NP.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<NP.css_val.length;r++)if(t.toLowerCase().indexOf(NP.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=OP[e])||(o=TP.default),i="",!n){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]/)&&qP(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function $P(e,t){var n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;for(var l=[new AP,new LP,new EP];!a;){r=n;for(var s=0;s<l.length;s++)(i=l[s].decode(n))!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}for(var BP=[],HP=0;HP<255;HP++)BP[HP]=HP>=48&&HP<=57||HP>=65&&HP<=90||HP>=97&&HP<=122?null:HP.toString(16);var WP=function(e){return zP(e.unsafe)},VP=function(e){var t,n=[],r=[],o={},i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=jP(t,n[t],!0),i+=jP(t,n[t],!0),o[t]=r[t]);return e.map?o:i},UP=function(e){var t=[],n=[],r={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(n[i]=FP(i,t[i],!0),o+=FP(i,t[i],!0),r[i]=n[i]);return e.map?r:o};function GP(e,t){throw new Error(t)}var YP={canonicalize:$P,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===nP(arguments[0])?function(){for(var e,t,n,r=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r===(n=e[t]))continue;void 0!==n&&(r[t]=n)}}(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?WP(e):"css"===e.context?(null!=e.map&&"object"!==nP(e.map)&&GP(this,"Invalid parameter type"),VP(e)):"attr"===e.context?(null!=e.map&&"object"!==nP(e.map)&&GP(this,"Invalid parameter type"),UP(e)):void GP(this,"Invalid parameter type")},encodeForAttr:FP,encodeForAttr2:function(e){return FP("nonsens",e,!0)},encodeForCSS:jP,encodeForHref:function(e){$P(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new hP(e),n=hP.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+hP.encodeSearchParams(r)+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 n,r,o,i,a,l;for(t||(t=DP),l="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),qP(o,t)>=0||null==BP[i]?l+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),l+="\\x".concat(a).concat(r.toUpperCase())):(a="0000".substr(r.length),l+="\\u".concat(a).concat(r.toUpperCase())));return l},encodeForHTML:zP,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=$P(t).toLowerCase():GP(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':""},isSafeDataURL:function(e,t){var n=null!=t?t:{},r=n.maxByteSizeSvg,o=void 0===r?5e5:r,i=n.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,n=dP(null!==(t=PP.exec(e.trim()))&&void 0!==t?t:[],4),r=n[1];return{encoding:n[2],data:n[3],mimeType:null==r?void 0:r.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,n){var r={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(n)],r).size}catch(e){return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a}};const KP=(e,t)=>{var n;const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps;return null==r||null===(n=r.qValues)||void 0===n?void 0:n[e]},XP=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"}}},JP=({text:e,url:t,imageSize:n,imagePosition:r})=>r&&t&&!t.toLowerCase().includes("javascript:")&&YP.isSafeDataURL(t)?{type:aL.Image,url:t,text:e,imageSize:n,resolvedImagePosition:XP(r)}:{type:aL.Text,url:void 0,text:e},QP=(e,t,n)=>{var r;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(r=o.qValues)||void 0===r?void 0:r[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==n?void 0:n.urlPosition)===lL.Attribute||null==n?void 0:n.urlLabel},ZP=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:aL.Link,url:YP.encodeForHref(t),text:e}}catch(t){return{type:aL.Text,url:void 0,text:e}}},eI=(e,t,n,r)=>{var o,i;const a=sL(t);return a!==aL.Image||!r.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(o=r.anything.sense)&&void 0!==o&&null!==(i=o.isUnsupportedFeature)&&void 0!==i&&i.call(o,"tableImages")?a===aL.Link&&r.flags.isEnabled("CLIENT_IM_5715_LINKS")?((e,t,n)=>{const{urlPosition:r}=null!=t?t:{};if(r===lL.Attribute){var o;const r=QP(null!==(o=n.url)&&void 0!==o?o:-1,e,t),i=e.qText||r||"";return ZP({text:i,url:r})}if(r===lL.Dimension){var i;const r=QP(null!==(i=n.urlLabel)&&void 0!==i?i:-1,e,t)||e.qText;return ZP({text:r,url:e.qText})}return{type:aL.Text,url:void 0,text:e.qText}})(e,t,n):{type:aL.Text,url:void 0,text:e.qText}:((e,t,n)=>{const{imageSize:r,imagePosition:o,imageSetting:i,imageLabel:a}=null!=t?t:{};if("url"===i){var l,s;const t=e.qText,i=null===(l=KP(null!==(s=n.imageUrl)&&void 0!==s?s:-1,e))||void 0===l?void 0:l.qText;return JP({text:t,url:i,imageSize:r,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===n.imageLabel)return JP({text:a||t||"",url:t,imageSize:r,imagePosition:o});const i=null!==(u=null===(c=KP(null!==(d=n.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return JP({text:i,url:t,imageSize:r,imagePosition:o})}return{type:aL.Text,url:void 0,text:e.qText}})(e,t,n)},tI=(e,t)=>t?-2===e.qElemNumber:e.qIsNull,nI=e=>!Number.isNaN(+e),rI=e=>!(!e.qNum&&0!==e.qNum||!nI(e.qNum)),oI=1e4;function iI(e,t){return[...t].reverse().find((t=>t*e<=oI))||Math.floor(oI/e)}function aI(e,t){var n,r;if(null!==(n=t.viewState)&&void 0!==n&&n.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===(r=e.totals)||void 0===r?void 0:r.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 lI(e,t,n,r){var o,i,a;return t?0===n&&null!==(a=e.totals.label)&&void 0!==a?a:"":null!==(o=null===(i=e.qHyperCube.qGrandTotalRow[r])||void 0===i?void 0:i.qText)&&void 0!==o?o:""}function sI(e,t){const n=e.qHyperCube.qGrandTotalRow[t];return nI(null==n?void 0:n.qNum)}function uI(e,t,n){return e&&!e.auto?{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:n?"left":"right",bodyTextAlign:"auto"}}const cI=(e,t)=>"auto"!==t?t:rI(e)?"right":"left";const dI=e=>{const{qHyperCube:{qColumnOrder:t,qDimensionInfo:n,qMeasureInfo:r}}=e,o=n.length+r.length,i=(null==t?void 0:t.length)===o?t:Array.from(Array(o).keys()),{visibleColumnsOrder:a,visibleColumnIndexes:l}=((e,t,n)=>{const r=t.length,o=[];let i=0,a=0;return{visibleColumnsOrder:e.filter((e=>{const l=e<r,{qError:s}=l?t[e]:n[e-r],u=7005===(null==s?void 0:s.qErrorCode);return u?l?i++:a++:o[e]=l?e-i:e-r-a,!u})),visibleColumnIndexes:o}})(i,n,r);return a.map(((t,n)=>function(e,t,n,r){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}=u;if(s){const e=u;p=e.qGroupPos,f=e.qGroupFieldDefs[p],m=e.qLocked,h=r,({qDimensionType:d}=e)}const{qFallbackTitle:b,textAlign:v,qAttrExprInfo:y,qSortIndicator:x,qReverseSort:S,qApprMaxGlyphCount:E,columnWidth:w,qLibraryId:C}=u;return{isDim:s,isLocked:m,fieldId:f,colIdx:t,qLibraryId:C,pageColIdx:n,qApprMaxGlyphCount:E,qReverseSort:S,columnWidth:w,selectionColIdx:h,isActivelySorted:c,id:tP(u),label:b,qAttrExprInfoIDs:y.map((e=>e.id)),qAttrExprInfoIndex:GL(u),sortDirection:x&&"N"!==x?x:"A",totalInfo:lI(e,s,n,r),...!s&&{isTotalNumeric:sI(e,r)},...uI(v,d,s),representation:g}}(e,t,n,l[t])))};const pI=(e,t)=>{var n;return!!(e.snapshotData||null!==(n=t.viewState)&&void 0!==n&&n.visibleHeight)},fI=(e,t)=>{var n;return void 0!==(null===(n=t.viewState)||void 0===n?void 0:n.usePagination)?t.viewState.usePagination:!1!==e.usePagination||pI(e,t)};var mI="$$material";const hI=["values","unit","step"],gI=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)=>n({},e,{[t.key]:t.val})),{})};function bI(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:o=5}=e,i=d(e,hI),a=gI(t),l=Object.keys(a);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function u(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-o/100}${r})`}function c(e,n){const i=l.indexOf(n);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[l[i]]?t[l[i]]:n)-o/100}${r})`}return n({keys:l,values:a,up:s,down:u,between:c,only:function(e){return l.indexOf(e)+1<l.length?c(e,l[l.indexOf(e)+1]):s(e)},not:function(e){const t=l.indexOf(e);return 0===t?s(l[1]):t===l.length-1?u(l[t]):c(e,l[l.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},i)}var vI={borderRadius:4};function yI(e,t){return t?zr(e,t,{clone:!1}):e}const xI={xs:0,sm:600,md:900,lg:1200,xl:1536},SI={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${xI[e]}px)`};function EI(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||SI;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||SI;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||xI).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function wI(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function CI(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:wI(e,n)||r,t&&(o=t(o,r,e)),o}function RI(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=wI(e.theme,r)||{};return EI(e,i,(e=>{let r=CI(a,o,e);return e===r&&"string"==typeof e&&(r=CI(a,o,`${t}${"default"===e?"":co(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const kI={m:"margin",p:"padding"},AI={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},LI={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},PI=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!LI[e])return[e];e=LI[e]}const[t,n]=e.split(""),r=kI[t],o=AI[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),II=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],DI=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function _I(e,t,n,r){var o;const i=null!=(o=wI(e,t,!1))?o:n;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 MI(e){return _I(e,"spacing",8)}function TI(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function OI(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=TI(t,n),e)),{})}(PI(n),r);return EI(e,e[n],o)}function NI(e,t){const n=MI(e.theme);return Object.keys(e).map((r=>OI(e,t,r,n))).reduce(yI,{})}function qI(e){return NI(e,II)}function zI(e){return NI(e,DI)}function FI(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?yI(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function jI(e){return"number"!=typeof e?e:`${e}px solid`}function $I(e,t){return RI({prop:e,themeKey:"borders",transform:t})}qI.propTypes={},qI.filterProps=II,zI.propTypes={},zI.filterProps=DI;const BI=$I("border",jI),HI=$I("borderTop",jI),WI=$I("borderRight",jI),VI=$I("borderBottom",jI),UI=$I("borderLeft",jI),GI=$I("borderColor"),YI=$I("borderTopColor"),KI=$I("borderRightColor"),XI=$I("borderBottomColor"),JI=$I("borderLeftColor"),QI=$I("outline",jI),ZI=$I("outlineColor"),eD=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=_I(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:TI(t,e)});return EI(e,e.borderRadius,n)}return null};eD.propTypes={},eD.filterProps=["borderRadius"],FI(BI,HI,WI,VI,UI,GI,YI,KI,XI,JI,eD,QI,ZI);const tD=e=>{if(void 0!==e.gap&&null!==e.gap){const t=_I(e.theme,"spacing",8),n=e=>({gap:TI(t,e)});return EI(e,e.gap,n)}return null};tD.propTypes={},tD.filterProps=["gap"];const nD=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=_I(e.theme,"spacing",8),n=e=>({columnGap:TI(t,e)});return EI(e,e.columnGap,n)}return null};nD.propTypes={},nD.filterProps=["columnGap"];const rD=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=_I(e.theme,"spacing",8),n=e=>({rowGap:TI(t,e)});return EI(e,e.rowGap,n)}return null};rD.propTypes={},rD.filterProps=["rowGap"];function oD(e,t){return"grey"===t?t:e}FI(tD,nD,rD,RI({prop:"gridColumn"}),RI({prop:"gridRow"}),RI({prop:"gridAutoFlow"}),RI({prop:"gridAutoColumns"}),RI({prop:"gridAutoRows"}),RI({prop:"gridTemplateColumns"}),RI({prop:"gridTemplateRows"}),RI({prop:"gridTemplateAreas"}),RI({prop:"gridArea"}));function iD(e){return e<=1&&0!==e?100*e+"%":e}FI(RI({prop:"color",themeKey:"palette",transform:oD}),RI({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:oD}),RI({prop:"backgroundColor",themeKey:"palette",transform:oD}));const aD=RI({prop:"width",transform:iD}),lD=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||xI[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:iD(t)}};return EI(e,e.maxWidth,t)}return null};lD.filterProps=["maxWidth"];const sD=RI({prop:"minWidth",transform:iD}),uD=RI({prop:"height",transform:iD}),cD=RI({prop:"maxHeight",transform:iD}),dD=RI({prop:"minHeight",transform:iD});RI({prop:"size",cssProperty:"width",transform:iD}),RI({prop:"size",cssProperty:"height",transform:iD});FI(aD,lD,sD,uD,cD,dD,RI({prop:"boxSizing"}));var pD={border:{themeKey:"borders",transform:jI},borderTop:{themeKey:"borders",transform:jI},borderRight:{themeKey:"borders",transform:jI},borderBottom:{themeKey:"borders",transform:jI},borderLeft:{themeKey:"borders",transform:jI},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:jI},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:eD},color:{themeKey:"palette",transform:oD},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:oD},backgroundColor:{themeKey:"palette",transform:oD},p:{style:zI},pt:{style:zI},pr:{style:zI},pb:{style:zI},pl:{style:zI},px:{style:zI},py:{style:zI},padding:{style:zI},paddingTop:{style:zI},paddingRight:{style:zI},paddingBottom:{style:zI},paddingLeft:{style:zI},paddingX:{style:zI},paddingY:{style:zI},paddingInline:{style:zI},paddingInlineStart:{style:zI},paddingInlineEnd:{style:zI},paddingBlock:{style:zI},paddingBlockStart:{style:zI},paddingBlockEnd:{style:zI},m:{style:qI},mt:{style:qI},mr:{style:qI},mb:{style:qI},ml:{style:qI},mx:{style:qI},my:{style:qI},margin:{style:qI},marginTop:{style:qI},marginRight:{style:qI},marginBottom:{style:qI},marginLeft:{style:qI},marginX:{style:qI},marginY:{style:qI},marginInline:{style:qI},marginInlineStart:{style:qI},marginInlineEnd:{style:qI},marginBlock:{style:qI},marginBlockStart:{style:qI},marginBlockEnd:{style:qI},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:tD},rowGap:{style:rD},columnGap:{style:nD},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:iD},maxWidth:{style:lD},minWidth:{transform:iD},height:{transform:iD},maxHeight:{transform:iD},minHeight:{transform:iD},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function fD(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[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=wI(n,l)||{};if(u)return u(o);return EI(o,t,(t=>{let n=CI(c,s,t);return t===n&&"string"==typeof t&&(n=CI(c,s,`${e}${"default"===t?"":co(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:pD;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=yI(s,e(n,o,i,a));else{const e=EI({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=yI(s,e):s[n]=t({sx:o,theme:i})}else s=yI(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const mD=fD();mD.filterProps=["sx"];var hD=mD;function gD(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}const bD=["breakpoints","palette","spacing","shape"];function vD(e={},...t){const{breakpoints:r={},palette:o={},spacing:i,shape:a={}}=e,l=d(e,bD),s=bI(r),u=function(e=8){if(e.mui)return e;const t=MI({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(i);let c=zr({breakpoints:s,direction:"ltr",components:{},palette:n({mode:"light"},o),spacing:u,shape:n({},vI,a)},l);return c.applyStyles=gD,c=t.reduce(((e,t)=>zr(e,t)),c),c.unstable_sxConfig=n({},pD,null==l?void 0:l.unstable_sxConfig),c.unstable_sx=function(e){return hD({sx:e,theme:this})},c}var yD=Object.freeze({__proto__:null,default:vD,private_createBreakpoints:bI,unstable_applyStyles:gD});function xD(e=null){const t=X.useContext(yr);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const SD=vD();const ED=["sx"],wD=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:pD;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function CD(e){const{sx:t}=e,r=d(e,ED),{systemProps:o,otherProps:i}=wD(r);let a;return a=Array.isArray(t)?[o,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return Nr(r)?n({},o,r):o}:n({},o,t),n({},i,{sx:a})}var RD=Object.freeze({__proto__:null,default:hD,extendSxProp:CD,unstable_createStyleFunctionSx:fD,unstable_defaultSxConfig:pD});const kD=["className","component"];function AD(e){if(e.type)return e;if("#"===e.charAt(0))return AD(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Oe(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=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(r))throw new Error(Oe(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function LD(e,t){return e=AD(e),t=function(e,t=0,n=1){return jo(e,t,n)}(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:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}var PD=X.createContext(null);function ID(){return X.useContext(PD)}var DD="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function _D(e){const{children:t,theme:r}=e,o=ID(),i=X.useMemo((()=>{const e=null===o?r:function(e,t){if("function"==typeof t)return t(e);return n({},e,t)}(o,r);return null!=e&&(e[DD]=null!==o),e}),[r,o]);return oa.jsx(PD.Provider,{value:i,children:t})}const MD=["value"],TD=X.createContext();function OD(e){let{value:t}=e,r=d(e,MD);return oa.jsx(TD.Provider,n({value:null==t||t},r))}const ND=X.createContext(void 0);function qD({value:e,children:t}){return oa.jsx(ND.Provider,{value:e,children:t})}function zD({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Mo(o.defaultProps,r):o.styleOverrides||o.variants?r:Mo(o,r)}({props:e,name:t,theme:{components:X.useContext(ND)}})}const FD={};function jD(e,t,r,o=!1){return X.useMemo((()=>{const i=e&&t[e]||t;if("function"==typeof r){const a=r(i),l=e?n({},t,{[e]:a}):a;return o?()=>l:l}return n({},t,e?{[e]:r}:r)}),[e,t,r,o])}function $D(e){const{children:t,theme:n,themeId:r}=e,o=xD(FD),i=ID()||FD,a=jD(r,o,n),l=jD(r,i,n,!0),s="rtl"===a.direction;return oa.jsx(_D,{theme:l,children:oa.jsx(yr.Provider,{value:a,children:oa.jsx(OD,{value:s,children:oa.jsx(qD,{value:null==a?void 0:a.components,children:t})})})})}var BD={},HD={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(HD);var WD=HD.exports,VD=o(Ne),UD=o($o),GD=WD;Object.defineProperty(BD,"__esModule",{value:!0});var YD=BD.alpha=l_;BD.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=n_(e),a=n_(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return o_({type:"rgb",values:l})},BD.colorChannel=void 0;var KD=BD.darken=s_;BD.decomposeColor=n_,BD.emphasize=c_;var XD=BD.getContrastRatio=function(e,t){const n=a_(e),r=a_(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};BD.getLuminance=a_,BD.hexToRgb=t_,BD.hslToRgb=i_;var JD=BD.lighten=u_;BD.private_safeAlpha=function(e,t,n){try{return l_(e,t)}catch(t){return e}},BD.private_safeColorChannel=void 0,BD.private_safeDarken=function(e,t,n){try{return s_(e,t)}catch(t){return e}},BD.private_safeEmphasize=function(e,t,n){try{return c_(e,t)}catch(t){return e}},BD.private_safeLighten=function(e,t,n){try{return u_(e,t)}catch(t){return e}},BD.recomposeColor=o_,BD.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=n_(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 QD=GD(VD),ZD=GD(UD);function e_(e,t=0,n=1){return(0,ZD.default)(e,t,n)}function t_(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function n_(e){if(e.type)return e;if("#"===e.charAt(0))return n_(t_(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,QD.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=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(r))throw new Error((0,QD.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const r_=e=>{const t=n_(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};BD.colorChannel=r_;function o_(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function i_(e){e=n_(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/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])),o_({type:l,values:s})}function a_(e){let t="hsl"===(e=n_(e)).type||"hsla"===e.type?n_(i_(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 l_(e,t){return e=n_(e),t=e_(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,o_(e)}function s_(e,t){if(e=n_(e),t=e_(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 n=0;n<3;n+=1)e.values[n]*=1-t;return o_(e)}function u_(e,t){if(e=n_(e),t=e_(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return o_(e)}function c_(e,t=.15){return a_(e)>.5?s_(e,t):u_(e,t)}BD.private_safeColorChannel=(e,t)=>{try{return r_(e)}catch(t){return e}};var d_={black:"#000",white:"#fff"};var p_={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 f_={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 m_={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 h_={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 g_={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 b_={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 v_={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 y_=["mode","contrastThreshold","tonalOffset"],x_={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:d_.white,default:d_.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}},S_={text:{primary:d_.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:d_.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 E_(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=JD(e.main,o):"dark"===t&&(e.dark=KD(e.main,i)))}function w_(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:o=.2}=e,i=d(e,y_),a=e.primary||function(e="light"){return"dark"===e?{main:g_[200],light:g_[50],dark:g_[400]}:{main:g_[700],light:g_[400],dark:g_[800]}}(t),l=e.secondary||function(e="light"){return"dark"===e?{main:f_[200],light:f_[50],dark:f_[400]}:{main:f_[500],light:f_[300],dark:f_[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:m_[500],light:m_[300],dark:m_[700]}:{main:m_[700],light:m_[400],dark:m_[800]}}(t),u=e.info||function(e="light"){return"dark"===e?{main:b_[400],light:b_[300],dark:b_[700]}:{main:b_[700],light:b_[500],dark:b_[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:v_[400],light:v_[300],dark:v_[700]}:{main:v_[800],light:v_[500],dark:v_[900]}}(t),p=e.warning||function(e="light"){return"dark"===e?{main:h_[400],light:h_[300],dark:h_[700]}:{main:"#ed6c02",light:h_[500],dark:h_[900]}}(t);function f(e){return XD(e,S_.text.primary)>=r?S_.text.primary:x_.text.primary}const m=({color:e,name:t,mainShade:r=500,lightShade:i=300,darkShade:a=700})=>{if(!(e=n({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Oe(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Oe(12,t?` (${t})`:"",JSON.stringify(e.main)));return E_(e,"light",i,o),E_(e,"dark",a,o),e.contrastText||(e.contrastText=f(e.main)),e},h={dark:S_,light:x_};return zr(n({common:n({},d_),mode:t,primary:m({color:a,name:"primary"}),secondary:m({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:s,name:"error"}),warning:m({color:p,name:"warning"}),info:m({color:u,name:"info"}),success:m({color:c,name:"success"}),grey:p_,contrastThreshold:r,getContrastText:f,augmentColor:m,tonalOffset:o},h[t]),i)}const C_=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const R_={textTransform:"uppercase"},k_='"Roboto", "Helvetica", "Arial", sans-serif';function A_(e,t){const r="function"==typeof t?t(e):t,{fontFamily:o=k_,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:l=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:c=16,allVariants:p,pxToRem:f}=r,m=d(r,C_),h=i/14,g=f||(e=>e/c*h+"rem"),b=(e,t,r,i,a)=>{return n({fontFamily:o,fontWeight:e,fontSize:g(t),lineHeight:r},o===k_?{letterSpacing:(l=i/t,Math.round(1e5*l)/1e5)+"em"}:{},a,p);var l},v={h1:b(a,96,1.167,-1.5),h2:b(a,60,1.2,-.5),h3:b(l,48,1.167,0),h4:b(l,34,1.235,.25),h5:b(l,24,1.334,0),h6:b(s,20,1.6,.15),subtitle1:b(l,16,1.75,.15),subtitle2:b(s,14,1.57,.1),body1:b(l,16,1.5,.15),body2:b(l,14,1.43,.15),button:b(s,14,1.75,.4,R_),caption:b(l,12,1.66,.4),overline:b(l,12,2.66,1,R_),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return zr(n({htmlFontSize:c,pxToRem:g,fontFamily:o,fontSize:i,fontWeightLight:a,fontWeightRegular:l,fontWeightMedium:s,fontWeightBold:u},v),m,{clone:!1})}function L_(...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 P_=["none",L_(0,2,1,-1,0,1,1,0,0,1,3,0),L_(0,3,1,-2,0,2,2,0,0,1,5,0),L_(0,3,3,-2,0,3,4,0,0,1,8,0),L_(0,2,4,-1,0,4,5,0,0,1,10,0),L_(0,3,5,-1,0,5,8,0,0,1,14,0),L_(0,3,5,-1,0,6,10,0,0,1,18,0),L_(0,4,5,-2,0,7,10,1,0,2,16,1),L_(0,5,5,-3,0,8,10,1,0,3,14,2),L_(0,5,6,-3,0,9,12,1,0,3,16,2),L_(0,6,6,-3,0,10,14,1,0,4,18,3),L_(0,6,7,-4,0,11,15,1,0,4,20,3),L_(0,7,8,-4,0,12,17,2,0,5,22,4),L_(0,7,8,-4,0,13,19,2,0,5,24,4),L_(0,7,9,-4,0,14,21,2,0,5,26,4),L_(0,8,9,-5,0,15,22,2,0,6,28,5),L_(0,8,10,-5,0,16,24,2,0,6,30,5),L_(0,8,11,-5,0,17,26,2,0,6,32,5),L_(0,9,11,-5,0,18,28,2,0,7,34,6),L_(0,9,12,-6,0,19,29,2,0,7,36,6),L_(0,10,13,-6,0,20,31,3,0,8,38,7),L_(0,10,13,-6,0,21,33,3,0,8,40,7),L_(0,10,14,-6,0,22,35,3,0,8,42,7),L_(0,11,14,-7,0,23,36,3,0,9,44,8),L_(0,11,15,-7,0,24,38,3,0,9,46,8)];const I_=["duration","easing","delay"],D_={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)"},__={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function M_(e){return`${Math.round(e)}ms`}function T_(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function O_(e){const t=n({},D_,e.easing),r=n({},__,e.duration);return n({getAutoHeightDuration:T_,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return d(n,I_),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:M_(o)} ${i} ${"string"==typeof a?a:M_(a)}`)).join(",")}},e,{easing:t,duration:r})}var N_={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const q_=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function z_(e={},...t){const{mixins:r={},palette:o={},transitions:i={},typography:a={}}=e,l=d(e,q_);if(e.vars)throw new Error(Oe(18));const s=w_(o),u=vD(e);let c=zr(u,{mixins:(p=u.breakpoints,f=r,n({toolbar:{minHeight:56,[p.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[p.up("sm")]:{minHeight:64}}},f)),palette:s,shadows:P_.slice(),typography:A_(s,a),transitions:O_(i),zIndex:n({},N_)});var p,f;return c=zr(c,l),c=t.reduce(((e,t)=>zr(e,t)),c),c.unstable_sxConfig=n({},pD,null==l?void 0:l.unstable_sxConfig),c.unstable_sx=function(e){return hD({sx:e,theme:this})},c}var F_,j_=z_(),$_={},B_={exports:{}};var H_,W_={exports:{}};var V_=o(Or),U_=o(jr),G_=o(po),Y_=o(uo),K_=o(yD),X_=o(RD),J_=WD;Object.defineProperty($_,"__esModule",{value:!0});var Q_=$_.default=function(e={}){const{themeId:t,defaultTheme:n=cM,rootShouldForwardProp:r=uM,slotShouldForwardProp:o=uM}=e,i=e=>(0,oM.default)((0,Z_.default)({},e,{theme:pM((0,Z_.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,tM.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=fM(dM(s))}=a,p=(0,eM.default)(a,lM),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=uM;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,tM.default)(e,(0,Z_.default)({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,nM.isPlainObject)(e)?r=>mM(e,(0,Z_.default)({},r,{theme:pM({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...o)=>{let a=b(r);const s=o?o.map(b):[];l&&d&&s.push((e=>{const r=pM((0,Z_.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=mM(n,(0,Z_.default)({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=pM((0,Z_.default)({},e,{defaultTheme:n,themeId:t}));return mM({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,Z_.default)({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};$_.shouldForwardProp=uM,$_.systemDefaultTheme=void 0;var Z_=J_((F_||(F_=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 n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}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}(B_)),B_.exports)),eM=J_((H_||(H_=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(W_)),W_.exports)),tM=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=sM(t);if(n&&n.has(e))return n.get(e);var r={__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(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(V_),nM=U_;J_(G_),J_(Y_);var rM=J_(K_),oM=J_(X_);const iM=["ownerState"],aM=["variants"],lM=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function sM(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(sM=function(e){return e?n:t})(e)}function uM(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const cM=$_.systemDefaultTheme=(0,rM.default)(),dM=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function pM({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function fM(e){return e?(t,n)=>n[e]:null}function mM(e,t){let{ownerState:n}=t,r=(0,eM.default)(t,iM);const o="function"==typeof e?e((0,Z_.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>mM(e,(0,Z_.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,eM.default)(o,aM);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,Z_.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,Z_.default)({ownerState:n},r,n)):e.style))})),t}return o}var hM=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var gM=Q_({themeId:mI,defaultTheme:j_,rootShouldForwardProp:hM});const bM=["theme"];function vM(e){let{theme:t}=e,r=d(e,bM);const o=t[mI];return oa.jsx($D,n({},r,{themeId:o?mI:void 0,theme:o||t}))}var yM={exports:{}};
120
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,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(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[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"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},LA({exports:{}});var FA={exports:{}};!function(e){self,e.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,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(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,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(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,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(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,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(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](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 o={};(()=>{r.r(o),r.d(o,{default:()=>De});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}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 n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.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 r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"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),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"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,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[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,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.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 n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.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&&(r=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);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}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),k={},A=Array.isArray;function P(e){return null!=e&&!Array.isArray(e)&&"object"===C(e)}function L(e){return void 0===e}function I(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function D(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=L(e[n||t])?i:e[t],e=e[n||t]}})),e}function _(e,t){var n=!0;if(P(e)&&P(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){_(e[r],t[r])||(n=!1)})),n);if(A(e)&&A(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!_(e[r],t[r]))return!1;return!0}return e===t}k.generate=function(e,t,n){n=n||"";var r=[];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(n,"/").concat(o);_(i,a)||I(t,o)||(L(a)?r.push({op:"add",path:l,value:i}):P(i)&&P(a)?r=r.concat(k.generate(a,i,l)):A(i)&&A(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&L(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(_(t,o))return r;if(!L(t[0])&&L(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(k.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){L(t[o])&&!I(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},k.apply=function(e,t){t.forEach((function(t){var n,r,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(A(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(A(a)&&A(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)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(P(a)&&P(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!I(n,e)&&delete n[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=D(e,t.from);A(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(A(o)?o.splice(+i,1):delete o[i])}))},k.clone=function(e){return R({},e)},k.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},k.updateObject=function(e,t){Object.keys(e).length?k.apply(e,k.generate(e,t)):R(e,t)};const M=k,T=function(e,n,r){if(!e)return Promise.resolve();var o=M.generate(n,r);return t()(!0,n,r),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 O="accumulation";function N(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===O)return n[r]}function q(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===O)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,z)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={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(q(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(q(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(q(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(q(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=N(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=N(t,e);return n&&!n.fullAccumulation}},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 E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(O))return!1;var i=N(t,e);return i&&!i.disabled}};return n}};var j="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function B(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var H={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),m=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var W="timeSeriesDecomposition";function U(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===W)return n[r]}function G(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===W)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):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,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):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]:{},n={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(G(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(G(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=U(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.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 n=U(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(W))return!1;var i=U(t,e);return i&&!i.disabled}};return n}};var X="difference";function J(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Q(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Z={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,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Z).forEach((function(t){void 0===e[t]&&(e[t]=Z[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={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(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 E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;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,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.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]:{},n={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(re(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(n){return function(e,t,n){var r=[{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 r=function(e,t){if(1===e){var n=oe(t,0);t.splice(n,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(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(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var n=oe(t,0);t.splice(n,1)}return t}(o,i),i=function(e,t){if(0===e){var n=oe(t,1);t.splice(n,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(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,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},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",ke="qDef.base.qAggrFunc",Ae={initBase:function(e,t){(t||Ae.isValid(e))&&(n(e,ve,i(e,be)),n(e,xe,i(e,ye)),n(e,we,i(e,Se)),n(e,Ce,i(e,Ee)))},restoreBase:function(e){Ae.isValid(e)&&(n(e,be,i(e,ve)),n(e,ye,i(e,xe)),n(e,Se,i(e,we)),n(e,Ee,i(e,Ce)),i(e,Re)&&i(e,ke)&&n(e,Re,i(e,ke)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),n=i(e,xe);return void 0!==t||void 0!==n}};const Pe=Ae;function Le(e){return Le="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},Le(e)}var Ie={accumulation:F,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:K};const De={modifiers:Ie,apply:Me,applyModifiers:Te,cleanUpMeasure:Oe,destroy:function(e){e&&_e[e.id]&&_e[e.id].masterItemSubscriber&&(_e[e.id].masterItemSubscriber&&_e[e.id].masterItemSubscriber.unsubscribe(),delete _e[e.id])},hasActiveModifiers:Ne,getActiveModifier:qe,initBase:Pe.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ie[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Ie[e]&&Ie[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Ge({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Qe({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:ze};var _e={};function Me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;_e[n.id]=_e[n.id]||{isFirstTime:!0};var u=_e[n.id].isFirstTime;if(_e[n.id].isFirstTime=!1,r&&"object"===Le(r))return Te({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=_e[n.id].lastReloadTime;if(_e[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return m||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ge({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);Be(r);var o=Ze(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return m&&function(e){var t=e.properties;Fe(t).forEach((function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Le(e)&&!e.disabled){if(n++,"object"!==Le(Ie[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=Ie[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Ve(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Te({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Le(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Ze(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return Fe(r).forEach((function(e){return Oe(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function Te(e){var n=e.model,r=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===r&&(r=s?t()(!0,{},o):o),Be(o);var p=Ze(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=Fe(r)),!n.length)return Promise.resolve();if(!Ne({measures:n,properties:r}))return n.forEach((function(e){return Oe(e)})),Promise.resolve();var s=a?void 0:Ze(r);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ge({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Pe.isValid(n)||Pe.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Le(e)&&!e.disabled){if(l++,"object"!==Le(Ie[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)");Ie[e.type].initModifier(e,n);var s=n.qLibraryId||c&&c.qLibraryId;s?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Ie[r.type].generateExpression({expression:l,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:s,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Ie[r.type].updateModifier&&Ie[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:Ie[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||ze(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&ze(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),He(n)):Oe(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function Oe(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&!Ie[e.type]}))}(e)?Pe.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function Ne(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({modifiers:je(e),properties:n,layout:r})}))}function qe(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Ie[r.type]&&!r.disabled)return r}}function ze(e){var t=qe(e);return!t||Ie[t.type].enableTotalsFunction(e)}function Fe(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){Fe(e).forEach((function(e){return function(e){var n=qe(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!Pe.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function He(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Le(t)&&(t.disabled||!Ie[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ve(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,n=e.properties,r=e.layout;return!We(t)&&Ge({modifiers:je(t),properties:n,layout:r})}function Ge(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Le(e)||e.disabled||!Ie[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ie[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.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,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):T(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Qe(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&Ie[e.type]&&Ie[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Ze(e){var t=Fe(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ge({modifiers:r,properties:e})){var i=We(t);i&&n.push(i),o=o||Qe({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(_e[t.id].masterItemSubscriber=_e[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=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:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Me({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),_e[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](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);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),o=Math.floor(n/62);return o>0?t(o)+r:r}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)}n.d(r,{default:()=>Be});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var l=r[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n: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 n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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 n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}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 n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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 n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c};var p=n(645),f=n.n(p);const m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var l,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,s(r.qMeasures));var a,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.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)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!i.isEmpty(n.qLayoutExclude.quarantine)||delete n.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,n){var r,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(r=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(r)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=a}var S=n(229),E=n.n(S);function w(e,t){var n=E()(!0,{},t,e);return i.getValue(n,"qOtherTotalSpec.qOtherCounted")||i.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(n,"qOtherTotalSpec.qOtherLimit")||i.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function C(e,t){return E()(!0,{},t,e)}function R(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var k=Math.pow(2,53)-1;function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const L=function(e,t,n){var r="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(n,"qInfo.qType");i.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},I=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},D=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},_=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}}},M=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},T=function(e){var t,n=e.exportFormat,r=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=n.data[0];for(t=0;t<l.dimensions.length;++t){var s=w(l.dimensions[t],a);i.qDimensions.length<r?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)}},O=function(e){var t,n=e.exportFormat,r=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=n.data[0];for(t=0;t<l.measures.length;++t){var s=C(l.measures[t],a);i.qMeasures.length<r?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)}},N=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,o=t.data[0],i=r.dimensions||{max:0},a=r.measures||{max:0},l=R(a.max,o.dimensions.length,k),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,k),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},q=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(n.qInterColumnSortOrder,i))},z=function(e){var t=e.exportFormat,n=e.initialProperties,r=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&&r?i.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.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,{},n,o)).components&&(o.components=[]),o},F=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=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>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(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=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return A(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},B=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return P(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 P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},H=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function V(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){i.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const W={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,n||""),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}),n&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),r||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,n=e.initialProperties,r=void 0===n?{}:n,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=z({exportFormat:t,initialProperties:r,hypercubePath:u}),b=i.getValue(r,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,w=y.minMeasures,C=s.defaultDimension,R=void 0===C?_():C,k=s.defaultMeasure,A=void 0===k?M():k;v.qDimensions.length=0,v.qMeasures.length=0,F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:w})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:w,newHyperCubeDef:v}),T({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),O({exportFormat:t,maxMeasures:E,minMeasures:w,newHyperCubeDef:v,defaultMeasure:A}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),q({exportFormat:t,newHyperCubeDef:v}),I("qMaxStackedCells",b,v),I("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),L(g,t,r),h.qProperty=g;var P=i.getValue(c||{},"support.modifiers");return H({measures:v.qMeasures,modifierTypes:P}),p&&V(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&V(h.qProperty,"dynamicScript"),h}};var U={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function G(e,t,n,r){t=t||[];var o=c(e,r,n),i=c(t,r,n);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!U[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,o){n=n||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][n],l=t.length;if(G(a,t,r,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}}},Q={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 Z={scatterplot:Q,"sn-scatter-plot":Q,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,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(r,o);var s=r[r.length-1];if(s){var u=n?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,n=e.label,r=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,o?t.qDef=r.key:(t.qExpression=r.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:f,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p})}n?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,n,r){var o,i,a,l={};switch(e){case"dimension":n.qLibraryId?(l.type="dimension",l.name=n.qLibraryId,l.id=n.qLibraryId):(l.type="field",t?(l.name=n.label||n.qDef,l.id=n.qDef):(l.name=n.qDef.qFieldDefs[0],l.label=(a=n.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)}(n,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}(n,r),i&&(l.expression=i)):(l.type="expression",t?(l.name=n.label||n.qExpression,l.id=n.qExpression):(l.name=n.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));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,n,r){var o=n?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(ne(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:n||l,key:n||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)}r||(i.auto=!1,i.mode=a)}function le(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var o=oe("dimension",!1,n[r.activeDimensionIndex]);o.activeDimensionIndex=r.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=i.getValue(t,"visualization"),o=n.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===l}(n,e,t)?0:n.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Z[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},de=function(e,t){var n,r=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):!(n={auto:o,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?le(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==l&&!o.length)}({auto:o,colorMode:r,dimensions:a,measures:l,properties:e})?function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qMeasures"),[]),r=i.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var o=oe("measure",!1,n[r.activeMeasureIndex],!0);o.activeMeasureIndex=r.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||r[0])),!!l}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=i.getValue(e,"color.mode"),r=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&o.length<2&&i.setValue(e,"color.mode","primary"),te(r,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,n=e.properties,r=i.getValue(n,"qHyperCubeDef.qMeasures",[]),o=i.getValue(n,"color.mode","");return!t&&"byExpression"===o&&r.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,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",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n},be={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=W.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),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,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=W.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,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,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?V(n,"unsupportedAutoMinMax")||E()(n.measureAxis,t.measureAxis):V(n,"supportedAutoMinMax")||E()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=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:n,initialProperties:r})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,o=n.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[o].type[r]++,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,n.properties.measureAxes[t[0].axis])):E()(l,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},Ee={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),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,n=e.initialProperties,r=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:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function we(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function Ce(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=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(n,r,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=we(n,r,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}var ke="qHyperCubeDef.qMeasures",Ae="conditionalColoring",Pe="measures",Le="qDef.conditionalColoring";const Ie={quarantine:function(e){Ce({properties:e,arrayPath:ke,quarantineName:Ae,arrayName:Pe,itemPath:Le})},unquarantine:function(e){Re({properties:e,arrayPath:ke,itemPath:Le,arrayName:Pe,quarantineName:Ae})}};var De="qHyperCubeDef.qMeasures",_e="measures",Me="qHyperCubeDef.qDimensions",Te="dimensions",Oe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",qe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",ze="alternativeDimensions",Fe="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){Ce({properties:e,arrayPath:De,quarantineName:je,arrayName:_e,itemPath:Fe}),Ce({properties:e,arrayPath:Me,quarantineName:je,arrayName:Te,itemPath:Fe})},unquarantine:function(e){Re({properties:e,arrayPath:De,quarantineName:je,arrayName:_e,itemPath:Fe}),Re({properties:e,arrayPath:Me,quarantineName:je,arrayName:Te,itemPath:Fe})},quarantineAlternative:function(e){Ce({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ne,itemPath:Fe}),Ce({properties:e,arrayPath:qe,quarantineName:je,arrayName:ze,itemPath:Fe})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ne,itemPath:Fe}),Re({properties:e,arrayPath:qe,quarantineName:je,arrayName:ze,itemPath:Fe})}},Be={hypercube:W,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:Ce,unquarantineArrayProp:Re,conditionalColoring:Ie,conditionalShow:$e}})(),r.default})()}(FA);var jA=r(FA.exports);const $A="qHyperCubeDef.qDimensions",BA="dimensions",HA="qDef.representation",VA="tableRepresentation",WA=(e,t,n)=>{const r=e.length+t.length,o=((null==n?void 0:n.length)===r?n:Array.from(Array(r).keys())).map((n=>((e,t,n)=>{var r;const o=t.length,i=e<o?t[e]:n[e-o],{columnWidth:a}=i.qDef;return"pixels"===(null==a?void 0:a.type)?null!==(r=a.pixels)&&void 0!==r?r:vk.PixelsDefault:-1})(n,e,t)));return o},UA=({propertyTree:e,hyperCubePath:t})=>{const n=jA.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:r,qDimensions:o,qMeasures:i}}=n.properties,a=WA(o,i,r);return DA(n,"properties.qHyperCubeDef",{...n.properties.qHyperCubeDef,columnWidths:a}),jA.quarantineProperty(n.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),jA.quarantineProperty(n.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),jA.quarantineProperty(n.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{jA.quarantineArrayProp({properties:e,arrayPath:$A,itemPath:HA,arrayName:BA,quarantineName:VA})})(n.properties),n};const GA=(e,t,n,r)=>{let o=t;r&&(o=t-r);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(n)&&n.length>0){const e=n[t];i.qDef.columnWidth="number"==typeof e&&e>0?{type:yk.Pixels,pixels:e}:{type:yk.FitToContent}}return i},YA=({exportFormat:e,initialProperties:t,extension:n,hypercubePath:r,defaultPropertyValues:o,viewDataMode:i})=>{const a=jA.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:r,extension:n});jA.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{jA.unquarantineArrayProp({properties:e,arrayPath:$A,itemPath:HA,arrayName:BA,quarantineName:VA})})(a.qProperty);const{qHyperCubeDef:{qDimensions:l,qMeasures:s,qColumnOrder:u,columnWidths:c}}=a.qProperty,{dimensions:d,measures:p}=((e,t,n,r)=>{const o=e.length,i=o+t.length,a=(null==n?void 0:n.length)===i?n:Array.from(Array(i).keys());return{dimensions:a.filter((e=>e<o)).map((t=>GA(e,t,r))),measures:a.filter((e=>e>=o)).map((e=>GA(t,e,r,o)))}})(l,s,u,c);return Array.isArray(c)&&c.length>0&&(DA(a,"qProperty.qHyperCubeDef.qDimensions",d),DA(a,"qProperty.qHyperCubeDef.qMeasures",p)),i&&(DA(a,"qProperty.totals.show",!1),DA(a,"qProperty.usePagination",!0)),jA.conditionalShow.unquarantine(a.qProperty),a};var KA={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};function XA(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function JA(e,t){let n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r}function QA(e){return e>0?0:1}function ZA(e){return e.translator.get("Visualizations.Descriptions.Column")}function eP(e){return{measures:{min:QA,max:1e3,description:()=>ZA(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;XA(r,n.getDimensions().length+n.getMeasures().length-1)},remove(e,t,n,r){const{qColumnOrder:o}=n.hcProperties;JA(o,(n.hcProperties.qDimensions?n.hcProperties.qDimensions.length:0)+r)}},dimensions:{min:QA,max:1e3,description:()=>ZA(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;return XA(r,n.getDimensions().length-1),e},remove(e,t,n,r){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=n.hcProperties;JA(o,r)}}}}var tP={};!function(e){(()=>{var t={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,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(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,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(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](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 o={};(()=>{r.r(o),r.d(o,{default:()=>De});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}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 n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.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 r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"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),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"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,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[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,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.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 n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.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&&(r=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);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}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),k={},A=Array.isArray;function P(e){return null!=e&&!Array.isArray(e)&&"object"===C(e)}function L(e){return void 0===e}function I(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function D(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=L(e[n||t])?i:e[t],e=e[n||t]}})),e}function _(e,t){var n=!0;if(P(e)&&P(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){_(e[r],t[r])||(n=!1)})),n);if(A(e)&&A(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!_(e[r],t[r]))return!1;return!0}return e===t}k.generate=function(e,t,n){n=n||"";var r=[];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(n,"/").concat(o);_(i,a)||I(t,o)||(L(a)?r.push({op:"add",path:l,value:i}):P(i)&&P(a)?r=r.concat(k.generate(a,i,l)):A(i)&&A(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&L(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(_(t,o))return r;if(!L(t[0])&&L(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(k.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){L(t[o])&&!I(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},k.apply=function(e,t){t.forEach((function(t){var n,r,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(A(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(A(a)&&A(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)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(P(a)&&P(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!I(n,e)&&delete n[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=D(e,t.from);A(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(A(o)?o.splice(+i,1):delete o[i])}))},k.clone=function(e){return R({},e)},k.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},k.updateObject=function(e,t){Object.keys(e).length?k.apply(e,k.generate(e,t)):R(e,t)};const M=k,T=function(e,n,r){if(!e)return Promise.resolve();var o=M.generate(n,r);return t()(!0,n,r),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 O="accumulation";function N(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===O)return n[r]}function q(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===O)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,z)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={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(q(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(q(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(q(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(q(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=N(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=N(t,e);return n&&!n.fullAccumulation}},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 E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(O))return!1;var i=N(t,e);return i&&!i.disabled}};return n}};var j="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function B(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var H={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),m=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var W="timeSeriesDecomposition";function U(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===W)return n[r]}function G(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===W)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):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,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):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]:{},n={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(G(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(G(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=U(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.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 n=U(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(W))return!1;var i=U(t,e);return i&&!i.disabled}};return n}};var X="difference";function J(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Q(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Z={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,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Z).forEach((function(t){void 0===e[t]&&(e[t]=Z[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={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(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 E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;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,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.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]:{},n={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(re(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(n){return function(e,t,n){var r=[{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 r=function(e,t){if(1===e){var n=oe(t,0);t.splice(n,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(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(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var n=oe(t,0);t.splice(n,1)}return t}(o,i),i=function(e,t){if(0===e){var n=oe(t,1);t.splice(n,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(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,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},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",ke="qDef.base.qAggrFunc",Ae={initBase:function(e,t){(t||Ae.isValid(e))&&(n(e,ve,i(e,be)),n(e,xe,i(e,ye)),n(e,we,i(e,Se)),n(e,Ce,i(e,Ee)))},restoreBase:function(e){Ae.isValid(e)&&(n(e,be,i(e,ve)),n(e,ye,i(e,xe)),n(e,Se,i(e,we)),n(e,Ee,i(e,Ce)),i(e,Re)&&i(e,ke)&&n(e,Re,i(e,ke)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),n=i(e,xe);return void 0!==t||void 0!==n}};const Pe=Ae;function Le(e){return Le="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},Le(e)}var Ie={accumulation:F,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:K};const De={modifiers:Ie,apply:Me,applyModifiers:Te,cleanUpMeasure:Oe,destroy:function(e){e&&_e[e.id]&&_e[e.id].masterItemSubscriber&&(_e[e.id].masterItemSubscriber&&_e[e.id].masterItemSubscriber.unsubscribe(),delete _e[e.id])},hasActiveModifiers:Ne,getActiveModifier:qe,initBase:Pe.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ie[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Ie[e]&&Ie[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Ge({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Qe({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:ze};var _e={};function Me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;_e[n.id]=_e[n.id]||{isFirstTime:!0};var u=_e[n.id].isFirstTime;if(_e[n.id].isFirstTime=!1,r&&"object"===Le(r))return Te({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=_e[n.id].lastReloadTime;if(_e[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.model,o=e.lastReloadTime;return i(r,"app.layout.qLastReloadTime")!==o&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return m||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ge({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);Be(r);var o=Ze(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return m&&function(e){var t=e.properties;Fe(t).forEach((function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Le(e)&&!e.disabled){if(n++,"object"!==Le(Ie[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=Ie[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Ve(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Te({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Le(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Ze(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return Fe(r).forEach((function(e){return Oe(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function Te(e){var n=e.model,r=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===r&&(r=s?t()(!0,{},o):o),Be(o);var p=Ze(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=Fe(r)),!n.length)return Promise.resolve();if(!Ne({measures:n,properties:r}))return n.forEach((function(e){return Oe(e)})),Promise.resolve();var s=a?void 0:Ze(r);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ge({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Pe.isValid(n)||Pe.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Le(e)&&!e.disabled){if(l++,"object"!==Le(Ie[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)");Ie[e.type].initModifier(e,n);var s=n.qLibraryId||c&&c.qLibraryId;s?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Ie[r.type].generateExpression({expression:l,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:s,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Ie[r.type].updateModifier&&Ie[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:Ie[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||ze(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&ze(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),He(n)):Oe(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function Oe(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&!Ie[e.type]}))}(e)?Pe.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function Ne(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({modifiers:je(e),properties:n,layout:r})}))}function qe(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Ie[r.type]&&!r.disabled)return r}}function ze(e){var t=qe(e);return!t||Ie[t.type].enableTotalsFunction(e)}function Fe(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){Fe(e).forEach((function(e){return function(e){var n=qe(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!Pe.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function He(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Le(t)&&(t.disabled||!Ie[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ve(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,n=e.properties,r=e.layout;return!We(t)&&Ge({modifiers:je(t),properties:n,layout:r})}function Ge(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Le(e)||e.disabled||!Ie[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ie[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.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,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):T(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Qe(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&Ie[e.type]&&Ie[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Ze(e){var t=Fe(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ge({modifiers:r,properties:e})){var i=We(t);i&&n.push(i),o=o||Qe({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(_e[t.id].masterItemSubscriber=_e[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=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:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Me({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),_e[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),e.default=o.default,Object.defineProperty(e,"__esModule",{value:!0})})()}(tP);var nP=r(tP);let rP=function(e){return e.Text="text",e.Link="link",e.Image="image",e}({}),oP=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const iP=e=>{switch(null==e?void 0:e.type){case"url":return rP.Link;case"image":return rP.Image;default:return rP.Text}},aP=(e,t)=>!e.properties.qHyperCubeDef.qIndentMode||!t,lP=(e,t,n)=>{if(e||t)return{uses:"dimensionRepresentationItems.representationType",show:(e,t,r)=>aP(r,n),options(){const n=[{value:"text",translation:"Object.Table.Representation.Text"}];return t&&n.push({value:"url",translation:"Object.Table.Representation.Link"}),e&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),n}}},sP=(e,t)=>{if(e)return{representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:(e,n,r)=>iP(e.qDef.representation)===rP.Link&&aP(r,t)},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:(e,n,r)=>{var o;return iP(e.qDef.representation)===rP.Link&&(null===(o=e.qDef.representation)||void 0===o?void 0:o.urlPosition)===oP.Dimension&&aP(r,t)}},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:(e,n,r)=>{var o;return iP(e.qDef.representation)===rP.Link&&(null===(o=e.qDef.representation)||void 0===o?void 0:o.urlPosition)===oP.Attribute&&aP(r,t)}}}},uP=(e,t)=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:(e,n,r)=>iP(e.qDef.representation)===rP.Image&&aP(r,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"}]}}}}},cP=e=>{var t,n;const{anything:r,flags:o}=e,i=o.isEnabled("CLIENT_IM_5975_INDENT_MODE"),a=o.isEnabled("CLIENT_IM_5715_LINKS"),l=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=r&&null!==(t=r.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages"));return{representationType:lP(l,a,i),...sP(a,i),...uP(l,i)}},dP=e=>{var t,n;const{flags:r,anything:o}=e,i=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=o&&null!==(t=o.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages")),a=r.isEnabled("CLIENT_IM_5975_INDENT_MODE");return{representationType:i?{uses:"measureRepresentationItems.representationType",show:(e,t,n)=>aP(n,a),options:[{value:"text",translation:"Object.Table.Representation.Text"},{value:"image",translation:"Object.Table.Representation.Image"}]}:void 0,representationImage:i?{uses:"measureRepresentationItems.representationImage",show:(e,t,n)=>iP(e.qDef.representation)===rP.Image&&aP(n,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}},pP={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},fP=e=>({visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},tableCellColoring:{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},...e.flags.isEnabled("CLIENT_IM_6573_TEXT_STYLE")?[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"}]:[],{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]}}),mP={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}},hP=e=>{var t,n,r,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)=>(!nP.hasActiveModifiers({measures:[e],properties:t.properties})||nP.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!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"totals")?"None":"Expr"}}}},show:!(null!=e&&null!==(r=e.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"totals"))}},gP={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:yk.Auto,translation:"Common.Auto"},{value:yk.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:yk.Pixels,translation:"Object.Table.Column.Pixels"},{value:yk.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:yk.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)===yk.Pixels},change(e){e.qDef.columnWidth.pixels=void 0===e.qDef.columnWidth.pixels?e.qDef.columnWidth.pixels:Math.max(1,Math.min(vk.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)===yk.Percentage},change(e){e.qDef.columnWidth.percentage=void 0===e.qDef.columnWidth.percentage?e.qDef.columnWidth.percentage:Math.max(1,Math.min(vk.PercentageMax,e.qDef.columnWidth.percentage))}}},bP=e=>({...pP,...fP(e),...mP,...gP}),vP={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"}},yP=(e,t)=>({libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>{var n;return t?!!(e.qLibraryId||null!==(n=e.qDef.base)&&void 0!==n&&n.qLibraryId):!!e.qLibraryId}},inlineMeasure:{component:"inline-measure",show:e=>{var n;return t?!(e.qLibraryId||null!==(n=e.qDef.base)&&void 0!==n&&n.qLibraryId):!e.qLibraryId}},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:hP(e)}),xP=(e,t)=>({type:"items",translation:"Common.Data",component:"data-assets-panel",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:vP},presentation:{type:"items",translation:"properties.presentation",items:{...bP(e),...cP(e)}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:yP(e,t)},presentation:{type:"items",translation:"properties.presentation",items:{...bP(e),...dP(e)}}}}}}),SP={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}},EP=e=>{var t,n;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!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"totals"))}},wP=(e,t,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:!1,defaultValue(e,t,r){const o=r.theme.current(),i=n(o);return{color:"transparent"===i?"none":i}}}),CP=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},RP=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,n,r)=>{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:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>CP(e,!0)))],c=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...ek(r).filter((e=>!s.includes(e))).map((e=>CP(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),kP=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],AP=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{var r;const o=t.fontSize,i=null!==(r=t.fontSizes)&&void 0!==r?r:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>CP(e,!1)))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...kP.filter((e=>!a.includes(e))).map((e=>CP(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),PP=({section:e,defaultFontStyle:t,translator:n,flags:r,getThemeValue:o,translation:i})=>({component:"panel-section",translation:null!=i?i:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:RP({ref:`${e}.fontFamily`,themeAccessor:t=>{var n;return null!==(n=o(t,e,"fontFamily"))&&void 0!==n?n:t.fontFamily},translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:AP({ref:`${e}.fontSize`,themeAccessor:t=>{var n;return null!==(n=o(t,e,"fontSize"))&&void 0!==n?n:t.fontSize},translator:n}),fontColor:wP(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=o(t,e,"color"))&&void 0!==n?n:t.color}))}},background:wP(`${e}.background`,"properties.background",(t=>{var n;return null!==(n=o(t,e,"backgroundColor"))&&void 0!==n?n:"transparent"}))}}}}),LP=({section:e,defaultFontStyle:t,fallbackBackground:n,getThemeValue:r})=>({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:wP(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=r(t,e,"color"))&&void 0!==n?n:t.color}))}},background:wP(`${e}.background`,"properties.background",(t=>{var o,i;return null!==(o=null!==(i=r(t,e,"backgroundColor"))&&void 0!==i?i:n)&&void 0!==o?o:"transparent"}))}}}}),IP=e=>{var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},DP={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:IP,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:IP,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},_P=(e,t,n)=>{var r,o,i,a,l;switch(t){case"header":return null===(r=e.object)||void 0===r||null===(r=r.straightTableV2)||void 0===r||null===(r=r.dimension)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.name)||void 0===r?void 0:r[n];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[n];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[n];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[n];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[n];default:return}},MP={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,change(e){var t,n,r;null!==(null==e||null===(t=e.content)||void 0===t?void 0:t.rowHeight)&&void 0!==(null==e||null===(n=e.content)||void 0===n?void 0:n.rowHeight)&&""!==(null==e||null===(r=e.content)||void 0===r?void 0:r.rowHeight)?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):e.content.rowHeight=void 0}},TP=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"),...MP},border:wP("grid.border","properties.border",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.straightTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:Aw.BORDER_MEDIUM})),divider:wP("grid.divider","properties.pivot.divider",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.straightTableV2)||void 0===n||null===(n=n.grid)||void 0===n||null===(n=n.divider)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:Aw.BORDER_HEAVY}))}}}}),OP=({flags:e,translator:t})=>({headerSection:PP({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:_P}),dimensionValueSection:PP({section:"dimensionValues",translator:t,flags:e,getThemeValue:_P}),measureValueSection:PP({section:"measureValues",translator:t,flags:e,getThemeValue:_P}),totalRowSection:PP({section:"totalValues",translation:"properties.totals",translator:t,flags:e,getThemeValue:_P}),nullValues:LP({section:"nullValues",fallbackBackground:Aw.NULL_VALUE_BACKGROUND,getThemeValue:_P}),grid:TP(e),hoverEffectSection:DP}),NP=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,n){var r,o;const i=n.theme.current();return parseInt(null!==(r=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!==r?r: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,n){var r,o;const i=n.theme.current();return{color:null!==(r=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!==r?r: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,n){var r,o;const i=n.theme.current();return parseInt(null!==(r=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!==r?r: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,n){var r,o;const i=n.theme.current();return{color:null!==(r=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!==r?r: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:MP}}}},hoverEffectSection:DP}),qP=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")?OP(e):NP(e)}]}),zP=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[qP(e),EP(e),{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1}]},...SP}}),FP={uses:"sorting"},jP={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},$P=(e,t)=>({type:"items",component:"accordion",items:{data:xP(e,t),sorting:FP,addOns:jP,settings:zP(e)}});function BP(e){const t=e.flags.isEnabled("CLIENT_IM-6276_PIVOT_MODIFIER");return{definition:$P(e,t),exploration:KA,data:eP(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:t?["accumulation","movingAverage","difference","normalization"]:void 0},importProperties(e,t,n,r){const o={defaultDimension:n.getDefaultDimensionProperties(),defaultMeasure:n.getDefaultMeasureProperties()};return YA({exportFormat:e,initialProperties:t,extension:n,hypercubePath:r,defaultPropertyValues:o})},exportProperties:(e,t)=>UA({propertyTree:e,hyperCubePath:t})}}const HP=(t,n)=>e.useMemo((()=>((e,t)=>(n,{isDim:r,colIdx:o})=>{const i=r?o:o-e.qDimensionInfo.length,a=`/qHyperCubeDef/${r?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,l=e[r?"qDimensionInfo":"qMeasureInfo"][i].columnWidth,s=l?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...l,...n})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(n)};null==t||t.applyPatches([s],!0)})(t,n)),[t,n]),VP=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},n)=>(e[t]=n,e)),{});let WP;const UP=new Uint8Array(16);function GP(){if(!WP&&(WP="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!WP))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return WP(UP)}const YP=[];for(let e=0;e<256;++e)YP.push((e+256).toString(16).slice(1));var KP={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function XP(e,t,n){if(KP.randomUUID&&!t&&!e)return KP.randomUUID();const r=(e=e||{}).random||(e.rng||GP)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return YP[e[t+0]]+YP[e[t+1]]+YP[e[t+2]]+YP[e[t+3]]+"-"+YP[e[t+4]]+YP[e[t+5]]+"-"+YP[e[t+6]]+YP[e[t+7]]+"-"+YP[e[t+8]]+YP[e[t+9]]+"-"+YP[e[t+10]]+YP[e[t+11]]+YP[e[t+12]]+YP[e[t+13]]+YP[e[t+14]]+YP[e[t+15]]}(r)}const JP=()=>{var e,t,n;return null!==(e=null===(t=crypto)||void 0===t||null===(n=t.randomUUID)||void 0===n?void 0:n.call(t))&&void 0!==e?e:XP()},QP=({qLibraryId:e,cId:t})=>{var n;return null!==(n=null!=e?e:t)&&void 0!==n?n:JP()};function ZP(e){return ZP="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},ZP(e)}function eL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),r)}var o,i}function nL(e,t,n){return t&&tL(e.prototype,t),n&&tL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function rL(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&&iL(e,t)}function oL(e){return oL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oL(e)}function iL(e,t){return iL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},iL(e,t)}function aL(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 lL(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 n,r=oL(e);if(t){var o=oL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return aL(this,n)}}function sL(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.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 uL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uL(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 uL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var cL={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var n,r=e.indexOf("="),o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,n){return{key:dL(e),value:dL(t),useEqualSign:n}}(n,o,i))}})),t}};function dL(e){try{return decodeURIComponent(e)}catch(t){return e}}function pL(e){if(!(this instanceof pL))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:""},n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));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 cL.fromSearchString(t.search)}}})}function fL(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}pL.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},pL.encodeSearchParams=function(e){for(var t,n="",r=0;r<e.length;r++)n+=0===r?"?":"&",n+=fL((t=e[r]).key),t.value?n+="=".concat(fL(t.value)):n+=t.useEqualSign?"=":"";return n};var mL,hL=function(){function e(t){eL(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return nL(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}(),gL=function(){function e(){eL(this,e)}return nL(e,[{key:"decode",value:function(e){for(var t,n="",r=new hL(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),bL=function(e){return e>=0&&e<=1114111},vL=function(e){return e.match(/[\s]/)},yL=function(e){rL(n,e);var t=lL(n);function n(){return eL(this,n),t.apply(this,arguments)}return nL(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,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,n=0;n<5&&(null!=(r=e.next())&&!vL(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return bL(a)?String.fromCharCode(a):"�"}}]),n}(gL),xL=function(){function e(t,n){eL(this,e),this._key=t,this._value=n}return nL(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,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}}]),e}(),SL=function(){function e(){eL(this,e)}return nL(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,n,r){var o,i;if(t.length===n)return i=this._value,this.setValue(r),i;var a=t.charAt(n);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,n+1,r)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return xL.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return xL.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||xL.newInstanceIfNeeded(e,t,this._value)}}]),e}(),EL=function(){function e(){eL(this,e),this.clear()}return nL(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 SL);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),wL=function(){var e,t,n,r=[],o=[],i=new EL;for(e in r["&quot"]="34",r["&amp"]="38",r["&lt"]="60",r["&gt"]="62",r["&nbsp"]="160",r["&iexcl"]="161",r["&cent"]="162",r["&pound"]="163",r["&curren"]="164",r["&yen"]="165",r["&brvbar"]="166",r["&sect"]="167",r["&uml"]="168",r["&copy"]="169",r["&ordf"]="170",r["&laquo"]="171",r["&not"]="172",r["&shy"]="173",r["&reg"]="174",r["&macr"]="175",r["&deg"]="176",r["&plusmn"]="177",r["&sup2"]="178",r["&sup3"]="179",r["&acute"]="180",r["&micro"]="181",r["&para"]="182",r["&middot"]="183",r["&cedil"]="184",r["&sup1"]="185",r["&ordm"]="186",r["&raquo"]="187",r["&frac14"]="188",r["&frac12"]="189",r["&frac34"]="190",r["&iquest"]="191",r["&Agrave"]="192",r["&Aacute"]="193",r["&Acirc"]="194",r["&Atilde"]="195",r["&Auml"]="196",r["&Aring"]="197",r["&AElig"]="198",r["&Ccedil"]="199",r["&Egrave"]="200",r["&Eacute"]="201",r["&Ecirc"]="202",r["&Euml"]="203",r["&Igrave"]="204",r["&Iacute"]="205",r["&Icirc"]="206",r["&Iuml"]="207",r["&ETH"]="208",r["&Ntilde"]="209",r["&Ograve"]="210",r["&Oacute"]="211",r["&Ocirc"]="212",r["&Otilde"]="213",r["&Ouml"]="214",r["&times"]="215",r["&Oslash"]="216",r["&Ugrave"]="217",r["&Uacute"]="218",r["&Ucirc"]="219",r["&Uuml"]="220",r["&Yacute"]="221",r["&THORN"]="222",r["&szlig"]="223",r["&agrave"]="224",r["&aacute"]="225",r["&acirc"]="226",r["&atilde"]="227",r["&auml"]="228",r["&aring"]="229",r["&aelig"]="230",r["&ccedil"]="231",r["&egrave"]="232",r["&eacute"]="233",r["&ecirc"]="234",r["&euml"]="235",r["&igrave"]="236",r["&iacute"]="237",r["&icirc"]="238",r["&iuml"]="239",r["&eth"]="240",r["&ntilde"]="241",r["&ograve"]="242",r["&oacute"]="243",r["&ocirc"]="244",r["&otilde"]="245",r["&ouml"]="246",r["&divide"]="247",r["&oslash"]="248",r["&ugrave"]="249",r["&uacute"]="250",r["&ucirc"]="251",r["&uuml"]="252",r["&yacute"]="253",r["&thorn"]="254",r["&yuml"]="255",r["&OElig"]="338",r["&oelig"]="339",r["&Scaron"]="352",r["&scaron"]="353",r["&Yuml"]="376",r["&fnof"]="402",r["&circ"]="710",r["&tilde"]="732",r["&Alpha"]="913",r["&Beta"]="914",r["&Gamma"]="915",r["&Delta"]="916",r["&Epsilon"]="917",r["&Zeta"]="918",r["&Eta"]="919",r["&Theta"]="920",r["&Iota"]="921",r["&Kappa"]="922",r["&Lambda"]="923",r["&Mu"]="924",r["&Nu"]="925",r["&Xi"]="926",r["&Omicron"]="927",r["&Pi"]="928",r["&Rho"]="929",r["&Sigma"]="931",r["&Tau"]="932",r["&Upsilon"]="933",r["&Phi"]="934",r["&Chi"]="935",r["&Psi"]="936",r["&Omega"]="937",r["&alpha"]="945",r["&beta"]="946",r["&gamma"]="947",r["&delta"]="948",r["&epsilon"]="949",r["&zeta"]="950",r["&eta"]="951",r["&theta"]="952",r["&iota"]="953",r["&kappa"]="954",r["&lambda"]="955",r["&mu"]="956",r["&nu"]="957",r["&xi"]="958",r["&omicron"]="959",r["&pi"]="960",r["&rho"]="961",r["&sigmaf"]="962",r["&sigma"]="963",r["&tau"]="964",r["&upsilon"]="965",r["&phi"]="966",r["&chi"]="967",r["&psi"]="968",r["&omega"]="969",r["&thetasym"]="977",r["&upsih"]="978",r["&piv"]="982",r["&ensp"]="8194",r["&emsp"]="8195",r["&thinsp"]="8201",r["&zwnj"]="8204",r["&zwj"]="8205",r["&lrm"]="8206",r["&rlm"]="8207",r["&ndash"]="8211",r["&mdash"]="8212",r["&lsquo"]="8216",r["&rsquo"]="8217",r["&sbquo"]="8218",r["&ldquo"]="8220",r["&rdquo"]="8221",r["&bdquo"]="8222",r["&dagger"]="8224",r["&Dagger"]="8225",r["&bull"]="8226",r["&hellip"]="8230",r["&permil"]="8240",r["&prime"]="8242",r["&Prime"]="8243",r["&lsaquo"]="8249",r["&rsaquo"]="8250",r["&oline"]="8254",r["&frasl"]="8260",r["&euro"]="8364",r["&image"]="8365",r["&weierp"]="8472",r["&real"]="8476",r["&trade"]="8482",r["&alefsym"]="8501",r["&larr"]="8592",r["&uarr"]="8593",r["&rarr"]="8594",r["&darr"]="8595",r["&harr"]="8596",r["&crarr"]="8629",r["&lArr"]="8656",r["&uArr"]="8657",r["&rArr"]="8658",r["&dArr"]="8659",r["&hArr"]="8660",r["&forall"]="8704",r["&part"]="8706",r["&exist"]="8707",r["&empty"]="8709",r["&nabla"]="8711",r["&isin"]="8712",r["&notin"]="8713",r["&ni"]="8715",r["&prod"]="8719",r["&sum"]="8721",r["&minus"]="8722",r["&lowast"]="8727",r["&radic"]="8730",r["&prop"]="8733",r["&infin"]="8734",r["&ang"]="8736",r["&and"]="8743",r["&or"]="8744",r["&cap"]="8745",r["&cup"]="8746",r["&int"]="8747",r["&there4"]="8756",r["&sim"]="8764",r["&cong"]="8773",r["&asymp"]="8776",r["&ne"]="8800",r["&equiv"]="8801",r["&le"]="8804",r["&ge"]="8805",r["&sub"]="8834",r["&sup"]="8835",r["&nsub"]="8836",r["&sube"]="8838",r["&supe"]="8839",r["&oplus"]="8853",r["&otimes"]="8855",r["&perp"]="8869",r["&sdot"]="8901",r["&lceil"]="8968",r["&rceil"]="8969",r["&lfloor"]="8970",r["&rfloor"]="8971",r["&lang"]="9001",r["&rang"]="9002",r["&loz"]="9674",r["&spades"]="9824",r["&clubs"]="9827",r["&hearts"]="9829",r["&diams"]="9830",r)"function"!=typeof r[e]&&r.hasOwnProperty(e)&&(o[r[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(n=o[t].toLowerCase().substr(1),i.put(n,String.fromCharCode(t)));return i}(),CL=function(e){rL(n,e);var t=lL(n);function n(){return eL(this,n),t.apply(this,arguments)}return nL(n,[{key:"decodeCharacter",value:function(e){var t;e.mark();var n=e.next();if(null==n||"&"!==n)return e.reset(),null;var r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(null!=(t=this._getNumericEntity(e)))return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,n,r,o="";for(t=Math.min(e.remainder().length,wL.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=wL.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)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,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,16);return!Number.isNaN(+r)&&bL(r)?String.fromCharCode(r):null}},{key:"_parseNumber",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,10);return!Number.isNaN(+r)&&bL(r)?String.fromCharCode(r):null}}]),n}(gL),RL=function(e){rL(n,e);var t=lL(n);function n(){return eL(this,n),t.apply(this,arguments)}return nL(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",n=0;n<2;n++)null!=(r=e.nextHex())&&(t+=r);return 2===t.length&&(o=parseInt(t,16),bL(o))?String.fromCharCode(o):(e.reset(),null)}}]),n}(gL),kL=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(mL=document.createElement("div"));var AL=Array.prototype.indexOf,PL=[",",".","_"," "],LL={default:[",",".","-","_"," "]},IL={width:["%"],height:["%"]},DL={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},_L={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":DL.image,"background-color":DL.color,"border-color":DL.color,"border-image":DL.image,color:DL.color,icon:DL.image,"list-style-image":DL.image,"outline-color":DL.color},ML={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function TL(e,t,n){var r;if(t){if(AL)return AL.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function OL(e){if(null==e)return"";var t,n=document.createTextNode(e);return mL.appendChild(n),t=mL.innerHTML,mL.removeChild(n),t}function NL(e,t,n){var r,o,i,a,l,s,u,c,d;if(e=zL(e).toLowerCase(),t=zL(t),TL(e,ML.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<ML.attr_val;i++)if(t.toLowerCase().match(ML.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=IL[e])||(r=LL.default),o="",!n){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]/)&&TL(u,r)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return n||(o+='"'),o}function qL(e,t,n){var r,o,i,a,l,s,u,c,d,p;if(e=zL(e).toLowerCase(),t=zL(t),TL(e,ML.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<ML.css_val.length;r++)if(t.toLowerCase().indexOf(ML.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=_L[e])||(o=DL.default),i="",!n){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]/)&&TL(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function zL(e,t){var n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;for(var l=[new CL,new RL,new yL];!a;){r=n;for(var s=0;s<l.length;s++)(i=l[s].decode(n))!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}for(var FL=[],jL=0;jL<255;jL++)FL[jL]=jL>=48&&jL<=57||jL>=65&&jL<=90||jL>=97&&jL<=122?null:jL.toString(16);var $L=function(e){return OL(e.unsafe)},BL=function(e){var t,n=[],r=[],o={},i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=qL(t,n[t],!0),i+=qL(t,n[t],!0),o[t]=r[t]);return e.map?o:i},HL=function(e){var t=[],n=[],r={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(n[i]=NL(i,t[i],!0),o+=NL(i,t[i],!0),r[i]=n[i]);return e.map?r:o};function VL(e,t){throw new Error(t)}var WL={canonicalize:zL,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===ZP(arguments[0])?function(){for(var e,t,n,r=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r===(n=e[t]))continue;void 0!==n&&(r[t]=n)}}(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?$L(e):"css"===e.context?(null!=e.map&&"object"!==ZP(e.map)&&VL(this,"Invalid parameter type"),BL(e)):"attr"===e.context?(null!=e.map&&"object"!==ZP(e.map)&&VL(this,"Invalid parameter type"),HL(e)):void VL(this,"Invalid parameter type")},encodeForAttr:NL,encodeForAttr2:function(e){return NL("nonsens",e,!0)},encodeForCSS:qL,encodeForHref:function(e){zL(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new pL(e),n=pL.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+pL.encodeSearchParams(r)+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 n,r,o,i,a,l;for(t||(t=PL),l="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),TL(o,t)>=0||null==FL[i]?l+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),l+="\\x".concat(a).concat(r.toUpperCase())):(a="0000".substr(r.length),l+="\\u".concat(a).concat(r.toUpperCase())));return l},encodeForHTML:OL,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=zL(t).toLowerCase():VL(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':""},isSafeDataURL:function(e,t){var n=null!=t?t:{},r=n.maxByteSizeSvg,o=void 0===r?5e5:r,i=n.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,n=sL(null!==(t=kL.exec(e.trim()))&&void 0!==t?t:[],4),r=n[1];return{encoding:n[2],data:n[3],mimeType:null==r?void 0:r.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,n){var r={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(n)],r).size}catch(e){return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a}};const UL=(e,t)=>{var n;const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps;return null==r||null===(n=r.qValues)||void 0===n?void 0:n[e]},GL=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"}}},YL=({text:e,url:t,imageSize:n,imagePosition:r})=>r&&t&&!t.toLowerCase().includes("javascript:")&&WL.isSafeDataURL(t)?{type:rP.Image,url:t,text:e,imageSize:n,resolvedImagePosition:GL(r)}:{type:rP.Text,url:void 0,text:e},KL=(e,t,n)=>{var r;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(r=o.qValues)||void 0===r?void 0:r[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==n?void 0:n.urlPosition)===oP.Attribute||null==n?void 0:n.urlLabel},XL=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:rP.Link,url:WL.encodeForHref(t),text:e}}catch(t){return{type:rP.Text,url:void 0,text:e}}},JL=(e,t,n,r)=>{var o,i;const a=iP(t);return a!==rP.Image||!r.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(o=r.anything.sense)&&void 0!==o&&null!==(i=o.isUnsupportedFeature)&&void 0!==i&&i.call(o,"tableImages")?a===rP.Link&&r.flags.isEnabled("CLIENT_IM_5715_LINKS")?((e,t,n)=>{const{urlPosition:r}=null!=t?t:{};if(r===oP.Attribute){var o;const r=KL(null!==(o=n.url)&&void 0!==o?o:-1,e,t),i=e.qText||r||"";return XL({text:i,url:r})}if(r===oP.Dimension){var i;const r=KL(null!==(i=n.urlLabel)&&void 0!==i?i:-1,e,t)||e.qText;return XL({text:r,url:e.qText})}return{type:rP.Text,url:void 0,text:e.qText}})(e,t,n):{type:rP.Text,url:void 0,text:e.qText}:((e,t,n)=>{const{imageSize:r,imagePosition:o,imageSetting:i,imageLabel:a}=null!=t?t:{};if("url"===i){var l,s;const t=e.qText,i=null===(l=UL(null!==(s=n.imageUrl)&&void 0!==s?s:-1,e))||void 0===l?void 0:l.qText;return YL({text:t,url:i,imageSize:r,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===n.imageLabel)return YL({text:a||t||"",url:t,imageSize:r,imagePosition:o});const i=null!==(u=null===(c=UL(null!==(d=n.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return YL({text:i,url:t,imageSize:r,imagePosition:o})}return{type:rP.Text,url:void 0,text:e.qText}})(e,t,n)},QL=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,ZL=e=>!Number.isNaN(+e),eI=e=>!(!e.qNum&&0!==e.qNum||!ZL(e.qNum)),tI=1e4;function nI(e,t){return[...t].reverse().find((t=>t*e<=tI))||Math.floor(tI/e)}function rI(e,t){var n,r;if(null!==(n=t.viewState)&&void 0!==n&&n.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===(r=e.totals)||void 0===r?void 0:r.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 oI(e,t,n,r){var o,i,a;return t?0===n&&null!==(a=e.totals.label)&&void 0!==a?a:"":null!==(o=null===(i=e.qHyperCube.qGrandTotalRow[r])||void 0===i?void 0:i.qText)&&void 0!==o?o:""}function iI(e,t){const n=e.qHyperCube.qGrandTotalRow[t];return ZL(null==n?void 0:n.qNum)}function aI(e,t,n){return e&&!e.auto?{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:n?"left":"right",bodyTextAlign:"auto"}}const lI=(e,t)=>"auto"!==t?t:eI(e)?"right":"left";const sI=e=>{const{qHyperCube:{qColumnOrder:t,qDimensionInfo:n,qMeasureInfo:r}}=e,o=n.length+r.length,i=(null==t?void 0:t.length)===o?t:Array.from(Array(o).keys()),{visibleColumnsOrder:a,visibleColumnIndexes:l}=((e,t,n)=>{const r=t.length,o=[];let i=0,a=0;return{visibleColumnsOrder:e.filter((e=>{const l=e<r,{qError:s}=l?t[e]:n[e-r],u=7005===(null==s?void 0:s.qErrorCode);return u?l?i++:a++:o[e]=l?e-i:e-r-a,!u})),visibleColumnIndexes:o}})(i,n,r);return a.map(((t,n)=>function(e,t,n,r){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}=u;if(s){const e=u;p=e.qGroupPos,f=e.qGroupFieldDefs[p],m=e.qLocked,h=r,({qDimensionType:d}=e)}const{qFallbackTitle:b,textAlign:v,qAttrExprInfo:y,qSortIndicator:x,qReverseSort:S,qApprMaxGlyphCount:E,columnWidth:w,qLibraryId:C}=u;return{isDim:s,isLocked:m,fieldId:f,colIdx:t,qLibraryId:C,pageColIdx:n,qApprMaxGlyphCount:E,qReverseSort:S,columnWidth:w,selectionColIdx:h,isActivelySorted:c,id:QP(u),label:b,qAttrExprInfoIDs:y.map((e=>e.id)),qAttrExprInfoIndex:VP(u),sortDirection:x&&"N"!==x?x:"A",totalInfo:oI(e,s,n,r),...!s&&{isTotalNumeric:iI(e,r)},...aI(v,d,s),representation:g}}(e,t,n,l[t])))};const uI=(e,t)=>{var n;return!!(e.snapshotData||null!==(n=t.viewState)&&void 0!==n&&n.visibleHeight)},cI=(e,t)=>{var n;return void 0!==(null===(n=t.viewState)||void 0===n?void 0:n.usePagination)?t.viewState.usePagination:!1!==e.usePagination||uI(e,t)};var dI="$$material";function pI(){return pI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pI.apply(null,arguments)}function fI(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}const mI=["values","unit","step"],hI=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)=>n({},e,{[t.key]:t.val})),{})};function gI(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:o=5}=e,i=d(e,mI),a=hI(t),l=Object.keys(a);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function u(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-o/100}${r})`}function c(e,n){const i=l.indexOf(n);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[l[i]]?t[l[i]]:n)-o/100}${r})`}return n({keys:l,values:a,up:s,down:u,between:c,only:function(e){return l.indexOf(e)+1<l.length?c(e,l[l.indexOf(e)+1]):s(e)},not:function(e){const t=l.indexOf(e);return 0===t?s(l[1]):t===l.length-1?u(l[t]):c(e,l[l.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},i)}var bI={borderRadius:4};function vI(e,t){return t?Or(e,t,{clone:!1}):e}const yI={xs:0,sm:600,md:900,lg:1200,xl:1536},xI={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${yI[e]}px)`};function SI(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||xI;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||xI;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||yI).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function EI(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function wI(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:EI(e,n)||r,t&&(o=t(o,r,e)),o}function CI(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=EI(e.theme,r)||{};return SI(e,i,(e=>{let r=wI(a,o,e);return e===r&&"string"==typeof e&&(r=wI(a,o,`${t}${"default"===e?"":lo(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const RI={m:"margin",p:"padding"},kI={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},AI={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},PI=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!AI[e])return[e];e=AI[e]}const[t,n]=e.split(""),r=RI[t],o=kI[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),LI=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],II=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function DI(e,t,n,r){var o;const i=null!=(o=EI(e,t,!1))?o:n;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 _I(e){return DI(e,"spacing",8)}function MI(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function TI(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=MI(t,n),e)),{})}(PI(n),r);return SI(e,e[n],o)}function OI(e,t){const n=_I(e.theme);return Object.keys(e).map((r=>TI(e,t,r,n))).reduce(vI,{})}function NI(e){return OI(e,LI)}function qI(e){return OI(e,II)}function zI(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?vI(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function FI(e){return"number"!=typeof e?e:`${e}px solid`}function jI(e,t){return CI({prop:e,themeKey:"borders",transform:t})}NI.propTypes={},NI.filterProps=LI,qI.propTypes={},qI.filterProps=II;const $I=jI("border",FI),BI=jI("borderTop",FI),HI=jI("borderRight",FI),VI=jI("borderBottom",FI),WI=jI("borderLeft",FI),UI=jI("borderColor"),GI=jI("borderTopColor"),YI=jI("borderRightColor"),KI=jI("borderBottomColor"),XI=jI("borderLeftColor"),JI=jI("outline",FI),QI=jI("outlineColor"),ZI=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=DI(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:MI(t,e)});return SI(e,e.borderRadius,n)}return null};ZI.propTypes={},ZI.filterProps=["borderRadius"],zI($I,BI,HI,VI,WI,UI,GI,YI,KI,XI,ZI,JI,QI);const eD=e=>{if(void 0!==e.gap&&null!==e.gap){const t=DI(e.theme,"spacing",8),n=e=>({gap:MI(t,e)});return SI(e,e.gap,n)}return null};eD.propTypes={},eD.filterProps=["gap"];const tD=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=DI(e.theme,"spacing",8),n=e=>({columnGap:MI(t,e)});return SI(e,e.columnGap,n)}return null};tD.propTypes={},tD.filterProps=["columnGap"];const nD=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=DI(e.theme,"spacing",8),n=e=>({rowGap:MI(t,e)});return SI(e,e.rowGap,n)}return null};nD.propTypes={},nD.filterProps=["rowGap"];function rD(e,t){return"grey"===t?t:e}zI(eD,tD,nD,CI({prop:"gridColumn"}),CI({prop:"gridRow"}),CI({prop:"gridAutoFlow"}),CI({prop:"gridAutoColumns"}),CI({prop:"gridAutoRows"}),CI({prop:"gridTemplateColumns"}),CI({prop:"gridTemplateRows"}),CI({prop:"gridTemplateAreas"}),CI({prop:"gridArea"}));function oD(e){return e<=1&&0!==e?100*e+"%":e}zI(CI({prop:"color",themeKey:"palette",transform:rD}),CI({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:rD}),CI({prop:"backgroundColor",themeKey:"palette",transform:rD}));const iD=CI({prop:"width",transform:oD}),aD=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||yI[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:oD(t)}};return SI(e,e.maxWidth,t)}return null};aD.filterProps=["maxWidth"];const lD=CI({prop:"minWidth",transform:oD}),sD=CI({prop:"height",transform:oD}),uD=CI({prop:"maxHeight",transform:oD}),cD=CI({prop:"minHeight",transform:oD});CI({prop:"size",cssProperty:"width",transform:oD}),CI({prop:"size",cssProperty:"height",transform:oD});zI(iD,aD,lD,sD,uD,cD,CI({prop:"boxSizing"}));var dD={border:{themeKey:"borders",transform:FI},borderTop:{themeKey:"borders",transform:FI},borderRight:{themeKey:"borders",transform:FI},borderBottom:{themeKey:"borders",transform:FI},borderLeft:{themeKey:"borders",transform:FI},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:FI},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ZI},color:{themeKey:"palette",transform:rD},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:rD},backgroundColor:{themeKey:"palette",transform:rD},p:{style:qI},pt:{style:qI},pr:{style:qI},pb:{style:qI},pl:{style:qI},px:{style:qI},py:{style:qI},padding:{style:qI},paddingTop:{style:qI},paddingRight:{style:qI},paddingBottom:{style:qI},paddingLeft:{style:qI},paddingX:{style:qI},paddingY:{style:qI},paddingInline:{style:qI},paddingInlineStart:{style:qI},paddingInlineEnd:{style:qI},paddingBlock:{style:qI},paddingBlockStart:{style:qI},paddingBlockEnd:{style:qI},m:{style:NI},mt:{style:NI},mr:{style:NI},mb:{style:NI},ml:{style:NI},mx:{style:NI},my:{style:NI},margin:{style:NI},marginTop:{style:NI},marginRight:{style:NI},marginBottom:{style:NI},marginLeft:{style:NI},marginX:{style:NI},marginY:{style:NI},marginInline:{style:NI},marginInlineStart:{style:NI},marginInlineEnd:{style:NI},marginBlock:{style:NI},marginBlockStart:{style:NI},marginBlockEnd:{style:NI},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:eD},rowGap:{style:nD},columnGap:{style:tD},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:oD},maxWidth:{style:aD},minWidth:{transform:oD},height:{transform:oD},maxHeight:{transform:oD},minHeight:{transform:oD},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function pD(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[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=EI(n,l)||{};if(u)return u(o);return SI(o,t,(t=>{let n=wI(c,s,t);return t===n&&"string"==typeof t&&(n=wI(c,s,`${e}${"default"===t?"":lo(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:dD;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=vI(s,e(n,o,i,a));else{const e=SI({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=vI(s,e):s[n]=t({sx:o,theme:i})}else s=vI(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const fD=pD();fD.filterProps=["sx"];var mD=fD;function hD(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}const gD=["breakpoints","palette","spacing","shape"];function bD(e={},...t){const{breakpoints:r={},palette:o={},spacing:i,shape:a={}}=e,l=d(e,gD),s=gI(r),u=function(e=8){if(e.mui)return e;const t=_I({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(i);let c=Or({breakpoints:s,direction:"ltr",components:{},palette:n({mode:"light"},o),spacing:u,shape:n({},bI,a)},l);return c.applyStyles=hD,c=t.reduce(((e,t)=>Or(e,t)),c),c.unstable_sxConfig=n({},dD,null==l?void 0:l.unstable_sxConfig),c.unstable_sx=function(e){return mD({sx:e,theme:this})},c}var vD=Object.freeze({__proto__:null,default:bD,private_createBreakpoints:gI,unstable_applyStyles:hD});function yD(e=null){const t=X.useContext(gr);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const xD=bD();const SD=["sx"],ED=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:dD;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function wD(e){const{sx:t}=e,r=d(e,SD),{systemProps:o,otherProps:i}=ED(r);let a;return a=Array.isArray(t)?[o,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return Mr(r)?n({},o,r):o}:n({},o,t),n({},i,{sx:a})}var CD=Object.freeze({__proto__:null,default:mD,extendSxProp:wD,unstable_createStyleFunctionSx:pD,unstable_defaultSxConfig:dD});const RD=["className","component"];function kD(e){if(e.type)return e;if("#"===e.charAt(0))return kD(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Oe(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=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(r))throw new Error(Oe(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function AD(e,t){return e=kD(e),t=function(e,t=0,n=1){return qo(e,t,n)}(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:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}var PD=X.createContext(null);function LD(){return X.useContext(PD)}var ID="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function DD(e){const{children:t,theme:r}=e,o=LD(),i=X.useMemo((()=>{const e=null===o?r:function(e,t){if("function"==typeof t)return t(e);return n({},e,t)}(o,r);return null!=e&&(e[ID]=null!==o),e}),[r,o]);return ta.jsx(PD.Provider,{value:i,children:t})}const _D=["value"],MD=X.createContext();function TD(e){let{value:t}=e,r=d(e,_D);return ta.jsx(MD.Provider,n({value:null==t||t},r))}const OD=X.createContext(void 0);function ND({value:e,children:t}){return ta.jsx(OD.Provider,{value:e,children:t})}function qD({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Io(o.defaultProps,r):o.styleOverrides||o.variants?r:Io(o,r)}({props:e,name:t,theme:{components:X.useContext(OD)}})}const zD={};function FD(e,t,r,o=!1){return X.useMemo((()=>{const i=e&&t[e]||t;if("function"==typeof r){const a=r(i),l=e?n({},t,{[e]:a}):a;return o?()=>l:l}return n({},t,e?{[e]:r}:r)}),[e,t,r,o])}function jD(e){const{children:t,theme:n,themeId:r}=e,o=yD(zD),i=LD()||zD,a=FD(r,o,n),l=FD(r,i,n,!0),s="rtl"===a.direction;return ta.jsx(DD,{theme:l,children:ta.jsx(gr.Provider,{value:a,children:ta.jsx(TD,{value:s,children:ta.jsx(ND,{value:null==a?void 0:a.components,children:t})})})})}var $D={},BD={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(BD);var HD=BD.exports,VD=o(Ne),WD=o(zo),UD=HD;Object.defineProperty($D,"__esModule",{value:!0});var GD=$D.alpha=a_;$D.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=t_(e),a=t_(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return r_({type:"rgb",values:l})},$D.colorChannel=void 0;var YD=$D.darken=l_;$D.decomposeColor=t_,$D.emphasize=u_;var KD=$D.getContrastRatio=function(e,t){const n=i_(e),r=i_(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};$D.getLuminance=i_,$D.hexToRgb=e_,$D.hslToRgb=o_;var XD=$D.lighten=s_;$D.private_safeAlpha=function(e,t,n){try{return a_(e,t)}catch(t){return e}},$D.private_safeColorChannel=void 0,$D.private_safeDarken=function(e,t,n){try{return l_(e,t)}catch(t){return e}},$D.private_safeEmphasize=function(e,t,n){try{return u_(e,t)}catch(t){return e}},$D.private_safeLighten=function(e,t,n){try{return s_(e,t)}catch(t){return e}},$D.recomposeColor=r_,$D.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=t_(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 JD=UD(VD),QD=UD(WD);function ZD(e,t=0,n=1){return(0,QD.default)(e,t,n)}function e_(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function t_(e){if(e.type)return e;if("#"===e.charAt(0))return t_(e_(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,JD.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=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(r))throw new Error((0,JD.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const n_=e=>{const t=t_(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};$D.colorChannel=n_;function r_(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function o_(e){e=t_(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/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])),r_({type:l,values:s})}function i_(e){let t="hsl"===(e=t_(e)).type||"hsla"===e.type?t_(o_(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 a_(e,t){return e=t_(e),t=ZD(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,r_(e)}function l_(e,t){if(e=t_(e),t=ZD(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 n=0;n<3;n+=1)e.values[n]*=1-t;return r_(e)}function s_(e,t){if(e=t_(e),t=ZD(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return r_(e)}function u_(e,t=.15){return i_(e)>.5?l_(e,t):s_(e,t)}$D.private_safeColorChannel=(e,t)=>{try{return n_(e)}catch(t){return e}};var c_={black:"#000",white:"#fff"};var d_={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 p_={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 f_={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 m_={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 h_={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 g_={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 b_={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 v_=["mode","contrastThreshold","tonalOffset"],y_={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:c_.white,default:c_.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}},x_={text:{primary:c_.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:c_.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 S_(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=XD(e.main,o):"dark"===t&&(e.dark=YD(e.main,i)))}function E_(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=fI(e,v_),i=e.primary||function(e="light"){return"dark"===e?{main:h_[200],light:h_[50],dark:h_[400]}:{main:h_[700],light:h_[400],dark:h_[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:p_[200],light:p_[50],dark:p_[400]}:{main:p_[500],light:p_[300],dark:p_[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:f_[500],light:f_[300],dark:f_[700]}:{main:f_[700],light:f_[400],dark:f_[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:g_[400],light:g_[300],dark:g_[700]}:{main:g_[700],light:g_[500],dark:g_[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:b_[400],light:b_[300],dark:b_[700]}:{main:b_[800],light:b_[500],dark:b_[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:m_[400],light:m_[300],dark:m_[700]}:{main:"#ed6c02",light:m_[500],dark:m_[900]}}(t);function d(e){return KD(e,x_.text.primary)>=n?x_.text.primary:y_.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=pI({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Oe(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Oe(12,t?` (${t})`:"",JSON.stringify(e.main)));return S_(e,"light",o,r),S_(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:x_,light:y_};return Or(pI({common:pI({},c_),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:d_,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const w_=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const C_={textTransform:"uppercase"},R_='"Roboto", "Helvetica", "Arial", sans-serif';function k_(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=R_,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=fI(n,w_),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return pI({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===R_?{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,C_),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,C_),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Or(pI({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function A_(...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 P_=["none",A_(0,2,1,-1,0,1,1,0,0,1,3,0),A_(0,3,1,-2,0,2,2,0,0,1,5,0),A_(0,3,3,-2,0,3,4,0,0,1,8,0),A_(0,2,4,-1,0,4,5,0,0,1,10,0),A_(0,3,5,-1,0,5,8,0,0,1,14,0),A_(0,3,5,-1,0,6,10,0,0,1,18,0),A_(0,4,5,-2,0,7,10,1,0,2,16,1),A_(0,5,5,-3,0,8,10,1,0,3,14,2),A_(0,5,6,-3,0,9,12,1,0,3,16,2),A_(0,6,6,-3,0,10,14,1,0,4,18,3),A_(0,6,7,-4,0,11,15,1,0,4,20,3),A_(0,7,8,-4,0,12,17,2,0,5,22,4),A_(0,7,8,-4,0,13,19,2,0,5,24,4),A_(0,7,9,-4,0,14,21,2,0,5,26,4),A_(0,8,9,-5,0,15,22,2,0,6,28,5),A_(0,8,10,-5,0,16,24,2,0,6,30,5),A_(0,8,11,-5,0,17,26,2,0,6,32,5),A_(0,9,11,-5,0,18,28,2,0,7,34,6),A_(0,9,12,-6,0,19,29,2,0,7,36,6),A_(0,10,13,-6,0,20,31,3,0,8,38,7),A_(0,10,13,-6,0,21,33,3,0,8,40,7),A_(0,10,14,-6,0,22,35,3,0,8,42,7),A_(0,11,14,-7,0,23,36,3,0,9,44,8),A_(0,11,15,-7,0,24,38,3,0,9,46,8)];const L_=["duration","easing","delay"],I_={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)"},D_={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function __(e){return`${Math.round(e)}ms`}function M_(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function T_(e){const t=pI({},I_,e.easing),n=pI({},D_,e.duration);return pI({getAutoHeightDuration:M_,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return fI(r,L_),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:__(o)} ${i} ${"string"==typeof a?a:__(a)}`)).join(",")}},e,{easing:t,duration:n})}var O_={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const N_=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function q_(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=fI(e,N_);if(e.vars)throw new Error(Oe(18));const l=E_(r),s=bD(e);let u=Or(s,{mixins:(c=s.breakpoints,d=n,pI({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:P_.slice(),typography:k_(l,i),transitions:T_(o),zIndex:pI({},O_)});var c,d;return u=Or(u,a),u=t.reduce(((e,t)=>Or(e,t)),u),u.unstable_sxConfig=pI({},dD,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return mD({sx:e,theme:this})},u}var z_,F_=q_(),j_={},$_={exports:{}};var B_,H_={exports:{}};var V_=o(_r),W_=o(qr),U_=o(so),G_=o(ao),Y_=o(vD),K_=o(CD),X_=HD;Object.defineProperty(j_,"__esModule",{value:!0});var J_=j_.default=function(e={}){const{themeId:t,defaultTheme:n=uM,rootShouldForwardProp:r=sM,slotShouldForwardProp:o=sM}=e,i=e=>(0,rM.default)((0,Q_.default)({},e,{theme:dM((0,Q_.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,eM.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=pM(cM(s))}=a,p=(0,Z_.default)(a,aM),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=sM;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,eM.default)(e,(0,Q_.default)({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,tM.isPlainObject)(e)?r=>fM(e,(0,Q_.default)({},r,{theme:dM({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...o)=>{let a=b(r);const s=o?o.map(b):[];l&&d&&s.push((e=>{const r=dM((0,Q_.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=fM(n,(0,Q_.default)({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=dM((0,Q_.default)({},e,{defaultTheme:n,themeId:t}));return fM({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,Q_.default)({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};j_.shouldForwardProp=sM,j_.systemDefaultTheme=void 0;var Q_=X_((z_||(z_=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 n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}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}($_)),$_.exports)),Z_=X_((B_||(B_=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(H_)),H_.exports)),eM=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=lM(t);if(n&&n.has(e))return n.get(e);var r={__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(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(V_),tM=W_;X_(U_),X_(G_);var nM=X_(Y_),rM=X_(K_);const oM=["ownerState"],iM=["variants"],aM=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function lM(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(lM=function(e){return e?n:t})(e)}function sM(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const uM=j_.systemDefaultTheme=(0,nM.default)(),cM=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function dM({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function pM(e){return e?(t,n)=>n[e]:null}function fM(e,t){let{ownerState:n}=t,r=(0,Z_.default)(t,oM);const o="function"==typeof e?e((0,Q_.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>fM(e,(0,Q_.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Z_.default)(o,iM);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,Q_.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,Q_.default)({ownerState:n},r,n)):e.style))})),t}return o}var mM=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var hM=J_({themeId:dI,defaultTheme:F_,rootShouldForwardProp:mM});const gM=["theme"];function bM(e){let{theme:t}=e,n=fI(e,gM);const r=t[dI];return ta.jsx(jD,pI({},n,{themeId:r?dI:void 0,theme:r||t}))}var vM={exports:{}};
121
121
  /*!
122
122
  * CSSJanus. https://github.com/cssjanus/cssjanus
123
123
  *
@@ -136,7 +136,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.le
136
136
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
137
137
  * See the License for the specific language governing permissions and
138
138
  * limitations under the License.
139
- */!function(e,t){var n;function r(e,t){var n=[],r=0;function o(e){return n.push(e),t}function i(){return n[r++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}n=new function(){var e="`TMP`",t="`COMMENT`",n="[^\\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-]|"+n+"|"+u+")",d=o+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+n+"|"+u+")")+c+"*")+")?",p="((?:-?"+d+")|(?:inherit|auto))",f="(#?"+c+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",m="(?:[!#$%&*-~]|"+n+"|"+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"),k=new RegExp(l+"(left)"+h+b+g,"gi"),A=new RegExp(l+"(right)"+h+b+g,"gi"),L=new RegExp(l+"(left)"+v,"gi"),P=new RegExp(l+"(right)"+v,"gi"),I=new RegExp(l+"(ltr)"+v,"gi"),D=new RegExp(l+"(rtl)"+v,"gi"),_=new RegExp(l+"([ns]?)e-resize","gi"),M=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"),O=new RegExp("((?:-color|border-style)\\s*:\\s*)"+f+"(\\s+)"+f+"(\\s+)"+f+"(\\s+)"+f+y,"gi"),N=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),q=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),z=new RegExp("(border-radius\\s*:\\s*)"+p+"(?:(?:\\s+"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?)?(?:(?:(?:\\s*\\/\\s*)"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?(?:\\s+"+p+")?)?"+y,"gi"),F=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+p,"gi"),j=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+f,"gi"),$=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+p,"gi"),B=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),H=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),W=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+p+"((?:\\s*,\\s*"+p+"){0,2}\\s*\\))","gi");function V(e,t,n){var r,o;return"%"===n.slice(-1)&&(-1!==(r=n.indexOf("."))?(o=n.length-r-2,n=(n=100-parseFloat(n)).toFixed(o)+"%"):n=100-parseFloat(n)+"%"),t+n}function U(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function G(e,t){var n=[].slice.call(arguments),r=n.slice(2,6).filter((function(e){return e})),o=n.slice(6,10).filter((function(e){return e})),i=n[10]||"";return t+(o.length?U(r)+" / "+U(o):U(r))+i}function Y(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function K(e,t,n){return t+Y(n)}function X(e,t,n,r,o){return t+n+Y(r)+o}function J(e,t,n,r,o){return t+n+r+Y(o)}return{transform:function(n,o){var i=new r(E,"`NOFLIP_SINGLE`"),a=new r(w,"`NOFLIP_CLASS`"),l=new r(S,t);return n=l.tokenize(a.tokenize(i.tokenize(n.replace("`","%60")))),o.transformDirInUrl&&(n=n.replace(I,"$1"+e).replace(D,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(n=n.replace(L,"$1"+e).replace(P,"$1left").replace(x,"right")),n=n.replace(C,"$1"+e).replace(R,"$1ltr").replace(x,"rtl").replace(k,"$1"+e).replace(A,"$1left").replace(x,"right").replace(_,"$1$2"+e).replace(M,"$1$2e-resize").replace(x,"w-resize").replace(z,G).replace(F,K).replace(j,J).replace($,J).replace(B,K).replace(H,X).replace(W,X).replace(T,"$1$2$3$8$5$6$7$4$9").replace(O,"$1$2$3$8$5$6$7$4$9").replace(N,V).replace(q,V),n=i.detokenize(a.detokenize(l.detokenize(n)))}}},e.exports?t.transform=function(e,t,r){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof r&&(o.transformEdgeInUrl=r)),n.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=n)}(yM,yM.exports);var xM,SM,EM,wM,CM,RM=r(yM.exports);function kM(e,t,n){switch(e.type){case Ge:case Ve:case He:return e.return=e.return||e.value;case We:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===He&&(e.children=e.value)}))}var r=qt(Array.prototype.concat(e.children),kM);return at(r)?e.return=e.value+"{"+r+"}":""}function AM(e,t,n,r){if(e.type===Ke||e.type===Ye||e.type===We&&(!e.parent||e.parent.type===Ue||e.parent.type===We)){var o=RM.transform(kM(e));e.children=o?Dt(o)[0].children:[],e.return=""}}Object.defineProperty(AM,"name",{value:"stylisRTLPlugin"}),function(e){e.SELECTED="selected",e.POSSIBLE="possible",e.EXCLUDED="excluded",e.INACTIVE="inactive"}(xM||(xM={})),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"}(SM||(SM={})),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"}(EM||(EM={})),function(e){e.FOCUS="focus",e.FOCUS_BUTTON="focusButton",e.BLUR="blur",e.ADD_TAB="addTab",e.REMOVE_TAB="removeTab"}(wM||(wM={})),function(e){e.A="ascending",e.D="descending"}(CM||(CM={}));const LM=[0,0],PM={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"},IM={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",...PM,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)"},DM=12,_M=14,MM=16,TM=24,OM=3,NM=300,qM=400,zM=600,FM=700,jM={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};c(IM.GREYSCALE_0,.05),c(IM.GREEN_PALE,.5),c(IM.BLUE_PALE,.5),c(IM.GREEN_PALE,.5),c(IM.BLUE_PALE,.5),c(IM.GREEN_PALE,.5),c(IM.BLUE_PALE,.5);var $M;function BM(){return BM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BM.apply(null,arguments)}c(IM.GREEN_PALE,.5),c(IM.BLUE_PALE,.5),c(IM.GREEN_PALE,.5),c(IM.BLUE_PALE,.5);var HM,WM=function(e){return X.createElement("svg",BM({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),$M||($M=X.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function VM(){return VM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VM.apply(null,arguments)}var UM=function(e){return X.createElement("svg",VM({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),HM||(HM=X.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 GM({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return J.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var YM=(e={})=>J.createElement(GM,{...e},J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},J.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),J.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"}))),KM=(e={})=>J.createElement(GM,{...e},J.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},J.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},J.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),J.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),XM=(e={})=>J.createElement(GM,{fontSize:"medium",...e},J.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},J.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},J.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),JM=(e={})=>J.createElement(GM,{fontSize:"medium",...e},J.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),J.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"}))),QM=({className:e})=>J.createElement(GM,{fontSize:"small",className:e},J.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},J.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},J.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},J.createElement("g",{transform:"translate(4.324187, 1.300372)"},J.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"}),J.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 ZM(e){return zD(e)}var eT=Fo("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const tT=["center","classes","className"];let nT,rT,oT,iT,aT=e=>e;const lT=Pr(nT||(nT=aT`
139
+ */!function(e,t){var n;function r(e,t){var n=[],r=0;function o(e){return n.push(e),t}function i(){return n[r++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}n=new function(){var e="`TMP`",t="`COMMENT`",n="[^\\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-]|"+n+"|"+u+")",d=o+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+n+"|"+u+")")+c+"*")+")?",p="((?:-?"+d+")|(?:inherit|auto))",f="(#?"+c+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",m="(?:[!#$%&*-~]|"+n+"|"+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"),k=new RegExp(l+"(left)"+h+b+g,"gi"),A=new RegExp(l+"(right)"+h+b+g,"gi"),P=new RegExp(l+"(left)"+v,"gi"),L=new RegExp(l+"(right)"+v,"gi"),I=new RegExp(l+"(ltr)"+v,"gi"),D=new RegExp(l+"(rtl)"+v,"gi"),_=new RegExp(l+"([ns]?)e-resize","gi"),M=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"),O=new RegExp("((?:-color|border-style)\\s*:\\s*)"+f+"(\\s+)"+f+"(\\s+)"+f+"(\\s+)"+f+y,"gi"),N=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),q=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),z=new RegExp("(border-radius\\s*:\\s*)"+p+"(?:(?:\\s+"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?)?(?:(?:(?:\\s*\\/\\s*)"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?(?:\\s+"+p+")?)?"+y,"gi"),F=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+p,"gi"),j=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+f,"gi"),$=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+p,"gi"),B=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),H=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),V=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+p+"((?:\\s*,\\s*"+p+"){0,2}\\s*\\))","gi");function W(e,t,n){var r,o;return"%"===n.slice(-1)&&(-1!==(r=n.indexOf("."))?(o=n.length-r-2,n=(n=100-parseFloat(n)).toFixed(o)+"%"):n=100-parseFloat(n)+"%"),t+n}function U(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function G(e,t){var n=[].slice.call(arguments),r=n.slice(2,6).filter((function(e){return e})),o=n.slice(6,10).filter((function(e){return e})),i=n[10]||"";return t+(o.length?U(r)+" / "+U(o):U(r))+i}function Y(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function K(e,t,n){return t+Y(n)}function X(e,t,n,r,o){return t+n+Y(r)+o}function J(e,t,n,r,o){return t+n+r+Y(o)}return{transform:function(n,o){var i=new r(E,"`NOFLIP_SINGLE`"),a=new r(w,"`NOFLIP_CLASS`"),l=new r(S,t);return n=l.tokenize(a.tokenize(i.tokenize(n.replace("`","%60")))),o.transformDirInUrl&&(n=n.replace(I,"$1"+e).replace(D,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(n=n.replace(P,"$1"+e).replace(L,"$1left").replace(x,"right")),n=n.replace(C,"$1"+e).replace(R,"$1ltr").replace(x,"rtl").replace(k,"$1"+e).replace(A,"$1left").replace(x,"right").replace(_,"$1$2"+e).replace(M,"$1$2e-resize").replace(x,"w-resize").replace(z,G).replace(F,K).replace(j,J).replace($,J).replace(B,K).replace(H,X).replace(V,X).replace(T,"$1$2$3$8$5$6$7$4$9").replace(O,"$1$2$3$8$5$6$7$4$9").replace(N,W).replace(q,W),n=i.detokenize(a.detokenize(l.detokenize(n)))}}},e.exports?t.transform=function(e,t,r){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof r&&(o.transformEdgeInUrl=r)),n.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=n)}(vM,vM.exports);var yM=r(vM.exports),xM="comm",SM="rule",EM="decl",wM="@media",CM="@import",RM="@supports",kM="@keyframes",AM=Math.abs,PM=String.fromCharCode;function LM(e){return e.trim()}function IM(e,t,n){return e.replace(t,n)}function DM(e,t,n){return e.indexOf(t,n)}function _M(e,t){return 0|e.charCodeAt(t)}function MM(e,t,n){return e.slice(t,n)}function TM(e){return e.length}function OM(e,t){return t.push(e),e}var NM,qM,zM,FM,jM,$M=1,BM=1,HM=0,VM=0,WM=0,UM="";function GM(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:$M,column:BM,length:a,return:"",siblings:l}}function YM(){return WM=VM>0?_M(UM,--VM):0,BM--,10===WM&&(BM=1,$M--),WM}function KM(){return WM=VM<HM?_M(UM,VM++):0,BM++,10===WM&&(BM=1,$M++),WM}function XM(){return _M(UM,VM)}function JM(){return VM}function QM(e,t){return MM(UM,e,t)}function ZM(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 eT(e){return LM(QM(VM-1,rT(91===e?e+2:40===e?e+1:e)))}function tT(e){for(;(WM=XM())&&WM<33;)KM();return ZM(e)>2||ZM(WM)>3?"":" "}function nT(e,t){for(;--t&&KM()&&!(WM<48||WM>102||WM>57&&WM<65||WM>70&&WM<97););return QM(e,JM()+(t<6&&32==XM()&&32==KM()))}function rT(e){for(;KM();)switch(WM){case e:return VM;case 34:case 39:34!==e&&39!==e&&rT(WM);break;case 40:41===e&&rT(e);break;case 92:KM()}return VM}function oT(e,t){for(;KM()&&e+WM!==57&&(e+WM!==84||47!==XM()););return"/*"+QM(t,VM-1)+"*"+PM(47===e?e:KM())}function iT(e){for(;!ZM(XM());)KM();return QM(e,VM)}function aT(e){return function(e){return UM="",e}(lT("",null,null,null,[""],e=function(e){return $M=BM=1,HM=TM(UM=e),VM=0,[]}(e),0,[0],e))}function lT(e,t,n,r,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=r,w=y;g;)switch(m=v,v=KM()){case 40:if(108!=m&&58==_M(w,d-1)){-1!=DM(w+=IM(eT(v),"&","&\f"),"&\f",AM(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:w+=eT(v);break;case 9:case 10:case 13:case 32:w+=tT(m);break;case 92:w+=nT(JM()-1,7);continue;case 47:switch(XM()){case 42:case 47:OM(uT(oT(KM(),JM()),t,n,s),s),5!=ZM(m||1)&&5!=ZM(XM()||1)||!TM(w)||" "===MM(w,-1,void 0)||(w+=" ");break;default:w+="/"}break;case 123*h:l[u++]=TM(w)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(w=IM(w,/\f/g,"")),f>0&&(TM(w)-d||0===h&&47===m)&&OM(f>32?cT(w+";",r,n,d-1,s):cT(IM(w," ","")+";",r,n,d-2,s),s);break;case 59:w+=";";default:if(OM(E=sT(w,t,n,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)lT(w,t,E,E,x,i,d,l,S);else switch(99===p&&110===_M(w,3)?100:p){case 100:case 108:case 109:case 115:lT(e,E,E,r&&OM(sT(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,r?x:S);break;default:lT(w,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=b=1,y=w="",d=a;break;case 58:d=1+TM(w),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==YM())continue;switch(w+=PM(v),v*h){case 38:b=c>0?1:(w+="\f",-1);break;case 44:l[u++]=(TM(w)-1)*b,b=1;break;case 64:45===XM()&&(w+=eT(KM())),p=XM(),c=d=TM(y=w+=iT(JM())),v++;break;case 45:45===m&&2==TM(w)&&(h=0)}}return i}function sT(e,t,n,r,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<r;++h)for(var v=0,y=MM(e,p+1,p=AM(g=a[h])),x=e;v<m;++v)(x=LM(g>0?f[v]+" "+y:IM(y,/&\f/g,f[v])))&&(s[b++]=x);return GM(e,t,n,0===o?SM:l,s,u,c,d)}function uT(e,t,n,r){return GM(e,t,n,xM,PM(WM),MM(e,2,-2),0,r)}function cT(e,t,n,r,o){return GM(e,t,n,EM,MM(e,0,r),MM(e,r+1,-1),r,o)}function dT(e,t,n){switch(e.type){case CM:case EM:case xM:return e.return=e.return||e.value;case SM:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===xM&&(e.children=e.value)}))}var r=function(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}(Array.prototype.concat(e.children),dT);return TM(r)?e.return=e.value+"{"+r+"}":""}function pT(e,t,n,r){if(e.type===kM||e.type===RM||e.type===SM&&(!e.parent||e.parent.type===wM||e.parent.type===SM)){var o=yM.transform(dT(e));e.children=o?aT(o)[0].children:[],e.return=""}}Object.defineProperty(pT,"name",{value:"stylisRTLPlugin"}),function(e){e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive"}(NM||(NM={})),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"}(qM||(qM={})),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"}(zM||(zM={})),function(e){e.FOCUS="focus",e.FOCUS_BUTTON="focusButton",e.BLUR="blur",e.ADD_TAB="addTab",e.REMOVE_TAB="removeTab"}(FM||(FM={})),function(e){e.A="ascending",e.D="descending"}(jM||(jM={}));const fT=[0,0],mT={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"},hT={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",...mT,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)"},gT=12,bT=14,vT=16,yT=24,xT=3,ST=300,ET=400,wT=600,CT=700,RT={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};c(hT.GREYSCALE_0,.05),c(hT.GREEN_PALE,.5),c(hT.BLUE_PALE,.5),c(hT.GREEN_PALE,.5),c(hT.BLUE_PALE,.5),c(hT.GREEN_PALE,.5),c(hT.BLUE_PALE,.5);var kT;function AT(){return AT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AT.apply(null,arguments)}c(hT.GREEN_PALE,.5),c(hT.BLUE_PALE,.5),c(hT.GREEN_PALE,.5),c(hT.BLUE_PALE,.5);var PT,LT=function(e){return X.createElement("svg",AT({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),kT||(kT=X.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function IT(){return IT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IT.apply(null,arguments)}var DT=function(e){return X.createElement("svg",IT({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),PT||(PT=X.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 _T({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return J.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var MT=(e={})=>J.createElement(_T,{...e},J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},J.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),J.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"}))),TT=(e={})=>J.createElement(_T,{...e},J.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},J.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},J.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),J.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),OT=(e={})=>J.createElement(_T,{fontSize:"medium",...e},J.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},J.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},J.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),NT=(e={})=>J.createElement(_T,{fontSize:"medium",...e},J.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),J.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"}))),qT=({className:e})=>J.createElement(_T,{fontSize:"small",className:e},J.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},J.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},J.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},J.createElement("g",{transform:"translate(4.324187, 1.300372)"},J.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"}),J.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 zT(e){return qD(e)}var FT=No("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const jT=["center","classes","className"];let $T,BT,HT,VT,WT=e=>e;const UT=kr($T||($T=WT`
140
140
  0% {
141
141
  transform: scale(0);
142
142
  opacity: 0.1;
@@ -146,7 +146,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.le
146
146
  transform: scale(1);
147
147
  opacity: 0.3;
148
148
  }
149
- `)),sT=Pr(rT||(rT=aT`
149
+ `)),GT=kr(BT||(BT=WT`
150
150
  0% {
151
151
  opacity: 1;
152
152
  }
@@ -154,7 +154,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.le
154
154
  100% {
155
155
  opacity: 0;
156
156
  }
157
- `)),uT=Pr(oT||(oT=aT`
157
+ `)),YT=kr(HT||(HT=WT`
158
158
  0% {
159
159
  transform: scale(1);
160
160
  }
@@ -166,7 +166,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.le
166
166
  100% {
167
167
  transform: scale(1);
168
168
  }
169
- `)),cT=gM("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),dT=gM((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=X.useState(!1),p=Ho(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Ho(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),X.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),oa.jsx("span",{className:p,style:f,children:oa.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(iT||(iT=aT`
169
+ `)),KT=hM("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),XT=hM((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=X.useState(!1),p=jo(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=jo(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),X.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),ta.jsx("span",{className:p,style:f,children:ta.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(VT||(VT=WT`
170
170
  opacity: 0;
171
171
  position: absolute;
172
172
 
@@ -209,4 +209,4 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.le
209
209
  animation-iteration-count: infinite;
210
210
  animation-delay: 200ms;
211
211
  }
212
- `),eT.rippleVisible,lT,550,(({theme:e})=>e.transitions.easing.easeInOut),eT.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),eT.child,eT.childLeaving,sT,550,(({theme:e})=>e.transitions.easing.easeInOut),eT.childPulsate,uT,(({theme:e})=>e.transitions.easing.easeInOut)),pT=X.forwardRef((function(e,t){const r=ZM({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,l=d(r,tT),[s,u]=X.useState([]),c=X.useRef(0),p=X.useRef(null);X.useEffect((()=>{p.current&&(p.current(),p.current=null)}),[s]);const f=X.useRef(!1),m=wo(),h=X.useRef(null),g=X.useRef(null),b=X.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;u((e=>[...e,oa.jsx(dT,{classes:{ripple:Ho(i.ripple,eT.ripple),rippleVisible:Ho(i.rippleVisible,eT.rippleVisible),ripplePulsate:Ho(i.ripplePulsate,eT.ripplePulsate),child:Ho(i.child,eT.child),childLeaving:Ho(i.childLeaving,eT.childLeaving),childPulsate:Ho(i.childPulsate,eT.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},c.current)])),c.current+=1,p.current=a}),[i]),v=X.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:r=!1,center:i=o||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&f.current)return void(f.current=!1);"touchstart"===(null==e?void 0:e.type)&&(f.current=!0);const l=a?null:g.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;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:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)d=Math.sqrt((2*s.width**2+s.height**2)/3),d%2==0&&(d+=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;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{b({pulsate:r,rippleX:u,rippleY:c,rippleSize:d,cb:n})},m.start(80,(()=>{h.current&&(h.current(),h.current=null)}))):b({pulsate:r,rippleX:u,rippleY:c,rippleSize:d,cb:n})}),[o,b,m]),y=X.useCallback((()=>{v({},{pulsate:!0})}),[v]),x=X.useCallback(((e,t)=>{if(m.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void m.start(0,(()=>{x(e,t)}));h.current=null,u((e=>e.length>0?e.slice(1):e)),p.current=t}),[m]);return X.useImperativeHandle(t,(()=>({pulsate:y,start:v,stop:x})),[y,v,x]),oa.jsx(cT,n({className:Ho(eT.root,i.root,a),ref:g},l,{children:oa.jsx(xy,{component:null,exit:!0,children:s})}))}));var fT=pT;function mT(e){return zo("MuiButtonBase",e)}var hT=Fo("MuiButtonBase",["root","disabled","focusVisible"]);const gT=["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"],bT=gM("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"},[`&.${hT.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),vT=X.forwardRef((function(e,t){const r=ZM({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:p=!1,focusRipple:f=!1,LinkComponent:m="a",onBlur:h,onClick:g,onContextMenu:b,onDragLeave:v,onFocus:y,onFocusVisible:x,onKeyDown:S,onKeyUp:E,onMouseDown:w,onMouseLeave:C,onMouseUp:R,onTouchEnd:k,onTouchMove:A,onTouchStart:L,tabIndex:P=0,TouchRippleProps:I,touchRippleRef:D,type:_}=r,M=d(r,gT),T=X.useRef(null),O=X.useRef(null),N=yo(O,D),{isFocusVisibleRef:q,onFocus:z,onBlur:F,ref:j}=_o(),[$,B]=X.useState(!1);u&&$&&B(!1),X.useImperativeHandle(o,(()=>({focusVisible:()=>{B(!0),T.current.focus()}})),[]);const[H,W]=X.useState(!1);X.useEffect((()=>{W(!0)}),[]);const V=H&&!c&&!u;function U(e,t,n=p){return vo((r=>{t&&t(r);return!n&&O.current&&O.current[e](r),!0}))}X.useEffect((()=>{$&&f&&!c&&H&&O.current.pulsate()}),[c,f,$,H]);const G=U("start",w),Y=U("stop",b),K=U("stop",v),J=U("stop",R),Q=U("stop",(e=>{$&&e.preventDefault(),C&&C(e)})),Z=U("start",L),ee=U("stop",k),te=U("stop",A),ne=U("stop",(e=>{F(e),!1===q.current&&B(!1),h&&h(e)}),!1),re=vo((e=>{T.current||(T.current=e.currentTarget),z(e),!0===q.current&&(B(!0),x&&x(e)),y&&y(e)})),oe=()=>{const e=T.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ie=X.useRef(!1),ae=vo((e=>{f&&!ie.current&&$&&O.current&&" "===e.key&&(ie.current=!0,O.current.stop(e,(()=>{O.current.start(e)}))),e.target===e.currentTarget&&oe()&&" "===e.key&&e.preventDefault(),S&&S(e),e.target===e.currentTarget&&oe()&&"Enter"===e.key&&!u&&(e.preventDefault(),g&&g(e))})),le=vo((e=>{f&&" "===e.key&&O.current&&$&&!e.defaultPrevented&&(ie.current=!1,O.current.stop(e,(()=>{O.current.pulsate(e)}))),E&&E(e),g&&e.target===e.currentTarget&&oe()&&" "===e.key&&!e.defaultPrevented&&g(e)}));let se=s;"button"===se&&(M.href||M.to)&&(se=m);const ue={};"button"===se?(ue.type=void 0===_?"button":_,ue.disabled=u):(M.href||M.to||(ue.role="button"),u&&(ue["aria-disabled"]=u));const ce=yo(t,j,T),de=n({},r,{centerRipple:i,component:s,disabled:u,disableRipple:c,disableTouchRipple:p,focusRipple:f,tabIndex:P,focusVisible:$}),pe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=To({root:["root",t&&"disabled",n&&"focusVisible"]},mT,o);return n&&r&&(i.root+=` ${r}`),i})(de);return oa.jsxs(bT,n({as:se,className:Ho(pe.root,l),ownerState:de,onBlur:ne,onClick:g,onContextMenu:Y,onFocus:re,onKeyDown:ae,onKeyUp:le,onMouseDown:G,onMouseLeave:Q,onMouseUp:J,onDragLeave:K,onTouchEnd:ee,onTouchMove:te,onTouchStart:Z,ref:ce,tabIndex:u?-1:P,type:_},ue,M,{children:[a,V?oa.jsx(fT,n({ref:N,center:i},I)):null]}))}));var yT=vT;var xT=Fo("MuiBox",["root"]);const ST=z_(),ET=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:o="MuiBox-root",generateClassName:i}=e,a=Mr("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(hD),l=X.forwardRef((function(e,l){const s=function(e=SD){return xD(e)}(r),u=CD(e),{className:c,component:p="div"}=u,f=d(u,kD);return oa.jsx(a,n({as:p,ref:l,className:Ho(c,i?i(o):o),theme:t&&s[t]||s},f))}));return l}({themeId:mI,defaultTheme:ST,defaultClassName:xT.root,generateClassName:No.generate});var wT=ET;var CT=Fo("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var RT=X.createContext({});function kT(e){return zo("MuiListItemIcon",e)}var AT=Fo("MuiListItemIcon",["root","alignItemsFlexStart"]);const LT=["className"],PT=gM("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>n({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var IT=X.forwardRef((function(e,t){const r=ZM({props:e,name:"MuiListItemIcon"}),{className:o}=r,i=d(r,LT),a=n({},r,{alignItems:X.useContext(RT).alignItems}),l=(e=>{const{alignItems:t,classes:n}=e;return To({root:["root","flex-start"===t&&"alignItemsFlexStart"]},kT,n)})(a);return oa.jsx(PT,n({className:Ho(l.root,o),ownerState:a,ref:t},i))}));var DT=Fo("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function _T(e){return zo("MuiMenuItem",e)}var MT=Fo("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const TT=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],OT=gM(yT,{shouldForwardProp:e=>hM(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>n({},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"}},[`&.${MT.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:YD(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${MT.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:YD(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${MT.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:YD(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})`:YD(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${MT.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${MT.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${CT.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${CT.inset}`]:{marginLeft:52},[`& .${DT.root}`]:{marginTop:0,marginBottom:0},[`& .${DT.inset}`]:{paddingLeft:36},[`& .${AT.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&n({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${AT.root} svg`]:{fontSize:"1.25rem"}}))));var NT=X.forwardRef((function(e,t){const r=ZM({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:s=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:p,className:f}=r,m=d(r,TT),h=X.useContext(RT),g=X.useMemo((()=>({dense:a||h.dense||!1,disableGutters:s})),[h.dense,a,s]),b=X.useRef(null);bo((()=>{o&&b.current&&b.current.focus()}),[o]);const v=n({},r,{dense:g.dense,divider:l,disableGutters:s}),y=(e=>{const{disabled:t,dense:r,divider:o,disableGutters:i,selected:a,classes:l}=e;return n({},l,To({root:["root",r&&"dense",t&&"disabled",!i&&"gutters",o&&"divider",a&&"selected"]},_T,l))})(r),x=yo(b,t);let S;return r.disabled||(S=void 0!==p?p:-1),oa.jsx(RT.Provider,{value:g,children:oa.jsx(OT,n({ref:x,role:c,tabIndex:S,component:i,focusVisibleClassName:Ho(y.focusVisible,u),className:Ho(y.root,f)},m,{ownerState:v,classes:y}))})}));var qT=X.createContext();function zT(e){return zo("MuiTable",e)}Fo("MuiTable",["root","stickyHeader"]);const FT=["className","component","padding","size","stickyHeader"],jT=gM("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>n({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":n({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),$T="table",BT=X.forwardRef((function(e,t){const r=ZM({props:e,name:"MuiTable"}),{className:o,component:i=$T,padding:a="normal",size:l="medium",stickyHeader:s=!1}=r,u=d(r,FT),c=n({},r,{component:i,padding:a,size:l,stickyHeader:s}),p=(e=>{const{classes:t,stickyHeader:n}=e;return To({root:["root",n&&"stickyHeader"]},zT,t)})(c),f=X.useMemo((()=>({padding:a,size:l,stickyHeader:s})),[a,l,s]);return oa.jsx(qT.Provider,{value:f,children:oa.jsx(jT,n({as:i,role:i===$T?null:"table",ref:t,className:Ho(p.root,o),ownerState:c},u))})}));var HT=BT;var WT=X.createContext();function VT(e){return zo("MuiTableBody",e)}Fo("MuiTableBody",["root"]);const UT=["className","component"],GT=gM("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),YT={variant:"body"},KT="tbody";var XT=X.forwardRef((function(e,t){const r=ZM({props:e,name:"MuiTableBody"}),{className:o,component:i=KT}=r,a=d(r,UT),l=n({},r,{component:i}),s=(e=>{const{classes:t}=e;return To({root:["root"]},VT,t)})(l);return oa.jsx(WT.Provider,{value:YT,children:oa.jsx(GT,n({className:Ho(s.root,o),as:i,ref:t,role:i===KT?null:"rowgroup",ownerState:l},a))})}));function JT(e){return zo("MuiTableCell",e)}var QT=Fo("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const ZT=["align","className","component","padding","scope","size","sortDirection","variant"],eO=gM("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${co(n.size)}`],"normal"!==n.padding&&t[`padding${co(n.padding)}`],"inherit"!==n.align&&t[`align${co(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>n({},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?JD(YD(e.palette.divider,1),.88):KD(YD(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",[`&.${QT.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}))),tO=X.forwardRef((function(e,t){const r=ZM({props:e,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:l,scope:s,size:u,sortDirection:c,variant:p}=r,f=d(r,ZT),m=X.useContext(qT),h=X.useContext(WT),g=h&&"head"===h.variant;let b;b=a||(g?"th":"td");let v=s;"td"===b?v=void 0:!v&&g&&(v="col");const y=p||h&&h.variant,x=n({},r,{align:o,component:b,padding:l||(m&&m.padding?m.padding:"normal"),size:u||(m&&m.size?m.size:"medium"),sortDirection:c,stickyHeader:"head"===y&&m&&m.stickyHeader,variant:y}),S=(e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e;return To({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${co(r)}`,"normal"!==o&&`padding${co(o)}`,`size${co(i)}`]},JT,t)})(x);let E=null;return c&&(E="asc"===c?"ascending":"descending"),oa.jsx(eO,n({as:b,ref:t,className:Ho(S.root,i),"aria-sort":E,scope:v,ownerState:x},f))}));var nO=tO;function rO(e){return zo("MuiTableContainer",e)}Fo("MuiTableContainer",["root"]);const oO=["className","component"],iO=gM("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var aO=X.forwardRef((function(e,t){const r=ZM({props:e,name:"MuiTableContainer"}),{className:o,component:i="div"}=r,a=d(r,oO),l=n({},r,{component:i}),s=(e=>{const{classes:t}=e;return To({root:["root"]},rO,t)})(l);return oa.jsx(iO,n({ref:t,as:i,className:Ho(s.root,o),ownerState:l},a))}));function lO(e){return zo("MuiTableHead",e)}Fo("MuiTableHead",["root"]);const sO=["className","component"],uO=gM("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),cO={variant:"head"},dO="thead";var pO=X.forwardRef((function(e,t){const r=ZM({props:e,name:"MuiTableHead"}),{className:o,component:i=dO}=r,a=d(r,sO),l=n({},r,{component:i}),s=(e=>{const{classes:t}=e;return To({root:["root"]},lO,t)})(l);return oa.jsx(WT.Provider,{value:cO,children:oa.jsx(uO,n({as:i,className:Ho(s.root,o),ref:t,role:i===dO?null:"rowgroup",ownerState:l},a))})}));function fO(e){return zo("MuiTableRow",e)}var mO=Fo("MuiTableRow",["root","selected","hover","head","footer"]);const hO=["className","component","hover","selected"],gO=gM("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${mO.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${mO.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:YD(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}))`:YD(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),bO="tr",vO=X.forwardRef((function(e,t){const r=ZM({props:e,name:"MuiTableRow"}),{className:o,component:i=bO,hover:a=!1,selected:l=!1}=r,s=d(r,hO),u=X.useContext(WT),c=n({},r,{component:i,hover:a,selected:l,head:u&&"head"===u.variant,footer:u&&"footer"===u.variant}),p=(e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return To({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},fO,t)})(c);return oa.jsx(gO,n({as:i,ref:t,className:Ho(p.root,o),role:i===bO?null:"row",ownerState:c},s))}));var yO=vO,xO=(e={})=>J.createElement(GM,{...e},J.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},J.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},J.createElement("rect",{stroke:IM.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const SO={MuiAccordion:{styleOverrides:{root:{backgroundColor:IM.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:IM.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:J.createElement(WM,{"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 ${IM.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:IM.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${IM.MISC_FOCUS_BORDER}`,borderRadius:OM,backgroundColor:IM.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 ${IM.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:IM.WHITE,color:IM.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:OM},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${IM.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:IM.GREYSCALE_0_15,backgroundColor:IM.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:IM.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${IM.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:IM.GREEN_PALE},"&:active":{backgroundColor:IM.GREEN_DARK},"&.Mui-focusVisible":{borderColor:IM.GREEN_PALE,boxShadow:`0 0 0 3px ${LD(IM.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:IM.BLUE_PALE},"&:active":{backgroundColor:IM.BLUE_DARK},"&.Mui-focusVisible":{borderColor:IM.BLUE_PALE,boxShadow:`0 0 0 3px ${LD(IM.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:OM,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:IM.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${IM.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:IM.GREYSCALE_0_15,backgroundColor:IM.GREYSCALE_100_60,"&:active":{backgroundColor:IM.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:IM.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${IM.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:IM.PURPLE,"&.Mui-focusVisible":{borderColor:IM.PURPLE,boxShadow:`0 0 0 3px ${LD(IM.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:IM.GREEN,"&.Mui-focusVisible":{borderColor:IM.GREEN,boxShadow:`0 0 0 3px ${LD(IM.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:IM.BLUE,"&.Mui-focusVisible":{borderColor:IM.BLUE,boxShadow:`0 0 0 3px ${LD(IM.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:IM.ORANGE,"&.Mui-focusVisible":{borderColor:IM.ORANGE,boxShadow:`0 0 0 3px ${LD(IM.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:IM.RED,"&.Mui-focusVisible":{borderColor:IM.RED,boxShadow:`0 0 0 3px ${LD(IM.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:IM.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:IM.PURPLE_PALE},"&:active":{backgroundColor:IM.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:IM.PURPLE_PALE,boxShadow:`0 0 0 3px ${LD(IM.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:IM.GREEN_PALE},"&:active":{backgroundColor:IM.GREEN_DARK},"&.Mui-focusVisible":{borderColor:IM.GREEN_PALE,boxShadow:`0 0 0 3px ${LD(IM.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:IM.BLUE_PALE},"&:active":{backgroundColor:IM.BLUE_DARK},"&.Mui-focusVisible":{borderColor:IM.BLUE_PALE,boxShadow:`0 0 0 3px ${LD(IM.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:IM.ORANGE_PALE},"&:active":{backgroundColor:IM.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:IM.ORANGE_PALE,boxShadow:`0 0 0 3px ${LD(IM.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:IM.RED_PALE},"&:active":{backgroundColor:IM.RED_DARK},"&.Mui-focusVisible":{borderColor:IM.RED_PALE,boxShadow:`0 0 0 3px ${LD(IM.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:IM.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:IM.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:OM,boxShadow:`inset 0 0 0 2px ${IM.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:J.createElement(UM,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:DM,borderRadius:OM,color:IM.TEXT_PRIMARY,backgroundColor:IM.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:IM.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${IM.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:IM.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:IM.GREYSCALE_0_05,color:IM.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:IM.GREEN,borderColor:IM.GREEN},"&.MuiChip-outlinedInfo":{color:IM.BLUE,borderColor:IM.BLUE},"&.MuiChip-outlinedWarning":{color:IM.ORANGE,borderColor:IM.ORANGE},"&.MuiChip-outlinedError":{color:IM.RED,borderColor:IM.RED}},outlined:{border:`solid 1px ${IM.GREYSCALE_0_15}`,backgroundColor:IM.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:OM,boxShadow:"none",backgroundColor:IM.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:IM.GREEN,borderColor:IM.GREEN},outlinedSecondary:{color:IM.BLUE,borderColor:IM.BLUE},label:{fontFamily:jM.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:J.createElement(UM,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:J.createElement(WM,{"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:OM},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:OM,fontSize:_M,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:IM.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${IM.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:IM.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:IM.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:IM.GREYSCALE_0_05}}},popupIndicator:{borderRadius:OM,border:`solid 1px ${IM.GREYSCALE_0_15}`,color:IM.GREYSCALE_0_60,marginRight:0,width:TM,height:TM},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${IM.GREYSCALE_0_15}`},clearIndicator:{borderRadius:OM,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:IM.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:_M}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:DM,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:IM.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:IM.GREYSCALE_25,fontSize:DM,fontFamily:jM.FONT_FAMILY,fontWeight:zM,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:IM.TEXT_PRIMARY},"&.Mui-error":{color:IM.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:IM.TEXT_SECONDARY,content:"'(optional)'",fontWeight:qM,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:IM.TEXT_SECONDARY,content:"'(required)'",fontWeight:qM,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:_M,lineHeight:"16px",backgroundColor:IM.WHITE,borderRadius:OM,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${IM.GREYSCALE_0_05}`,borderColor:IM.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${IM.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${IM.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${IM.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${IM.RED}`,boxShadow:`0px 0px 0px 1px ${IM.RED}, inset 0 2px 0 0 ${IM.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${IM.GREYSCALE_0_10}`,borderColor:IM.GREYSCALE_0_10,backgroundColor:IM.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:IM.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:IM.GREYSCALE_0_15,borderRadius:OM,boxShadow:`inset 0 2px 0 0 ${IM.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>J.createElement(WM,{...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:IM.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:IM.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:IM.GREYSCALE_0_03},"&:active":{backgroundColor:IM.GREYSCALE_0_10},"&:focus":{backgroundColor:IM.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${IM.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${IM.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:IM.GREYSCALE_0_30,"&:hover":{backgroundColor:IM.GREYSCALE_0_0,borderColor:IM.GREYSCALE_0_15},"& ~svg":{color:IM.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${IM.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:OM}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:IM.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${IM.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:IM.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:_M,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:DM,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:DM,fontWeight:zM,color:IM.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:zM}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${IM.GREYSCALE_0_15}, 0px 0px 0px 1px ${IM.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:J.createElement(XM,null),checkedIcon:J.createElement(JM,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:IM.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${IM.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:IM.GREEN_PALE,boxShadow:`0 0 0 3px ${LD(IM.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:IM.BLUE_PALE,boxShadow:`0 0 0 3px ${LD(IM.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:IM.GREYSCALE_0_20}},"&.Mui-disabled":{fill:IM.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:J.createElement(xO,null),checkedIcon:J.createElement(YM,null),indeterminateIcon:J.createElement(KM,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:OM,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:IM.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:IM.GREYSCALE_0_55,color:IM.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:IM.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:IM.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:IM.GREYSCALE_0_55,"&:hover":{color:IM.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:IM.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:IM.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:_M,color:IM.TEXT_PRIMARY,lineHeight:"16px",fontWeight:zM},secondary:{fontSize:DM,color:IM.GREYSCALE_45,fontWeight:qM,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:_M,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:IM.GREYSCALE_0_03},"&:active":{backgroundColor:IM.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:_M,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:IM.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:DM,borderBottom:`solid 1px ${IM.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:_M,color:IM.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:IM.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:IM.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:IM.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:IM.RED}}},"&.Mui-focusVisible":{backgroundColor:IM.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:IM.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:IM.GREEN,height:"24px","&.Mui-disabled":{color:IM.GREYSCALE_0_15}},rail:{backgroundColor:IM.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${IM.GREYSCALE_0_05}`,borderRadius:OM,boxShadow:`inset 0px 0px 0px 1px ${IM.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${IM.GREYSCALE_0_05}`,borderRadius:OM},thumb:{height:"16px",width:"16px",borderRadius:OM,backgroundColor:IM.WHITE,boxShadow:`0px 1px 2px 0px ${IM.GREYSCALE_0_15}, 0px 0px 0px 1px ${IM.GREYSCALE_0_05}`,"&:hover":{borderRadius:OM,boxShadow:`0 2px 4px 0 ${IM.GREYSCALE_0_30}, 0 0 0 1px ${IM.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${IM.GREYSCALE_0_15}, 0 0 0 1px ${IM.GREYSCALE_0_06}, 0 0 0 2px ${IM.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${IM.GREYSCALE_0_15}, 0 0 0 1px ${IM.GREYSCALE_0_06}, 0 0 0 2px ${IM.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:IM.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:IM.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:IM.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:IM.GREYSCALE_0_15},markLabel:{color:IM.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:IM.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:IM.WHITE,color:IM.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:IM.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:IM.GREEN_PALE,boxShadow:`0 0 0 3px ${LD(IM.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:IM.BLUE_PALE,boxShadow:`0 0 0 3px ${LD(IM.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:IM.GREYSCALE_0_15,borderRadius:OM},thumb:{height:"16px",width:"16px",borderRadius:OM,backgroundColor:IM.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:_M,fontWeight:zM,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${IM.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${IM.MISC_FOCUS_BORDER}`,backgroundColor:IM.GREYSCALE_0_03,borderRadius:OM},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:IM.GREYSCALE_25,"&.Mui-selected":{color:IM.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:_M,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:OM,"&:hover":{backgroundColor:`${IM.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 ${IM.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${IM.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:OM,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:IM.GREYSCALE_0_05},"&:hover":{backgroundColor:`${IM.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${IM.GREYSCALE_85}`,borderRight:`1px solid ${IM.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:zM,backgroundColor:IM.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:IM.GREYSCALE_98,borderBottom:`1px solid ${IM.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${IM.GREYSCALE_85}`,borderTop:`1px solid ${IM.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:IM.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:IM.GREYSCALE_0_05,"&:hover":{backgroundColor:IM.GREYSCALE_0_03}},"&&:hover":{backgroundColor:IM.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>J.createElement(QM,{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 ${IM.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:_M,borderRadius:OM,padding:"7px 16px",border:`1px solid ${IM.GREYSCALE_0_15}`,backgroundColor:IM.GREYSCALE_100_60,color:IM.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:IM.GREYSCALE_0_10,border:`1px solid ${IM.GREYSCALE_0_30}`},"&:hover":{backgroundColor:IM.GREYSCALE_0_03,border:`1px solid ${IM.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:IM.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${IM.MISC_FOCUS_BORDER}`,border:`1px solid ${IM.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:IM.GREYSCALE_25,backgroundColor:IM.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:IM.GREYSCALE_0_10,border:`1px solid ${IM.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:DM,height:24,width:24,padding:7},sizeLarge:{fontSize:MM,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:_M,borderRadius:OM}}},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:IM.GREYSCALE_20},tooltip:{backgroundColor:IM.GREYSCALE_20,fontSize:DM,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var EO=e=>SO;const wO={mode:"light",primary:{ultraLight:IM.GREEN_ULTRA_LIGHT,light:IM.GREEN_PALE,main:IM.GREEN,dark:IM.GREEN_DARK,extraDark:IM.GREEN_EXTRA_DARK,contrastText:IM.WHITE},secondary:{ultraLight:IM.BLUE_ULTRA_LIGHT,light:IM.BLUE_PALE,main:IM.BLUE,dark:IM.BLUE_DARK,extraDark:IM.BLUE_EXTRA_DARK,contrastText:IM.WHITE},error:{ultraLight:IM.RED_ULTRA_LIGHT,light:IM.RED_PALE,main:IM.RED,dark:IM.RED_DARK,extraDark:IM.RED_EXTRA_DARK,contrastText:IM.WHITE},warning:{ultraLight:IM.ORANGE_ULTRA_LIGHT,light:IM.ORANGE_PALE,main:IM.ORANGE,dark:IM.ORANGE_DARK,extraDark:IM.ORANGE_EXTRA_DARK,contrastText:IM.WHITE},success:{ultraLight:IM.GREEN_ULTRA_LIGHT,light:IM.GREEN_PALE,main:IM.GREEN,dark:IM.GREEN_DARK,extraDark:IM.GREEN_EXTRA_DARK,contrastText:IM.WHITE},info:{ultraLight:IM.BLUE_ULTRA_LIGHT,light:IM.BLUE_PALE,main:IM.BLUE,dark:IM.BLUE_DARK,extraDark:IM.BLUE_EXTRA_DARK,contrastText:IM.WHITE},text:{primary:IM.TEXT_PRIMARY,secondary:IM.TEXT_SECONDARY,disabled:IM.GREYSCALE_0_30},action:{hover:IM.GREYSCALE_0_03,hoverOpacity:.03,selected:IM.GREYSCALE_0_05,selectedOpacity:.05,focus:IM.MISC_FOCUS_BORDER},amethyst:{ultraLight:IM.WHITE,main:IM.PURPLE,light:IM.PURPLE_PALE,dark:IM.PURPLE_DARK,extraDark:IM.GREYSCALE_0_0,contrastText:IM.WHITE},background:{paper:IM.WHITE,default:IM.GREYSCALE_95},divider:IM.GREYSCALE_0_15},CO=e=>({components:EO(),palette:wO,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:_M,fontWeightLight:NM,fontWeightRegular:qM,fontWeightMedium:zM,fontWeightBold:FM,htmlFontSize:_M,fontFamily:jM.FONT_FAMILY,button:{fontWeight:zM,fontSize:_M,textTransform:"none"},body1:{fontSize:MM,lineHeight:"24px"},body2:{fontSize:_M,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:TM,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:MM,fontWeight:zM,lineHeight:"16px"},h6:{fontSize:_M,fontWeight:zM,lineHeight:"16px"},caption:{color:IM.TEXT_SECONDARY},subtitle1:{fontSize:_M,color:IM.TEXT_SECONDARY},subtitle2:{fontSize:DM,color:IM.TEXT_SECONDARY}},shape:{borderRadius:OM}}),RO={...PM,MISC_FOCUS_BORDER:IM.MISC_FOCUS_BORDER},kO=(e="light")=>CO(),AO=kO().palette,LO={SELECTED:{color:RO.GREYSCALE_100,background:AO.primary.light,selectedCellClass:xM.SELECTED},POSSIBLE:{color:AO.text.primary,background:RO.GREYSCALE_100},EXCLUDED_BACKGROUND:"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"},PO=4/3,IO="12px",DO="600",_O="Source Sans Pro, sans-serif",MO={height:"auto",fontSize:IO,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"}},TO={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:DO},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},OO=25e4,NO=(e,t,n)=>{if(null==e||!e.length)return[];const r=[],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=()=>{r[a]=Math.min(Sk.PixelsMax,Math.max(Sk.PixelsMin,m)),i-=r[a]};switch(s){case Ek.Pixels:m=u||Sk.PixelsDefault,h();break;case Ek.Percentage:m=(c||Sk.PercentageDefault)/100*t,h();break;case Ek.FitToContent:(null===(l=e.representation)||void 0===l?void 0:l.type)===aL.Image?o.push(a):(m=n(d,f,p,e.isLocked,e.isActivelySorted,e.isDim),h());break;case Ek.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=>{r[t]=Math.max(Sk.AutoMinTable,e)}))}return r},qO=e=>e.ctrlKey||e.metaKey,zO=e=>e.shiftKey&&qO(e),FO=e=>[EM.LEFT,EM.RIGHT,EM.UP,EM.DOWN].includes(e),jO=e=>FO(e)||[EM.HOME,EM.END,EM.PAGE_UP,EM.PAGE_DOWN].includes(e),$O=e=>e.shiftKey&&FO(e.key),BO=(e,t)=>{const{colIdx:n,rows:r,api:o}=t;let i=xM.INACTIVE;return null!=o&&o.isModal()&&(i=n!==e.selectionColIdx?xM.EXCLUDED:void 0!==r[e.qElemNumber]?xM.SELECTED:xM.POSSIBLE),i},HO=(e,t,n)=>{const r=Object.keys(n).length,o=r>=Object.keys(t).length;if(r){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===r?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",r.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},WO=(e,t)=>{const{api:n,rows:r,colIdx:o}=e,{cell:i,announce:a,evt:l}=t;let s={};if(-1===o)null==n||n.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;s={...r}}return s=((e,t,n)=>{const{qElemNumber:r,rowIdx:o}=t;return n.ctrlKey||n.metaKey?{[r]:o}:(void 0!==e[r]?delete e[r]:e[r]=o,{...e})})(s,i,l),HO(a,r,s),Object.keys(s).length?(null==n||n.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(s),[i.selectionColIdx]]}),{...e,rows:s,colIdx:i.selectionColIdx}):(null==n||n.cancel(),{...e,rows:s,colIdx:-1})},VO=(e,t)=>{var n;const{api:r,rows:o,colIdx:i,pageRows:a,firstCell:l}=e,{cell:s,announce:u,evt:c}=t;let d={};return l||"key"in c&&$O(c)?(-1===i?null==r||r.begin(["/qHyperCubeDef"]):d={...o},d=((e,t,n,r,o)=>{const i={...t};if("key"in r&&$O(r)){i[n.qElemNumber]=n.rowIdx;const t=r.key===EM.DOWN?1:-1;return i[e[n.pageRowIdx+t][n.pageColIdx].qElemNumber]=n.rowIdx+t,i}if(!o)return t;const a=Math.min(o.pageRowIdx,n.pageRowIdx),l=Math.max(o.pageRowIdx,n.pageRowIdx);for(let t=a;t<=l;t++){const n=e[t][o.pageColIdx];i[n.qElemNumber]=n.rowIdx}return i})(a,d,s,c,l),HO(u,o,d),{...e,rows:d,colIdx:null!==(n=null==l?void 0:l.selectionColIdx)&&void 0!==n?n:s.selectionColIdx,isSelectMultiValues:!0}):e},UO=e=>{const{api:t,rows:n,colIdx:r,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&(null==t||t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(n),[r]]})),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},GO=(e,t)=>{var n;switch(t.type){case SM.SELECT:return WO(e,t.payload);case SM.SELECT_MOUSE_DOWN:return((e,{cell:t,mouseupOutsideCallback:n})=>!n||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",n),{...e,firstCell:t,mouseupOutsideCallback:n}))(e,t.payload);case SM.SELECT_MOUSE_UP:return((e,t)=>UO(e.isSelectMultiValues||e.firstCell!==t.cell?e:WO(e,t)))(e,t.payload);case SM.SELECT_MULTI_ADD:return VO(e,t.payload);case SM.SELECT_MULTI_END:return UO(e);case SM.RESET:return null!==(n=e.api)&&void 0!==n&&n.isModal()?e:{...e,rows:{},colIdx:-1};case SM.CLEAR:return Object.keys(e.rows).length?{...e,rows:{}}:e;case SM.UPDATE_PAGE_ROWS:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},YO=4/3,KO=e=>parseInt(e,10)*YO+8+1,XO=e=>!!e&&(!(null==e||!e.color)||(null==e?void 0:e.index)>-1);function JO(e,t,n={index:-1}){const r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}const QO=e=>DC(e)?Iw.WHITE:Iw.TEXT,ZO=(e,t)=>e?{borderBottomColor:Iw.DARK_MODE_BORDER,borderRightColor:Iw.DARK_MODE_BORDER,borderLeftColor:Iw.DARK_MODE_BORDER,borderTopColor:Iw.DARK_MODE_BORDER}:{borderLeftColor:Iw.BORDER_MEDIUM,borderRightColor:Iw.BORDER_MEDIUM,borderTopColor:Iw.BORDER_HEAVY,borderBottomColor:t?Iw.BORDER_HEAVY:Iw.BORDER_LIGHT},eN=e=>{var t;return null===(t=e.components)||void 0===t?void 0:t.find((e=>"theme"===e.key))},tN=(e,t,n,r=!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:XO(null==n?void 0:n.fontColor)?JO(Iw.TEXT,t,null==n?void 0:n.fontColor):i||Iw.TEXT,fontSize:(null==n?void 0:n.fontSize)&&`${n.fontSize}px`||a,padding:n&&"padding"in n?null==n?void 0:n.padding:void 0,...ZO(t.background.isDark,r)};return Object.keys(l).forEach((e=>{const t=e;null==l[t]&&delete l[t]})),l};function nN(e,t,n){var r,o,i;const a=null===(r=eN(e))||void 0===r?void 0:r.header,l=tN("header",t,a,n);return l.background=NC(t.background.headerColor),l.hoverBackground=IC(null!==(o=l.background)&&void 0!==o?o:Iw.WHITE,wk.hover),l.activeBackground=IC(null!==(i=l.background)&&void 0!==i?i:Iw.WHITE,wk.active),l}function rN(e,t,n,r){var o;const i=null===(o=eN(e))||void 0===o?void 0:o.content,a=tN("content",t,i);a.background=t.background.color;const l=((e,t,n)=>{if(e&&t&&n)return KO(e)*(t+2)<n.clientHeight-40?"1px":"0px";return"0px"})(null==a?void 0:a.fontSize,n,r),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=XO(u)||!!d,f=XO(s)||!!c,m=p||f;let h;h=XO(s)?JO(Iw.HOVER,t,s):c||(p?"":Iw.HOVER);const g=m?JO(QO(h),t,u):"";return{...a,lastRowBottomBorder:l,hoverColors:{background:h,color:g}}}const oN=(e,t)=>{var n;const r=null!==(n=e.toLowerCase().match(/<[^>]+>/g))&&void 0!==n?n:[];return r.forEach((e=>e in TO&&Object.assign(t,TO[e]))),t};function iN(e,t,n,r){var o;const i={};let a={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return null==t||null===(o=t.qValues)||void 0===o||o.forEach(((e,t)=>{const o=e.qText,l=o&&OC(o);l&&"none"!==l&&(i[n[t]]=l),r.isEnabled("CLIENT_IM_6573_TEXT_STYLE")&&o&&(a=oN(o,a))})),i.cellBackgroundColor&&!i.cellForegroundColor&&(i.cellForegroundColor=QO(i.cellBackgroundColor)),{...e,...i,color:i.cellForegroundColor||e.color,background:i.cellBackgroundColor||e.background,fontStyle:a.fontStyle,fontWeight:a.fontWeight,textDecoration:a.textDecoration}}const aN=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return IO}},lN=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",sN=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",uN=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?DO:"normal",cN=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?"transparent":n}},dN=(e,t,n,r)=>{var o,i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,w,C,R,k,A,L,P,I,D,_,M,T,O,N,q,z,F;if(!e.flags.isEnabled("CLIENT_IM_6221_TABLE_STYLING"))return((e,t,n)=>{var r,o,i;return{header:{fontFamily:t.head.fontFamily,fontSize:t.head.fontSize,fontStyle:"normal",fontWeight:DO,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:DO,textDecoration:"none",color:t.totals.color,background:t.totals.background},nullValues:{fontStyle:"",fontWeight:"",textDecoration:"",color:"",background:"#F2F2F2"},grid:{lineClamp:null===(r=eN(e))||void 0===r||null===(r=r.content)||void 0===r?void 0:r.rowHeight,border:n.background.isDark?Iw.DARK_MODE_BORDER:Iw.BORDER_MEDIUM,divider:Iw.BORDER_HEAVY,hoverColors:{color:null===(o=t.body.hoverColors)||void 0===o?void 0:o.color,background:null===(i=t.body.hoverColors)||void 0===i?void 0:i.background},lastRowBottomBorder:t.body.lastRowBottomBorder},headerMenuHoverBackground:t.head.hoverBackground,headerMenuActiveBackground:t.head.activeBackground}})(t,n,r);const{header:j,dimensionValues:$,measureValues:B,totalRow:H,nullValues:W,grid:V,content:U}=null!==(o=eN(t))&&void 0!==o?o:{},G=null!==(i=null!==(a=cN(r,null==j?void 0:j.background))&&void 0!==a?a:n.head.background)&&void 0!==i?i:Iw.TRANSPARENT;return{header:{fontFamily:null!==(l=null!==(s=null==j?void 0:j.fontFamily)&&void 0!==s?s:n.head.fontFamily)&&void 0!==l?l:_O,fontSize:aN(null!==(u=null==j?void 0:j.fontSize)&&void 0!==u?u:n.head.fontSize),fontStyle:lN(null==j?void 0:j.fontStyle),fontWeight:uN(null==j?void 0:j.fontStyle,DO),textDecoration:sN(null==j?void 0:j.fontStyle),color:null!==(c=null!==(d=cN(r,null==j?void 0:j.fontColor))&&void 0!==d?d:n.head.color)&&void 0!==c?c:Iw.TEXT,background:G},headerMenuHoverBackground:IC(G,wk.hover),headerMenuActiveBackground:IC(G,wk.active),dimension:{values:{fontFamily:null!==(p=null!==(f=null==$?void 0:$.fontFamily)&&void 0!==f?f:n.body.fontFamily)&&void 0!==p?p:_O,fontSize:aN(null!==(m=null==$?void 0:$.fontSize)&&void 0!==m?m:n.body.fontSize),fontStyle:lN(null==$?void 0:$.fontStyle),fontWeight:uN(null==$?void 0:$.fontStyle,"normal"),textDecoration:sN(null==$?void 0:$.fontStyle),color:null!==(h=null!==(g=cN(r,null==$?void 0:$.fontColor))&&void 0!==g?g:n.body.color)&&void 0!==h?h:Iw.TEXT,background:null!==(b=null!==(v=cN(r,null==$?void 0:$.background))&&void 0!==v?v:n.body.background)&&void 0!==b?b:Iw.TRANSPARENT}},measure:{values:{fontFamily:null!==(y=null!==(x=null==B?void 0:B.fontFamily)&&void 0!==x?x:n.body.fontFamily)&&void 0!==y?y:_O,fontSize:aN(null!==(S=null==B?void 0:B.fontSize)&&void 0!==S?S:n.body.fontSize),fontStyle:lN(null==B?void 0:B.fontStyle),fontWeight:uN(null==B?void 0:B.fontStyle,"normal"),textDecoration:sN(null==B?void 0:B.fontStyle),color:null!==(E=null!==(w=cN(r,null==B?void 0:B.fontColor))&&void 0!==w?w:n.body.color)&&void 0!==E?E:Iw.TEXT,background:null!==(C=null!==(R=cN(r,null==B?void 0:B.background))&&void 0!==R?R:n.body.background)&&void 0!==C?C:Iw.TRANSPARENT}},totalRow:{fontFamily:null!==(k=null!==(A=null==H?void 0:H.fontFamily)&&void 0!==A?A:n.totals.fontFamily)&&void 0!==k?k:_O,fontSize:aN(null!==(L=null==H?void 0:H.fontSize)&&void 0!==L?L:n.totals.fontSize),fontStyle:lN(null==H?void 0:H.fontStyle),fontWeight:uN(null==H?void 0:H.fontStyle,DO),textDecoration:sN(null==H?void 0:H.fontStyle),color:null!==(P=null!==(I=cN(r,null==H?void 0:H.fontColor))&&void 0!==I?I:n.totals.color)&&void 0!==P?P:Iw.TEXT,background:null!==(D=null!==(_=cN(r,null==H?void 0:H.background))&&void 0!==_?_:n.totals.background)&&void 0!==D?D:Iw.TRANSPARENT},nullValues:{fontStyle:lN(null==W?void 0:W.fontStyle),fontWeight:uN(null==W?void 0:W.fontStyle,"normal"),textDecoration:sN(null==W?void 0:W.fontStyle),color:null!==(M=null!==(T=cN(r,null==W?void 0:W.fontColor))&&void 0!==T?T:n.body.color)&&void 0!==M?M:Iw.TEXT,background:null!==(O=cN(r,null==W?void 0:W.background))&&void 0!==O?O:Iw.NULL_VALUE_BACKGROUND},grid:{lineClamp:null==U?void 0:U.rowHeight,border:null!==(N=cN(r,null==V?void 0:V.border))&&void 0!==N?N:r.background.isDark?Iw.DARK_MODE_BORDER:Iw.BORDER_MEDIUM,divider:null!==(q=cN(r,null==V?void 0:V.divider))&&void 0!==q?q:Iw.BORDER_HEAVY,hoverColors:{color:null===(z=n.body.hoverColors)||void 0===z?void 0:z.color,background:null===(F=n.body.hoverColors)||void 0===F?void 0:F.background},lastRowBottomBorder:n.body.lastRowBottomBorder}}},pN=(e,t,n,r)=>{const o=X.useMemo((()=>{const o=n.totalsPosition.atTop,i=rN(e,t,n.rows.length,r),a=nN(e,t,!o),l=function(e,t,n){var r;const o=null===(r=eN(e))||void 0===r?void 0:r.content,i=tN("content",t,o),{borderBottomColor:a,borderTopColor:l,background:s}=nN(e,t,n);return{...i,borderBottomColor:a,background:s,borderTopColor:l}}(e,t,o);return{body:i,head:a,totals:l}}),[e,t,n,r]);return o},fN=new Map;const mN=X.createContext({}),hN=function(e){const t=X.createContext([()=>{},new Set]);return fN.set(e,t),({children:n,value:r})=>{const o=X.useRef(r),i=X.useRef(new Set);X.useEffect((()=>{o.current=r,i.current.forEach((e=>{e(r)}))}),[r]);const a=X.useCallback((()=>o.current),[o]),l=X.useMemo((()=>[a,i.current]),[a]);return oa.jsx(e.Provider,{value:r,children:oa.jsx(t.Provider,{value:l,children:n})})}}(mN),gN={rows:[],columns:[],totalsPosition:{}},bN=({app:e,children:t,tableData:n=gN,selectionsAPI:r,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[S,E]=X.useState(0),[w,C]=X.useState(o||LM),[R,k]=((e,t)=>{const[n,r]=X.useReducer(GO,{pageRows:e,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return[n,r]})(n.rows,r),[A,L]=X.useState(-1),P=pN(i,u,n,d),I=((e,t,n,r)=>X.useMemo((()=>dN(e,t,n,r)),[t,n,e,r]))(x,i,P,u),[D,_,M,T]=((e,t,n,r)=>{const o=t.atBottom||t.atTop,i=ak({...r.header,fontWeight:DO},{maxNbrLinesOfText:3}).measureText,a=ak({...r.totalRow,fontWeight:DO},{maxNbrLinesOfText:3}).measureText,{estimateWidth:l}=ak(r.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:s}=ak(r.measure.values,{maxNbrLinesOfText:3}),u=X.useMemo((()=>(e,t,n,r,u,c)=>{let d=25;d+=28,r&&(d+=24),u&&(d+=20);const p=c?l:s;return Math.max(i(e)+d,o?a(t)+24+1:0,p(n))}),[l,s,i,a,o]),[c,d]=X.useState(0),[p,f]=X.useState((()=>NO(e,n,u)));uk((()=>{f(NO(e,n-c,u))}),[e,n,c,u]);const m=X.useMemo((()=>((e,t,n)=>!!(e&&e.length>0)&&e.reduce(((e,t)=>e+t))+t<n)(p,c,n)),[p,c,n]);return[p,f,d,m]})(n.columns,n.totalsPosition,v.width,I),O=X.useMemo((()=>({app:e,selectionsAPI:r,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:I})),[e,r,i,a,l,s,u,c.active,d,p,f,m,v,y,I]);return oa.jsx(hN,{value:{headRowHeight:S,setHeadRowHeight:E,focusedCellCoord:w,setFocusedCellCoord:C,selectionState:R,selectionDispatch:k,hoverIndex:A,setHoverIndex:L,columnWidths:D,setColumnWidths:_,baseProps:O,tableData:n,setYScrollbarWidth:M,setPage:h,pageInfo:g,initialDataPages:b,showRightBorder:T,env:x},children:t})};function vN(e,t){const n=function(e){return fN.get(e)}(e),[r,o]=X.useContext(n),[,i]=X.useReducer((e=>e+1),0),a=X.useRef(t),l=X.useRef(),s=r();if(void 0===s)throw new Error("You must call useContextSelector inside a valid context.");const u=X.useMemo((()=>t(s)),[s,t]);return X.useEffect((()=>{a.current=t,l.current=u}),[s,u,t]),X.useEffect((()=>{const e=e=>{(a.current&&a.current(e))!==l.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function yN(e){var t;const n=kO();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),z_({...n,direction:e})}const xN=kl(rS,{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({pointerEvents:"auto",touchAction:"none",display:"flex",position:"absolute",height:"100%",top:0,cursor:"col-resize",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",marginLeft:"-4px","&:hover:not(:focus, :active)":{[`& .${xk}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${xk}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),SN=kl(rS)({position:"absolute",height:"100%",width:"3px"}),EN=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u})=>{const c=X.useRef({initWidth:e,columnWidth:e,initX:0}),d=n?0:1,p=r&&!u,f={left:p?c.current.columnWidth-d:"100%"},m=t=>{c.current={initWidth:e,columnWidth:e,initX:null!=t?t:c.current.initX}};uk((()=>p&&m()),[e]);const h=e=>{const t=Math.max(e,Sk.PixelsMin);c.current.columnWidth=t,i(t)},g=()=>{if(c.current.columnWidth!==c.current.initWidth){const e={type:Ek.Pixels,pixels:c.current.columnWidth};a(e)}else null==s||s(!1)},b=e=>{const t=c.current.initWidth+e.clientX-c.current.initX;h(t)},v=e=>{zC(e),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",v),g()},y=e=>{const t=c.current.initWidth+e.touches[0].clientX-c.current.initX;h(t)},x=e=>{zC(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",x),g()},S=!r&&l?e=>{if(e.key===vk.LEFT||e.key===vk.RIGHT){zC(e);const t=5,n=e.key===vk.LEFT?-t:t;h(c.current.columnWidth+n)}else e.key===vk.SPACE||e.key===vk.ENTER?(zC(e),l(e),g()):e.key===vk.ESC&&(zC(e),l(e),h(c.current.initWidth))}:void 0;return J.createElement(xN,{className:yk,isLastColumn:n,hoverColor:o,style:f,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",b),document.addEventListener("mouseup",v),null==s||s(!0),m(e.clientX)},onDoubleClick:()=>a({type:Ek.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",x),null==s||s(!0),m(e.touches[0].clientX))},onKeyDown:S,onBlur:l,onFocus:()=>m(),"data-testid":yk},J.createElement(SN,{className:xk}))};function wN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const CN=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){wN(e,t,n[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),J.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),RN=X.forwardRef(CN);function kN(){return kN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kN.apply(null,arguments)}const AN=kl(rS,{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"}))),LN=kl(RN,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),PN=kl(TE)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),IN=kl(AS)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),DN=kl(FE)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),_N=kl(FE,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:n})=>({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:""+(n?"rgba(0, 0, 0, 0.05)":"transparent")}))),MN=kl("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"}))),TN=kl("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),ON=kl(ox)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),NN=kl(lE)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function qN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zN=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){qN(e,t,n[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),J.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),FN=X.forwardRef(zN);let jN={};const $N=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=X.useState(!1),p=X.useRef(null),f=X.useCallback((e=>{e.stopPropagation(),d(!1)}),[d]);return J.createElement(J.Fragment,null,J.createElement(_N,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),jN={}),null!=a&&a.length&&(d(!0),jN[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&J.createElement(MN,null),J.createElement(TN,null,J.createElement(NN,null,J.createElement(o,null)),J.createElement(ON,{variant:"body2"},r)),null!=a&&a.length?J.createElement(FN,null):null),(null==a?void 0:a.length)&&J.createElement(WN,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=jN,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},BN=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&J.createElement(DN,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>J.createElement($N,kN({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),HN={appear:200,enter:200,exit:100},WN=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>r.length?J.createElement(PN,kN({className:hk,open:t,anchorEl:e,onClose:n,transitionDuration:HN,MenuListProps:{id:gk}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[BN({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?J.createElement(IN,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:r,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,VN={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},UN=(e,t)=>e.some((e=>t[e]>0));function GN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const YN=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){GN(e,t,n[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),J.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"})),KN=X.forwardRef(YN);function XN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const JN=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){XN(e,t,n[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),J.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"})),QN=X.forwardRef(JN);function ZN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const eq=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ZN(e,t,n[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),J.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"})),tq=X.forwardRef(eq);function nq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rq=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){nq(e,t,n[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),J.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"})),oq=X.forwardRef(rq);function iq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const aq=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){iq(e,t,n[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),J.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"})),lq=X.forwardRef(aq);function sq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const uq=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){sq(e,t,n[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),J.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"})),cq=X.forwardRef(uq);function dq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pq=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){dq(e,t,n[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),J.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"})),fq=X.forwardRef(pq);function mq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hq=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){mq(e,t,n[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),J.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"})),gq=X.forwardRef(hq);function bq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const vq=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){bq(e,t,n[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),J.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"})),yq=X.forwardRef(vq);function xq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Sq=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){xq(e,t,n[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),J.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"})),Eq=X.forwardRef(Sq);let wq=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const Cq=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c})=>{const d=[];if(n[wq.SORTING]){const{isActivelySorted:n,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:n,isSortedByFirstMeasure:r})=>{let o=!n&&!e||"D"===t,i=!n&&!e||"A"===t;return r&&(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")),r(!1)},icon:KN,enabled:a,isActive:!!n&&"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")),r(!1)},icon:oq,enabled:l,isActive:!!n&&"D"===i,autoFocus:!a&&l}]}])}if(e.isDim&&null!=i&&i.select){const e=[];n[wq.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:lq,enabled:!0}]}]),n[wq.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:Eq,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAll())},icon:cq,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectPossible())},icon:yq,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAlternative())},icon:fq,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectExcluded())},icon:gq,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.clear())},icon:QN,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&d.push(...e)}return n[wq.ADJUST_HEADER_SIZE]&&d.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==c||c(u)},icon:tq,enabled:!0}]}]),d},Rq=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const m=dk({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:b}=r,{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:S}=(({headerData:e,app:t})=>{const[n,r]=X.useState(null),[o,i]=X.useState(VN);return X.useEffect((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:X.useCallback((()=>i(VN)),[]),updateSelectionActionsEnabledStatus:X.useCallback((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:UN(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:UN(["qSelected"],n.qStateCounts),canSelectPossible:UN(["qOption"],n.qStateCounts),canSelectAlternative:UN(["qAlternative"],n.qStateCounts),canSelectExcluded:UN(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),E=X.useCallback((()=>{const e=g?{qLibraryId:g,type:"dimension"}:b;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:n}=c;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sortCriteria:c.sortCriteria})}}),[c,b,g]);X.useEffect((()=>{e||(x(),null!=d&&d.model&&d.model.getLayout().then((e=>{S(e)})).catch((e=>console.error(e))))}),[e,x,S,null==d?void 0:d.model]);const w=X.useCallback((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?J.createElement(AN,{rightAligned:"right"===h,shouldShowMenuIcon:s,className:mk},s&&J.createElement(LN,{height:pk,className:fk,"data-testid":fk,isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},J.createElement(RN,null)),J.createElement(WN,{open:e,anchorEl:n.current,onClose:w,menuGroups:Cq({headerData:r,translator:m,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:E,interactions:i,fieldInstance:v,selectionActionsEnabledStatus:y,anchorRef:n,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),handleHeadCellMenuKeyDown:a})):null},kq=e=>e.isDark?{background:e.color,borderColor:Iw.DARK_MODE_BORDER,color:Iw.DARK_MODE_TEXT,disabledColor:Iw.DARK_MODE_DISABLED,iconColor:Iw.DARK_MODE_TEXT}:{background:e.color,borderColor:Iw.BORDER_MEDIUM,color:Iw.TEXT,disabledColor:Iw.DISABLED},Aq=kl(rS,{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}`}))),Lq=kl(ww,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),Pq=kl(mS,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)}))),Iq=kl(ox)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),Dq=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=X.useMemo((()=>kq(r.background)),[r]);if(!n.active)return null;const a=o?J.createElement(Aq,{footerStyle:i},e):null;return t?oy.createPortal(e,t):a},_q={},Mq=X.createContext(_q),Tq=()=>X.useContext(Mq),Oq=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,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=X.useMemo((()=>kq(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=dk({translator:d}),x=X.useMemo((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,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,n,r,o,i,a,l,s,u,c,y,p,f,m,h,b,g,v]);return J.createElement(Mq.Provider,{value:x},e)};let Nq=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),qq=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 zq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fq=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){zq(e,t,n[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),J.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),jq=X.forwardRef(Fq);function $q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Bq=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$q(e,t,n[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),J.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),Hq=X.forwardRef(Bq);function Wq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Vq=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Wq(e,t,n[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),J.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),Uq=X.forwardRef(Vq),Gq={FirstPage:Hq,PreviousPage:jq,NextPage:FN,LastPage:Uq,FirstPageRTL:Uq,PreviousPageRTL:FN,NextPageRTL:jq,LastPageRTL:Hq},Yq=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=Tq(),u=Gq[`${n}${"rtl"===r?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},Kq=()=>{const{pageInfo:e,width:t}=Tq(),n=0===e.page,{IconComponent:r,styledProps:o}=Yq({type:Nq.FirstPage,disabledCondition:n,pageNumber:0});return t<=qq.FirstPage?null:J.createElement(Pq,o,J.createElement(r,{height:pk}))},Xq=(e,t,n=!1)=>{n&&e.key===vk.TAB&&!e.shiftKey&&(zC(e),qC(e.target,t,!1))},Jq=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=Tq(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=Yq({type:Nq.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>Xq(e,t,r):null;return o<=qq.LastPage?null:J.createElement(Pq,kN({},l,{onKeyDown:s}),J.createElement(a,{height:pk}))},Qq=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=Tq(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=Yq({type:Nq.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>qq.FirstPage&&o>qq.LastPage)&&t.enabled?e=>Xq(e,t,r):null;return J.createElement(Pq,kN({},l,{onKeyDown:s}),J.createElement(a,{height:pk}))},Zq=()=>{const{pageInfo:e}=Tq(),t=0===e.page,{IconComponent:n,styledProps:r}=Yq({type:Nq.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return J.createElement(Pq,r,J.createElement(n,{height:pk}))},ez=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=Tq(),{page:o,rowsPerPage:i}=n;if(t<=qq.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return J.createElement(Iq,{variant:"caption"},a)},tz=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=Tq(),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 J.createElement(J.Fragment,null,J.createElement(Iq,{variant:"caption",id:d},u,":"),J.createElement(Lq,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},nz=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=Tq();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>qq.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=J.createElement(J.Fragment,null,t.rowsPerPageOptions.map((e=>J.createElement("option",{key:e,value:e},e))));return J.createElement(tz,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},rz=1e3,oz="…",iz=({totalPages:e,page:t})=>{const n=Math.min(e,rz),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-rz):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return J.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(J.createElement("option",{key:"startMoreOptions",value:oz,disabled:!0},oz)),o<e-1&&a.push(J.createElement("option",{key:"endMoreOptions",value:oz,disabled:!0},oz)),J.createElement(J.Fragment,null,a)},az=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=Tq(),{page:o}=e;if(t<=qq.SelectPage)return null;const i=J.createElement(iz,{totalPages:n,page:o});return J.createElement(tz,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})},lz=e=>J.createElement(Oq,e,J.createElement(nz,null),J.createElement(az,null),J.createElement(ez,null),J.createElement(Kq,null),J.createElement(Zq,null),J.createElement(Qq,null),J.createElement(Jq,null));var sz=X.memo(lz);const uz=e=>J.createElement(Dq,e,J.createElement(sz,e)),cz=gM(wT,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.color}))),dz=gM(wT,{shouldForwardProp:e=>"lines"!==e&&"allIconsDisabled"!==e&&"headCell"!==e&&"isPagination"!==e&&"wordBreak"!==e&&"virtualizedCell"!==e})((({lines:e,wordBreak:t,allIconsDisabled:n=!1,headCell:r=!1,isPagination:o=!1,virtualizedCell:i=!1})=>({lineHeight:"calc(4/3)",fontSize:"inherit",...(r||t||1===e)&&{height:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:r&&o?"break-word":"break-all",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",...r&&{whiteSpace:n||i?"normal":"nowrap"}}}))),pz=gM(wT)({overflow:"hidden",textOverflow:"ellipsis"});function fz(e,t){const n=X.useRef(!1);X.useEffect((()=>{n.current?e():n.current=!0}),t)}const mz=(e,t)=>{var n;return null===(n=e.getElementsByClassName("sn-table-row")[t[0]])||void 0===n?void 0:n.getElementsByClassName("sn-table-cell")[t[1]]},hz=e=>e.querySelector("td[tabindex='0'], th[tabindex='0']"),gz=e=>{const t=e.nextElementSibling;var n;return t?"HR"===t.tagName?gz(t):t:null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[0]},bz=e=>{const t=e.previousElementSibling;if(!t){var n,r;const t=null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n.length;return null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[t-1]}return"HR"===t.tagName?bz(t):t},vz=e=>{setTimeout((()=>{var t;const n=null===(t=e.current)||void 0===t||null===(t=t.closest(".sn-table-cell"))||void 0===t?void 0:t.querySelector(`.${yk}`);null==n||n.setAttribute("tabIndex","0"),null==n||n.focus()}),0)},yz=({focusType:e,cell:t})=>{if(t)switch(e){case wM.FOCUS:t.focus(),t.setAttribute("tabIndex","0");break;case wM.FOCUS_BUTTON:const e=t.querySelector(".sn-table-head-label");null==e||e.focus();break;case wM.BLUR:t.blur(),t.setAttribute("tabIndex","-1");break;case wM.ADD_TAB:t.setAttribute("tabIndex","0");break;case wM.REMOVE_TAB:t.setAttribute("tabIndex","-1")}},xz=({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,allowedRows:o})=>{yz({focusType:wM.REMOVE_TAB,cell:e.currentTarget});const i=((e,t,n,r={top:0,bottom:0})=>{const o=r.top>0,i=r.top,a=t.getElementsByClassName("sn-table-row").length-1-r.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[s,u]=n;switch(e.key){case EM.DOWN:s<a&&s++;break;case EM.UP:s>i&&s--;break;case EM.RIGHT:if(o)break;u<l?u++:s<a&&(s++,u=0);break;case EM.LEFT:if(o)break;u>0?u--:s>0&&(s--,u=l);break;case EM.HOME:(qO(e)||o)&&(s=i),o||(u=0);break;case EM.END:(qO(e)||o)&&(s=a),o||(u=l);break;case EM.PAGE_DOWN:s=Math.min(a,s+10);break;case EM.PAGE_UP:s=Math.max(i,s-10)}return[s,u]})(e,t,n,o),a=mz(t,i);return yz({focusType:wM.FOCUS,cell:a}),((e,t)=>{const n=t.getElementsByClassName("sn-table-container")[0];if(null==n||!n.scrollTo)return;const[r,o]=e;if(r<2)n.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")[r])||void 0===i?void 0:i.getElementsByClassName("sn-table-cell")[o];if(!a||!e)return;if(a.offsetTop-e.offsetHeight<n.scrollTop){const t=n.scrollTop-a.offsetHeight-e.offsetHeight;n.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(i,t),r(i),{nextCell:a,nextCellCoord:i}},Sz=(e,t,n,r)=>{var o;(yz({focusType:wM.REMOVE_TAB,cell:hz(t)}),n(e),r.enabled&&!r.active)?null===(o=r.focus)||void 0===o||o.call(r):yz({focusType:wM.ADD_TAB,cell:mz(t,e)})},Ez=(e,t,n)=>{X.useEffect((()=>{const r=e.current;if(!r)return;const o=e=>((e,t,n)=>{const r=e.currentTarget,o=e.relatedTarget,i=!(null==r||!r.contains(o)),a=null==o?void 0:o.closest(`.${hk}`);if(n.enabled&&!i&&!a&&!t.current&&r){var l;const e=r.querySelector(".sn-table-announcer-1"),t=r.querySelector(".sn-table-announcer-2");e&&t&&(e.innerHTML="",t.innerHTML=""),null===(l=n.blur)||void 0===l||l.call(n,!1)}})(e,t,n);return r.addEventListener("focusout",o),()=>{r.removeEventListener("focusout",o)}}),[e,t,n])},wz=(e,t,n)=>{X.useEffect((()=>{const r=e.current;if(!r)return;const o=e=>((e,t,n)=>{if(0===e.deltaX)return;e.stopPropagation();const r=n.scrollWidth-n.offsetWidth;let{scrollLeft:o}=n,i=o+e.deltaX;t&&(i=r+i),r>0&&(i<0||i>r+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(r,i)):Math.max(0,Math.min(r,i)))})(e,"rtl"===t,r),i=e=>{var t;n.scrollLeft=(null===(t=e.currentTarget)||void 0===t?void 0:t.scrollLeft)||0};return r.addEventListener("wheel",o),r.addEventListener("scroll",i),()=>{r.removeEventListener("wheel",o),r.removeEventListener("scroll",i)}}),[e,t,n])},Cz=(e,t=!1)=>e.key===EM.ESC&&!t||(e.key===EM.LEFT||e.key===EM.RIGHT)&&zO(e),Rz=e=>{var t;const{key:n,currentTarget:r}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:r;if(n===EM.DOWN||n===EM.UP){const t=e=>n===EM.DOWN?gz(e):bz(e);zC(e);let r=t(o);for(;r;){if("true"!==r.ariaDisabled){r.focus();break}r=t(r)}}},kz=({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,keyboard:l,paginationNeeded:s,totalsPosition:u,selectionsAPI:c})=>{if(e.currentTarget.classList.contains("excluded"))return void zC(e);const d=null==c?void 0:c.isModal();if(!Cz(e,d))switch(e.key){case EM.SPACE:zC(e),n.isSelectable&&o&&r({type:SM.SELECT,payload:{cell:n,evt:e,announce:a}});break;case EM.ENTER:zC(e),d&&(null==c||c.confirm(),a({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case EM.ESC:zC(e),null==c||c.cancel(),a({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case EM.TAB:(({evt:e,keyboard:t,isSelectionMode:n,paginationNeeded:r})=>{(null==t?void 0:t.enabled)&&n&&(e.shiftKey||!e.shiftKey&&!r)&&(zC(e),qC(e.currentTarget,t,e.shiftKey))})({evt:e,keyboard:l,isSelectionMode:d,paginationNeeded:s});break;case EM.C:zC(e),qO(e)&&kk(e.currentTarget);break;default:jO(e.key)&&(zC(e),(({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:l,isSelectionMode:s})=>{const u=l.atTop?2:1,c=[n.pageRowIdx+u,n.pageColIdx],d={top:s?u:0,bottom:s&&l.atBottom?1:0},{nextCell:p,nextCellCoord:f}=xz({evt:e,rootElement:t,cellCoord:c,setFocusedCellCoord:i,allowedRows:d});f[0]!==c[0]&&(((e,t,n)=>t.shiftKey&&e&&n.isSelectable)(o,e,n)?r({type:SM.SELECT_MULTI_ADD,payload:{cell:n,evt:e,announce:a}}):((e,t,n=!1)=>{n&&t&&e(t.classList.contains("selected")?{keys:["SNTable.SelectionLabel.SelectedValue"]}:{keys:["SNTable.SelectionLabel.NotSelectedValue"]})})(a,p,s))})({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:u,isSelectionMode:d}))}},Az=e=>{const{layout:t,rect:n,theme:r}=vN(mN,(e=>e.baseProps)),[o,i]=X.useState(0),[a,l]=X.useState(0);return X.useLayoutEffect((()=>{if(e.current){var t;const{offsetWidth:n=0,offsetHeight:r=0,clientWidth:o=0,clientHeight:a=0}=null!==(t=e.current)&&void 0!==t?t:{},s=r-a;l(n-o),i(s)}}),[e,t,n,r]),{xScrollbarWidth:o,yScrollbarWidth:a}},Lz=gM("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),Pz=gM(aO,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.active?"auto":"hidden",border:"none"}))),Iz=gM(HT,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),Dz=()=>oa.jsxs(oa.Fragment,{children:[oa.jsx(Lz,{className:"sn-table-announcer-1","aria-live":"polite","aria-atomic":"true"}),oa.jsx(Lz,{className:"sn-table-announcer-2","aria-live":"polite","aria-atomic":"true"})]}),_z=e=>e.stopPropagation(),Mz=({href:e,text:t,interactions:n,color:r})=>J.createElement(JS,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:_z,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),Tz=({layout:e,viewService:t,isImagesEnabled:n})=>{var r,o;let i=null===(r=t.viewState)||void 0===r?void 0:r.maxLineCount;var a,l;n&&(i=null!==(a=i)&&void 0!==a?a:null===(l=eN(e))||void 0===l||null===(l=l.content)||void 0===l?void 0:l.rowHeight);return{maxNbrLines:null!==(o=i)&&void 0!==o?o:3,isStaticNbrOfLines:void 0!==i}},Oz=({children:e,fontSize:t="",wordBreak:n=!1,isPagination:r=!1,virtualizedCell:o=!1,lines:i=3,headCell:a=!1,allIconsDisabled:l=!1})=>{if(a)return oa.jsx(dz,{component:"span",className:"sn-table-cell-text",lines:i,isPagination:r,headCell:!0,allIconsDisabled:l,children:e});const s=parseInt(t||IO,10),u=oa.jsx(dz,{component:"span",className:"sn-table-cell-text",wordBreak:n,lines:i,virtualizedCell:o,children:e});return n?u:oa.jsx(pz,{minHeight:s*PO,maxHeight:s*PO*i,children:u})},Nz=e=>{let t="center",n="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)?n="left":"flex-end"===(null==e?void 0:e.horizontal)&&(n="right"),`${n} ${t}`},qz=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},zz=({representation:e,textStyle:t,maxImageHeight:n,wrapInContainer:r})=>{const{url:o,text:i,imageSize:a,resolvedImagePosition:l}=e,s="fitHeight"===a,u=oa.jsx("img",{src:o,alt:i,style:{width:s?"auto":"100%",height:"100%",maxHeight:n,objectFit:qz(a),objectPosition:Nz(l),...t,overflow:"hidden"}});var c;return r?oa.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:s?n:"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},Fz=({cell:e,style:t,maxImageHeight:n,virtualizedCell:r})=>{const{flags:o}=vN(mN,(e=>e.env)),{interactions:i,viewService:a,layout:l}=vN(mN,(e=>e.baseProps)),s=vN(mN,(e=>{var t;return null===(t=e.selectionState.api)||void 0===t?void 0:t.isActive()})),{maxNbrLines:u}=Tz({viewService:a,layout:l,isImagesEnabled:o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")});let c=e.representation.text;return e.representation.type!==aL.Link||s||(c=oa.jsx(Mz,{href:e.representation.url,text:e.representation.text,interactions:i,color:t.cellForegroundColor})),e.representation.type===aL.Image?oa.jsx(zz,{representation:e.representation,textStyle:t,maxImageHeight:n,wrapInContainer:!r}):oa.jsx(Oz,{wordBreak:!e.isNumeric,fontSize:t.fontSize,lines:u,virtualizedCell:r,children:c})},jz=({selectionsAPI:e,selectionDispatch:t,setShouldRefocus:n,keyboard:r,tableWrapperRef:o})=>{X.useEffect((()=>{const i=()=>{t({type:SM.RESET})},a=()=>{t({type:SM.CLEAR})},l=()=>{var e;if(null!==(e=o.current)&&void 0!==e&&e.contains(document.activeElement))n();else if(r.enabled){var t;null===(t=r.blur)||void 0===t||t.call(r,!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,r,t,n,o])},$z=e=>parseInt(null!=e?e:MO.fontSize,10)*PO,Bz=({maxNbrLines:e,isStaticNbrOfLines:t,lineHeight:n})=>t?n*e+8+1:void 0,Hz=(e,t,n,r)=>({handleMouseDown:r=>{null==e||e(r);const o=r.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>n({type:SM.SELECT_MULTI_END});n({type:SM.SELECT_MOUSE_DOWN,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&n({type:SM.SELECT_MULTI_ADD,payload:{cell:t,evt:e,announce:r}})},handleMouseUp:e=>{0===e.button&&n({type:SM.SELECT_MOUSE_UP,payload:{cell:t,evt:e,announce:r}})}}),Wz=gM(XT,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),Vz=gM(yO,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e})((({hover:e,hoverColors:t})=>({"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),Uz=gM(nO,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...MO,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),Gz=gM(nO,{shouldForwardProp:e=>"atTop"!==e&&"headRowHeight"!==e&&"totalsStyle"!==e})((({totalsStyle:e,atTop:t,headRowHeight:n,theme:r})=>({...MO,...e,fontWeight:DO,position:"sticky",padding:r.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t&&n,bottom:!t&&0,verticalAlign:t?"bottom":"top"})));function Yz(e){return t=>{const{cell:n,styling:r,announce:o,onMouseDown:i}=t,a=vN(mN,(e=>BO(n,e.selectionState))),l=vN(mN,(e=>e.selectionDispatch)),{handleMouseDown:s,handleMouseOver:u,handleMouseUp:c}=Hz(i,n,l,o),d=function(e,t){let n={};switch(t){case xM.SELECTED:n=LO.SELECTED;break;case xM.POSSIBLE:n=LO.POSSIBLE;break;case xM.EXCLUDED:n={background:`${LO.EXCLUDED_BACKGROUND}, ${e.background}`,selectedCellClass:xM.EXCLUDED}}return{...e,...n}}(r,a);return oa.jsx(e,{...t,styling:d,onMouseUp:c,onMouseDown:s,onMouseOver:u})}}function Kz(e,t,n){let r=(o=Uz,e=>{const{styling:{selectedCellClass:t,...n},component:r,align:i,children:a,scope:l,tabIndex:s,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,title:m}=e;return oa.jsx(o,{cellStyle:n,component:r,scope:l,align:i,tabIndex:s,className:`sn-table-cell ${t||""} ${bk}`,title:m,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,children:a})});var o;return t&&(r=Yz(r)),e&&(r=function(e,t){return n=>{const{cell:r,column:o,styling:i}=n,a=X.useMemo((()=>iN(i,r.qAttrExps,o.qAttrExprInfoIDs,t)),[i,r.qAttrExps,o.qAttrExprInfoIDs]);return oa.jsx(e,{...n,styling:a})}}(r,n)),r}const Xz=(e,{atTop:t,atBottom:n},r)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!r&&n?e.grid.divider:e.grid.border,borderBottomColor:r&&!t||!r&&t?e.grid.divider:e.grid.border}),Jz=()=>{const{columns:e,totalsPosition:t,rows:n}=vN(mN,(e=>e.tableData)),{rootElement:r,selectionsAPI:o,keyboard:i,styleService:a,interactions:l}=vN(mN,(e=>e.baseProps)),s=vN(mN,(e=>e.headRowHeight)),u=vN(mN,(e=>e.setFocusedCellCoord));return oa.jsx(yO,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,c)=>{const d=[t.atTop?1:n.length+1,c];return oa.jsx(Gz,{totalsStyle:{...a.totalRow,...Xz(a,t,!1)},headRowHeight:s,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${bk}`,tabIndex:-1,title:l.passive?e.totalInfo:void 0,onKeyDown:e=>{((e,t,n,r,o=!1)=>{if(o)zC(e);else if(!Cz(e))switch(e.key){case EM.C:zC(e),qO(e)&&kk(e.currentTarget);break;case EM.SPACE:e.preventDefault();break;default:jO(e.key)&&(zC(e),xz({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r}))}})(e,r,d,u,null==o?void 0:o.isModal())},onMouseDown:()=>{Sz(d,r,u,i)},children:oa.jsx(Oz,{wordBreak:!e.isTotalNumeric,fontSize:a.totalRow.fontSize,children:e.totalInfo})},e.id)}))})};var Qz=X.memo(Jz);const Zz=({setShouldRefocus:e,tableWrapperRef:t,announce:n})=>{var r;const{rows:o,columns:i,paginationNeeded:a,totalsPosition:l}=vN(mN,(e=>e.tableData)),{selectionsAPI:s,rootElement:u,keyboard:c,layout:d,interactions:p,styleService:f,viewService:m}=vN(mN,(e=>e.baseProps)),h=vN(mN,(e=>e.setFocusedCellCoord)),g=vN(mN,(e=>e.selectionDispatch)),{flags:b}=vN(mN,(e=>e.env)),v=!!p.active&&!!p.select,y=JSON.stringify(i.map((e=>e.qAttrExprInfoIDs))),x=X.useMemo((()=>JSON.parse(y).map((e=>{const t=e.some((e=>["cellBackgroundColor","cellForegroundColor",b.isEnabled("CLIENT_IM_6573_TEXT_STYLE")&&"textStyleExpression"].includes(e)));return Kz(t,v,b)}))),[y,v,b]),S=!(null===(r=eN(d))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect),{maxNbrLines:E,isStaticNbrOfLines:w}=Tz({viewService:m,layout:d,isImagesEnabled:b.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")}),C=$z(f.dimension.values.fontSize),R=Bz({maxNbrLines:E,isStaticNbrOfLines:w,lineHeight:C});return jz({keyboard:c,selectionDispatch:g,selectionsAPI:s,setShouldRefocus:e,tableWrapperRef:t}),oa.jsxs(Wz,{lastRowBottomBorder:f.grid.lastRowBottomBorder,children:[l.atTop?oa.jsx(Qz,{}):void 0,o.map(((e,t)=>oa.jsx(Vz,{hoverColors:f.grid.hoverColors,hover:S,tabIndex:-1,className:"sn-table-row sn-table-data-row",rowindex:t,height:R,children:i.map(((t,r)=>{const{id:o}=t,i=e[r],d=x[r],m=iN({},i.qAttrExps,t.qAttrExprInfoIDs,b);let y=t.isDim?f.dimension.values:f.measure.values;return i.isNull&&(y={...y,...f.nullValues}),d&&oa.jsx(d,{scope:0===r?"row":void 0,component:0===r?"th":void 0,cell:i,column:t,align:i.align,styling:{...y,borderColor:f.grid.border},tabIndex:-1,announce:n,title:p.passive?i.representation.text:void 0,onKeyDown:e=>{kz({evt:e,rootElement:u,selectionsAPI:s,cell:i,selectionDispatch:g,isSelectionsEnabled:v,setFocusedCellCoord:h,announce:n,keyboard:c,paginationNeeded:a,totalsPosition:l})},onKeyUp:e=>((e,t)=>{e.key===EM.SHIFT&&t({type:SM.SELECT_MULTI_END})})(e,g),onMouseDown:()=>((e,t,n,r,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,l=o.atTop?i+2:i+1;Sz([l,a],t,n,r)})(i,u,h,c,l),children:oa.jsx(Fz,{cell:i,style:m,maxImageHeight:w?C*E:C})},o)}))},`row-${t}`))),l.atBottom?oa.jsx(Qz,{}):void 0]})};var eF=X.memo(Zz);const tF=({column:e,isLastColumn:t,onColumnResize:n,setIsAdjustingWidth:r})=>{const{pageColIdx:o}=e,{applyColumnWidths:i,interactions:a}=vN(mN,(e=>e.baseProps)),l=vN(mN,(e=>e.columnWidths)),s=vN(mN,(e=>e.setColumnWidths));if(!a.active)return null;return oa.jsx(EN,{columnWidth:l[o],isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{null==n||n();const t=[...l];t[o]=e,s(t)},confirmWidthCallback:t=>{i(t,e)},handleBlur:e=>(e=>{e.setAttribute("tabIndex","-1");const t=e.closest(".sn-table-cell");yz({focusType:wM.FOCUS,cell:t})})(e.currentTarget),setIsAdjustingWidth:r})};function nF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rF=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){nF(e,t,n[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),J.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"})),oF=X.forwardRef(rF);function iF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const aF=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){iF(e,t,n[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),J.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"})),lF=X.forwardRef(aF);function sF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const uF=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){sF(e,t,n[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),J.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"}),J.createElement("use",{fillRule:"evenodd"})),cF=X.forwardRef(uF),dF=gM("div")({position:"absolute",left:0,bottom:0}),pF=gM(wT,{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"})));gM("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1});const fF=gM(wT,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})((({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:n})=>{const r=e?"24px":"";let o;switch(n){case"left":o={gridTemplateColumns:t?`20px 2fr ${r}`:`1fr ${r}`};break;case"center":{const n=e||t;o={gridTemplateColumns:n?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:n?2:1},[`& .${mk}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${r} 2fr 20px`:`${r} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:2},[`& .${mk}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),mF=gM(wT,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})));gM(wT,{shouldForwardProp:e=>"isVisible"!==e&&"rightAligned"!==e})((({rightAligned:e})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:"24px",display:"flex"}))),gM(NT)((({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"}}))),gM("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),gM(IT)((({theme:e})=>({marginRight:e.spacing(1.5),lineHeight:0}))),gM("div")((({theme:e})=>({height:"350px",boxSizing:"border-box",background:e.palette.common.white})));const hF=gM(nO,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:n,background:r})=>({...MO,...e,cursor:t.active?"pointer":"default",background:r,verticalAlign:"bottom","&&:focus-visible, &&:hover":{background:t.active?n:r}})));gM("div")({display:"flex",alignItems:"center"});const gF=gM("span",{shouldForwardProp:e=>"align"!==e})((({align:e})=>({minWidth:IO,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),bF=({column:e,isInteractionEnabled:t,open:n,setOpen:r,allColumnsIconVisibilityStatusRef:o,isPagination:i})=>{const{translator:a,changeSortOrder:l,interactions:s,embed:u,app:c,model:d,styleService:p}=vN(mN,(e=>e.baseProps)),f=vN(mN,(t=>t.columnWidths[e.pageColIdx])),m=X.useRef(null),h=X.useRef(null),{getHeadCellsIconsVisibilityStatus:g,allIconsDisabled:b}=(({styleService:e,column:t,columnWidth:n})=>{const{measureText:r}=ak({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:DO}),o=X.useCallback((()=>{let e=!1,o=!1,i=!1;const a=t.isLocked,l=t.isActivelySorted,s=n-25,u=a?20:0,c=l?20:0;let d=r(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,n,r]);return{getHeadCellsIconsVisibilityStatus:o,allIconsDisabled:Object.values(o()).every((e=>!1===e))}})({styleService:p,column:e,columnWidth:f}),v=g(),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:n,shouldShowLockIcon:r})=>{const o="A"===e?oa.jsx(oF,{height:IO,"data-testid":"head-cell-sort-ascending-icon"}):oa.jsx(lF,{height:IO,"data-testid":"head-cell-sort-descending-icon"}),i=n?oa.jsx(gF,{align:t,children:o}):void 0,a=r?oa.jsx(mF,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:oa.jsx(cF,{height:IO,"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 oa.jsxs(fF,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:e.headTextAlign,children:[S,oa.jsxs(pF,{className:"sn-table-head-label",textAlign:e.headTextAlign,children:[y,oa.jsx(Oz,{allIconsDisabled:b,isPagination:i,virtualizedCell:!i,headCell:!0,children:e.label}),x]}),t&&oa.jsxs(oa.Fragment,{children:[oa.jsx(Rq,{headerData:e,translator:a,anchorRef:m,handleHeadCellMenuKeyDown:Rz,menuAvailabilityFlags:{[wq.SORTING]:!0,[wq.SEARCHING]:!0,[wq.SELECTIONS]:!0,[wq.ADJUST_HEADER_SIZE]:!0},open:n,setOpen:r,interactions:s,sortRelatedArgs:{sortFromMenu:(t,n)=>(t.stopPropagation(),l(e,n))},searchRelatedArgs:{embed:u,listboxRef:h},selectionRelatedArgs:{app:c,model:d},adjustHeaderSizeRelatedArgs:{setFocusOnColumnAdjuster:vz},shouldShowMenuIcon:v.shouldShowMenuIcon}),oa.jsx(dF,{ref:h}),oa.jsx(dF,{ref:m})]})]})},vF=({isInteractionEnabled:e,columnsData:t})=>{const[n,r]=X.useState(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=(e=>{const[t,n]=X.useState(!1);return uk((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}})([t]);return{open:n,setOpen:r,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(yk)})(t)&&!o&&r(!0),setIsAdjustingWidth:i}},yF=({column:e,columnIndex:t,columnsLength:n})=>{const{interactions:r,rootElement:o,keyboard:i,styleService:a}=vN(mN,(e=>e.baseProps)),{columns:l,totalsPosition:s}=vN(mN,(e=>e.tableData)),u=vN(mN,(e=>e.columnWidths[t])),c=vN(mN,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),d=vN(mN,(e=>e.setFocusedCellCoord)),p=vN(mN,(({focusedCellCoord:[e,n]})=>0===e&&n===t)),f=!!r.active&&!c,{open:m,setOpen:h,handleOpenMenu:g,setIsAdjustingWidth:b}=vF({isInteractionEnabled:f,columnsData:l}),v=e.isActivelySorted?CM[e.sortDirection]:void 0,y=m?gk:void 0,x=m?"true":void 0,S=t===n-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 oa.jsxs(hF,{headerStyle:{...a.header,...Xz(a,s,!0)},background:m?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:r,style:w,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${bk}`,tabIndex:C,title:r.passive?e.label:void 0,onKeyDown:e=>(({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,isInteractionEnabled:o,handleOpenMenu:i})=>{if(o){if(!Cz(e))switch(e.key){case EM.C:zC(e),qO(e)&&kk(e.currentTarget);break;case EM.ENTER:case EM.SPACE:i&&i(e);break;default:jO(e.key)&&(zC(e),xz({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r}))}}else zC(e)})({evt:e,rootElement:o,cellCoord:E,setFocusedCellCoord:d,isInteractionEnabled:f,handleOpenMenu:g}),onMouseDown:e=>(({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,keyboard:o,isInteractionEnabled:i})=>{var a;e.preventDefault(),i&&(r(n),o.enabled&&!o.active?null===(a=o.focus)||void 0===a||a.call(o):yz({focusType:wM.FOCUS,cell:mz(t,n)}))})({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:[oa.jsx(bF,{column:e,isInteractionEnabled:f,open:m,setOpen:h,isPagination:!0}),oa.jsx(tF,{column:e,isLastColumn:S,setIsAdjustingWidth:b})]},e.id)},xF=()=>{var e;const{columns:t}=vN(mN,(e=>e.tableData)),{styleService:n,viewService:r}=vN(mN,(e=>e.baseProps)),o=vN(mN,(e=>e.setHeadRowHeight)),i=vN(mN,(e=>e.columnWidths)),a=X.useRef(null);return X.useEffect((()=>{a.current&&o(a.current.clientHeight)}),[n.header.fontSize,i,o]),null!==(e=r.viewState)&&void 0!==e&&e.skipHeader?null:oa.jsx(pO,{children:oa.jsx(yO,{ref:a,className:"sn-table-row sn-table-head-row",children:t.map(((e,n)=>oa.jsx(yF,{column:e,columnIndex:n,columnsLength:t.length},e.id)))})})};var SF=X.memo(xF);const EF=e=>{var t,n;const{pageInfo:r,setPageInfo:o,direction:i,footerContainer:a,announce:l}=e,{page:s,rowsPerPage:u}=r,{totalColumnCount:c,totalRowCount:d,totalPages:p,paginationNeeded:f,rows:m,columns:h,totalsPosition:g}=vN(mN,(e=>e.tableData)),{rootElement:b,keyboard:v,translator:y,theme:x,interactions:S,styleService:E,viewService:w,layout:C,rect:R}=vN(mN,(e=>e.baseProps)),k=vN(mN,(e=>e.focusedCellCoord)),A=vN(mN,(e=>e.setFocusedCellCoord)),L=vN(mN,(e=>e.setYScrollbarWidth)),P=vN(mN,(e=>e.showRightBorder)),I=vN(mN,(e=>e.selectionDispatch)),D=vN(mN,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),_=X.useRef(!1),M=X.useRef(null),T=X.useRef(null),{yScrollbarWidth:O}=Az(M),N=`${y.get("SNTable.Accessibility.RowsAndColumns",[String(m.length),String(h.length)])} ${y.get("SNTable.Accessibility.NavigationInstructions")}`,q=pI(C,w),z=q&&null!==(t=w.scrollLeft)&&void 0!==t?t:0,F=q&&null!==(n=w.rowPartialHeight)&&void 0!==n?n:0,j=X.useCallback((()=>{_.current=b.getElementsByTagName("table")[0].contains(document.activeElement)}),[b]),$=X.useCallback((e=>{o({...r,page:e}),l({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),p.toString()]],politeness:"assertive"})}),[r,o,p,l]),B=X.useCallback((e=>{o({...r,page:0,rowsPerPage:e}),l({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[l,r,o]);return Ez(T,_,v),wz(M,i,w),(()=>{const{rootElement:e,keyboard:t}=vN(mN,(e=>e.baseProps)),n=vN(mN,(e=>e.focusedCellCoord));uk((()=>{const r=t.active?wM.FOCUS:wM.BLUR,o=t.active?mz(e,n):hz(e);yz({focusType:r,cell:o})}),[t.active,e])})(),X.useEffect((()=>{const e=M.current;e&&(e.scrollLeft=z,e.scrollTop=F)}),[r,d,z,F]),fz((()=>{(({focusedCellCoord:e,rootElement:t,shouldRefocus:n,isSelectionMode:r,setFocusedCellCoord:o,keyboard:i,announce:a,totalsPosition:l})=>{yz({focusType:wM.REMOVE_TAB,cell:hz(t)});const s=[l.atTop?2:1,e[1]],u=r?s:LM;if(o(u),!(e=>!e.enabled||e.active)(i))return;const c=n.current?wM.FOCUS:wM.ADD_TAB;n.current=!1;const d=mz(t,u);if(yz({focusType:c,cell:d}),r){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:k,rootElement:b,shouldRefocus:_,setFocusedCellCoord:A,isSelectionMode:D,keyboard:v,announce:l,totalsPosition:g})}),[m.length,d,c,s]),fz((()=>{L(O)}),[O]),fz((()=>{I({type:SM.UPDATE_PAGE_ROWS,payload:{pageRows:m}})}),[m]),oa.jsxs(cz,{ref:T,background:x.background,dir:i,onKeyDown:e=>{(({evt:e,totalRowCount:t,page:n,rowsPerPage:r,handleChangePage:o,setShouldRefocus:i,keyboard:a,isSelectionMode:l})=>{if(zO(e)){zC(e);const a=Math.ceil(t/r)-1;e.key===EM.RIGHT&&n<a?(i(),o(n+1)):e.key===EM.LEFT&&n>0&&(i(),o(n-1))}else if(e.key===EM.ESC&&a.enabled&&!l){var s;zC(e),null===(s=a.blur)||void 0===s||s.call(a,!0)}else FO(e.key)&&zC(e)})({evt:e,totalRowCount:d,page:s,rowsPerPage:u,handleChangePage:$,setShouldRefocus:j,keyboard:v,isSelectionMode:D})},"data-testid":"sn-table",children:[oa.jsx(Dz,{}),oa.jsx(Pz,{ref:M,className:"sn-table-container",fullHeight:a||!S.active||!f,interactions:S,tabIndex:-1,role:"application","data-testid":"table-container",children:oa.jsxs(Iz,{stickyHeader:!0,"aria-label":N,borderRight:P?`1px solid ${E.grid.border}`:void 0,children:[oa.jsx(SF,{}),oa.jsx(eF,{...e,setShouldRefocus:j,tableWrapperRef:T})]})}),oa.jsx(uz,{footerContainer:a,pageInfo:r,paginationNeeded:f,theme:x,totalRowCount:d,totalColumnCount:c,totalPages:p,keyboard:v,translator:y,interactions:S,rect:R,layout:C,handleChangePage:$,handleChangeRowsPerPage:B,isSelectionMode:D})]})};var wF=X.memo(EF);function CF(){return CF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CF.apply(this,arguments)}function RF(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kF(e,t){return kF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kF(e,t)}function AF(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,kF(e,t)}var LF=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function PF(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||LF(r)&&LF(o)))return!1;var r,o;return!0}function IF(e,t){var n;void 0===t&&(t=PF);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}function DF(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var _F="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function MF(e){cancelAnimationFrame(e.id)}function TF(e,t){var n=_F();var r={id:requestAnimationFrame((function o(){_F()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var OF=-1;function NF(e){if(void 0===e&&(e=!1),-1===OF||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),OF=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return OF}var qF=null;function zF(e){if(void 0===e&&(e=!1),null===qF||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?qF="positive-descending":(t.scrollLeft=1,qF=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),qF}return qF}var FF=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function jF(e){var t,n=e.getColumnOffset,r=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 r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,RF(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:RF(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=IF((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=IF((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=r._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(r.props,e,r._instanceProps),height:c(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=IF((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,u=i;if("rtl"===t)switch(zF()){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-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&MF(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=TF(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}AF(t,e),t.getDerivedStateFromProps=function(e,t){return $F(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=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=NF();void 0!==r&&(r=Math.max(0,Math.min(r,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!==r?s(this.props,r,n,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(zF()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&MF(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=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?FF: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(),R=C[0],k=C[1],A=[];if(r>0&&g)for(var L=R;L<=k;L++)for(var P=E;P<=w;P++)A.push(X.createElement(t,{columnIndex:P,data:d,isScrolling:v?x:void 0,key:f({columnIndex:P,data:d,rowIndex:L}),rowIndex:L,style:this._getItemStyle(L,P)}));var I=a(this.props,this._instanceProps),D=l(this.props,this._instanceProps);return X.createElement(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:CF({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},X.createElement(u||c||"div",{children:A,ref:s,style:{height:I,pointerEvents:x?"none":void 0,width:D}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&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 r){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,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(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,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||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}(X.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var $F=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},BF=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},HF=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},WF=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},VF=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?UF(e,t,n,i,0,r):GF(e,t,n,Math.max(0,i),r)},UF=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=WF(e,t,a,n).offset;if(l===i)return a;l<i?o=a+1:l>i&&(r=a-1)}return o>0?o-1:0},GF=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&WF(e,t,r,n).offset<o;)r+=a,a*=2;return UF(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},YF=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=WF(e,t,n,i),u="column"===e?HF(t,i):BF(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===r&&(r=o>=d-l&&o<=c+l?"auto":"center"),r){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}},KF=jF({getColumnOffset:function(e,t,n){return WF("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return VF("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=WF("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=WF("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:BF,getEstimatedTotalWidth:HF,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return YF("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return YF("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return WF("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return VF("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=WF("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=WF("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),XF=function(e,t){return e};function JF(e){var t,n=e.getItemOffset,r=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 r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,RF(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:RF(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=IF((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=IF((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,c=r._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._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},r._getItemStyleCache=void 0,r._getItemStyleCache=IF((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(zF()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&MF(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=TF(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}AF(t,e),t.getDerivedStateFromProps=function(e,t){return QF(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 n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?NF():0:s.scrollHeight>s.clientHeight?NF():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(zF()){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&&MF(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=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?XF: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],R=[];if(u>0)for(var k=w;k<=C;k++)R.push(X.createElement(t,{data:c,key:p(k,c),index:k,isScrolling:b?y:void 0,style:this._getItemStyle(k)}));var A=r(this.props,this._instanceProps);return X.createElement(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:CF({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},X.createElement(l||s||"div",{children:R,ref:a,style:{height:x?"100%":A,pointerEvents:y?"none":void 0,width:x?A:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,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,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.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,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(X.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var QF=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},ZF=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.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=r(s);o[s]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},ej=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=ZF(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},tj=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&ZF(e,n,t).offset<r;)n+=i,i*=2;return ej(e,t,Math.min(n,o-1),Math.floor(n/2),r)},nj=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},rj=JF({getItemOffset:function(e,t,n){return ZF(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:nj,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=ZF(e,t,o),p=nj(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=m-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return r>=m&&r<=f?r:r<m?m:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?ej(e,t,o,0,n):tj(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){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=ZF(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=ZF(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function oj(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var ij=["style"],aj=["style"];function lj(e,t){var n=e.style,r=DF(e,ij),o=t.style,i=DF(t,aj);return!oj(n,o)&&!oj(r,i)}const sj=({style:e})=>oa.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var uj=J.memo(sj,lj);const cj=()=>{},dj=e=>e.preventDefault();const pj=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o,i;const{rowsInPage:a,columns:l,isHoverEnabled:s,maxImageHeight:u}=r,{flags:c}=vN(mN,(e=>e.env)),d=vN(mN,(e=>e.hoverIndex===t)),p=vN(mN,(e=>e.setHoverIndex)),{interactions:f,styleService:m}=vN(mN,(e=>e.baseProps)),h=vN(mN,(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}=vN(mN,(e=>e.baseProps)),n=vN(mN,(e=>e.selectionDispatch)),r="object"==typeof e,o=vN(mN,(t=>r?BO(e,t.selectionState):xM.INACTIVE)),i=t.active&&t.select;if(r&&i){const{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i}=Hz(dj,e,n,cj);return{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g);let S={borderColor:m.grid.border,...m.measure.values};if(null!==(i=l[e])&&void 0!==i&&i.isDim&&(S={borderColor:m.grid.border,...m.dimension.values}),null!=g&&g.isNull&&(S={...S,...m.nullValues}),"object"==typeof g){var E;const r=((e,t,n,r,o,i,a)=>{const l=t.qAttrExprInfoIDs.length?iN(o,e.qAttrExps,t.qAttrExprInfoIDs,a):o;return r===xM.SELECTED?{...l,...LO.SELECTED}:r===xM.EXCLUDED?{...l,color:n?null==i?void 0:i.color:l.color,background:`${LO.EXCLUDED_BACKGROUND}, ${n?null==i?void 0:i.background:l.background}`}:n?{...l,...i}:l})(g,l[e],s&&d,x,S,m.grid.hoverColors,c),o={rowindex:t,columnindex:e};return oa.jsx("div",{className:`sn-table-cell ${x} ${bk}`,style:{...n,...r,display:"flex",alignItems:"start",borderWidth:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:g.isLastColumn&&!h?"0px":"1px",borderStyle:"solid",justifyContent:g.representation.type===aL.Image&&"fitHeight"===g.representation.imageSize?null===(E=g.representation)||void 0===E||null===(E=E.resolvedImagePosition)||void 0===E?void 0:E.horizontal:g.align,padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden"},onMouseDown:b,onMouseUp:y,onMouseOver:v,onMouseEnter:s?()=>p(t):void 0,onMouseLeave:s?()=>p(-1):void 0,title:f.passive?g.representation.text:void 0,...o,children:oa.jsx(Fz,{cell:g,style:r,maxImageHeight:u,virtualizedCell:!0})})}return oa.jsx(uj,{style:{...n,...S,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var fj=J.memo(pj,lj);const mj=e=>{const t=X.useRef(e);return t.current=e,t},hj=({qLeft:e,qTop:t,qWidth:n,qHeight:r})=>`${e}-${t}-${n}-${r}`,gj=(e,t,n,r,o)=>{const i=e[n];if(!i)return!0;for(let e=t;e<t+r;e++){const t=i[e];if((null==t?void 0:t.rowIdx)!==o)return!0}return!1},bj=(e,t,n,r)=>{const o=e.slice(n,r);return 0===o.length||o.some((e=>!(null!=e&&e[t])))},vj=(e,t,n,r,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,n,r,o,i,a,l,s)=>{var u;const{qSize:c}=a.qHyperCube,d=r.qTop+n,p=o+n,f=null!==(u=e[p])&&void 0!==u?u:[];return t.forEach(((e,t)=>{var n,o;const a=t+r.qLeft,{colIdx:u,isDim:m,isLocked:h,bodyTextAlign:g,selectionColIdx:b,qAttrExprInfoIndex:v,representation:y}=i[a],x=rI(e);f[a]=null!==(n=f[a])&&void 0!==n?n:{id:eP(),...e,align:cI(e,g),rowIdx:d,colIdx:u,isSelectable:m&&!h,pageRowIdx:p,pageColIdx:a,selectionColIdx:b,isLastRow:d===c.qcy-1,isLastColumn:a===c.qcx-1,isNumeric:x,isNull:tI(e,m),representation:eI(e,y,v,s)},l(null!==(o=f[a].representation.text)&&void 0!==o?o:"",p,a,x)})),{row:f,pageRowIdx:p}})(n,l,s,e.qArea,u,r,o,i,a);n[d]=c}))}))},yj=({layout:e,model:t,theme:n,initialDataPages:r,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:l,columns:s,setCellSize:u,gridState:c})=>{const d=vN(mN,(e=>e.env)),p=X.useRef([]),f=mj(u),m=X.useCallback(((t,n)=>{const r=Array.isArray(n)?n.slice(0,i):(e=>Array(e).fill(void 0))(i);return vj(t,o,r,s,e,f.current,d),p.current=r,r}),[i,o,s,e,f,d]),[h,g]=X.useState((()=>m(null!=r?r:[])));uk((()=>{g(m(null!=r?r:[]))}),[r]);const b=((e,t)=>{const n=X.useRef(new Set),r=X.useRef(new Set),o=X.useRef(new Set),i=mj(e),a=mj(t),l=X.useMemo((()=>({enqueue:e=>{const t=hj(e);o.current.has(t)||(n.current.add(e),o.current.add(t),1===n.current.size&&setTimeout((async()=>{const e=Array.from(n.current.values());if(0!==e.length){n.current.clear(),r.current.add(e);try{const t=(e=>{const t=[];return e.forEach((e=>{if(t.length>0){const n=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(n,e)?n.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(n,e)?n.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})})),t})(e),n=await i.current(t);r.current.has(e)&&a.current(n)}catch(t){e.forEach((e=>{o.current.delete(hj(e))}))}finally{r.current.delete(e)}}}),75))},clear:()=>{n.current.clear(),r.current.clear(),o.current.clear()}})),[i,a]);return l})((e=>t.getHyperCubeData("/qHyperCubeDef",e)),(e=>g((t=>m(e,t))))),v=X.useCallback(((e,t,n,r)=>{for(let o=e;o<e+n;o++)if(bj(p.current,o,t,r)){const e={qLeft:o,qTop:t,qHeight:r,qWidth:1};b.enqueue(e)}}),[p,b]),y=X.useCallback(((e,t,n,r)=>{for(let i=t;i<t+r;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(gj(p.current,e,t,n,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:n};b.enqueue(t)}}}),[p,b,o]);return X.useEffect((()=>{const{qcx:t,qcy:n}=e.qHyperCube.qSize,r=c.current.overscanRowStartIndex,i=c.current.overscanColumnStartIndex,s=r+o.page*o.rowsPerPage,u=t-i,d=o.rowsPerPage-r,p=Math.min(100,u,t,l+5),f=Math.min(100,d,n,a+25);return y(i,s,p,f),()=>{b.clear()}}),[e,a,l,o,b,y,c,n]),{rowsInPage:h,loadRows:y,loadColumns:v}},xj=({style:e,numericStyle:t,columnWidths:n,rowHeight:r,pageInfo:o,rowCount:i,gridRef:a,lineRef:l,columns:s,gridState:u,isSnapshot:c,viewService:d,maxNbrLines:p=3,isStaticNbrOfLines:f,allColumnsIconVisibilityStatus:m})=>{var h;const g=X.useRef({lastScrollToRatio:0,resetAfterRowIndex:0,heights:[],totalHeight:0,count:0,measuredCells:new Map}),{layout:b,rect:v}=vN(mN,(e=>e.baseProps)),[y,x]=X.useState(r||24),{measureText:S,estimateLineCount:E}=ak(e,{maxNbrLinesOfText:p}),w=$z(e.fontSize),C=$z(null!==(h=null==t?void 0:t.fontSize)&&void 0!==h?h:e.fontSize),R=8e6/i-8-1,k=Math.max(0,Math.min(p,Math.round(R/w))),A=Bz({maxNbrLines:k,isStaticNbrOfLines:f,lineHeight:w}),L=f?k*w:w,P=X.useCallback(((e,t,r)=>{var o;const i=s?(({width:e,columnIconsVisibilityStatus:t})=>{let n=0,r=0,o=0,i=0;if(t){const{shouldShowLockIcon:e,shouldShowSortIcon:n,shouldShowMenuIcon:a}=t;r=e?20:0,o=n?20:0,i=a?24:0}return n=e-25-r-o-i,Math.max(0,n)})({width:n[t],columnIconsVisibilityStatus:null==m?void 0:m[t]}):(e=>Math.max(0,e-24-1))(n[t]),a=Math.min(k,E({text:e.trim(),maxWidth:i,isNumeric:r})),l=null!=s&&null!==(o=s[t])&&void 0!==o&&o.isDim?w:C;return Math.max(1,a)*l+8+1}),[n,w,C,k,s,E,m]),I=X.useCallback(((e,t,n,o=!1,i=!1)=>{const a=`${t}-${n}`;if(g.current.measuredCells.has(a))return;if(f)return g.current.measuredCells.set(a,[e,t,n,o]),void x(A);g.current.measuredCells.set(a,[e,t,n,o]);const l=r||24,d=((e,t,n)=>{var r;return(null==t||null===(r=t[e].representation)||void 0===r?void 0:r.type)===aL.Image&&n})(n,s,u)?l:P(e,n,o),p=g.current.heights[t],m=d-p;m>0?(g.current.totalHeight+=m,g.current.heights[t]=d):void 0===p&&(g.current.count+=1,g.current.totalHeight+=d,g.current.heights[t]=d),i||c||x(g.current.totalHeight/g.current.count)}),[P,c,f,A,s,r,u]),D=X.useCallback((e=>{var t;return null!==(t=g.current.heights[e])&&void 0!==t?t:y}),[g,y]),_=X.useCallback((()=>{g.current.lastScrollToRatio=0,g.current.resetAfterRowIndex=0,g.current.heights=[],g.current.totalHeight=0,g.current.count=0,g.current.measuredCells.clear()}),[g]),M=mj(I),T=X.useCallback((()=>{if(f)return void _();const e=new Map(g.current.measuredCells);_(),e.forEach((([e,t,n,r])=>{M.current(e,t,n,r,!0)})),c||x(g.current.totalHeight/g.current.count)}),[_,c,M,f]);uk((()=>{_()}),[b,o]),uk((()=>{T()}),[S,v.width]);return null!=a&&a.current?a.current.resetAfterRowIndex(g.current.resetAfterRowIndex,!1):null!=l&&l.current&&l.current.resetAfterIndex(g.current.resetAfterRowIndex,!1),d.estimatedRowHeight=y,{setCellSize:I,getRowHeight:D,rowMeta:g,estimatedRowHeight:y,maxLineCount:k,resizeVisibleCells:e=>{if(!u||f)return;_();const{overscanRowStartIndex:t,overscanRowStopIndex:n}=u.current,r=Math.min(n,b.qHyperCube.qSize.qcy-1);for(let n=t;n<=r;n++){var o;const t=null!==(o=e[n])&&void 0!==o?o:{};Object.values(t).forEach((e=>{var t;"object"==typeof e&&I(null!==(t=e.representation.text)&&void 0!==t?t:"",n,e.pageColIdx,e.isNumeric)}))}},resizeAllCells:T,resetRowMeta:_,maxImageHeight:L}};var Sj;!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(Sj||(Sj={}));const Ej={enabled:!1},wj=()=>{},Cj={current:null};const Rj=(e,t,n,r,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(n.height/o)),l=X.useMemo((()=>r.reduce(((e,t)=>e.width<n.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[n,r]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:l}},kj=({columnIndex:e,data:t,rowIndex:n})=>{var r,o;const i=null===(r=t.rowsInPage[n])||void 0===r?void 0:r[e];return null!==(o=null==i?void 0:i.id)&&void 0!==o?o:`${n}-${e}`},Aj={overflow:"hidden",willChange:"auto"},Lj=X.forwardRef(((e,t)=>{var n;const{rect:r,columns:o,innerForwardRef:i,pageInfo:a,rowHeight:l,headerAndTotalsHeight:s,syncHeight:u}=e,{flags:c}=vN(mN,(e=>e.env)),{layout:d,model:p,theme:f,viewService:m,styleService:h}=vN(mN,(e=>e.baseProps)),g=vN(mN,(e=>e.columnWidths)),b=vN(mN,(e=>e.initialDataPages)),{maxNbrLines:v,isStaticNbrOfLines:y}=Tz({viewService:m,layout:d,isImagesEnabled:c.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")}),x=X.useRef(null),S=X.useRef({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),E=!(null===(n=eN(d))||void 0===n||null===(n=n.content)||void 0===n||!n.hoverEffect),{scrollHandler:w,verticalScrollDirection:C,horizontalScrollDirection:R}=(()=>{const e=X.useRef(0),t=X.useRef(0),n=X.useRef(Sj.None),r=X.useRef(Sj.None);return{scrollHandler:X.useCallback((({scrollTop:o,scrollLeft:i})=>{o>t.current?n.current=Sj.Down:o<t.current?n.current=Sj.Up:n.current=Sj.None,i>e.current?r.current=Sj.Right:i<e.current?r.current=Sj.Left:r.current=Sj.None,t.current=o,e.current=i}),[t,e,n,r]),verticalScrollDirection:n,horizontalScrollDirection:r}})(),{rowCount:k,visibleRowCount:A,visibleColumnCount:L}=Rj(d,a,r,g,l),{setCellSize:P,getRowHeight:I,rowMeta:D,estimatedRowHeight:_,maxLineCount:M,resizeVisibleCells:T,maxImageHeight:O}=xj({pageInfo:a,style:h.dimension.values,numericStyle:h.measure.values,rowHeight:l,columnWidths:g,columns:o,gridRef:x,rowCount:k,gridState:S,isSnapshot:!!d.snapshotData,viewService:m,maxNbrLines:v,isStaticNbrOfLines:y}),{rowsInPage:N,loadRows:q,loadColumns:z}=yj({layout:d,model:p,theme:f,initialDataPages:b,pageInfo:a,rowCount:k,visibleRowCount:A,visibleColumnCount:L,columns:o,setCellSize:P,gridState:S}),F=(({layout:e,loadRows:t,loadColumns:n,verticalScrollDirection:r,horizontalScrollDirection:o,rowCount:i,pageInfo:a,gridState:l,viewService:s})=>X.useCallback((({overscanColumnStartIndex:u,overscanColumnStopIndex:c,overscanRowStartIndex:d,overscanRowStopIndex:p,visibleColumnStartIndex:f,visibleColumnStopIndex:m,visibleRowStartIndex:h,visibleRowStopIndex:g})=>{if(l.current.overscanColumnStartIndex=u,l.current.overscanColumnStopIndex=c,l.current.overscanRowStartIndex=d,l.current.overscanRowStopIndex=p,d>i)return;const b=u,v=d+a.page*a.rowsPerPage,y=c-u+1,x=p-d+1;if(s.visibleLeft=f,s.visibleWidth=m-f+1,s.visibleTop=h+a.page*a.rowsPerPage,s.visibleHeight=g-h+1,s.page=a.page,s.rowsPerPage=a.rowsPerPage,r.current===Sj.Down){const e=x+25;t(b,v,y,d+e>i?i-d:e)}else if(r.current===Sj.Up){const e=x+25,n=a.page*a.rowsPerPage,r=Math.max(n,v-25);t(b,r,y,e)}if(o.current===Sj.Right){const t=e.qHyperCube.qSize.qcx-b,r=y+5,o=Math.min(t,r);n(b,v,o,x)}else if(o.current===Sj.Left){const t=Math.max(0,b-5),r=Math.min(e.qHyperCube.qSize.qcx,y+5);n(t,v,r,x)}}),[l,i,a.page,a.rowsPerPage,s,r,o,t,e.qHyperCube.qSize.qcx,n]))({layout:d,loadRows:q,loadColumns:z,verticalScrollDirection:C,horizontalScrollDirection:R,rowCount:k,pageInfo:a,gridState:S,viewService:m}),j=X.useMemo((()=>({rowsInPage:N,columns:o,isHoverEnabled:E,maxLineCount:M,maxImageHeight:O})),[N,o,E,M,O]),$=((e,t,n,r)=>{let{height:o}=e;return o-=t,n*r<o&&(o=Math.min(n*r,o)),o})(r,s,k,_);return X.useLayoutEffect((()=>{var e,t;u(null!==(e=null===(t=i.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,!0)}),[k,u,i]),X.useLayoutEffect((()=>{var e,t,n;(u(null!==(e=null===(t=i.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,!1),1===D.current.lastScrollToRatio)&&(null===(n=x.current)||void 0===n||n.scrollToItem({rowIndex:k-1,align:"start"}))})),function(e){const{selectionsAPI:t}=vN(mN,(e=>e.baseProps)),n=vN(mN,(e=>e.selectionDispatch));X.useEffect((()=>{n({type:SM.UPDATE_PAGE_ROWS,payload:{pageRows:e}})}),[n,e]),jz({selectionsAPI:t,selectionDispatch:n,setShouldRefocus:wj,keyboard:Ej,tableWrapperRef:Cj})}(N),uk((()=>{var e;null===(e=x.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[d,a,f,r.width,g]),X.useImperativeHandle(t,(()=>({interpolatedScrollTo:(e,t)=>{var n,r;const o=(null!==(n=null===(r=i.current)||void 0===r?void 0:r.clientHeight)&&void 0!==n?n:$)-$,a=Math.round(o*e);var l,s,u;(D.current.lastScrollToRatio=e,1===D.current.lastScrollToRatio)?(null===(l=x.current)||void 0===l||l.scrollToItem({rowIndex:k-1,align:"start"}),null===(s=x.current)||void 0===s||s.scrollTo({scrollLeft:t})):null===(u=x.current)||void 0===u||u.scrollTo({scrollTop:a,scrollLeft:t})},resizeCells:()=>{var e;null===(e=x.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),T(N)}})),[i,$,D,k,T,N]),oa.jsx(KF,{"data-key":"body",ref:x,innerRef:i,style:Aj,columnCount:d.qHyperCube.qSize.qcx,columnWidth:e=>g[e],height:$,rowCount:k,rowHeight:I,estimatedRowHeight:_,width:r.width,itemData:j,onItemsRendered:F,onScroll:w,itemKey:kj,className:"sn-table-body",children:fj})}));var Pj=X.memo(Lj);const Ij=({width:e,height:t,children:n})=>oa.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:n}),Dj=gM("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e})((({interactions:e,hoverBackground:t,background:n,applicableStyle:r})=>({...r,background:n,"&&:hover":{background:e.active?t:void 0}}))),_j=({index:e,style:t,data:n})=>{const{columns:r,columResizeHandler:o,allColumnsIconVisibilityStatusRef:i}=n,{interactions:a,styleService:l}=vN(mN,(e=>e.baseProps)),s=vN(mN,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),u=vN(mN,(e=>e.showRightBorder)),c=vN(mN,(e=>e.tableData.totalsPosition)),d=!!a.active&&!s,{open:p,setOpen:f,handleOpenMenu:m,setIsAdjustingWidth:h}=vF({isInteractionEnabled:d,columnsData:r}),g=r[e],b=r.length-1===e,v="right"===g.headTextAlign?"row-reverse":"row";return oa.jsxs(Dj,{className:`sn-table-cell ${bk}`,title:a.passive?g.label:void 0,onClick:m,applicableStyle:{...l.header,...Xz(l,c,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderWidth:b&&!u?"0px 0px 1px 0px":"0px 1px 1px 0px",padding:"4px",justifyContent:g.headTextAlign,boxSizing:"border-box",zIndex:r.length-e,flexDirection:v,userSelect:"none"},interactions:a,hoverBackground:l.headerMenuHoverBackground,background:p?l.headerMenuActiveBackground:l.header.background,children:[oa.jsx(bF,{column:g,isInteractionEnabled:d,open:p,setOpen:f,allColumnsIconVisibilityStatusRef:i}),oa.jsx(tF,{column:g,isLastColumn:b,onColumnResize:o,setIsAdjustingWidth:h})]})},Mj=(e,t,n,r,o)=>{X.useLayoutEffect((()=>{var t;null==e||null===(t=e.current)||void 0===t||t.resetAfterIndex(0,!0)}),[t,n,e,r,o])},Tj={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},Oj=e=>{const{rect:t,forwardRef:n,columns:r,pageInfo:o,rowHeight:i,columResizeHandler:a,allColumnsIconVisibilityStatusRef:l}=e,{layout:s,theme:u}=vN(mN,(e=>e.baseProps)),c=vN(mN,(e=>e.columnWidths));return Mj(n,s,o,c,u),oa.jsx(rj,{ref:n,layout:"horizontal",style:Tj,itemCount:s.qHyperCube.qSize.qcx,itemSize:e=>c[e],height:i,width:t.width,itemData:{columns:r,columResizeHandler:a,allColumnsIconVisibilityStatusRef:l},children:_j})};var Nj=X.memo(Oj);const qj=J.forwardRef(((e,t)=>{const{children:n,width:r,height:o,onScroll:i}=e,{interactions:a}=vN(mN,(e=>e.baseProps));return oa.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.active?"auto":"hidden",width:r,height:o},onScroll:i,children:n})})),zj=({children:e,rect:t})=>oa.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"0px",width:t.width,height:t.height},children:e}),Fj=({index:e,style:t,data:n})=>{const{layout:r,interactions:o,styleService:i}=vN(mN,(e=>e.baseProps)),a=vN(mN,(e=>e.showRightBorder)),{columns:l,totals:s}=n,u=l[e].totalInfo,{totalsTextAlign:c,isTotalNumeric:d}=l[e],p=r.qHyperCube.qSize.qcx-1===e;return oa.jsx("div",{className:`sn-table-cell ${bk}`,title:o.passive?u:void 0,style:{...t,...i.totalRow,...Xz(i,s,!1),background:i.totalRow.background,display:"flex",alignItems:s.atTop?"end":"start",borderStyle:"solid",borderLeftWidth:"0px",borderRightWidth:p&&!a?"0px":"1px",borderTopWidth:s.atBottom?"1px":"0px",borderBottomWidth:s.atTop?"1px":"0px",padding:"4px 12px",justifyContent:c,boxSizing:"border-box",cursor:"default"},children:oa.jsx(Oz,{wordBreak:!d,lines:3,virtualizedCell:!0,children:u})})},jj=e=>{const{rect:t,forwardRef:n,pageInfo:r,totals:o,rowHeight:i,columns:a}=e,{layout:l,theme:s}=vN(mN,(e=>e.baseProps)),u=vN(mN,(e=>e.columnWidths));return Mj(n,l,r,u,s),oa.jsx(rj,{ref:n,layout:"horizontal",style:Tj,itemCount:l.qHyperCube.qSize.qcx,itemSize:e=>u[e],height:i,width:t.width,itemData:{columns:a,totals:o},children:Fj})};var $j=X.memo(jj);const Bj=({columns:e,columnWidths:t,pageInfo:n,headerRef:r,totalsRef:o,totalsPosition:i,isSnapshot:a,viewService:l,allColumnsIconVisibilityStatus:s})=>{const{styleService:u}=vN(mN,(e=>e.baseProps)),c=xj({style:u.header,columnWidths:t,lineRef:r,rowCount:1,pageInfo:n,columns:e,isSnapshot:a,viewService:l,allColumnsIconVisibilityStatus:s}),d=xj({style:u.totalRow,columnWidths:t,lineRef:o,rowCount:1,pageInfo:n,isSnapshot:a,viewService:l});e.forEach(((e,t)=>{c.setCellSize(e.label,0,t),d.setCellSize(e.totalInfo,0,t,nI(e.totalInfo))}));const p=c.getRowHeight(0)+8,f=d.getRowHeight(0);return{headerRowHeight:p,totalsRowHeight:f,bodyRowHeight:a?l.estimatedRowHeight:(({fontSize:e=MO.fontSize})=>Math.max(24,KO(e)))(u.dimension.values),headerAndTotalsHeight:i.atTop||i.atBottom?p+f:p,resizeAllHeaderCells:c.resizeAllCells,resizeAllTotalCells:d.resizeAllCells}},Hj=e=>{var t;const{pageInfo:n}=e,{totalsPosition:r,columns:o,paginationNeeded:i}=vN(mN,(e=>e.tableData)),{layout:a,theme:l,rect:s,viewService:u}=vN(mN,(e=>e.baseProps)),c=vN(mN,(e=>e.columnWidths)),d=vN(mN,(e=>e.setYScrollbarWidth)),p=X.useRef(null),f=X.useRef(null),m=X.useRef(null),h=X.useRef(null),g=X.useRef(),{xScrollbarWidth:b,yScrollbarWidth:v}=Az(p),y=X.useRef([]),{headerRowHeight:x,totalsRowHeight:S,bodyRowHeight:E,headerAndTotalsHeight:w,resizeAllHeaderCells:C,resizeAllTotalCells:R}=Bj({columns:o,columnWidths:c,pageInfo:n,totalsPosition:r,headerRef:f,totalsRef:m,isSnapshot:!!a.snapshotData,viewService:u,allColumnsIconVisibilityStatus:y.current}),k=X.useMemo((()=>((e,t)=>{const n=e.height-(t?41:0);return{width:e.width,height:n}})(s,i)),[s,i]),A=X.useMemo((()=>((e,t,n)=>({width:e.width-n,height:e.height-t}))(k,b,v)),[k,b,v]),{rowCount:L}=Rj(a,n,A,c,E),[P,I]=X.useState(L*E+w),D=c.reduce(((e,t)=>e+t),0),_=((e,t,n,r)=>X.useCallback((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)));r.scrollTopRatio=p,r.scrollLeft=d,null===(i=n.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)}),[r,n,e,t]))(f,m,h,u),M=X.useCallback(((e,t=!1)=>{const n=e+w;(P<A.height&&n>A.height||t)&&I(n)}),[P,w,A.height]),T=X.useCallback((()=>{var e;p.current&&(p.current.scrollTop=0),null===(e=h.current)||void 0===e||e.resizeCells(),C(),R()}),[p,C,R]);X.useLayoutEffect((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[o.length]),X.useLayoutEffect((()=>{p.current&&(p.current.scrollTop=0)}),[n,L,l]),fz((()=>{d(v)}),[v]);const O=oa.jsx($j,{rect:A,pageInfo:n,columns:o,forwardRef:m,totals:r,rowHeight:S});return oa.jsx(qj,{ref:p,width:k.width,height:k.height,onScroll:_,children:oa.jsx(Ij,{width:D,height:P,children:oa.jsxs(zj,{rect:A,children:[null!==(t=u.viewState)&&void 0!==t&&t.skipHeader?null:oa.jsx(Nj,{rect:A,pageInfo:n,columns:o,forwardRef:f,rowHeight:x,columResizeHandler:T,allColumnsIconVisibilityStatusRef:y}),r.atTop?O:null,oa.jsx(Pj,{ref:h,innerForwardRef:g,rect:A,pageInfo:n,columns:o,rowHeight:E,headerAndTotalsHeight:w,syncHeight:M}),r.atBottom?O:null]})})})};var Wj=X.memo(Hj);const Vj=()=>{const{theme:e,keyboard:t,translator:n,interactions:r,rect:o,layout:i}=vN(mN,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:l,totalColumnCount:s,totalPages:u}=vN(mN,(e=>e.tableData)),c=vN(mN,(e=>e.pageInfo)),d=vN(mN,(e=>e.setPage));return oa.jsxs(cz,{"data-testid":"sn-table",background:e.background,dir:"ltr",children:[oa.jsx(Wj,{pageInfo:c}),oa.jsx(uz,{paginationNeeded:a,handleChangePage:e=>d(e),pageInfo:c,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:t,translator:n,theme:e,interactions:r,rect:o,layout:i})]})};var Uj=X.memo(Vj);var Gj,Yj={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"}(Gj||(Gj={}));const Kj=(t,n)=>e.useMemo((()=>(function(e){if(e&&e.get&&e.add){const t="SNTable.Accessibility.RowsAndColumns";if(e.get(t)!==t)return;Object.keys(Yj).forEach((t=>{e.add(Yj[t])}))}}(n),((e,t,n)=>{let r=n||null;return({keys:n,shouldBeAtomic:o=!0,politeness:i="polite"})=>{const a=n.map((e=>{if(Array.isArray(e)){const[n,...r]=e;return t.get(n,r)}return t.get(e)})).join(" "),l=e.querySelector(".sn-table-announcer-1"),s=e.querySelector(".sn-table-announcer-2");let u;r===Gj.FIRST?(u=s,r=Gj.SECOND):(u=l,r=Gj.FIRST),u.innerHTML=u.innerHTML.endsWith(" ­")?a:`${a} ­`,u.setAttribute("aria-atomic",o.toString()),u.setAttribute("aria-live",i)}})(t,n))),[t,n.language()]),Xj={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},Jj=({app:t,model:n,rootElement:r,layout:o,interactions:i,translator:a,selectionsAPI:l,theme:s,changeSortOrder:u,keyboard:c,rect:d,embed:p,reactRoot:f,applyColumnWidths:m,isFontLoaded:h,viewService:g,env:b})=>{const{direction:v,footerContainer:y}=e.useOptions(),x=pI(o,g),S=fI(o,g),E=Kj(r,a),w=x?{page:g.page||Xj.page,rowsPerPage:g.rowsPerPage||Xj.rowsPerPage,rowsPerPageOptions:Xj.rowsPerPageOptions}:Xj,[C,R]=e.useState(w),[k]=e.usePromise((async()=>S?async function(e,t,n,r,o,i){var a,l;const{page:s,rowsPerPage:u,rowsPerPageOptions:c}=n,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 r({...n,page:0}),null;if(h*d>oI)return r({...n,rowsPerPage:iI(d,c),page:0}),null;const g=p>10,b=aI(t,o),v=dI(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=n.rowsPerPage,o.page=n.page);const S=(null==x?void 0:x[0].qMatrix.map(((e,t)=>{const n=[];return v.forEach(((r,o)=>{n[o]={id:eP(),...e[o],align:cI(e[o],r.bodyTextAlign),rowIdx:t+m,colIdx:r.colIdx,pageRowIdx:t,pageColIdx:o,selectionColIdx:r.selectionColIdx,isSelectable:r.isDim&&!r.isLocked,isLastRow:t===h-1,isNumeric:rI(e[o]),isNull:tI(e[o],r.isDim),representation:eI(e[o],r.representation,r.qAttrExprInfoIndex,i)}})),n})))||[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(n,o,C,R,g,b):null),[o,C,n,i,S]);e.useEffect((()=>{!!(S&&f&&n&&(o.snapshotData||t)&&o&&k&&u&&s&&l&&h&&p)&&function(e,t){const{app:n,model:r,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=yN(o);null==t||t.render(oa.jsx(ur,{stylisPlugins:"rtl"===o?[AM]:void 0,children:oa.jsx(vM,{theme:x,children:oa.jsx(bN,{app:n,model:r,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:oa.jsx(wF,{...y,direction:o})})})}))}({app:t,model:n,rootElement:r,layout:o,tableData:k,direction:v,pageInfo:C,setPageInfo:R,interactions:i,translator:a,selectionsAPI:l,theme:s,changeSortOrder:u,keyboard:c,rect:d,footerContainer:y,announce:E,embed:p,applyColumnWidths:m,viewService:g,env:b},f)}),[t,n,f,k,i,v,s,c.active,E,u,m,S,o,l,p,r,C,R,a,d,y,h,b])};const Qj=({model:t,layout:n,shouldRender:r,page:o})=>{const[i]=e.usePromise((async()=>{if(r&&t)return(async(e,t,n)=>{let{qDataPages:r}=t.qHyperCube;if(0!==n||void 0===r||0===r.length){const o=n*Math.min(OO,t.qHyperCube.qSize.qcy);r=await e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:o,qWidth:50,qHeight:100}])}return{initialDataPages:r,derivedFrom:{layout:t,page:n}}})(t,n,o)}),[t,n,o]),a=(null==i?void 0:i.derivedFrom.layout)!==n||(null==i?void 0:i.derivedFrom.page)!==o;return{initialDataPages:null==i?void 0:i.initialDataPages,isLoading:a}},Zj=({app:t,layout:n,model:r,rect:o,theme:i,keyboard:a,translator:l,interactions:s,selectionsAPI:u,changeSortOrder:c,rootElement:d,embed:p,reactRoot:f,applyColumnWidths:m,isFontLoaded:h,viewService:g,env:b})=>{const v=!fI(n,g),y=e.useMemo((()=>function(e,t,n){const r=aI(e,n),o=dI(e),i=e.qHyperCube.qSize.qcy,a=Math.min(OO,i),l=i>OO&&!!t.active;return{totalsPosition:r,columns:o,rows:[],totalRowCount:i,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(i/a),paginationNeeded:l}}(n,s,g)),[n,s,g]),{pageInfo:x,setPage:S}=((t,n)=>{const[r,o]=e.useState(0),i=Math.min(OO,t.qHyperCube.qSize.qcy),a=e.useMemo((()=>({page:r,rowsPerPage:i,rowsPerPageOptions:[]})),[i,r]);if(n){const e=Math.floor(t.qHyperCube.qSize.qcy/OO);e<r&&o(e)}return{pageInfo:a,setPage:o}})(n,v),{initialDataPages:E,isLoading:w}=Qj({model:r,layout:n,page:x.page,shouldRender:v});e.useEffect((()=>{var e;v&&a.active&&(null===(e=a.blur)||void 0===e||e.call(a,!1))}),[a.active]),e.useEffect((()=>{v&&r&&c&&E&&!w&&h&&function(e,t){const{app:n,selectionsAPI:r,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:x}=e,S=yN("ltr");t.render(oa.jsx(J.StrictMode,{children:oa.jsx(vM,{theme:S,children:oa.jsx(bN,{app:n,selectionsAPI:r,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:x,children:oa.jsx(Uj,{})})})}))}({app:t,layout:n,model:r,rect:o,theme:i,keyboard:a,translator:l,interactions:s,selectionsAPI:u,rootElement:d,embed:p,changeSortOrder:c,tableData:y,applyColumnWidths:m,setPage:S,pageInfo:x,initialDataPages:E,viewService:g,env:b},f)}),[t,n,r,o,i,a.active,l,s,u,c,v,d,p,f,y,m,S,x,w,E,h,b])},e$={version:JSON.stringify("3.9.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 t$(e,t){const n=e.getElementsByClassName("sn-table-container")[0];if(!n)return{};const r=(null==n?void 0:n.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:r.y+i.height+(t.atTop?l.height:0),bottom:r.y+r.height-(t.atBottom?l.height:0)},c=((e,t)=>{if(!e)return-1;for(let n=0;n<e.length;n++)if(e[n].getBoundingClientRect().bottom>t.top)return n;return-1})(s,u),d=((e,t)=>{if(!e)return-1;for(let n=e.length-1;n>-1;n--){const r=e[n].getBoundingClientRect();if(t.bottom>r.top)return n}return-1})(s,u),p=((e,t,n)=>{if(!e||0===e.length||n<0)return 0;const r=e[n].getBoundingClientRect();return Math.max(t.top-r.top,0)})(s,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const n$=(e,t)=>{if(t)for(let n=0;n<t.length;n++){const r=t[n].getAttribute("rowindex");if(r&&parseInt(r,10)===e)return t[n]}},r$=(e,t,n)=>{if(!e)return!1;const r=e.y+e.height/2;return r>=t&&r<=n};const o$=(e,t,n,r)=>{var o;if(e<0)return 0;const i=n.qHyperCube.qSize.qcy,a=r.rowsPerPage||Xj.rowsPerPage,l=null!==(o=r.viewState)&&void 0!==o&&o.isMultiPage?0:3;return Math.min(i,a,e-t+1+l)},i$=(e,t,n)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const r=aI(e,t);if(fI(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=t$(n,r);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:o$(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const n=e.querySelector(".sn-table-body"),r=null==n?void 0:n.getBoundingClientRect(),o=null==n?void 0:n.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!r)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=n$(d,o),m=null==f?void 0:f.getBoundingClientRect();if(!f||!m)return{};const h=r.y;if(1-i<.001)return{visibleRowStartIndex:d+(m.y>=h-4?0:1)+c,visibleRowEndIndex:p+c};const g=r.y+r.height,b=(r$(m,h,g)?d:d+1)+c;let v=p+c;const y=n$(p,o),x=null==y?void 0:y.getBoundingClientRect();return y&&x&&(r$(x,h,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(n,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:o$(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}},a$=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),l$=e=>e.getStyle("object","straightTableV2","backgroundColor");return function(t){return{qae:{properties:{initial:e$},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:JA,exportProperties:KA,exploration:QA},ext:VL(t),component(){var n;const r=e.useElement(),o=(t=>{const n=e.useMemo((()=>lk(t)),[t]);return e.useEffect((()=>()=>n.unmount()),[n]),n})(r),i=e.useStaleLayout(),a=e.useApp(),l=e.useModel(),s=e.useInteractionState(),u=e.useTranslator(),c=e.useSelections(),d=e.useKeyboard(),{freeResize:p}=e.useOptions(),f=e.useRect(),m=null!=i&&null!==(n=i.snapshotData)&&void 0!==n&&n.content&&!p?{...f,...i.snapshotData.content.size}:f,h=(t=>{const{viewState:n}=e.useOptions();return e.useMemo((()=>((e,t)=>{var n,r,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v;return{qTop:0,qHeight:0,rowPartialHeight:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.rowPartialHeight)&&void 0!==n?n: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}})(n,t.snapshotData)),[n,t.snapshotData,t.usePagination])})(i),g=e.useEmbed(),b=BC(i,r,a$,l$),v=((t,n)=>e.useMemo((()=>((e,t)=>{if(t)return async(n,r)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:l,isActivelySorted:s}=n,u=o?i:i-e,c=(await t.getEffectiveProperties()).qHyperCubeDef.qInterColumnSortOrder,d=[],p=r!==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)}})(t.qDimensionInfo.length,n)),[t.qDimensionInfo.length,n]))(i.qHyperCube,l),y=UL(i.qHyperCube,l),x=((t,n)=>{const{fontSize:r,fontFamily:o}=nN(n,t,!1),{fontSize:i,fontFamily:a}=rN(n,t),[l,s]=e.usePromise((async()=>(await document.fonts.load(`600 ${r} ${o}`),await document.fonts.load(`${i} ${a}`),!0)),[r,o,i,a]);return s?(console.warn("Failed to load font:",s),!0):!!l})(b,i);null===e.onContextMenu||void 0===e.onContextMenu||e.onContextMenu(((e,t)=>{const n=t.target,r=null==n?void 0:n.closest(`.${bk}`);null!=r&&r.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{kk(r)}})})),(({layout:t,viewService:n,model:r,rootElement:o,contentRect:i})=>{e.onTakeSnapshot((async e=>{if(!e.snapshotData||!r||e.snapshotData.content)return e;if(r.getHyperCubeData){e.qHyperCube||(e.qHyperCube={});const{rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m}=i$(t,n,o);e.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:null!=d?d:0,qWidth:t.qHyperCube.qSize.qcx,qHeight:null!=p?p:0}]),e.snapshotData.content={rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m,size:{width:i.width,height:i.height},estimatedRowHeight:n.estimatedRowHeight}}return e})),e.useImperativeHandle((()=>({getViewState:()=>i$(t,n,o)})),[t,n,o])})({layout:i,viewService:h,model:l,rootElement:r,contentRect:f}),Zj({app:a,layout:i,model:l,rect:m,theme:b,keyboard:d,translator:u,interactions:s,selectionsAPI:c,changeSortOrder:v,rootElement:r,embed:g,reactRoot:o,applyColumnWidths:y,isFontLoaded:x,viewService:h,env:t}),Jj({app:a,model:l,rootElement:r,layout:i,interactions:s,translator:u,selectionsAPI:c,theme:b,changeSortOrder:v,keyboard:d,rect:m,embed:g,reactRoot:o,applyColumnWidths:y,isFontLoaded:x,viewService:h,env:t})}}}}));
212
+ `),FT.rippleVisible,UT,550,(({theme:e})=>e.transitions.easing.easeInOut),FT.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),FT.child,FT.childLeaving,GT,550,(({theme:e})=>e.transitions.easing.easeInOut),FT.childPulsate,YT,(({theme:e})=>e.transitions.easing.easeInOut)),JT=X.forwardRef((function(e,t){const n=zT({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=fI(n,jT),[l,s]=X.useState([]),u=X.useRef(0),c=X.useRef(null);X.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=X.useRef(!1),p=xo(),f=X.useRef(null),m=X.useRef(null),h=X.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,ta.jsx(XT,{classes:{ripple:jo(o.ripple,FT.ripple),rippleVisible:jo(o.rippleVisible,FT.rippleVisible),ripplePulsate:jo(o.ripplePulsate,FT.ripplePulsate),child:jo(o.child,FT.child),childLeaving:jo(o.childLeaving,FT.childLeaving),childPulsate:jo(o.childPulsate,FT.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=X.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||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:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-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:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h,p]),b=X.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=X.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 X.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),ta.jsx(KT,pI({className:jo(FT.root,o.root,i),ref:m},a,{children:ta.jsx(by,{component:null,exit:!0,children:l})}))}));var QT=JT;function ZT(e){return Oo("MuiButtonBase",e)}var eO=No("MuiButtonBase",["root","disabled","focusVisible"]);const tO=["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"],nO=hM("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"},[`&.${eO.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),rO=X.forwardRef((function(e,t){const n=zT({props:e,name:"MuiButtonBase"}),{action:r,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:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:w,onTouchEnd:C,onTouchMove:R,onTouchStart:k,tabIndex:A=0,TouchRippleProps:P,touchRippleRef:L,type:I}=n,D=fI(n,tO),_=X.useRef(null),M=X.useRef(null),T=go(M,L),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:z}=Lo(),[F,j]=X.useState(!1);s&&F&&j(!1),X.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),_.current.focus()}})),[]);const[$,B]=X.useState(!1);X.useEffect((()=>{B(!0)}),[]);const H=$&&!u&&!s;function V(e,t,n=c){return ho((r=>{t&&t(r);return!n&&M.current&&M.current[e](r),!0}))}X.useEffect((()=>{F&&d&&!u&&$&&M.current.pulsate()}),[u,d,F,$]);const W=V("start",S),U=V("stop",h),G=V("stop",g),Y=V("stop",w),K=V("stop",(e=>{F&&e.preventDefault(),E&&E(e)})),J=V("start",k),Q=V("stop",C),Z=V("stop",R),ee=V("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),te=ho((e=>{_.current||(_.current=e.currentTarget),N(e),!0===O.current&&(j(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=_.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=X.useRef(!1),oe=ho((e=>{d&&!re.current&&F&&M.current&&" "===e.key&&(re.current=!0,M.current.stop(e,(()=>{M.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=ho((e=>{d&&" "===e.key&&M.current&&F&&!e.defaultPrevented&&(re.current=!1,M.current.stop(e,(()=>{M.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(D.href||D.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===I?"button":I,le.disabled=s):(D.href||D.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=go(t,z,_),ue=pI({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:A,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Do({root:["root",t&&"disabled",n&&"focusVisible"]},ZT,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return ta.jsxs(nO,pI({as:ae,className:jo(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:W,onMouseLeave:K,onMouseUp:Y,onDragLeave:G,onTouchEnd:Q,onTouchMove:Z,onTouchStart:J,ref:se,tabIndex:s?-1:A,type:I},le,D,{children:[i,H?ta.jsx(QT,pI({ref:T,center:o},P)):null]}))}));var oO=rO;var iO=No("MuiBox",["root"]);const aO=q_(),lO=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:o="MuiBox-root",generateClassName:i}=e,a=Ir("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(mD),l=X.forwardRef((function(e,l){const s=function(e=xD){return yD(e)}(r),u=wD(e),{className:c,component:p="div"}=u,f=d(u,RD);return ta.jsx(a,n({as:p,ref:l,className:jo(c,i?i(o):o),theme:t&&s[t]||s},f))}));return l}({themeId:dI,defaultTheme:aO,defaultClassName:iO.root,generateClassName:Mo.generate});var sO=lO;var uO=No("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var cO=X.createContext({});function dO(e){return Oo("MuiListItemIcon",e)}var pO=No("MuiListItemIcon",["root","alignItemsFlexStart"]);const fO=["className"],mO=hM("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>pI({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var hO=X.forwardRef((function(e,t){const n=zT({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=fI(n,fO),i=pI({},n,{alignItems:X.useContext(cO).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Do({root:["root","flex-start"===t&&"alignItemsFlexStart"]},dO,n)})(i);return ta.jsx(mO,pI({className:jo(a.root,r),ownerState:i,ref:t},o))}));var gO=No("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function bO(e){return Oo("MuiMenuItem",e)}var vO=No("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const yO=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],xO=hM(oO,{shouldForwardProp:e=>mM(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>pI({},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"}},[`&.${vO.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:GD(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${vO.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:GD(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${vO.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:GD(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})`:GD(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${vO.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${vO.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${uO.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${uO.inset}`]:{marginLeft:52},[`& .${gO.root}`]:{marginTop:0,marginBottom:0},[`& .${gO.inset}`]:{paddingLeft:36},[`& .${pO.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&pI({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${pO.root} svg`]:{fontSize:"1.25rem"}}))));var SO=X.forwardRef((function(e,t){const n=zT({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=fI(n,yO),f=X.useContext(cO),m=X.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=X.useRef(null);mo((()=>{r&&h.current&&h.current.focus()}),[r]);const g=pI({},n,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return pI({},a,Do({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},bO,a))})(n),v=go(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),ta.jsx(cO.Provider,{value:m,children:ta.jsx(xO,pI({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:jo(b.focusVisible,s),className:jo(b.root,d)},p,{ownerState:g,classes:b}))})}));var EO=X.createContext();function wO(e){return Oo("MuiTable",e)}No("MuiTable",["root","stickyHeader"]);const CO=["className","component","padding","size","stickyHeader"],RO=hM("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>pI({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":pI({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),kO="table",AO=X.forwardRef((function(e,t){const n=zT({props:e,name:"MuiTable"}),{className:r,component:o=kO,padding:i="normal",size:a="medium",stickyHeader:l=!1}=n,s=fI(n,CO),u=pI({},n,{component:o,padding:i,size:a,stickyHeader:l}),c=(e=>{const{classes:t,stickyHeader:n}=e;return Do({root:["root",n&&"stickyHeader"]},wO,t)})(u),d=X.useMemo((()=>({padding:i,size:a,stickyHeader:l})),[i,a,l]);return ta.jsx(EO.Provider,{value:d,children:ta.jsx(RO,pI({as:o,role:o===kO?null:"table",ref:t,className:jo(c.root,r),ownerState:u},s))})}));var PO=AO;var LO=X.createContext();function IO(e){return Oo("MuiTableBody",e)}No("MuiTableBody",["root"]);const DO=["className","component"],_O=hM("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),MO={variant:"body"},TO="tbody";var OO=X.forwardRef((function(e,t){const n=zT({props:e,name:"MuiTableBody"}),{className:r,component:o=TO}=n,i=fI(n,DO),a=pI({},n,{component:o}),l=(e=>{const{classes:t}=e;return Do({root:["root"]},IO,t)})(a);return ta.jsx(LO.Provider,{value:MO,children:ta.jsx(_O,pI({className:jo(l.root,r),as:o,ref:t,role:o===TO?null:"rowgroup",ownerState:a},i))})}));function NO(e){return Oo("MuiTableCell",e)}var qO=No("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const zO=["align","className","component","padding","scope","size","sortDirection","variant"],FO=hM("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${lo(n.size)}`],"normal"!==n.padding&&t[`padding${lo(n.padding)}`],"inherit"!==n.align&&t[`align${lo(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>pI({},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?XD(GD(e.palette.divider,1),.88):YD(GD(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",[`&.${qO.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}))),jO=X.forwardRef((function(e,t){const n=zT({props:e,name:"MuiTableCell"}),{align:r="inherit",className:o,component:i,padding:a,scope:l,size:s,sortDirection:u,variant:c}=n,d=fI(n,zO),p=X.useContext(EO),f=X.useContext(LO),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=pI({},n,{align:r,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}),y=(e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e;return Do({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${lo(r)}`,"normal"!==o&&`padding${lo(o)}`,`size${lo(i)}`]},NO,t)})(v);let x=null;return u&&(x="asc"===u?"ascending":"descending"),ta.jsx(FO,pI({as:h,ref:t,className:jo(y.root,o),"aria-sort":x,scope:g,ownerState:v},d))}));var $O=jO;function BO(e){return Oo("MuiTableContainer",e)}No("MuiTableContainer",["root"]);const HO=["className","component"],VO=hM("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var WO=X.forwardRef((function(e,t){const n=zT({props:e,name:"MuiTableContainer"}),{className:r,component:o="div"}=n,i=fI(n,HO),a=pI({},n,{component:o}),l=(e=>{const{classes:t}=e;return Do({root:["root"]},BO,t)})(a);return ta.jsx(VO,pI({ref:t,as:o,className:jo(l.root,r),ownerState:a},i))}));function UO(e){return Oo("MuiTableHead",e)}No("MuiTableHead",["root"]);const GO=["className","component"],YO=hM("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),KO={variant:"head"},XO="thead";var JO=X.forwardRef((function(e,t){const n=zT({props:e,name:"MuiTableHead"}),{className:r,component:o=XO}=n,i=fI(n,GO),a=pI({},n,{component:o}),l=(e=>{const{classes:t}=e;return Do({root:["root"]},UO,t)})(a);return ta.jsx(LO.Provider,{value:KO,children:ta.jsx(YO,pI({as:o,className:jo(l.root,r),ref:t,role:o===XO?null:"rowgroup",ownerState:a},i))})}));function QO(e){return Oo("MuiTableRow",e)}var ZO=No("MuiTableRow",["root","selected","hover","head","footer"]);const eN=["className","component","hover","selected"],tN=hM("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${ZO.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ZO.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:GD(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}))`:GD(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),nN="tr",rN=X.forwardRef((function(e,t){const n=zT({props:e,name:"MuiTableRow"}),{className:r,component:o=nN,hover:i=!1,selected:a=!1}=n,l=fI(n,eN),s=X.useContext(LO),u=pI({},n,{component:o,hover:i,selected:a,head:s&&"head"===s.variant,footer:s&&"footer"===s.variant}),c=(e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return Do({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},QO,t)})(u);return ta.jsx(tN,pI({as:o,ref:t,className:jo(c.root,r),role:o===nN?null:"row",ownerState:u},l))}));var oN=rN,iN=(e={})=>J.createElement(_T,{...e},J.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},J.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},J.createElement("rect",{stroke:hT.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const aN={MuiAccordion:{styleOverrides:{root:{backgroundColor:hT.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:hT.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:J.createElement(LT,{"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 ${hT.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:hT.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${hT.MISC_FOCUS_BORDER}`,borderRadius:xT,backgroundColor:hT.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 ${hT.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:hT.WHITE,color:hT.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:xT},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${hT.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:hT.GREYSCALE_0_15,backgroundColor:hT.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:hT.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${hT.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:hT.GREEN_PALE},"&:active":{backgroundColor:hT.GREEN_DARK},"&.Mui-focusVisible":{borderColor:hT.GREEN_PALE,boxShadow:`0 0 0 3px ${AD(hT.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:hT.BLUE_PALE},"&:active":{backgroundColor:hT.BLUE_DARK},"&.Mui-focusVisible":{borderColor:hT.BLUE_PALE,boxShadow:`0 0 0 3px ${AD(hT.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:xT,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:hT.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${hT.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:hT.GREYSCALE_0_15,backgroundColor:hT.GREYSCALE_100_60,"&:active":{backgroundColor:hT.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:hT.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${hT.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:hT.PURPLE,"&.Mui-focusVisible":{borderColor:hT.PURPLE,boxShadow:`0 0 0 3px ${AD(hT.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:hT.GREEN,"&.Mui-focusVisible":{borderColor:hT.GREEN,boxShadow:`0 0 0 3px ${AD(hT.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:hT.BLUE,"&.Mui-focusVisible":{borderColor:hT.BLUE,boxShadow:`0 0 0 3px ${AD(hT.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:hT.ORANGE,"&.Mui-focusVisible":{borderColor:hT.ORANGE,boxShadow:`0 0 0 3px ${AD(hT.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:hT.RED,"&.Mui-focusVisible":{borderColor:hT.RED,boxShadow:`0 0 0 3px ${AD(hT.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:hT.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:hT.PURPLE_PALE},"&:active":{backgroundColor:hT.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:hT.PURPLE_PALE,boxShadow:`0 0 0 3px ${AD(hT.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:hT.GREEN_PALE},"&:active":{backgroundColor:hT.GREEN_DARK},"&.Mui-focusVisible":{borderColor:hT.GREEN_PALE,boxShadow:`0 0 0 3px ${AD(hT.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:hT.BLUE_PALE},"&:active":{backgroundColor:hT.BLUE_DARK},"&.Mui-focusVisible":{borderColor:hT.BLUE_PALE,boxShadow:`0 0 0 3px ${AD(hT.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:hT.ORANGE_PALE},"&:active":{backgroundColor:hT.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:hT.ORANGE_PALE,boxShadow:`0 0 0 3px ${AD(hT.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:hT.RED_PALE},"&:active":{backgroundColor:hT.RED_DARK},"&.Mui-focusVisible":{borderColor:hT.RED_PALE,boxShadow:`0 0 0 3px ${AD(hT.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:hT.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:hT.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:xT,boxShadow:`inset 0 0 0 2px ${hT.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:J.createElement(DT,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:gT,borderRadius:xT,color:hT.TEXT_PRIMARY,backgroundColor:hT.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:hT.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${hT.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:hT.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:hT.GREYSCALE_0_05,color:hT.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:hT.GREEN,borderColor:hT.GREEN},"&.MuiChip-outlinedInfo":{color:hT.BLUE,borderColor:hT.BLUE},"&.MuiChip-outlinedWarning":{color:hT.ORANGE,borderColor:hT.ORANGE},"&.MuiChip-outlinedError":{color:hT.RED,borderColor:hT.RED}},outlined:{border:`solid 1px ${hT.GREYSCALE_0_15}`,backgroundColor:hT.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:xT,boxShadow:"none",backgroundColor:hT.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:hT.GREEN,borderColor:hT.GREEN},outlinedSecondary:{color:hT.BLUE,borderColor:hT.BLUE},label:{fontFamily:RT.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:J.createElement(DT,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:J.createElement(LT,{"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:xT},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:xT,fontSize:bT,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:hT.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${hT.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:hT.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:hT.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:hT.GREYSCALE_0_05}}},popupIndicator:{borderRadius:xT,border:`solid 1px ${hT.GREYSCALE_0_15}`,color:hT.GREYSCALE_0_60,marginRight:0,width:yT,height:yT},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${hT.GREYSCALE_0_15}`},clearIndicator:{borderRadius:xT,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:hT.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:bT}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:gT,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:hT.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:hT.GREYSCALE_25,fontSize:gT,fontFamily:RT.FONT_FAMILY,fontWeight:wT,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:hT.TEXT_PRIMARY},"&.Mui-error":{color:hT.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:hT.TEXT_SECONDARY,content:"'(optional)'",fontWeight:ET,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:hT.TEXT_SECONDARY,content:"'(required)'",fontWeight:ET,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:bT,lineHeight:"16px",backgroundColor:hT.WHITE,borderRadius:xT,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${hT.GREYSCALE_0_05}`,borderColor:hT.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${hT.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${hT.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${hT.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${hT.RED}`,boxShadow:`0px 0px 0px 1px ${hT.RED}, inset 0 2px 0 0 ${hT.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${hT.GREYSCALE_0_10}`,borderColor:hT.GREYSCALE_0_10,backgroundColor:hT.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:hT.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:hT.GREYSCALE_0_15,borderRadius:xT,boxShadow:`inset 0 2px 0 0 ${hT.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>J.createElement(LT,{...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:hT.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:hT.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:hT.GREYSCALE_0_03},"&:active":{backgroundColor:hT.GREYSCALE_0_10},"&:focus":{backgroundColor:hT.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${hT.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${hT.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:hT.GREYSCALE_0_30,"&:hover":{backgroundColor:hT.GREYSCALE_0_0,borderColor:hT.GREYSCALE_0_15},"& ~svg":{color:hT.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${hT.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:xT}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:hT.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${hT.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:hT.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:bT,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:gT,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:gT,fontWeight:wT,color:hT.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:wT}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${hT.GREYSCALE_0_15}, 0px 0px 0px 1px ${hT.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:J.createElement(OT,null),checkedIcon:J.createElement(NT,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:hT.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${hT.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:hT.GREEN_PALE,boxShadow:`0 0 0 3px ${AD(hT.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:hT.BLUE_PALE,boxShadow:`0 0 0 3px ${AD(hT.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:hT.GREYSCALE_0_20}},"&.Mui-disabled":{fill:hT.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:J.createElement(iN,null),checkedIcon:J.createElement(MT,null),indeterminateIcon:J.createElement(TT,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:xT,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:hT.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:hT.GREYSCALE_0_55,color:hT.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:hT.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:hT.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:hT.GREYSCALE_0_55,"&:hover":{color:hT.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:hT.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:hT.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:bT,color:hT.TEXT_PRIMARY,lineHeight:"16px",fontWeight:wT},secondary:{fontSize:gT,color:hT.GREYSCALE_45,fontWeight:ET,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:bT,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:hT.GREYSCALE_0_03},"&:active":{backgroundColor:hT.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:bT,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:hT.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:gT,borderBottom:`solid 1px ${hT.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:bT,color:hT.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:hT.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:hT.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:hT.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:hT.RED}}},"&.Mui-focusVisible":{backgroundColor:hT.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:hT.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:hT.GREEN,height:"24px","&.Mui-disabled":{color:hT.GREYSCALE_0_15}},rail:{backgroundColor:hT.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${hT.GREYSCALE_0_05}`,borderRadius:xT,boxShadow:`inset 0px 0px 0px 1px ${hT.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${hT.GREYSCALE_0_05}`,borderRadius:xT},thumb:{height:"16px",width:"16px",borderRadius:xT,backgroundColor:hT.WHITE,boxShadow:`0px 1px 2px 0px ${hT.GREYSCALE_0_15}, 0px 0px 0px 1px ${hT.GREYSCALE_0_05}`,"&:hover":{borderRadius:xT,boxShadow:`0 2px 4px 0 ${hT.GREYSCALE_0_30}, 0 0 0 1px ${hT.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${hT.GREYSCALE_0_15}, 0 0 0 1px ${hT.GREYSCALE_0_06}, 0 0 0 2px ${hT.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${hT.GREYSCALE_0_15}, 0 0 0 1px ${hT.GREYSCALE_0_06}, 0 0 0 2px ${hT.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:hT.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:hT.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:hT.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:hT.GREYSCALE_0_15},markLabel:{color:hT.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:hT.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:hT.WHITE,color:hT.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:hT.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:hT.GREEN_PALE,boxShadow:`0 0 0 3px ${AD(hT.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:hT.BLUE_PALE,boxShadow:`0 0 0 3px ${AD(hT.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:hT.GREYSCALE_0_15,borderRadius:xT},thumb:{height:"16px",width:"16px",borderRadius:xT,backgroundColor:hT.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:bT,fontWeight:wT,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${hT.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${hT.MISC_FOCUS_BORDER}`,backgroundColor:hT.GREYSCALE_0_03,borderRadius:xT},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:hT.GREYSCALE_25,"&.Mui-selected":{color:hT.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:bT,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:xT,"&:hover":{backgroundColor:`${hT.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 ${hT.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${hT.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:xT,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:hT.GREYSCALE_0_05},"&:hover":{backgroundColor:`${hT.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${hT.GREYSCALE_85}`,borderRight:`1px solid ${hT.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:wT,backgroundColor:hT.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:hT.GREYSCALE_98,borderBottom:`1px solid ${hT.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${hT.GREYSCALE_85}`,borderTop:`1px solid ${hT.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:hT.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:hT.GREYSCALE_0_05,"&:hover":{backgroundColor:hT.GREYSCALE_0_03}},"&&:hover":{backgroundColor:hT.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>J.createElement(qT,{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 ${hT.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:bT,borderRadius:xT,padding:"7px 16px",border:`1px solid ${hT.GREYSCALE_0_15}`,backgroundColor:hT.GREYSCALE_100_60,color:hT.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:hT.GREYSCALE_0_10,border:`1px solid ${hT.GREYSCALE_0_30}`},"&:hover":{backgroundColor:hT.GREYSCALE_0_03,border:`1px solid ${hT.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:hT.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${hT.MISC_FOCUS_BORDER}`,border:`1px solid ${hT.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:hT.GREYSCALE_25,backgroundColor:hT.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:hT.GREYSCALE_0_10,border:`1px solid ${hT.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:gT,height:24,width:24,padding:7},sizeLarge:{fontSize:vT,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:bT,borderRadius:xT}}},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:hT.GREYSCALE_20},tooltip:{backgroundColor:hT.GREYSCALE_20,fontSize:gT,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var lN=e=>aN;const sN={mode:"light",primary:{ultraLight:hT.GREEN_ULTRA_LIGHT,light:hT.GREEN_PALE,main:hT.GREEN,dark:hT.GREEN_DARK,extraDark:hT.GREEN_EXTRA_DARK,contrastText:hT.WHITE},secondary:{ultraLight:hT.BLUE_ULTRA_LIGHT,light:hT.BLUE_PALE,main:hT.BLUE,dark:hT.BLUE_DARK,extraDark:hT.BLUE_EXTRA_DARK,contrastText:hT.WHITE},error:{ultraLight:hT.RED_ULTRA_LIGHT,light:hT.RED_PALE,main:hT.RED,dark:hT.RED_DARK,extraDark:hT.RED_EXTRA_DARK,contrastText:hT.WHITE},warning:{ultraLight:hT.ORANGE_ULTRA_LIGHT,light:hT.ORANGE_PALE,main:hT.ORANGE,dark:hT.ORANGE_DARK,extraDark:hT.ORANGE_EXTRA_DARK,contrastText:hT.WHITE},success:{ultraLight:hT.GREEN_ULTRA_LIGHT,light:hT.GREEN_PALE,main:hT.GREEN,dark:hT.GREEN_DARK,extraDark:hT.GREEN_EXTRA_DARK,contrastText:hT.WHITE},info:{ultraLight:hT.BLUE_ULTRA_LIGHT,light:hT.BLUE_PALE,main:hT.BLUE,dark:hT.BLUE_DARK,extraDark:hT.BLUE_EXTRA_DARK,contrastText:hT.WHITE},text:{primary:hT.TEXT_PRIMARY,secondary:hT.TEXT_SECONDARY,disabled:hT.GREYSCALE_0_30},action:{hover:hT.GREYSCALE_0_03,hoverOpacity:.03,selected:hT.GREYSCALE_0_05,selectedOpacity:.05,focus:hT.MISC_FOCUS_BORDER},amethyst:{ultraLight:hT.WHITE,main:hT.PURPLE,light:hT.PURPLE_PALE,dark:hT.PURPLE_DARK,extraDark:hT.GREYSCALE_0_0,contrastText:hT.WHITE},background:{paper:hT.WHITE,default:hT.GREYSCALE_95},divider:hT.GREYSCALE_0_15},uN=e=>({components:lN(),palette:sN,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:bT,fontWeightLight:ST,fontWeightRegular:ET,fontWeightMedium:wT,fontWeightBold:CT,htmlFontSize:bT,fontFamily:RT.FONT_FAMILY,button:{fontWeight:wT,fontSize:bT,textTransform:"none"},body1:{fontSize:vT,lineHeight:"24px"},body2:{fontSize:bT,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:yT,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:vT,fontWeight:wT,lineHeight:"16px"},h6:{fontSize:bT,fontWeight:wT,lineHeight:"16px"},caption:{color:hT.TEXT_SECONDARY},subtitle1:{fontSize:bT,color:hT.TEXT_SECONDARY},subtitle2:{fontSize:gT,color:hT.TEXT_SECONDARY}},shape:{borderRadius:xT}}),cN={...mT,MISC_FOCUS_BORDER:hT.MISC_FOCUS_BORDER},dN=(e="light")=>uN(),pN=dN().palette,fN={SELECTED:{color:cN.GREYSCALE_100,background:pN.primary.light,selectedCellClass:NM.Selected},DISABLED_BACKGROUND:"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"},mN=4/3,hN="12px",gN="600",bN="Source Sans Pro, sans-serif",vN={height:"auto",fontSize:hN,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"}},yN={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:gN},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},xN=25e4,SN=(e,t,n)=>{if(null==e||!e.length)return[];const r=[],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=()=>{r[a]=Math.min(vk.PixelsMax,Math.max(vk.PixelsMin,m)),i-=r[a]};switch(s){case yk.Pixels:m=u||vk.PixelsDefault,h();break;case yk.Percentage:m=(c||vk.PercentageDefault)/100*t,h();break;case yk.FitToContent:(null===(l=e.representation)||void 0===l?void 0:l.type)===rP.Image?o.push(a):(m=n(d,f,p,e.isLocked,e.isActivelySorted,e.isDim),h());break;case yk.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=>{r[t]=Math.max(vk.AutoMinTable,e)}))}return r},EN=e=>e.ctrlKey||e.metaKey,wN=e=>e.shiftKey&&EN(e),CN=e=>[zM.LEFT,zM.RIGHT,zM.UP,zM.DOWN].includes(e),RN=e=>CN(e)||[zM.HOME,zM.END,zM.PAGE_UP,zM.PAGE_DOWN].includes(e),kN=e=>e.shiftKey&&CN(e.key),AN=(e,t)=>{const{colIdx:n,rows:r,api:o}=t;let i=NM.Inactive;return null!=o&&o.isModal()&&(i=n!==e.selectionColIdx?NM.Disabled:void 0!==r[e.qElemNumber]?NM.Selected:NM.Possible),i},PN=(e,t,n)=>{const r=Object.keys(n).length,o=r>=Object.keys(t).length;if(r){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===r?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",r.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},LN=(e,t)=>{const{api:n,rows:r,colIdx:o}=e,{cell:i,announce:a,evt:l}=t;let s={};if(-1===o)null==n||n.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;s={...r}}return s=((e,t,n)=>{const{qElemNumber:r,rowIdx:o}=t;return n.ctrlKey||n.metaKey?{[r]:o}:(void 0!==e[r]?delete e[r]:e[r]=o,{...e})})(s,i,l),PN(a,r,s),Object.keys(s).length?(null==n||n.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(s),[i.selectionColIdx]]}),{...e,rows:s,colIdx:i.selectionColIdx}):(null==n||n.cancel(),{...e,rows:s,colIdx:-1})},IN=(e,t)=>{var n;const{api:r,rows:o,colIdx:i,pageRows:a,firstCell:l}=e,{cell:s,announce:u,evt:c}=t;let d={};return l||"key"in c&&kN(c)?(-1===i?null==r||r.begin(["/qHyperCubeDef"]):d={...o},d=((e,t,n,r,o)=>{const i={...t};if("key"in r&&kN(r)){i[n.qElemNumber]=n.rowIdx;const t=r.key===zM.DOWN?1:-1;return i[e[n.pageRowIdx+t][n.pageColIdx].qElemNumber]=n.rowIdx+t,i}if(!o)return t;const a=Math.min(o.pageRowIdx,n.pageRowIdx),l=Math.max(o.pageRowIdx,n.pageRowIdx);for(let t=a;t<=l;t++){const n=e[t][o.pageColIdx];i[n.qElemNumber]=n.rowIdx}return i})(a,d,s,c,l),PN(u,o,d),{...e,rows:d,colIdx:null!==(n=null==l?void 0:l.selectionColIdx)&&void 0!==n?n:s.selectionColIdx,isSelectMultiValues:!0}):e},DN=e=>{const{api:t,rows:n,colIdx:r,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&(null==t||t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(n),[r]]})),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},_N=(e,t)=>{var n;switch(t.type){case qM.SELECT:return LN(e,t.payload);case qM.SELECT_MOUSE_DOWN:return((e,{cell:t,mouseupOutsideCallback:n})=>!n||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",n),{...e,firstCell:t,mouseupOutsideCallback:n}))(e,t.payload);case qM.SELECT_MOUSE_UP:return((e,t)=>DN(e.isSelectMultiValues||e.firstCell!==t.cell?e:LN(e,t)))(e,t.payload);case qM.SELECT_MULTI_ADD:return IN(e,t.payload);case qM.SELECT_MULTI_END:return DN(e);case qM.RESET:return null!==(n=e.api)&&void 0!==n&&n.isModal()?e:{...e,rows:{},colIdx:-1};case qM.CLEAR:return Object.keys(e.rows).length?{...e,rows:{}}:e;case qM.UPDATE_PAGE_ROWS:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},MN=4/3,TN=e=>parseInt(e,10)*MN+8+1,ON=e=>!!e&&(!(null==e||!e.color)||(null==e?void 0:e.index)>-1);function NN(e,t,n={index:-1}){const r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}const qN=e=>PC(e)?Aw.WHITE:Aw.TEXT,zN=(e,t)=>e?{borderBottomColor:Aw.DARK_MODE_BORDER,borderRightColor:Aw.DARK_MODE_BORDER,borderLeftColor:Aw.DARK_MODE_BORDER,borderTopColor:Aw.DARK_MODE_BORDER}:{borderLeftColor:Aw.BORDER_MEDIUM,borderRightColor:Aw.BORDER_MEDIUM,borderTopColor:Aw.BORDER_HEAVY,borderBottomColor:t?Aw.BORDER_HEAVY:Aw.BORDER_LIGHT},FN=e=>{var t;return null===(t=e.components)||void 0===t?void 0:t.find((e=>"theme"===e.key))},jN=(e,t,n,r=!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:ON(null==n?void 0:n.fontColor)?NN(Aw.TEXT,t,null==n?void 0:n.fontColor):i||Aw.TEXT,fontSize:(null==n?void 0:n.fontSize)&&`${n.fontSize}px`||a,padding:n&&"padding"in n?null==n?void 0:n.padding:void 0,...zN(t.background.isDark,r)};return Object.keys(l).forEach((e=>{const t=e;null==l[t]&&delete l[t]})),l};function $N(e,t,n){var r,o,i;const a=null===(r=FN(e))||void 0===r?void 0:r.header,l=jN("header",t,a,n);return l.background=MC(t.background.headerColor),l.hoverBackground=AC(null!==(o=l.background)&&void 0!==o?o:Aw.WHITE,xk.hover),l.activeBackground=AC(null!==(i=l.background)&&void 0!==i?i:Aw.WHITE,xk.active),l}function BN(e,t,n,r){var o;const i=null===(o=FN(e))||void 0===o?void 0:o.content,a=jN("content",t,i);a.background=t.background.color;const l=((e,t,n)=>{if(e&&t&&n)return TN(e)*(t+2)<n.clientHeight-40?"1px":"0px";return"0px"})(null==a?void 0:a.fontSize,n,r),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=ON(u)||!!d,f=ON(s)||!!c,m=p||f;let h;h=ON(s)?NN(Aw.HOVER,t,s):c||(p?"":Aw.HOVER);const g=m?NN(qN(h),t,u):"";return{...a,lastRowBottomBorder:l,hoverColors:{background:h,color:g}}}const HN=(e,t)=>{var n;const r=null!==(n=e.toLowerCase().match(/<[^>]+>/g))&&void 0!==n?n:[];return r.forEach((e=>e in yN&&Object.assign(t,yN[e]))),t};function VN(e,t,n,r){var o;const i={};let a={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return null==t||null===(o=t.qValues)||void 0===o||o.forEach(((e,t)=>{const o=e.qText,l=o&&_C(o);l&&"none"!==l&&(i[n[t]]=l),r.isEnabled("CLIENT_IM_6573_TEXT_STYLE")&&o&&(a=HN(o,a))})),i.cellBackgroundColor&&!i.cellForegroundColor&&(i.cellForegroundColor=qN(i.cellBackgroundColor)),{...e,...i,color:i.cellForegroundColor||e.color,background:i.cellBackgroundColor||e.background,fontStyle:a.fontStyle,fontWeight:a.fontWeight,textDecoration:a.textDecoration}}const WN=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return hN}},UN=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",GN=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",YN=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?gN:"normal",KN=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?"transparent":n}},XN=(e,t,n,r)=>{var o,i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,w,C,R,k,A,P,L,I,D,_,M,T,O,N,q,z,F,j,$,B,H,V,W,U,G,Y,K,X,J,Q,Z,ee,te,ne,re,oe,ie,ae,le,se,ue,ce;if(!e.flags.isEnabled("CLIENT_IM_6221_TABLE_STYLING"))return((e,t,n)=>{var r,o,i;return{header:{fontFamily:t.head.fontFamily,fontSize:t.head.fontSize,fontStyle:"normal",fontWeight:gN,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:gN,textDecoration:"none",color:t.totals.color,background:t.totals.background},nullValues:{fontStyle:"",fontWeight:"",textDecoration:"",color:"",background:"#F2F2F2"},grid:{lineClamp:null===(r=FN(e))||void 0===r||null===(r=r.content)||void 0===r?void 0:r.rowHeight,border:n.background.isDark?Aw.DARK_MODE_BORDER:Aw.BORDER_MEDIUM,divider:Aw.BORDER_HEAVY,hoverColors:{color:null===(o=t.body.hoverColors)||void 0===o?void 0:o.color,background:null===(i=t.body.hoverColors)||void 0===i?void 0:i.background},lastRowBottomBorder:t.body.lastRowBottomBorder},headerMenuHoverBackground:t.head.hoverBackground,headerMenuActiveBackground:t.head.activeBackground}})(t,n,r);const{header:de,dimensionValues:pe,measureValues:fe,totalValues:me,nullValues:he,grid:ge,content:be}=null!==(o=FN(t))&&void 0!==o?o:{},ve=null!==(i=null!==(a=null!==(l=KN(r,null==de?void 0:de.background))&&void 0!==l?l:r.getStyle("object.straightTableV2.dimension","label.name","backgroundColor"))&&void 0!==a?a:n.head.background)&&void 0!==i?i:Aw.TRANSPARENT;return{header:{fontFamily:null!==(s=null!==(u=null!==(c=null==de?void 0:de.fontFamily)&&void 0!==c?c:r.getStyle("object.straightTableV2.dimension","label.name","fontFamily"))&&void 0!==u?u:n.head.fontFamily)&&void 0!==s?s:bN,fontSize:WN(null!==(d=null!==(p=null==de?void 0:de.fontSize)&&void 0!==p?p:r.getStyle("object.straightTableV2.dimension","label.name","fontSize"))&&void 0!==d?d:n.head.fontSize),fontStyle:UN(null==de?void 0:de.fontStyle),fontWeight:YN(null==de?void 0:de.fontStyle,gN),textDecoration:GN(null==de?void 0:de.fontStyle),color:null!==(f=null!==(m=null!==(h=KN(r,null==de?void 0:de.fontColor))&&void 0!==h?h:r.getStyle("object.straightTableV2.dimension","label.name","color"))&&void 0!==m?m:n.head.color)&&void 0!==f?f:Aw.TEXT,background:ve},headerMenuHoverBackground:AC(ve,xk.hover),headerMenuActiveBackground:AC(ve,xk.active),dimension:{values:{fontFamily:null!==(g=null!==(b=null!==(v=null==pe?void 0:pe.fontFamily)&&void 0!==v?v:r.getStyle("object.straightTableV2.dimension","label.value","fontFamily"))&&void 0!==b?b:n.body.fontFamily)&&void 0!==g?g:bN,fontSize:WN(null!==(y=null!==(x=null==pe?void 0:pe.fontSize)&&void 0!==x?x:r.getStyle("object.straightTableV2.dimension","label.value","fontSize"))&&void 0!==y?y:n.body.fontSize),fontStyle:UN(null==pe?void 0:pe.fontStyle),fontWeight:YN(null==pe?void 0:pe.fontStyle,"normal"),textDecoration:GN(null==pe?void 0:pe.fontStyle),color:null!==(S=null!==(E=null!==(w=KN(r,null==pe?void 0:pe.fontColor))&&void 0!==w?w:r.getStyle("object.straightTableV2.dimension","label.value","color"))&&void 0!==E?E:n.body.color)&&void 0!==S?S:Aw.TEXT,background:null!==(C=null!==(R=null!==(k=KN(r,null==pe?void 0:pe.background))&&void 0!==k?k:r.getStyle("object.straightTableV2.dimension","label.value","backgroundColor"))&&void 0!==R?R:n.body.background)&&void 0!==C?C:Aw.TRANSPARENT}},measure:{values:{fontFamily:null!==(A=null!==(P=null!==(L=null==fe?void 0:fe.fontFamily)&&void 0!==L?L:r.getStyle("object.straightTableV2.measure","label.value","fontFamily"))&&void 0!==P?P:n.body.fontFamily)&&void 0!==A?A:bN,fontSize:WN(null!==(I=null!==(D=null==fe?void 0:fe.fontSize)&&void 0!==D?D:r.getStyle("object.straightTableV2.measure","label.value","fontSize"))&&void 0!==I?I:n.body.fontSize),fontStyle:UN(null==fe?void 0:fe.fontStyle),fontWeight:YN(null==fe?void 0:fe.fontStyle,"normal"),textDecoration:GN(null==fe?void 0:fe.fontStyle),color:null!==(_=null!==(M=null!==(T=KN(r,null==fe?void 0:fe.fontColor))&&void 0!==T?T:r.getStyle("object.straightTableV2.measure","label.value","color"))&&void 0!==M?M:n.body.color)&&void 0!==_?_:Aw.TEXT,background:null!==(O=null!==(N=null!==(q=KN(r,null==fe?void 0:fe.background))&&void 0!==q?q:r.getStyle("object.straightTableV2.measure","label.value","backgroundColor"))&&void 0!==N?N:n.body.background)&&void 0!==O?O:Aw.TRANSPARENT}},totalRow:{fontFamily:null!==(z=null!==(F=null!==(j=null==me?void 0:me.fontFamily)&&void 0!==j?j:r.getStyle("object.straightTableV2.total","label.value","fontFamily"))&&void 0!==F?F:n.totals.fontFamily)&&void 0!==z?z:bN,fontSize:WN(null!==($=null!==(B=null==me?void 0:me.fontSize)&&void 0!==B?B:r.getStyle("object.straightTableV2.total","label.value","fontSize"))&&void 0!==$?$:n.totals.fontSize),fontStyle:UN(null==me?void 0:me.fontStyle),fontWeight:YN(null==me?void 0:me.fontStyle,gN),textDecoration:GN(null==me?void 0:me.fontStyle),color:null!==(H=null!==(V=null!==(W=KN(r,null==me?void 0:me.fontColor))&&void 0!==W?W:r.getStyle("object.straightTableV2.total","label.value","color"))&&void 0!==V?V:n.totals.color)&&void 0!==H?H:Aw.TEXT,background:null!==(U=null!==(G=null!==(Y=KN(r,null==me?void 0:me.background))&&void 0!==Y?Y:r.getStyle("object.straightTableV2.total","label.value","backgroundColor"))&&void 0!==G?G:n.totals.background)&&void 0!==U?U:Aw.TRANSPARENT},nullValues:{fontStyle:UN(null==he?void 0:he.fontStyle),fontWeight:YN(null==he?void 0:he.fontStyle,"normal"),textDecoration:GN(null==he?void 0:he.fontStyle),color:null!==(K=null!==(X=null!==(J=KN(r,null==he?void 0:he.fontColor))&&void 0!==J?J:r.getStyle("object.straightTableV2.null","label.value","color"))&&void 0!==X?X:n.body.color)&&void 0!==K?K:Aw.TEXT,background:null!==(Q=null!==(Z=KN(r,null==he?void 0:he.background))&&void 0!==Z?Z:r.getStyle("object.straightTableV2.null","label.value","backgroundColor"))&&void 0!==Q?Q:Aw.NULL_VALUE_BACKGROUND},grid:{lineClamp:null!==(ee=null==be?void 0:be.rowHeight)&&void 0!==ee?ee:r.getStyle("object.straightTableV2","grid","lineClamp"),border:null!==(te=null!==(ne=KN(r,null==ge?void 0:ge.border))&&void 0!==ne?ne:r.getStyle("object.straightTableV2","grid","borderColor"))&&void 0!==te?te:r.background.isDark?Aw.DARK_MODE_BORDER:Aw.BORDER_MEDIUM,divider:null!==(re=null!==(oe=KN(r,null==ge?void 0:ge.divider))&&void 0!==oe?oe:r.getStyle("object.straightTableV2.grid","divider","borderColor"))&&void 0!==re?re:Aw.BORDER_HEAVY,hoverColors:{color:null!==(ie=null!==(ae=KN(r,null==be?void 0:be.hoverFontColor))&&void 0!==ae?ae:r.getStyle("object.straightTableV2","","grid.hover.color"))&&void 0!==ie?ie:null===(le=n.body.hoverColors)||void 0===le?void 0:le.color,background:null!==(se=null!==(ue=KN(r,null==be?void 0:be.hoverColor))&&void 0!==ue?ue:r.getStyle("object.straightTableV2","","grid.hover.backgroundColor"))&&void 0!==se?se:null===(ce=n.body.hoverColors)||void 0===ce?void 0:ce.background},lastRowBottomBorder:n.body.lastRowBottomBorder}}},JN=(e,t,n,r)=>{const o=X.useMemo((()=>{const o=n.totalsPosition.atTop,i=BN(e,t,n.rows.length,r),a=$N(e,t,!o),l=function(e,t,n){var r;const o=null===(r=FN(e))||void 0===r?void 0:r.content,i=jN("content",t,o),{borderBottomColor:a,borderTopColor:l,background:s}=$N(e,t,n);return{...i,borderBottomColor:a,background:s,borderTopColor:l}}(e,t,o);return{body:i,head:a,totals:l}}),[e,t,n,r]);return o},QN=new Map;const ZN=X.createContext({}),eq=function(e){const t=X.createContext([()=>{},new Set]);return QN.set(e,t),({children:n,value:r})=>{const o=X.useRef(r),i=X.useRef(new Set);X.useEffect((()=>{o.current=r,i.current.forEach((e=>{e(r)}))}),[r]);const a=X.useCallback((()=>o.current),[o]),l=X.useMemo((()=>[a,i.current]),[a]);return ta.jsx(e.Provider,{value:r,children:ta.jsx(t.Provider,{value:l,children:n})})}}(ZN),tq={rows:[],columns:[],totalsPosition:{}},nq=({app:e,children:t,tableData:n=tq,selectionsAPI:r,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[S,E]=X.useState(0),[w,C]=X.useState(o||fT),[R,k]=((e,t)=>{const[n,r]=X.useReducer(_N,{pageRows:e,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return[n,r]})(n.rows,r),[A,P]=X.useState(-1),L=JN(i,u,n,d),I=((e,t,n,r)=>X.useMemo((()=>XN(e,t,n,r)),[t,n,e,r]))(x,i,L,u),[D,_,M,T]=((e,t,n,r)=>{const o=t.atBottom||t.atTop,i=rk({...r.header,fontWeight:gN},{maxNbrLinesOfText:3}).measureText,a=rk({...r.totalRow,fontWeight:gN},{maxNbrLinesOfText:3}).measureText,{estimateWidth:l}=rk(r.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:s}=rk(r.measure.values,{maxNbrLinesOfText:3}),u=X.useMemo((()=>(e,t,n,r,u,c)=>{let d=25;d+=28,r&&(d+=24),u&&(d+=20);const p=c?l:s;return Math.max(i(e)+d,o?a(t)+24+1:0,p(n))}),[l,s,i,a,o]),[c,d]=X.useState(0),[p,f]=X.useState((()=>SN(e,n,u)));ak((()=>{f(SN(e,n-c,u))}),[e,n,c,u]);const m=X.useMemo((()=>((e,t,n)=>!!(e&&e.length>0)&&e.reduce(((e,t)=>e+t))+t<n)(p,c,n)),[p,c,n]);return[p,f,d,m]})(n.columns,n.totalsPosition,v.width,I),O=X.useMemo((()=>({app:e,selectionsAPI:r,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:I})),[e,r,i,a,l,s,u,c.active,d,p,f,m,v,y,I]);return ta.jsx(eq,{value:{headRowHeight:S,setHeadRowHeight:E,focusedCellCoord:w,setFocusedCellCoord:C,selectionState:R,selectionDispatch:k,hoverIndex:A,setHoverIndex:P,columnWidths:D,setColumnWidths:_,baseProps:O,tableData:n,setYScrollbarWidth:M,setPage:h,pageInfo:g,initialDataPages:b,showRightBorder:T,env:x},children:t})};function rq(e,t){const n=function(e){return QN.get(e)}(e),[r,o]=X.useContext(n),[,i]=X.useReducer((e=>e+1),0),a=X.useRef(t),l=X.useRef(),s=r();if(void 0===s)throw new Error("You must call useContextSelector inside a valid context.");const u=X.useMemo((()=>t(s)),[s,t]);return X.useEffect((()=>{a.current=t,l.current=u}),[s,u,t]),X.useEffect((()=>{const e=e=>{(a.current&&a.current(e))!==l.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function oq(e){var t;const n=dN();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),q_({...n,direction:e})}const iq=wl(eS,{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({pointerEvents:"auto",touchAction:"none",display:"flex",position:"absolute",height:"100%",top:0,cursor:"col-resize",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",marginLeft:"-4px","&:hover:not(:focus, :active)":{[`& .${bk}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${bk}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),aq=wl(eS)({position:"absolute",height:"100%",width:"3px"}),lq=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u})=>{const c=X.useRef({initWidth:e,columnWidth:e,initX:0}),d=n?0:1,p=r&&!u,f={left:p?c.current.columnWidth-d:"100%"},m=t=>{c.current={initWidth:e,columnWidth:e,initX:null!=t?t:c.current.initX}};ak((()=>p&&m()),[e]);const h=e=>{const t=Math.max(e,vk.PixelsMin);c.current.columnWidth=t,i(t)},g=()=>{if(c.current.columnWidth!==c.current.initWidth){const e={type:yk.Pixels,pixels:c.current.columnWidth};a(e)}else null==s||s(!1)},b=e=>{const t=c.current.initWidth+e.clientX-c.current.initX;h(t)},v=e=>{OC(e),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",v),g()},y=e=>{const t=c.current.initWidth+e.touches[0].clientX-c.current.initX;h(t)},x=e=>{OC(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",x),g()},S=!r&&l?e=>{if(e.key===hk.LEFT||e.key===hk.RIGHT){OC(e);const t=5,n=e.key===hk.LEFT?-t:t;h(c.current.columnWidth+n)}else e.key===hk.SPACE||e.key===hk.ENTER?(OC(e),l(e),g()):e.key===hk.ESC&&(OC(e),l(e),h(c.current.initWidth))}:void 0;return J.createElement(iq,{className:gk,isLastColumn:n,hoverColor:o,style:f,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",b),document.addEventListener("mouseup",v),null==s||s(!0),m(e.clientX)},onDoubleClick:()=>a({type:yk.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",x),null==s||s(!0),m(e.touches[0].clientX))},onKeyDown:S,onBlur:l,onFocus:()=>m(),"data-testid":gk},J.createElement(aq,{className:bk}))};function sq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const uq=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){sq(e,t,n[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),J.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),cq=X.forwardRef(uq);function dq(){return dq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dq.apply(null,arguments)}const pq=wl(eS,{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"}))),fq=wl(cq,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),mq=wl(DE)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),hq=wl(CS)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),gq=wl(NE)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),bq=wl(NE,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:n})=>({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:""+(n?"rgba(0, 0, 0, 0.05)":"transparent")}))),vq=wl("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"}))),yq=wl("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),xq=wl(tx)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),Sq=wl(oE)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function Eq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wq=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Eq(e,t,n[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),J.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),Cq=X.forwardRef(wq);let Rq={};const kq=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=X.useState(!1),p=X.useRef(null),f=X.useCallback((e=>{e.stopPropagation(),d(!1)}),[d]);return J.createElement(J.Fragment,null,J.createElement(bq,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),Rq={}),null!=a&&a.length&&(d(!0),Rq[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&J.createElement(vq,null),J.createElement(yq,null,J.createElement(Sq,null,J.createElement(o,null)),J.createElement(xq,{variant:"body2"},r)),null!=a&&a.length?J.createElement(Cq,null):null),(null==a?void 0:a.length)&&J.createElement(Lq,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=Rq,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},Aq=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&J.createElement(gq,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>J.createElement(kq,dq({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),Pq={appear:200,enter:200,exit:100},Lq=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>r.length?J.createElement(mq,dq({className:pk,open:t,anchorEl:e,onClose:n,transitionDuration:Pq,MenuListProps:{id:fk}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[Aq({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?J.createElement(hq,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:r,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,Iq={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},Dq=(e,t)=>e.some((e=>t[e]>0));function _q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Mq=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_q(e,t,n[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),J.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"})),Tq=X.forwardRef(Mq);function Oq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Nq=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Oq(e,t,n[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),J.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"})),qq=X.forwardRef(Nq);function zq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fq=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){zq(e,t,n[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),J.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"})),jq=X.forwardRef(Fq);function $q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Bq=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$q(e,t,n[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),J.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"})),Hq=X.forwardRef(Bq);function Vq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Wq=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Vq(e,t,n[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),J.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"})),Uq=X.forwardRef(Wq);function Gq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Yq=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Gq(e,t,n[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),J.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"})),Kq=X.forwardRef(Yq);function Xq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Jq=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Xq(e,t,n[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),J.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"})),Qq=X.forwardRef(Jq);function Zq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ez=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Zq(e,t,n[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),J.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"})),tz=X.forwardRef(ez);function nz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rz=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){nz(e,t,n[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),J.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"})),oz=X.forwardRef(rz);function iz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const az=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){iz(e,t,n[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),J.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"})),lz=X.forwardRef(az);let sz=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const uz=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c})=>{const d=[];if(n[sz.SORTING]){const{isActivelySorted:n,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:n,isSortedByFirstMeasure:r})=>{let o=!n&&!e||"D"===t,i=!n&&!e||"A"===t;return r&&(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")),r(!1)},icon:Tq,enabled:a,isActive:!!n&&"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")),r(!1)},icon:Hq,enabled:l,isActive:!!n&&"D"===i,autoFocus:!a&&l}]}])}if(e.isDim&&null!=i&&i.select){const e=[];n[sz.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:Uq,enabled:!0}]}]),n[sz.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:lz,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAll())},icon:Kq,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectPossible())},icon:oz,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAlternative())},icon:Qq,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectExcluded())},icon:tz,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.clear())},icon:qq,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&d.push(...e)}return n[sz.ADJUST_HEADER_SIZE]&&d.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==c||c(u)},icon:jq,enabled:!0}]}]),d},cz=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const m=sk({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:b}=r,{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:S}=(({headerData:e,app:t})=>{const[n,r]=X.useState(null),[o,i]=X.useState(Iq);return X.useEffect((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:X.useCallback((()=>i(Iq)),[]),updateSelectionActionsEnabledStatus:X.useCallback((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:Dq(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:Dq(["qSelected"],n.qStateCounts),canSelectPossible:Dq(["qOption"],n.qStateCounts),canSelectAlternative:Dq(["qAlternative"],n.qStateCounts),canSelectExcluded:Dq(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),E=X.useCallback((()=>{const e=g?{qLibraryId:g,type:"dimension"}:b;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:n}=c;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sortCriteria:c.sortCriteria})}}),[c,b,g]);X.useEffect((()=>{e||(x(),null!=d&&d.model&&d.model.getLayout().then((e=>{S(e)})).catch((e=>console.error(e))))}),[e,x,S,null==d?void 0:d.model]);const w=X.useCallback((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?J.createElement(pq,{rightAligned:"right"===h,shouldShowMenuIcon:s,className:dk},s&&J.createElement(fq,{height:uk,className:ck,"data-testid":ck,isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},J.createElement(cq,null)),J.createElement(Lq,{open:e,anchorEl:n.current,onClose:w,menuGroups:uz({headerData:r,translator:m,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:E,interactions:i,fieldInstance:v,selectionActionsEnabledStatus:y,anchorRef:n,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),handleHeadCellMenuKeyDown:a})):null},dz=e=>e.isDark?{background:e.color,borderColor:Aw.DARK_MODE_BORDER,color:Aw.DARK_MODE_TEXT,disabledColor:Aw.DARK_MODE_DISABLED,iconColor:Aw.DARK_MODE_TEXT}:{background:e.color,borderColor:Aw.BORDER_MEDIUM,color:Aw.TEXT,disabledColor:Aw.DISABLED},pz=wl(eS,{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}`}))),fz=wl(xw,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),mz=wl(dS,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)}))),hz=wl(tx)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),gz=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=X.useMemo((()=>dz(r.background)),[r]);if(!n.active)return null;const a=o?J.createElement(pz,{footerStyle:i},e):null;return t?ty.createPortal(e,t):a},bz={},vz=X.createContext(bz),yz=()=>X.useContext(vz),xz=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,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=X.useMemo((()=>dz(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=sk({translator:d}),x=X.useMemo((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,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,n,r,o,i,a,l,s,u,c,y,p,f,m,h,b,g,v]);return J.createElement(vz.Provider,{value:x},e)};let Sz=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),Ez=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 wz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Cz=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){wz(e,t,n[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),J.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),Rz=X.forwardRef(Cz);function kz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Az=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){kz(e,t,n[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),J.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),Pz=X.forwardRef(Az);function Lz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Iz=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Lz(e,t,n[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),J.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),Dz=X.forwardRef(Iz),_z={FirstPage:Pz,PreviousPage:Rz,NextPage:Cq,LastPage:Dz,FirstPageRTL:Dz,PreviousPageRTL:Cq,NextPageRTL:Rz,LastPageRTL:Pz},Mz=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=yz(),u=_z[`${n}${"rtl"===r?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},Tz=()=>{const{pageInfo:e,width:t}=yz(),n=0===e.page,{IconComponent:r,styledProps:o}=Mz({type:Sz.FirstPage,disabledCondition:n,pageNumber:0});return t<=Ez.FirstPage?null:J.createElement(mz,o,J.createElement(r,{height:uk}))},Oz=(e,t,n=!1)=>{n&&e.key===hk.TAB&&!e.shiftKey&&(OC(e),TC(e.target,t,!1))},Nz=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=yz(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=Mz({type:Sz.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>Oz(e,t,r):null;return o<=Ez.LastPage?null:J.createElement(mz,dq({},l,{onKeyDown:s}),J.createElement(a,{height:uk}))},qz=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=yz(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=Mz({type:Sz.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>Ez.FirstPage&&o>Ez.LastPage)&&t.enabled?e=>Oz(e,t,r):null;return J.createElement(mz,dq({},l,{onKeyDown:s}),J.createElement(a,{height:uk}))},zz=()=>{const{pageInfo:e}=yz(),t=0===e.page,{IconComponent:n,styledProps:r}=Mz({type:Sz.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return J.createElement(mz,r,J.createElement(n,{height:uk}))},Fz=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=yz(),{page:o,rowsPerPage:i}=n;if(t<=Ez.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return J.createElement(hz,{variant:"caption"},a)},jz=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=yz(),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 J.createElement(J.Fragment,null,J.createElement(hz,{variant:"caption",id:d},u,":"),J.createElement(fz,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},$z=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=yz();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>Ez.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=J.createElement(J.Fragment,null,t.rowsPerPageOptions.map((e=>J.createElement("option",{key:e,value:e},e))));return J.createElement(jz,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},Bz=1e3,Hz="…",Vz=({totalPages:e,page:t})=>{const n=Math.min(e,Bz),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-Bz):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return J.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(J.createElement("option",{key:"startMoreOptions",value:Hz,disabled:!0},Hz)),o<e-1&&a.push(J.createElement("option",{key:"endMoreOptions",value:Hz,disabled:!0},Hz)),J.createElement(J.Fragment,null,a)},Wz=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=yz(),{page:o}=e;if(t<=Ez.SelectPage)return null;const i=J.createElement(Vz,{totalPages:n,page:o});return J.createElement(jz,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})},Uz=e=>J.createElement(xz,e,J.createElement($z,null),J.createElement(Wz,null),J.createElement(Fz,null),J.createElement(Tz,null),J.createElement(zz,null),J.createElement(qz,null),J.createElement(Nz,null));var Gz=X.memo(Uz);const Yz=e=>J.createElement(gz,e,J.createElement(Gz,e)),Kz=hM(sO,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.color}))),Xz=hM(sO,{shouldForwardProp:e=>"lines"!==e&&"allIconsDisabled"!==e&&"headCell"!==e&&"isPagination"!==e&&"wordBreak"!==e&&"virtualizedCell"!==e})((({lines:e,wordBreak:t,allIconsDisabled:n=!1,headCell:r=!1,isPagination:o=!1,virtualizedCell:i=!1})=>({lineHeight:"calc(4/3)",fontSize:"inherit",...(r||t||1===e)&&{height:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:r&&o?"break-word":"break-all",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",...r&&{whiteSpace:n||i?"normal":"nowrap"}}}))),Jz=hM(sO)({overflow:"hidden",textOverflow:"ellipsis"});function Qz(e,t){const n=X.useRef(!1);X.useEffect((()=>{n.current?e():n.current=!0}),t)}const Zz=(e,t)=>{var n;return null===(n=e.getElementsByClassName("sn-table-row")[t[0]])||void 0===n?void 0:n.getElementsByClassName("sn-table-cell")[t[1]]},eF=e=>e.querySelector("td[tabindex='0'], th[tabindex='0']"),tF=e=>{const t=e.nextElementSibling;var n;return t?"HR"===t.tagName?tF(t):t:null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[0]},nF=e=>{const t=e.previousElementSibling;if(!t){var n,r;const t=null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n.length;return null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[t-1]}return"HR"===t.tagName?nF(t):t},rF=e=>{setTimeout((()=>{var t;const n=null===(t=e.current)||void 0===t||null===(t=t.closest(".sn-table-cell"))||void 0===t?void 0:t.querySelector(`.${gk}`);null==n||n.setAttribute("tabIndex","0"),null==n||n.focus()}),0)},oF=({focusType:e,cell:t})=>{if(t)switch(e){case FM.FOCUS:t.focus(),t.setAttribute("tabIndex","0");break;case FM.FOCUS_BUTTON:const e=t.querySelector(".sn-table-head-label");null==e||e.focus();break;case FM.BLUR:t.blur(),t.setAttribute("tabIndex","-1");break;case FM.ADD_TAB:t.setAttribute("tabIndex","0");break;case FM.REMOVE_TAB:t.setAttribute("tabIndex","-1")}},iF=({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,allowedRows:o})=>{oF({focusType:FM.REMOVE_TAB,cell:e.currentTarget});const i=((e,t,n,r={top:0,bottom:0})=>{const o=r.top>0,i=r.top,a=t.getElementsByClassName("sn-table-row").length-1-r.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[s,u]=n;switch(e.key){case zM.DOWN:s<a&&s++;break;case zM.UP:s>i&&s--;break;case zM.RIGHT:if(o)break;u<l?u++:s<a&&(s++,u=0);break;case zM.LEFT:if(o)break;u>0?u--:s>0&&(s--,u=l);break;case zM.HOME:(EN(e)||o)&&(s=i),o||(u=0);break;case zM.END:(EN(e)||o)&&(s=a),o||(u=l);break;case zM.PAGE_DOWN:s=Math.min(a,s+10);break;case zM.PAGE_UP:s=Math.max(i,s-10)}return[s,u]})(e,t,n,o),a=Zz(t,i);return oF({focusType:FM.FOCUS,cell:a}),((e,t)=>{const n=t.getElementsByClassName("sn-table-container")[0];if(null==n||!n.scrollTo)return;const[r,o]=e;if(r<2)n.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")[r])||void 0===i?void 0:i.getElementsByClassName("sn-table-cell")[o];if(!a||!e)return;if(a.offsetTop-e.offsetHeight<n.scrollTop){const t=n.scrollTop-a.offsetHeight-e.offsetHeight;n.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(i,t),r(i),{nextCell:a,nextCellCoord:i}},aF=(e,t,n,r)=>{var o;(oF({focusType:FM.REMOVE_TAB,cell:eF(t)}),n(e),r.enabled&&!r.active)?null===(o=r.focus)||void 0===o||o.call(r):oF({focusType:FM.ADD_TAB,cell:Zz(t,e)})},lF=(e,t,n)=>{X.useEffect((()=>{const r=e.current;if(!r)return;const o=e=>((e,t,n)=>{const r=e.currentTarget,o=e.relatedTarget,i=!(null==r||!r.contains(o)),a=null==o?void 0:o.closest(`.${pk}`);if(n.enabled&&!i&&!a&&!t.current&&r){var l;const e=r.querySelector(".sn-table-announcer-1"),t=r.querySelector(".sn-table-announcer-2");e&&t&&(e.innerHTML="",t.innerHTML=""),null===(l=n.blur)||void 0===l||l.call(n,!1)}})(e,t,n);return r.addEventListener("focusout",o),()=>{r.removeEventListener("focusout",o)}}),[e,t,n])},sF=(e,t,n)=>{X.useEffect((()=>{const r=e.current;if(!r)return;const o=e=>((e,t,n)=>{if(0===e.deltaX)return;e.stopPropagation();const r=n.scrollWidth-n.offsetWidth;let{scrollLeft:o}=n,i=o+e.deltaX;t&&(i=r+i),r>0&&(i<0||i>r+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(r,i)):Math.max(0,Math.min(r,i)))})(e,"rtl"===t,r),i=e=>{var t;n.scrollLeft=(null===(t=e.currentTarget)||void 0===t?void 0:t.scrollLeft)||0};return r.addEventListener("wheel",o),r.addEventListener("scroll",i),()=>{r.removeEventListener("wheel",o),r.removeEventListener("scroll",i)}}),[e,t,n])},uF=(e,t=!1)=>e.key===zM.ESC&&!t||(e.key===zM.LEFT||e.key===zM.RIGHT)&&wN(e),cF=e=>{var t;const{key:n,currentTarget:r}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:r;if(n===zM.DOWN||n===zM.UP){const t=e=>n===zM.DOWN?tF(e):nF(e);OC(e);let r=t(o);for(;r;){if("true"!==r.ariaDisabled){r.focus();break}r=t(r)}}},dF=({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,keyboard:l,paginationNeeded:s,totalsPosition:u,selectionsAPI:c})=>{if(e.currentTarget.classList.contains(NM.Disabled))return void OC(e);const d=null==c?void 0:c.isModal();if(!uF(e,d))switch(e.key){case zM.SPACE:OC(e),n.isSelectable&&o&&r({type:qM.SELECT,payload:{cell:n,evt:e,announce:a}});break;case zM.ENTER:OC(e),d&&(null==c||c.confirm(),a({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case zM.ESC:OC(e),null==c||c.cancel(),a({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case zM.TAB:(({evt:e,keyboard:t,isSelectionMode:n,paginationNeeded:r})=>{(null==t?void 0:t.enabled)&&n&&(e.shiftKey||!e.shiftKey&&!r)&&(OC(e),TC(e.currentTarget,t,e.shiftKey))})({evt:e,keyboard:l,isSelectionMode:d,paginationNeeded:s});break;case zM.C:OC(e),EN(e)&&wk(e.currentTarget);break;default:RN(e.key)&&(OC(e),(({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:l,isSelectionMode:s})=>{const u=l.atTop?2:1,c=[n.pageRowIdx+u,n.pageColIdx],d={top:s?u:0,bottom:s&&l.atBottom?1:0},{nextCell:p,nextCellCoord:f}=iF({evt:e,rootElement:t,cellCoord:c,setFocusedCellCoord:i,allowedRows:d});f[0]!==c[0]&&(((e,t,n)=>t.shiftKey&&e&&n.isSelectable)(o,e,n)?r({type:qM.SELECT_MULTI_ADD,payload:{cell:n,evt:e,announce:a}}):((e,t,n=!1)=>{n&&t&&e(t.classList.contains("selected")?{keys:["SNTable.SelectionLabel.SelectedValue"]}:{keys:["SNTable.SelectionLabel.NotSelectedValue"]})})(a,p,s))})({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:u,isSelectionMode:d}))}},pF=e=>{const{layout:t,rect:n,theme:r}=rq(ZN,(e=>e.baseProps)),[o,i]=X.useState(0),[a,l]=X.useState(0);return X.useLayoutEffect((()=>{if(e.current){var t;const{offsetWidth:n=0,offsetHeight:r=0,clientWidth:o=0,clientHeight:a=0}=null!==(t=e.current)&&void 0!==t?t:{},s=r-a;l(n-o),i(s)}}),[e,t,n,r]),{xScrollbarWidth:o,yScrollbarWidth:a}},fF=hM("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),mF=hM(WO,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.active?"auto":"hidden",border:"none"}))),hF=hM(PO,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),gF=()=>ta.jsxs(ta.Fragment,{children:[ta.jsx(fF,{className:"sn-table-announcer-1","aria-live":"polite","aria-atomic":"true"}),ta.jsx(fF,{className:"sn-table-announcer-2","aria-live":"polite","aria-atomic":"true"})]}),bF=e=>e.stopPropagation(),vF=({href:e,text:t,interactions:n,color:r})=>J.createElement(YS,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:bF,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),yF=({viewService:e,isImagesEnabled:t,styleService:n})=>{var r,o;let i=null===(r=e.viewState)||void 0===r?void 0:r.maxLineCount;var a;t&&(i=null!==(a=i)&&void 0!==a?a:n.grid.lineClamp);return{maxNbrLines:null!==(o=i)&&void 0!==o?o:3,isStaticNbrOfLines:void 0!==i}},xF=({children:e,fontSize:t="",wordBreak:n=!1,isPagination:r=!1,virtualizedCell:o=!1,lines:i=3,headCell:a=!1,allIconsDisabled:l=!1})=>{if(a)return ta.jsx(Xz,{component:"span",className:"sn-table-cell-text",lines:i,isPagination:r,headCell:!0,allIconsDisabled:l,children:e});const s=parseInt(t||hN,10),u=ta.jsx(Xz,{component:"span",className:"sn-table-cell-text",wordBreak:n,lines:i,virtualizedCell:o,children:e});return n?u:ta.jsx(Jz,{minHeight:s*mN,maxHeight:s*mN*i,children:u})},SF=e=>{let t="center",n="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)?n="left":"flex-end"===(null==e?void 0:e.horizontal)&&(n="right"),`${n} ${t}`},EF=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},wF=({representation:e,textStyle:t,maxImageHeight:n,wrapInContainer:r})=>{const{url:o,text:i,imageSize:a,resolvedImagePosition:l}=e,s="fitHeight"===a,u=ta.jsx("img",{src:o,alt:i,style:{width:s?"auto":"100%",height:"100%",maxHeight:n,objectFit:EF(a),objectPosition:SF(l),...t,overflow:"hidden"}});var c;return r?ta.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:s?n:"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},CF=({cell:e,style:t,maxImageHeight:n,virtualizedCell:r})=>{const{flags:o}=rq(ZN,(e=>e.env)),{interactions:i,viewService:a,styleService:l}=rq(ZN,(e=>e.baseProps)),s=rq(ZN,(e=>{var t;return null===(t=e.selectionState.api)||void 0===t?void 0:t.isActive()})),{maxNbrLines:u}=yF({viewService:a,styleService:l,isImagesEnabled:o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")});let c=e.representation.text;return e.representation.type!==rP.Link||s||(c=ta.jsx(vF,{href:e.representation.url,text:e.representation.text,interactions:i,color:t.cellForegroundColor})),e.representation.type===rP.Image?ta.jsx(wF,{representation:e.representation,textStyle:t,maxImageHeight:n,wrapInContainer:!r}):ta.jsx(xF,{wordBreak:!e.isNumeric,fontSize:t.fontSize,lines:u,virtualizedCell:r,children:c})},RF=({selectionsAPI:e,selectionDispatch:t,setShouldRefocus:n,keyboard:r,tableWrapperRef:o})=>{X.useEffect((()=>{const i=()=>{t({type:qM.RESET})},a=()=>{t({type:qM.CLEAR})},l=()=>{var e;if(null!==(e=o.current)&&void 0!==e&&e.contains(document.activeElement))n();else if(r.enabled){var t;null===(t=r.blur)||void 0===t||t.call(r,!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,r,t,n,o])},kF=e=>parseInt(null!=e?e:vN.fontSize,10)*mN,AF=({maxNbrLines:e,isStaticNbrOfLines:t,lineHeight:n})=>t?n*e+8+1:void 0,PF=(e,t,n,r)=>({handleMouseDown:r=>{null==e||e(r);const o=r.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>n({type:qM.SELECT_MULTI_END});n({type:qM.SELECT_MOUSE_DOWN,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&n({type:qM.SELECT_MULTI_ADD,payload:{cell:t,evt:e,announce:r}})},handleMouseUp:e=>{0===e.button&&n({type:qM.SELECT_MOUSE_UP,payload:{cell:t,evt:e,announce:r}})}}),LF=hM(OO,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),IF=hM(oN,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e})((({hover:e,hoverColors:t})=>({"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),DF=hM($O,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...vN,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),_F=hM($O,{shouldForwardProp:e=>"atTop"!==e&&"headRowHeight"!==e&&"totalsStyle"!==e})((({totalsStyle:e,atTop:t,headRowHeight:n,theme:r})=>({...vN,...e,fontWeight:gN,position:"sticky",padding:r.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t&&n,bottom:!t&&0,verticalAlign:t?"bottom":"top"})));function MF(e){return t=>{const{cell:n,styling:r,announce:o,onMouseDown:i}=t,a=rq(ZN,(e=>AN(n,e.selectionState))),l=rq(ZN,(e=>e.selectionDispatch)),{handleMouseDown:s,handleMouseOver:u,handleMouseUp:c}=PF(i,n,l,o),d=function(e,t){let n={};switch(t){case NM.Selected:n=fN.SELECTED;break;case NM.Disabled:n={background:`${fN.DISABLED_BACKGROUND}, ${e.background}`,selectedCellClass:NM.Disabled}}return{...e,...n}}(r,a);return ta.jsx(e,{...t,styling:d,onMouseUp:c,onMouseDown:s,onMouseOver:u})}}function TF(e,t,n){let r=(o=DF,e=>{const{styling:{selectedCellClass:t,...n},component:r,align:i,children:a,scope:l,tabIndex:s,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,title:m}=e;return ta.jsx(o,{cellStyle:n,component:r,scope:l,align:i,tabIndex:s,className:`sn-table-cell ${t||""} ${mk}`,title:m,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,children:a})});var o;return t&&(r=MF(r)),e&&(r=function(e,t){return n=>{const{cell:r,column:o,styling:i}=n,a=X.useMemo((()=>VN(i,r.qAttrExps,o.qAttrExprInfoIDs,t)),[i,r.qAttrExps,o.qAttrExprInfoIDs]);return ta.jsx(e,{...n,styling:a})}}(r,n)),r}const OF=(e,{atTop:t,atBottom:n},r)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!r&&n?e.grid.divider:e.grid.border,borderBottomColor:r&&!t||!r&&t?e.grid.divider:e.grid.border}),NF=()=>{const{columns:e,totalsPosition:t,rows:n}=rq(ZN,(e=>e.tableData)),{rootElement:r,selectionsAPI:o,keyboard:i,styleService:a,interactions:l}=rq(ZN,(e=>e.baseProps)),s=rq(ZN,(e=>e.headRowHeight)),u=rq(ZN,(e=>e.setFocusedCellCoord));return ta.jsx(oN,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,c)=>{const d=[t.atTop?1:n.length+1,c];return ta.jsx(_F,{totalsStyle:{...a.totalRow,...OF(a,t,!1)},headRowHeight:s,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${mk}`,tabIndex:-1,title:l.passive?e.totalInfo:void 0,onKeyDown:e=>{((e,t,n,r,o=!1)=>{if(o)OC(e);else if(!uF(e))switch(e.key){case zM.C:OC(e),EN(e)&&wk(e.currentTarget);break;case zM.SPACE:e.preventDefault();break;default:RN(e.key)&&(OC(e),iF({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r}))}})(e,r,d,u,null==o?void 0:o.isModal())},onMouseDown:()=>{aF(d,r,u,i)},children:ta.jsx(xF,{wordBreak:!e.isTotalNumeric,fontSize:a.totalRow.fontSize,children:e.totalInfo})},e.id)}))})};var qF=X.memo(NF);const zF=({setShouldRefocus:e,tableWrapperRef:t,announce:n})=>{var r;const{rows:o,columns:i,paginationNeeded:a,totalsPosition:l}=rq(ZN,(e=>e.tableData)),{selectionsAPI:s,rootElement:u,keyboard:c,layout:d,interactions:p,styleService:f,viewService:m}=rq(ZN,(e=>e.baseProps)),h=rq(ZN,(e=>e.setFocusedCellCoord)),g=rq(ZN,(e=>e.selectionDispatch)),{flags:b}=rq(ZN,(e=>e.env)),v=!!p.active&&!!p.select,y=JSON.stringify(i.map((e=>e.qAttrExprInfoIDs))),x=X.useMemo((()=>JSON.parse(y).map((e=>{const t=e.some((e=>["cellBackgroundColor","cellForegroundColor",b.isEnabled("CLIENT_IM_6573_TEXT_STYLE")&&"textStyleExpression"].includes(e)));return TF(t,v,b)}))),[y,v,b]),S=!(null===(r=FN(d))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect),{maxNbrLines:E,isStaticNbrOfLines:w}=yF({viewService:m,styleService:f,isImagesEnabled:b.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")}),C=kF(f.dimension.values.fontSize),R=AF({maxNbrLines:E,isStaticNbrOfLines:w,lineHeight:C});return RF({keyboard:c,selectionDispatch:g,selectionsAPI:s,setShouldRefocus:e,tableWrapperRef:t}),ta.jsxs(LF,{lastRowBottomBorder:f.grid.lastRowBottomBorder,children:[l.atTop?ta.jsx(qF,{}):void 0,o.map(((e,t)=>ta.jsx(IF,{hoverColors:f.grid.hoverColors,hover:S,tabIndex:-1,className:"sn-table-row sn-table-data-row",rowindex:t,height:R,children:i.map(((t,r)=>{const{id:o}=t,i=e[r],d=x[r],m=VN({},i.qAttrExps,t.qAttrExprInfoIDs,b);let y=t.isDim?f.dimension.values:f.measure.values;return i.isNull&&(y={...y,...f.nullValues}),d&&ta.jsx(d,{scope:0===r?"row":void 0,component:0===r?"th":void 0,cell:i,column:t,align:i.align,styling:{...y,borderColor:f.grid.border},tabIndex:-1,announce:n,title:p.passive?i.representation.text:void 0,onKeyDown:e=>{dF({evt:e,rootElement:u,selectionsAPI:s,cell:i,selectionDispatch:g,isSelectionsEnabled:v,setFocusedCellCoord:h,announce:n,keyboard:c,paginationNeeded:a,totalsPosition:l})},onKeyUp:e=>((e,t)=>{e.key===zM.SHIFT&&t({type:qM.SELECT_MULTI_END})})(e,g),onMouseDown:()=>((e,t,n,r,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,l=o.atTop?i+2:i+1;aF([l,a],t,n,r)})(i,u,h,c,l),children:ta.jsx(CF,{cell:i,style:m,maxImageHeight:w?C*E:C})},o)}))},`row-${t}`))),l.atBottom?ta.jsx(qF,{}):void 0]})};var FF=X.memo(zF);const jF=({column:e,isLastColumn:t,onColumnResize:n,setIsAdjustingWidth:r})=>{const{pageColIdx:o}=e,{applyColumnWidths:i,interactions:a}=rq(ZN,(e=>e.baseProps)),l=rq(ZN,(e=>e.columnWidths)),s=rq(ZN,(e=>e.setColumnWidths));if(!a.active)return null;return ta.jsx(lq,{columnWidth:l[o],isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{null==n||n();const t=[...l];t[o]=e,s(t)},confirmWidthCallback:t=>{i(t,e)},handleBlur:e=>(e=>{e.setAttribute("tabIndex","-1");const t=e.closest(".sn-table-cell");oF({focusType:FM.FOCUS,cell:t})})(e.currentTarget),setIsAdjustingWidth:r})};function $F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const BF=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$F(e,t,n[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),J.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"})),HF=X.forwardRef(BF);function VF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const WF=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){VF(e,t,n[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),J.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"})),UF=X.forwardRef(WF);function GF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const YF=(e,t)=>J.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){GF(e,t,n[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),J.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"}),J.createElement("use",{fillRule:"evenodd"})),KF=X.forwardRef(YF),XF=hM("div")({position:"absolute",left:0,bottom:0}),JF=hM(sO,{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"})));hM("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1});const QF=hM(sO,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})((({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:n})=>{const r=e?"24px":"";let o;switch(n){case"left":o={gridTemplateColumns:t?`20px 2fr ${r}`:`1fr ${r}`};break;case"center":{const n=e||t;o={gridTemplateColumns:n?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:n?2:1},[`& .${dk}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${r} 2fr 20px`:`${r} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:2},[`& .${dk}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),ZF=hM(sO,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})));hM(sO,{shouldForwardProp:e=>"isVisible"!==e&&"rightAligned"!==e})((({rightAligned:e})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:"24px",display:"flex"}))),hM(SO)((({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"}}))),hM("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),hM(hO)((({theme:e})=>({marginRight:e.spacing(1.5),lineHeight:0}))),hM("div")((({theme:e})=>({height:"350px",boxSizing:"border-box",background:e.palette.common.white})));const ej=hM($O,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:n,background:r})=>({...vN,...e,cursor:t.active?"pointer":"default",background:r,verticalAlign:"bottom","&&:focus-visible, &&:hover":{background:t.active?n:r}})));hM("div")({display:"flex",alignItems:"center"});const tj=hM("span",{shouldForwardProp:e=>"align"!==e})((({align:e})=>({minWidth:hN,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),nj=({column:e,isInteractionEnabled:t,open:n,setOpen:r,allColumnsIconVisibilityStatusRef:o,isPagination:i})=>{const{translator:a,changeSortOrder:l,interactions:s,embed:u,app:c,model:d,styleService:p}=rq(ZN,(e=>e.baseProps)),f=rq(ZN,(t=>t.columnWidths[e.pageColIdx])),m=X.useRef(null),h=X.useRef(null),{getHeadCellsIconsVisibilityStatus:g,allIconsDisabled:b}=(({styleService:e,column:t,columnWidth:n})=>{const{measureText:r}=rk({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:gN}),o=X.useCallback((()=>{let e=!1,o=!1,i=!1;const a=t.isLocked,l=t.isActivelySorted,s=n-25,u=a?20:0,c=l?20:0;let d=r(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,n,r]);return{getHeadCellsIconsVisibilityStatus:o,allIconsDisabled:Object.values(o()).every((e=>!1===e))}})({styleService:p,column:e,columnWidth:f}),v=g(),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:n,shouldShowLockIcon:r})=>{const o="A"===e?ta.jsx(HF,{height:hN,"data-testid":"head-cell-sort-ascending-icon"}):ta.jsx(UF,{height:hN,"data-testid":"head-cell-sort-descending-icon"}),i=n?ta.jsx(tj,{align:t,children:o}):void 0,a=r?ta.jsx(ZF,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:ta.jsx(KF,{height:hN,"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 ta.jsxs(QF,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:e.headTextAlign,children:[S,ta.jsxs(JF,{className:"sn-table-head-label",textAlign:e.headTextAlign,children:[y,ta.jsx(xF,{allIconsDisabled:b,isPagination:i,virtualizedCell:!i,headCell:!0,children:e.label}),x]}),t&&ta.jsxs(ta.Fragment,{children:[ta.jsx(cz,{headerData:e,translator:a,anchorRef:m,handleHeadCellMenuKeyDown:cF,menuAvailabilityFlags:{[sz.SORTING]:!0,[sz.SEARCHING]:!0,[sz.SELECTIONS]:!0,[sz.ADJUST_HEADER_SIZE]:!0},open:n,setOpen:r,interactions:s,sortRelatedArgs:{sortFromMenu:(t,n)=>(t.stopPropagation(),l(e,n))},searchRelatedArgs:{embed:u,listboxRef:h},selectionRelatedArgs:{app:c,model:d},adjustHeaderSizeRelatedArgs:{setFocusOnColumnAdjuster:rF},shouldShowMenuIcon:v.shouldShowMenuIcon}),ta.jsx(XF,{ref:h}),ta.jsx(XF,{ref:m})]})]})},rj=({isInteractionEnabled:e,columnsData:t})=>{const[n,r]=X.useState(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=(e=>{const[t,n]=X.useState(!1);return ak((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}})([t]);return{open:n,setOpen:r,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(gk)})(t)&&!o&&r(!0),setIsAdjustingWidth:i}},oj=({column:e,columnIndex:t,columnsLength:n})=>{const{interactions:r,rootElement:o,keyboard:i,styleService:a}=rq(ZN,(e=>e.baseProps)),{columns:l,totalsPosition:s}=rq(ZN,(e=>e.tableData)),u=rq(ZN,(e=>e.columnWidths[t])),c=rq(ZN,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),d=rq(ZN,(e=>e.setFocusedCellCoord)),p=rq(ZN,(({focusedCellCoord:[e,n]})=>0===e&&n===t)),f=!!r.active&&!c,{open:m,setOpen:h,handleOpenMenu:g,setIsAdjustingWidth:b}=rj({isInteractionEnabled:f,columnsData:l}),v=e.isActivelySorted?jM[e.sortDirection]:void 0,y=m?fk:void 0,x=m?"true":void 0,S=t===n-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 ta.jsxs(ej,{headerStyle:{...a.header,...OF(a,s,!0)},background:m?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:r,style:w,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${mk}`,tabIndex:C,title:r.passive?e.label:void 0,onKeyDown:e=>(({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,isInteractionEnabled:o,handleOpenMenu:i})=>{if(o){if(!uF(e))switch(e.key){case zM.C:OC(e),EN(e)&&wk(e.currentTarget);break;case zM.ENTER:case zM.SPACE:i&&i(e);break;default:RN(e.key)&&(OC(e),iF({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r}))}}else OC(e)})({evt:e,rootElement:o,cellCoord:E,setFocusedCellCoord:d,isInteractionEnabled:f,handleOpenMenu:g}),onMouseDown:e=>(({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,keyboard:o,isInteractionEnabled:i})=>{var a;e.preventDefault(),i&&(r(n),o.enabled&&!o.active?null===(a=o.focus)||void 0===a||a.call(o):oF({focusType:FM.FOCUS,cell:Zz(t,n)}))})({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:[ta.jsx(nj,{column:e,isInteractionEnabled:f,open:m,setOpen:h,isPagination:!0}),ta.jsx(jF,{column:e,isLastColumn:S,setIsAdjustingWidth:b})]},e.id)},ij=()=>{var e;const{columns:t}=rq(ZN,(e=>e.tableData)),{styleService:n,viewService:r}=rq(ZN,(e=>e.baseProps)),o=rq(ZN,(e=>e.setHeadRowHeight)),i=rq(ZN,(e=>e.columnWidths)),a=X.useRef(null);return X.useEffect((()=>{a.current&&o(a.current.clientHeight)}),[n.header.fontSize,i,o]),null!==(e=r.viewState)&&void 0!==e&&e.skipHeader?null:ta.jsx(JO,{children:ta.jsx(oN,{ref:a,className:"sn-table-row sn-table-head-row",children:t.map(((e,n)=>ta.jsx(oj,{column:e,columnIndex:n,columnsLength:t.length},e.id)))})})};var aj=X.memo(ij);const lj=e=>{var t,n;const{pageInfo:r,setPageInfo:o,direction:i,footerContainer:a,announce:l}=e,{page:s,rowsPerPage:u}=r,{totalColumnCount:c,totalRowCount:d,totalPages:p,paginationNeeded:f,rows:m,columns:h,totalsPosition:g}=rq(ZN,(e=>e.tableData)),{rootElement:b,keyboard:v,translator:y,theme:x,interactions:S,styleService:E,viewService:w,layout:C,rect:R}=rq(ZN,(e=>e.baseProps)),k=rq(ZN,(e=>e.focusedCellCoord)),A=rq(ZN,(e=>e.setFocusedCellCoord)),P=rq(ZN,(e=>e.setYScrollbarWidth)),L=rq(ZN,(e=>e.showRightBorder)),I=rq(ZN,(e=>e.selectionDispatch)),D=rq(ZN,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),_=X.useRef(!1),M=X.useRef(null),T=X.useRef(null),{yScrollbarWidth:O}=pF(M),N=`${y.get("SNTable.Accessibility.RowsAndColumns",[String(m.length),String(h.length)])} ${y.get("SNTable.Accessibility.NavigationInstructions")}`,q=uI(C,w),z=q&&null!==(t=w.scrollLeft)&&void 0!==t?t:0,F=q&&null!==(n=w.rowPartialHeight)&&void 0!==n?n:0,j=X.useCallback((()=>{_.current=b.getElementsByTagName("table")[0].contains(document.activeElement)}),[b]),$=X.useCallback((e=>{o({...r,page:e}),l({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),p.toString()]],politeness:"assertive"})}),[r,o,p,l]),B=X.useCallback((e=>{o({...r,page:0,rowsPerPage:e}),l({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[l,r,o]);return lF(T,_,v),sF(M,i,w),(()=>{const{rootElement:e,keyboard:t}=rq(ZN,(e=>e.baseProps)),n=rq(ZN,(e=>e.focusedCellCoord));ak((()=>{const r=t.active?FM.FOCUS:FM.BLUR,o=t.active?Zz(e,n):eF(e);oF({focusType:r,cell:o})}),[t.active,e])})(),X.useEffect((()=>{const e=M.current;e&&(e.scrollLeft=z,e.scrollTop=F)}),[r,d,z,F]),Qz((()=>{(({focusedCellCoord:e,rootElement:t,shouldRefocus:n,isSelectionMode:r,setFocusedCellCoord:o,keyboard:i,announce:a,totalsPosition:l})=>{oF({focusType:FM.REMOVE_TAB,cell:eF(t)});const s=[l.atTop?2:1,e[1]],u=r?s:fT;if(o(u),!(e=>!e.enabled||e.active)(i))return;const c=n.current?FM.FOCUS:FM.ADD_TAB;n.current=!1;const d=Zz(t,u);if(oF({focusType:c,cell:d}),r){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:k,rootElement:b,shouldRefocus:_,setFocusedCellCoord:A,isSelectionMode:D,keyboard:v,announce:l,totalsPosition:g})}),[m.length,d,c,s]),Qz((()=>{P(O)}),[O]),Qz((()=>{I({type:qM.UPDATE_PAGE_ROWS,payload:{pageRows:m}})}),[m]),ta.jsxs(Kz,{ref:T,background:x.background,dir:i,onKeyDown:e=>{(({evt:e,totalRowCount:t,page:n,rowsPerPage:r,handleChangePage:o,setShouldRefocus:i,keyboard:a,isSelectionMode:l})=>{if(wN(e)){OC(e);const a=Math.ceil(t/r)-1;e.key===zM.RIGHT&&n<a?(i(),o(n+1)):e.key===zM.LEFT&&n>0&&(i(),o(n-1))}else if(e.key===zM.ESC&&a.enabled&&!l){var s;OC(e),null===(s=a.blur)||void 0===s||s.call(a,!0)}else CN(e.key)&&OC(e)})({evt:e,totalRowCount:d,page:s,rowsPerPage:u,handleChangePage:$,setShouldRefocus:j,keyboard:v,isSelectionMode:D})},"data-testid":"sn-table",children:[ta.jsx(gF,{}),ta.jsx(mF,{ref:M,className:"sn-table-container",fullHeight:a||!S.active||!f,interactions:S,tabIndex:-1,role:"application","data-testid":"table-container",children:ta.jsxs(hF,{stickyHeader:!0,"aria-label":N,borderRight:L?`1px solid ${E.grid.border}`:void 0,children:[ta.jsx(aj,{}),ta.jsx(FF,{...e,setShouldRefocus:j,tableWrapperRef:T})]})}),ta.jsx(Yz,{footerContainer:a,pageInfo:r,paginationNeeded:f,theme:x,totalRowCount:d,totalColumnCount:c,totalPages:p,keyboard:v,translator:y,interactions:S,rect:R,layout:C,handleChangePage:$,handleChangeRowsPerPage:B,isSelectionMode:D})]})};var sj=X.memo(lj);function uj(){return uj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uj.apply(this,arguments)}function cj(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dj(e,t){return dj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dj(e,t)}function pj(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,dj(e,t)}var fj=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function mj(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||fj(r)&&fj(o)))return!1;var r,o;return!0}function hj(e,t){var n;void 0===t&&(t=mj);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}function gj(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var bj="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function vj(e){cancelAnimationFrame(e.id)}function yj(e,t){var n=bj();var r={id:requestAnimationFrame((function o(){bj()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var xj=-1;function Sj(e){if(void 0===e&&(e=!1),-1===xj||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),xj=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return xj}var Ej=null;function wj(e){if(void 0===e&&(e=!1),null===Ej||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?Ej="positive-descending":(t.scrollLeft=1,Ej=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),Ej}return Ej}var Cj=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function Rj(e){var t,n=e.getColumnOffset,r=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 r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,cj(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:cj(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=hj((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=hj((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=r._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(r.props,e,r._instanceProps),height:c(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=hj((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,u=i;if("rtl"===t)switch(wj()){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-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&vj(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=yj(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}pj(t,e),t.getDerivedStateFromProps=function(e,t){return kj(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=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=Sj();void 0!==r&&(r=Math.max(0,Math.min(r,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!==r?s(this.props,r,n,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(wj()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&vj(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=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?Cj: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(),R=C[0],k=C[1],A=[];if(r>0&&g)for(var P=R;P<=k;P++)for(var L=E;L<=w;L++)A.push(X.createElement(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 I=a(this.props,this._instanceProps),D=l(this.props,this._instanceProps);return X.createElement(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:uj({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},X.createElement(u||c||"div",{children:A,ref:s,style:{height:I,pointerEvents:x?"none":void 0,width:D}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&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 r){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,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(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,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||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}(X.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var kj=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},Aj=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},Pj=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},Lj=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},Ij=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?Dj(e,t,n,i,0,r):_j(e,t,n,Math.max(0,i),r)},Dj=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=Lj(e,t,a,n).offset;if(l===i)return a;l<i?o=a+1:l>i&&(r=a-1)}return o>0?o-1:0},_j=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&Lj(e,t,r,n).offset<o;)r+=a,a*=2;return Dj(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},Mj=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=Lj(e,t,n,i),u="column"===e?Pj(t,i):Aj(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===r&&(r=o>=d-l&&o<=c+l?"auto":"center"),r){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}},Tj=Rj({getColumnOffset:function(e,t,n){return Lj("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return Ij("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=Lj("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=Lj("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:Aj,getEstimatedTotalWidth:Pj,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return Mj("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return Mj("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return Lj("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return Ij("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=Lj("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=Lj("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),Oj=function(e,t){return e};function Nj(e){var t,n=e.getItemOffset,r=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 r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,cj(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:cj(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=hj((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=hj((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,c=r._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._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},r._getItemStyleCache=void 0,r._getItemStyleCache=hj((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(wj()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&vj(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=yj(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}pj(t,e),t.getDerivedStateFromProps=function(e,t){return qj(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 n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?Sj():0:s.scrollHeight>s.clientHeight?Sj():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(wj()){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&&vj(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=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?Oj: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],R=[];if(u>0)for(var k=w;k<=C;k++)R.push(X.createElement(t,{data:c,key:p(k,c),index:k,isScrolling:b?y:void 0,style:this._getItemStyle(k)}));var A=r(this.props,this._instanceProps);return X.createElement(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:uj({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},X.createElement(l||s||"div",{children:R,ref:a,style:{height:x?"100%":A,pointerEvents:y?"none":void 0,width:x?A:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,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,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.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,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(X.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var qj=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},zj=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.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=r(s);o[s]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},Fj=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=zj(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},jj=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&zj(e,n,t).offset<r;)n+=i,i*=2;return Fj(e,t,Math.min(n,o-1),Math.floor(n/2),r)},$j=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},Bj=Nj({getItemOffset:function(e,t,n){return zj(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:$j,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=zj(e,t,o),p=$j(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=m-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return r>=m&&r<=f?r:r<m?m:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?Fj(e,t,o,0,n):jj(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){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=zj(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=zj(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function Hj(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var Vj=["style"],Wj=["style"];function Uj(e,t){var n=e.style,r=gj(e,Vj),o=t.style,i=gj(t,Wj);return!Hj(n,o)&&!Hj(r,i)}const Gj=({style:e})=>ta.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var Yj=J.memo(Gj,Uj);const Kj=()=>{},Xj=e=>e.preventDefault();const Jj=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o,i;const{rowsInPage:a,columns:l,isHoverEnabled:s,maxImageHeight:u}=r,{flags:c}=rq(ZN,(e=>e.env)),d=rq(ZN,(e=>e.hoverIndex===t)),p=rq(ZN,(e=>e.setHoverIndex)),{interactions:f,styleService:m}=rq(ZN,(e=>e.baseProps)),h=rq(ZN,(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}=rq(ZN,(e=>e.baseProps)),n=rq(ZN,(e=>e.selectionDispatch)),r="object"==typeof e,o=rq(ZN,(t=>r?AN(e,t.selectionState):NM.Inactive)),i=t.active&&t.select;if(r&&i){const{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i}=PF(Xj,e,n,Kj);return{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g);let S={borderColor:m.grid.border,...m.measure.values};if(null!==(i=l[e])&&void 0!==i&&i.isDim&&(S={borderColor:m.grid.border,...m.dimension.values}),null!=g&&g.isNull&&(S={...S,...m.nullValues}),"object"==typeof g){var E;const r=((e,t,n,r,o,i,a)=>{const l=t.qAttrExprInfoIDs.length?VN(o,e.qAttrExps,t.qAttrExprInfoIDs,a):o;return r===NM.Selected?{...l,...fN.SELECTED}:r===NM.Disabled?{...l,color:n?null==i?void 0:i.color:l.color,background:`${fN.DISABLED_BACKGROUND}, ${n?null==i?void 0:i.background:l.background}`}:n?{...l,...i}:l})(g,l[e],s&&d,x,S,m.grid.hoverColors,c),o={rowindex:t,columnindex:e};return ta.jsx("div",{className:`sn-table-cell ${x} ${mk}`,style:{...n,...r,display:"flex",alignItems:"start",borderWidth:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:g.isLastColumn&&!h?"0px":"1px",borderStyle:"solid",justifyContent:g.representation.type===rP.Image&&"fitHeight"===g.representation.imageSize?null===(E=g.representation)||void 0===E||null===(E=E.resolvedImagePosition)||void 0===E?void 0:E.horizontal:g.align,padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden"},onMouseDown:b,onMouseUp:y,onMouseOver:v,onMouseEnter:s?()=>p(t):void 0,onMouseLeave:s?()=>p(-1):void 0,title:f.passive?g.representation.text:void 0,...o,children:ta.jsx(CF,{cell:g,style:r,maxImageHeight:u,virtualizedCell:!0})})}return ta.jsx(Yj,{style:{...n,...S,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var Qj=J.memo(Jj,Uj);const Zj=e=>{const t=X.useRef(e);return t.current=e,t},e$=({qLeft:e,qTop:t,qWidth:n,qHeight:r})=>`${e}-${t}-${n}-${r}`,t$=(e,t,n,r,o)=>{const i=e[n];if(!i)return!0;for(let e=t;e<t+r;e++){const t=i[e];if((null==t?void 0:t.rowIdx)!==o)return!0}return!1},n$=(e,t,n,r)=>{const o=e.slice(n,r);return 0===o.length||o.some((e=>!(null!=e&&e[t])))},r$=(e,t,n,r,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,n,r,o,i,a,l,s)=>{var u;const{qSize:c}=a.qHyperCube,d=r.qTop+n,p=o+n,f=null!==(u=e[p])&&void 0!==u?u:[];return t.forEach(((e,t)=>{var n,o;const a=t+r.qLeft,{colIdx:u,isDim:m,isLocked:h,bodyTextAlign:g,selectionColIdx:b,qAttrExprInfoIndex:v,representation:y}=i[a],x=eI(e);f[a]=null!==(n=f[a])&&void 0!==n?n:{id:JP(),...e,align:lI(e,g),rowIdx:d,colIdx:u,isSelectable:m&&!h,pageRowIdx:p,pageColIdx:a,selectionColIdx:b,isLastRow:d===c.qcy-1,isLastColumn:a===c.qcx-1,isNumeric:x,isNull:QL(e,m),representation:JL(e,y,v,s)},l(null!==(o=f[a].representation.text)&&void 0!==o?o:"",p,a,x)})),{row:f,pageRowIdx:p}})(n,l,s,e.qArea,u,r,o,i,a);n[d]=c}))}))},o$=({layout:e,model:t,theme:n,initialDataPages:r,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:l,columns:s,setCellSize:u,gridState:c})=>{const d=rq(ZN,(e=>e.env)),p=X.useRef([]),f=Zj(u),m=X.useCallback(((t,n)=>{const r=Array.isArray(n)?n.slice(0,i):(e=>Array(e).fill(void 0))(i);return r$(t,o,r,s,e,f.current,d),p.current=r,r}),[i,o,s,e,f,d]),[h,g]=X.useState((()=>m(null!=r?r:[])));ak((()=>{g(m(null!=r?r:[]))}),[r]);const b=((e,t)=>{const n=X.useRef(new Set),r=X.useRef(new Set),o=X.useRef(new Set),i=Zj(e),a=Zj(t),l=X.useMemo((()=>({enqueue:e=>{const t=e$(e);o.current.has(t)||(n.current.add(e),o.current.add(t),1===n.current.size&&setTimeout((async()=>{const e=Array.from(n.current.values());if(0!==e.length){n.current.clear(),r.current.add(e);try{const t=(e=>{const t=[];return e.forEach((e=>{if(t.length>0){const n=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(n,e)?n.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(n,e)?n.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})})),t})(e),n=await i.current(t);r.current.has(e)&&a.current(n)}catch(t){e.forEach((e=>{o.current.delete(e$(e))}))}finally{r.current.delete(e)}}}),75))},clear:()=>{n.current.clear(),r.current.clear(),o.current.clear()}})),[i,a]);return l})((e=>t.getHyperCubeData("/qHyperCubeDef",e)),(e=>g((t=>m(e,t))))),v=X.useCallback(((e,t,n,r)=>{for(let o=e;o<e+n;o++)if(n$(p.current,o,t,r)){const e={qLeft:o,qTop:t,qHeight:r,qWidth:1};b.enqueue(e)}}),[p,b]),y=X.useCallback(((e,t,n,r)=>{for(let i=t;i<t+r;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(t$(p.current,e,t,n,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:n};b.enqueue(t)}}}),[p,b,o]);return X.useEffect((()=>{const{qcx:t,qcy:n}=e.qHyperCube.qSize,r=c.current.overscanRowStartIndex,i=c.current.overscanColumnStartIndex,s=r+o.page*o.rowsPerPage,u=t-i,d=o.rowsPerPage-r,p=Math.min(100,u,t,l+5),f=Math.min(100,d,n,a+25);return y(i,s,p,f),()=>{b.clear()}}),[e,a,l,o,b,y,c,n]),{rowsInPage:h,loadRows:y,loadColumns:v}},i$=({style:e,numericStyle:t,columnWidths:n,rowHeight:r,pageInfo:o,rowCount:i,gridRef:a,lineRef:l,columns:s,gridState:u,isSnapshot:c,viewService:d,maxNbrLines:p=3,isStaticNbrOfLines:f,allColumnsIconVisibilityStatus:m})=>{var h;const g=X.useRef({lastScrollToRatio:0,resetAfterRowIndex:0,heights:[],totalHeight:0,count:0,measuredCells:new Map}),{layout:b,rect:v}=rq(ZN,(e=>e.baseProps)),[y,x]=X.useState(r||24),{measureText:S,estimateLineCount:E}=rk(e,{maxNbrLinesOfText:p}),w=kF(e.fontSize),C=kF(null!==(h=null==t?void 0:t.fontSize)&&void 0!==h?h:e.fontSize),R=8e6/i-8-1,k=Math.max(0,Math.min(p,Math.round(R/w))),A=AF({maxNbrLines:k,isStaticNbrOfLines:f,lineHeight:w}),P=f?k*w:w,L=X.useCallback(((e,t,r)=>{var o;const i=s?(({width:e,columnIconsVisibilityStatus:t})=>{let n=0,r=0,o=0,i=0;if(t){const{shouldShowLockIcon:e,shouldShowSortIcon:n,shouldShowMenuIcon:a}=t;r=e?20:0,o=n?20:0,i=a?24:0}return n=e-25-r-o-i,Math.max(0,n)})({width:n[t],columnIconsVisibilityStatus:null==m?void 0:m[t]}):(e=>Math.max(0,e-24-1))(n[t]),a=Math.min(k,E({text:e.trim(),maxWidth:i,isNumeric:r})),l=null!=s&&null!==(o=s[t])&&void 0!==o&&o.isDim?w:C;return Math.max(1,a)*l+8+1}),[n,w,C,k,s,E,m]),I=X.useCallback(((e,t,n,o=!1,i=!1)=>{const a=`${t}-${n}`;if(g.current.measuredCells.has(a))return;if(f)return g.current.measuredCells.set(a,[e,t,n,o]),void x(A);g.current.measuredCells.set(a,[e,t,n,o]);const l=r||24,d=((e,t,n)=>{var r;return(null==t||null===(r=t[e].representation)||void 0===r?void 0:r.type)===rP.Image&&n})(n,s,u)?l:L(e,n,o),p=g.current.heights[t],m=d-p;m>0?(g.current.totalHeight+=m,g.current.heights[t]=d):void 0===p&&(g.current.count+=1,g.current.totalHeight+=d,g.current.heights[t]=d),i||c||x(g.current.totalHeight/g.current.count)}),[L,c,f,A,s,r,u]),D=X.useCallback((e=>{var t;return null!==(t=g.current.heights[e])&&void 0!==t?t:y}),[g,y]),_=X.useCallback((()=>{g.current.lastScrollToRatio=0,g.current.resetAfterRowIndex=0,g.current.heights=[],g.current.totalHeight=0,g.current.count=0,g.current.measuredCells.clear()}),[g]),M=Zj(I),T=X.useCallback((()=>{if(f)return void _();const e=new Map(g.current.measuredCells);_(),e.forEach((([e,t,n,r])=>{M.current(e,t,n,r,!0)})),c||x(g.current.totalHeight/g.current.count)}),[_,c,M,f]);ak((()=>{_()}),[b,o]),ak((()=>{T()}),[S,v.width]);return null!=a&&a.current?a.current.resetAfterRowIndex(g.current.resetAfterRowIndex,!1):null!=l&&l.current&&l.current.resetAfterIndex(g.current.resetAfterRowIndex,!1),d.estimatedRowHeight=y,{setCellSize:I,getRowHeight:D,rowMeta:g,estimatedRowHeight:y,maxLineCount:k,resizeVisibleCells:e=>{if(!u||f)return;_();const{overscanRowStartIndex:t,overscanRowStopIndex:n}=u.current,r=Math.min(n,b.qHyperCube.qSize.qcy-1);for(let n=t;n<=r;n++){var o;const t=null!==(o=e[n])&&void 0!==o?o:{};Object.values(t).forEach((e=>{var t;"object"==typeof e&&I(null!==(t=e.representation.text)&&void 0!==t?t:"",n,e.pageColIdx,e.isNumeric)}))}},resizeAllCells:T,resetRowMeta:_,maxImageHeight:P}};var a$;!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(a$||(a$={}));const l$={enabled:!1},s$=()=>{},u$={current:null};const c$=(e,t,n,r,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(n.height/o)),l=X.useMemo((()=>r.reduce(((e,t)=>e.width<n.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[n,r]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:l}},d$=({columnIndex:e,data:t,rowIndex:n})=>{var r,o;const i=null===(r=t.rowsInPage[n])||void 0===r?void 0:r[e];return null!==(o=null==i?void 0:i.id)&&void 0!==o?o:`${n}-${e}`},p$={overflow:"hidden",willChange:"auto"},f$=X.forwardRef(((e,t)=>{var n;const{rect:r,columns:o,innerForwardRef:i,pageInfo:a,rowHeight:l,headerAndTotalsHeight:s,syncHeight:u}=e,{flags:c}=rq(ZN,(e=>e.env)),{layout:d,model:p,theme:f,viewService:m,styleService:h}=rq(ZN,(e=>e.baseProps)),g=rq(ZN,(e=>e.columnWidths)),b=rq(ZN,(e=>e.initialDataPages)),{maxNbrLines:v,isStaticNbrOfLines:y}=yF({viewService:m,styleService:h,isImagesEnabled:c.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")}),x=X.useRef(null),S=X.useRef({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),E=!(null===(n=FN(d))||void 0===n||null===(n=n.content)||void 0===n||!n.hoverEffect),{scrollHandler:w,verticalScrollDirection:C,horizontalScrollDirection:R}=(()=>{const e=X.useRef(0),t=X.useRef(0),n=X.useRef(a$.None),r=X.useRef(a$.None);return{scrollHandler:X.useCallback((({scrollTop:o,scrollLeft:i})=>{o>t.current?n.current=a$.Down:o<t.current?n.current=a$.Up:n.current=a$.None,i>e.current?r.current=a$.Right:i<e.current?r.current=a$.Left:r.current=a$.None,t.current=o,e.current=i}),[t,e,n,r]),verticalScrollDirection:n,horizontalScrollDirection:r}})(),{rowCount:k,visibleRowCount:A,visibleColumnCount:P}=c$(d,a,r,g,l),{setCellSize:L,getRowHeight:I,rowMeta:D,estimatedRowHeight:_,maxLineCount:M,resizeVisibleCells:T,maxImageHeight:O}=i$({pageInfo:a,style:h.dimension.values,numericStyle:h.measure.values,rowHeight:l,columnWidths:g,columns:o,gridRef:x,rowCount:k,gridState:S,isSnapshot:!!d.snapshotData,viewService:m,maxNbrLines:v,isStaticNbrOfLines:y}),{rowsInPage:N,loadRows:q,loadColumns:z}=o$({layout:d,model:p,theme:f,initialDataPages:b,pageInfo:a,rowCount:k,visibleRowCount:A,visibleColumnCount:P,columns:o,setCellSize:L,gridState:S}),F=(({layout:e,loadRows:t,loadColumns:n,verticalScrollDirection:r,horizontalScrollDirection:o,rowCount:i,pageInfo:a,gridState:l,viewService:s})=>X.useCallback((({overscanColumnStartIndex:u,overscanColumnStopIndex:c,overscanRowStartIndex:d,overscanRowStopIndex:p,visibleColumnStartIndex:f,visibleColumnStopIndex:m,visibleRowStartIndex:h,visibleRowStopIndex:g})=>{if(l.current.overscanColumnStartIndex=u,l.current.overscanColumnStopIndex=c,l.current.overscanRowStartIndex=d,l.current.overscanRowStopIndex=p,d>i)return;const b=u,v=d+a.page*a.rowsPerPage,y=c-u+1,x=p-d+1;if(s.visibleLeft=f,s.visibleWidth=m-f+1,s.visibleTop=h+a.page*a.rowsPerPage,s.visibleHeight=g-h+1,s.page=a.page,s.rowsPerPage=a.rowsPerPage,r.current===a$.Down){const e=x+25;t(b,v,y,d+e>i?i-d:e)}else if(r.current===a$.Up){const e=x+25,n=a.page*a.rowsPerPage,r=Math.max(n,v-25);t(b,r,y,e)}if(o.current===a$.Right){const t=e.qHyperCube.qSize.qcx-b,r=y+5,o=Math.min(t,r);n(b,v,o,x)}else if(o.current===a$.Left){const t=Math.max(0,b-5),r=Math.min(e.qHyperCube.qSize.qcx,y+5);n(t,v,r,x)}}),[l,i,a.page,a.rowsPerPage,s,r,o,t,e.qHyperCube.qSize.qcx,n]))({layout:d,loadRows:q,loadColumns:z,verticalScrollDirection:C,horizontalScrollDirection:R,rowCount:k,pageInfo:a,gridState:S,viewService:m}),j=X.useMemo((()=>({rowsInPage:N,columns:o,isHoverEnabled:E,maxLineCount:M,maxImageHeight:O})),[N,o,E,M,O]),$=((e,t,n,r)=>{let{height:o}=e;return o-=t,n*r<o&&(o=Math.min(n*r,o)),o})(r,s,k,_);return X.useLayoutEffect((()=>{var e,t;u(null!==(e=null===(t=i.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,!0)}),[k,u,i]),X.useLayoutEffect((()=>{var e,t,n;(u(null!==(e=null===(t=i.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,!1),1===D.current.lastScrollToRatio)&&(null===(n=x.current)||void 0===n||n.scrollToItem({rowIndex:k-1,align:"start"}))})),function(e){const{selectionsAPI:t}=rq(ZN,(e=>e.baseProps)),n=rq(ZN,(e=>e.selectionDispatch));X.useEffect((()=>{n({type:qM.UPDATE_PAGE_ROWS,payload:{pageRows:e}})}),[n,e]),RF({selectionsAPI:t,selectionDispatch:n,setShouldRefocus:s$,keyboard:l$,tableWrapperRef:u$})}(N),ak((()=>{var e;null===(e=x.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[d,a,f,r.width,g]),X.useImperativeHandle(t,(()=>({interpolatedScrollTo:(e,t)=>{var n,r;const o=(null!==(n=null===(r=i.current)||void 0===r?void 0:r.clientHeight)&&void 0!==n?n:$)-$,a=Math.round(o*e);var l,s,u;(D.current.lastScrollToRatio=e,1===D.current.lastScrollToRatio)?(null===(l=x.current)||void 0===l||l.scrollToItem({rowIndex:k-1,align:"start"}),null===(s=x.current)||void 0===s||s.scrollTo({scrollLeft:t})):null===(u=x.current)||void 0===u||u.scrollTo({scrollTop:a,scrollLeft:t})},resizeCells:()=>{var e;null===(e=x.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),T(N)}})),[i,$,D,k,T,N]),ta.jsx(Tj,{"data-key":"body",ref:x,innerRef:i,style:p$,columnCount:d.qHyperCube.qSize.qcx,columnWidth:e=>g[e],height:$,rowCount:k,rowHeight:I,estimatedRowHeight:_,width:r.width,itemData:j,onItemsRendered:F,onScroll:w,itemKey:d$,className:"sn-table-body",children:Qj})}));var m$=X.memo(f$);const h$=({width:e,height:t,children:n})=>ta.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:n}),g$=hM("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e})((({interactions:e,hoverBackground:t,background:n,applicableStyle:r})=>({...r,background:n,"&&:hover":{background:e.active?t:void 0}}))),b$=({index:e,style:t,data:n})=>{const{columns:r,columResizeHandler:o,allColumnsIconVisibilityStatusRef:i}=n,{interactions:a,styleService:l}=rq(ZN,(e=>e.baseProps)),s=rq(ZN,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),u=rq(ZN,(e=>e.showRightBorder)),c=rq(ZN,(e=>e.tableData.totalsPosition)),d=!!a.active&&!s,{open:p,setOpen:f,handleOpenMenu:m,setIsAdjustingWidth:h}=rj({isInteractionEnabled:d,columnsData:r}),g=r[e],b=r.length-1===e,v="right"===g.headTextAlign?"row-reverse":"row";return ta.jsxs(g$,{className:`sn-table-cell ${mk}`,title:a.passive?g.label:void 0,onClick:m,applicableStyle:{...l.header,...OF(l,c,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderWidth:b&&!u?"0px 0px 1px 0px":"0px 1px 1px 0px",padding:"4px",justifyContent:g.headTextAlign,boxSizing:"border-box",zIndex:r.length-e,flexDirection:v,userSelect:"none"},interactions:a,hoverBackground:l.headerMenuHoverBackground,background:p?l.headerMenuActiveBackground:l.header.background,children:[ta.jsx(nj,{column:g,isInteractionEnabled:d,open:p,setOpen:f,allColumnsIconVisibilityStatusRef:i}),ta.jsx(jF,{column:g,isLastColumn:b,onColumnResize:o,setIsAdjustingWidth:h})]})},v$=(e,t,n,r,o)=>{X.useLayoutEffect((()=>{var t;null==e||null===(t=e.current)||void 0===t||t.resetAfterIndex(0,!0)}),[t,n,e,r,o])},y$={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},x$=e=>{const{rect:t,forwardRef:n,columns:r,pageInfo:o,rowHeight:i,columResizeHandler:a,allColumnsIconVisibilityStatusRef:l}=e,{layout:s,theme:u}=rq(ZN,(e=>e.baseProps)),c=rq(ZN,(e=>e.columnWidths));return v$(n,s,o,c,u),ta.jsx(Bj,{ref:n,layout:"horizontal",style:y$,itemCount:s.qHyperCube.qSize.qcx,itemSize:e=>c[e],height:i,width:t.width,itemData:{columns:r,columResizeHandler:a,allColumnsIconVisibilityStatusRef:l},children:b$})};var S$=X.memo(x$);const E$=J.forwardRef(((e,t)=>{const{children:n,width:r,height:o,onScroll:i}=e,{interactions:a}=rq(ZN,(e=>e.baseProps));return ta.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.active?"auto":"hidden",width:r,height:o},onScroll:i,children:n})})),w$=({children:e,rect:t})=>ta.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"0px",width:t.width,height:t.height},children:e}),C$=({index:e,style:t,data:n})=>{const{layout:r,interactions:o,styleService:i}=rq(ZN,(e=>e.baseProps)),a=rq(ZN,(e=>e.showRightBorder)),{columns:l,totals:s}=n,u=l[e].totalInfo,{totalsTextAlign:c,isTotalNumeric:d}=l[e],p=r.qHyperCube.qSize.qcx-1===e;return ta.jsx("div",{className:`sn-table-cell ${mk}`,title:o.passive?u:void 0,style:{...t,...i.totalRow,...OF(i,s,!1),background:i.totalRow.background,display:"flex",alignItems:s.atTop?"end":"start",borderStyle:"solid",borderLeftWidth:"0px",borderRightWidth:p&&!a?"0px":"1px",borderTopWidth:s.atBottom?"1px":"0px",borderBottomWidth:s.atTop?"1px":"0px",padding:"4px 12px",justifyContent:c,boxSizing:"border-box",cursor:"default"},children:ta.jsx(xF,{wordBreak:!d,lines:3,virtualizedCell:!0,children:u})})},R$=e=>{const{rect:t,forwardRef:n,pageInfo:r,totals:o,rowHeight:i,columns:a}=e,{layout:l,theme:s}=rq(ZN,(e=>e.baseProps)),u=rq(ZN,(e=>e.columnWidths));return v$(n,l,r,u,s),ta.jsx(Bj,{ref:n,layout:"horizontal",style:y$,itemCount:l.qHyperCube.qSize.qcx,itemSize:e=>u[e],height:i,width:t.width,itemData:{columns:a,totals:o},children:C$})};var k$=X.memo(R$);const A$=({columns:e,columnWidths:t,pageInfo:n,headerRef:r,totalsRef:o,totalsPosition:i,isSnapshot:a,viewService:l,allColumnsIconVisibilityStatus:s})=>{const{styleService:u}=rq(ZN,(e=>e.baseProps)),c=i$({style:u.header,columnWidths:t,lineRef:r,rowCount:1,pageInfo:n,columns:e,isSnapshot:a,viewService:l,allColumnsIconVisibilityStatus:s}),d=i$({style:u.totalRow,columnWidths:t,lineRef:o,rowCount:1,pageInfo:n,isSnapshot:a,viewService:l});e.forEach(((e,t)=>{c.setCellSize(e.label,0,t),d.setCellSize(e.totalInfo,0,t,ZL(e.totalInfo))}));const p=c.getRowHeight(0)+8,f=d.getRowHeight(0);return{headerRowHeight:p,totalsRowHeight:f,bodyRowHeight:a?l.estimatedRowHeight:(({fontSize:e=vN.fontSize})=>Math.max(24,TN(e)))(u.dimension.values),headerAndTotalsHeight:i.atTop||i.atBottom?p+f:p,resizeAllHeaderCells:c.resizeAllCells,resizeAllTotalCells:d.resizeAllCells}},P$=e=>{var t;const{pageInfo:n}=e,{totalsPosition:r,columns:o,paginationNeeded:i}=rq(ZN,(e=>e.tableData)),{layout:a,theme:l,rect:s,viewService:u}=rq(ZN,(e=>e.baseProps)),c=rq(ZN,(e=>e.columnWidths)),d=rq(ZN,(e=>e.setYScrollbarWidth)),p=X.useRef(null),f=X.useRef(null),m=X.useRef(null),h=X.useRef(null),g=X.useRef(),{xScrollbarWidth:b,yScrollbarWidth:v}=pF(p),y=X.useRef([]),{headerRowHeight:x,totalsRowHeight:S,bodyRowHeight:E,headerAndTotalsHeight:w,resizeAllHeaderCells:C,resizeAllTotalCells:R}=A$({columns:o,columnWidths:c,pageInfo:n,totalsPosition:r,headerRef:f,totalsRef:m,isSnapshot:!!a.snapshotData,viewService:u,allColumnsIconVisibilityStatus:y.current}),k=X.useMemo((()=>((e,t)=>{const n=e.height-(t?41:0);return{width:e.width,height:n}})(s,i)),[s,i]),A=X.useMemo((()=>((e,t,n)=>({width:e.width-n,height:e.height-t}))(k,b,v)),[k,b,v]),{rowCount:P}=c$(a,n,A,c,E),[L,I]=X.useState(P*E+w),D=c.reduce(((e,t)=>e+t),0),_=((e,t,n,r)=>X.useCallback((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)));r.scrollTopRatio=p,r.scrollLeft=d,null===(i=n.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)}),[r,n,e,t]))(f,m,h,u),M=X.useCallback(((e,t=!1)=>{const n=e+w;(L<A.height&&n>A.height||t)&&I(n)}),[L,w,A.height]),T=X.useCallback((()=>{var e;p.current&&(p.current.scrollTop=0),null===(e=h.current)||void 0===e||e.resizeCells(),C(),R()}),[p,C,R]);X.useLayoutEffect((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[o.length]),X.useLayoutEffect((()=>{p.current&&(p.current.scrollTop=0)}),[n,P,l]),Qz((()=>{d(v)}),[v]);const O=ta.jsx(k$,{rect:A,pageInfo:n,columns:o,forwardRef:m,totals:r,rowHeight:S});return ta.jsx(E$,{ref:p,width:k.width,height:k.height,onScroll:_,children:ta.jsx(h$,{width:D,height:L,children:ta.jsxs(w$,{rect:A,children:[null!==(t=u.viewState)&&void 0!==t&&t.skipHeader?null:ta.jsx(S$,{rect:A,pageInfo:n,columns:o,forwardRef:f,rowHeight:x,columResizeHandler:T,allColumnsIconVisibilityStatusRef:y}),r.atTop?O:null,ta.jsx(m$,{ref:h,innerForwardRef:g,rect:A,pageInfo:n,columns:o,rowHeight:E,headerAndTotalsHeight:w,syncHeight:M}),r.atBottom?O:null]})})})};var L$=X.memo(P$);const I$=()=>{const{theme:e,keyboard:t,translator:n,interactions:r,rect:o,layout:i}=rq(ZN,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:l,totalColumnCount:s,totalPages:u}=rq(ZN,(e=>e.tableData)),c=rq(ZN,(e=>e.pageInfo)),d=rq(ZN,(e=>e.setPage));return ta.jsxs(Kz,{"data-testid":"sn-table",background:e.background,dir:"ltr",children:[ta.jsx(L$,{pageInfo:c}),ta.jsx(Yz,{paginationNeeded:a,handleChangePage:e=>d(e),pageInfo:c,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:t,translator:n,theme:e,interactions:r,rect:o,layout:i})]})};var D$=X.memo(I$);var _$,M$={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"}(_$||(_$={}));const T$=(t,n)=>e.useMemo((()=>(function(e){if(e&&e.get&&e.add){const t="SNTable.Accessibility.RowsAndColumns";if(e.get(t)!==t)return;Object.keys(M$).forEach((t=>{e.add(M$[t])}))}}(n),((e,t,n)=>{let r=n||null;return({keys:n,shouldBeAtomic:o=!0,politeness:i="polite"})=>{const a=n.map((e=>{if(Array.isArray(e)){const[n,...r]=e;return t.get(n,r)}return t.get(e)})).join(" "),l=e.querySelector(".sn-table-announcer-1"),s=e.querySelector(".sn-table-announcer-2");let u;r===_$.FIRST?(u=s,r=_$.SECOND):(u=l,r=_$.FIRST),u.innerHTML=u.innerHTML.endsWith(" ­")?a:`${a} ­`,u.setAttribute("aria-atomic",o.toString()),u.setAttribute("aria-live",i)}})(t,n))),[t,n.language()]),O$={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},N$=({app:t,model:n,rootElement:r,layout:o,interactions:i,translator:a,selectionsAPI:l,theme:s,changeSortOrder:u,keyboard:c,rect:d,embed:p,reactRoot:f,applyColumnWidths:m,isFontLoaded:h,viewService:g,env:b})=>{const{direction:v,footerContainer:y}=e.useOptions(),x=uI(o,g),S=cI(o,g),E=T$(r,a),w=x?{page:g.page||O$.page,rowsPerPage:g.rowsPerPage||O$.rowsPerPage,rowsPerPageOptions:O$.rowsPerPageOptions}:O$,[C,R]=e.useState(w),[k]=e.usePromise((async()=>S?async function(e,t,n,r,o,i){var a,l;const{page:s,rowsPerPage:u,rowsPerPageOptions:c}=n,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 r({...n,page:0}),null;if(h*d>tI)return r({...n,rowsPerPage:nI(d,c),page:0}),null;const g=p>10,b=rI(t,o),v=sI(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=n.rowsPerPage,o.page=n.page);const S=(null==x?void 0:x[0].qMatrix.map(((e,t)=>{const n=[];return v.forEach(((r,o)=>{n[o]={id:JP(),...e[o],align:lI(e[o],r.bodyTextAlign),rowIdx:t+m,colIdx:r.colIdx,pageRowIdx:t,pageColIdx:o,selectionColIdx:r.selectionColIdx,isSelectable:r.isDim&&!r.isLocked,isLastRow:t===h-1,isNumeric:eI(e[o]),isNull:QL(e[o],r.isDim),representation:JL(e[o],r.representation,r.qAttrExprInfoIndex,i)}})),n})))||[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(n,o,C,R,g,b):null),[o,C,n,i,S]);e.useEffect((()=>{!!(S&&f&&n&&(o.snapshotData||t)&&o&&k&&u&&s&&l&&h&&p)&&function(e,t){const{app:n,model:r,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=oq(o);null==t||t.render(ta.jsx(ar,{stylisPlugins:"rtl"===o?[pT]:void 0,children:ta.jsx(bM,{theme:x,children:ta.jsx(nq,{app:n,model:r,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:ta.jsx(sj,{...y,direction:o})})})}))}({app:t,model:n,rootElement:r,layout:o,tableData:k,direction:v,pageInfo:C,setPageInfo:R,interactions:i,translator:a,selectionsAPI:l,theme:s,changeSortOrder:u,keyboard:c,rect:d,footerContainer:y,announce:E,embed:p,applyColumnWidths:m,viewService:g,env:b},f)}),[t,n,f,k,i,v,s,c.active,E,u,m,S,o,l,p,r,C,R,a,d,y,h,b])};const q$=({model:t,layout:n,shouldRender:r,page:o})=>{const[i]=e.usePromise((async()=>{if(r&&t)return(async(e,t,n)=>{let{qDataPages:r}=t.qHyperCube;if(0!==n||void 0===r||0===r.length){const o=n*Math.min(xN,t.qHyperCube.qSize.qcy);r=await e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:o,qWidth:50,qHeight:100}])}return{initialDataPages:r,derivedFrom:{layout:t,page:n}}})(t,n,o)}),[t,n,o]),a=(null==i?void 0:i.derivedFrom.layout)!==n||(null==i?void 0:i.derivedFrom.page)!==o;return{initialDataPages:null==i?void 0:i.initialDataPages,isLoading:a}},z$=({app:t,layout:n,model:r,rect:o,theme:i,keyboard:a,translator:l,interactions:s,selectionsAPI:u,changeSortOrder:c,rootElement:d,embed:p,reactRoot:f,applyColumnWidths:m,isFontLoaded:h,viewService:g,env:b})=>{const v=!cI(n,g),y=e.useMemo((()=>function(e,t,n){const r=rI(e,n),o=sI(e),i=e.qHyperCube.qSize.qcy,a=Math.min(xN,i),l=i>xN&&!!t.active;return{totalsPosition:r,columns:o,rows:[],totalRowCount:i,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(i/a),paginationNeeded:l}}(n,s,g)),[n,s,g]),{pageInfo:x,setPage:S}=((t,n)=>{const[r,o]=e.useState(0),i=Math.min(xN,t.qHyperCube.qSize.qcy),a=e.useMemo((()=>({page:r,rowsPerPage:i,rowsPerPageOptions:[]})),[i,r]);if(n){const e=Math.floor(t.qHyperCube.qSize.qcy/xN);e<r&&o(e)}return{pageInfo:a,setPage:o}})(n,v),{initialDataPages:E,isLoading:w}=q$({model:r,layout:n,page:x.page,shouldRender:v});e.useEffect((()=>{var e;v&&a.active&&(null===(e=a.blur)||void 0===e||e.call(a,!1))}),[a.active]),e.useEffect((()=>{v&&r&&c&&E&&!w&&h&&function(e,t){const{app:n,selectionsAPI:r,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:x}=e,S=oq("ltr");t.render(ta.jsx(J.StrictMode,{children:ta.jsx(bM,{theme:S,children:ta.jsx(nq,{app:n,selectionsAPI:r,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:x,children:ta.jsx(D$,{})})})}))}({app:t,layout:n,model:r,rect:o,theme:i,keyboard:a,translator:l,interactions:s,selectionsAPI:u,rootElement:d,embed:p,changeSortOrder:c,tableData:y,applyColumnWidths:m,setPage:S,pageInfo:x,initialDataPages:E,viewService:g,env:b},f)}),[t,n,r,o,i,a.active,l,s,u,c,v,d,p,f,y,m,S,x,w,E,h,b])},F$={version:JSON.stringify("3.9.3"),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 j$(e,t){const n=e.getElementsByClassName("sn-table-container")[0];if(!n)return{};const r=(null==n?void 0:n.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:r.y+i.height+(t.atTop?l.height:0),bottom:r.y+r.height-(t.atBottom?l.height:0)},c=((e,t)=>{if(!e)return-1;for(let n=0;n<e.length;n++)if(e[n].getBoundingClientRect().bottom>t.top)return n;return-1})(s,u),d=((e,t)=>{if(!e)return-1;for(let n=e.length-1;n>-1;n--){const r=e[n].getBoundingClientRect();if(t.bottom>r.top)return n}return-1})(s,u),p=((e,t,n)=>{if(!e||0===e.length||n<0)return 0;const r=e[n].getBoundingClientRect();return Math.max(t.top-r.top,0)})(s,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const $$=(e,t)=>{if(t)for(let n=0;n<t.length;n++){const r=t[n].getAttribute("rowindex");if(r&&parseInt(r,10)===e)return t[n]}},B$=(e,t,n)=>{if(!e)return!1;const r=e.y+e.height/2;return r>=t&&r<=n};const H$=(e,t,n,r)=>{var o;if(e<0)return 0;const i=n.qHyperCube.qSize.qcy,a=r.rowsPerPage||O$.rowsPerPage,l=null!==(o=r.viewState)&&void 0!==o&&o.isMultiPage?0:3;return Math.min(i,a,e-t+1+l)},V$=(e,t,n)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const r=rI(e,t);if(cI(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=j$(n,r);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:H$(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const n=e.querySelector(".sn-table-body"),r=null==n?void 0:n.getBoundingClientRect(),o=null==n?void 0:n.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!r)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=$$(d,o),m=null==f?void 0:f.getBoundingClientRect();if(!f||!m)return{};const h=r.y;if(1-i<.001)return{visibleRowStartIndex:d+(m.y>=h-4?0:1)+c,visibleRowEndIndex:p+c};const g=r.y+r.height,b=(B$(m,h,g)?d:d+1)+c;let v=p+c;const y=$$(p,o),x=null==y?void 0:y.getBoundingClientRect();return y&&x&&(B$(x,h,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(n,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:H$(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}},W$=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),U$=e=>e.getStyle("object","straightTableV2","backgroundColor");return function(t){return{qae:{properties:{initial:F$},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:YA,exportProperties:UA,exploration:KA},ext:BP(t),component(){var n;const r=e.useElement(),o=(t=>{const n=e.useMemo((()=>ok(t)),[t]);return e.useEffect((()=>()=>n.unmount()),[n]),n})(r),i=e.useStaleLayout(),a=e.useApp(),l=e.useModel(),s=e.useInteractionState(),u=e.useTranslator(),c=e.useSelections(),d=e.useKeyboard(),{freeResize:p}=e.useOptions(),f=e.useRect(),m=null!=i&&null!==(n=i.snapshotData)&&void 0!==n&&n.content&&!p?{...f,...i.snapshotData.content.size}:f,h=(t=>{const{viewState:n}=e.useOptions();return e.useMemo((()=>((e,t)=>{var n,r,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v;return{qTop:0,qHeight:0,rowPartialHeight:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.rowPartialHeight)&&void 0!==n?n: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}})(n,t.snapshotData)),[n,t.snapshotData,t.usePagination])})(i),g=e.useEmbed(),b=FC(i,r,W$,U$),v=((t,n)=>e.useMemo((()=>((e,t)=>{if(t)return async(n,r)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:l,isActivelySorted:s}=n,u=o?i:i-e,c=(await t.getEffectiveProperties()).qHyperCubeDef.qInterColumnSortOrder,d=[],p=r!==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)}})(t.qDimensionInfo.length,n)),[t.qDimensionInfo.length,n]))(i.qHyperCube,l),y=HP(i.qHyperCube,l),x=((t,n)=>{const{fontSize:r,fontFamily:o}=$N(n,t,!1),{fontSize:i,fontFamily:a}=BN(n,t),[l,s]=e.usePromise((async()=>(await document.fonts.load(`600 ${r} ${o}`),await document.fonts.load(`${i} ${a}`),!0)),[r,o,i,a]);return s?(console.warn("Failed to load font:",s),!0):!!l})(b,i);null===e.onContextMenu||void 0===e.onContextMenu||e.onContextMenu(((e,t)=>{const n=t.target,r=null==n?void 0:n.closest(`.${mk}`);null!=r&&r.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{wk(r)}})})),(({layout:t,viewService:n,model:r,rootElement:o,contentRect:i})=>{e.onTakeSnapshot((async e=>{if(!e.snapshotData||!r||e.snapshotData.content)return e;if(r.getHyperCubeData){e.qHyperCube||(e.qHyperCube={});const{rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m}=V$(t,n,o);e.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:null!=d?d:0,qWidth:t.qHyperCube.qSize.qcx,qHeight:null!=p?p:0}]),e.snapshotData.content={rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m,size:{width:i.width,height:i.height},estimatedRowHeight:n.estimatedRowHeight}}return e})),e.useImperativeHandle((()=>({getViewState:()=>V$(t,n,o)})),[t,n,o])})({layout:i,viewService:h,model:l,rootElement:r,contentRect:f}),z$({app:a,layout:i,model:l,rect:m,theme:b,keyboard:d,translator:u,interactions:s,selectionsAPI:c,changeSortOrder:v,rootElement:r,embed:g,reactRoot:o,applyColumnWidths:y,isFontLoaded:x,viewService:h,env:t}),N$({app:a,model:l,rootElement:r,layout:i,interactions:s,translator:u,selectionsAPI:c,theme:b,changeSortOrder:v,keyboard:d,rect:m,embed:g,reactRoot:o,applyColumnWidths:y,isFontLoaded:x,viewService:h,env:t})}}}}));