@nebula.js/sn-pivot-table 4.2.0 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  /*
2
- * @nebula.js/sn-pivot-table v4.2.0
2
+ * @nebula.js/sn-pivot-table v4.3.0
3
3
  * Copyright (c) 2025 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- System.register(["react","@nebula.js/stardust","react-dom","picasso-plugin-q","picasso.js"],(function(e){"use strict";var t,r,n,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,L,I,A,M,D,P,k,O,T,_,q,N,F,j,z,G;return{setters:[function(e){t=e,r=e.default,n=e.useContext,o=e.createElement,i=e.Children,a=e.isValidElement,l=e.cloneElement,s=e.useMemo,u=e.useState,c=e.useRef,d=e.forwardRef,p=e.useCallback,f=e.useEffect,m=e.createContext,h=e.memo,g=e.useLayoutEffect,b=e.PureComponent,v=e.useReducer},function(e){y=e.useMemo,x=e.useOptions,S=e.usePromise,E=e.useState,C=e.useEffect,w=e.useTheme,R=e.onContextMenu,L=e.onTakeSnapshot,I=e.useImperativeHandle,A=e.useTranslator,M=e.useElement,D=e.useStaleLayout,P=e.useModel,k=e.useApp,O=e.useEmbed,T=e.useKeyboard,_=e.useInteractionState,q=e.useSelections,N=e.useRect},function(e){F=e.default,j=e},function(e){z=e.default},function(e){G=e.default}],execute:function(){function $(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function B(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}e("default",(function(e){return{qae:{properties:{initial:OP()},data:At(e)},ext:Rg(e),component(){PP(e)}}}));var W={exports:{}};self,W.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Pe});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var l=a[i];return a[i]=r,{updated:r,previous:l}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var l=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(l);if(-1!==r){var n=t.indexOf(s);if(-1!==n)return t.substring(r+l.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var l=S({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),r=e.indexOf(s);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),L={},I=Array.isArray;function A(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function M(e){return void 0===e}function D(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function P(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=M(e[r||t])?i:e[t],e=e[r||t]}})),e}function k(e,t){var r=!0;if(A(e)&&A(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){k(e[n],t[n])||(r=!1)})),r);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!k(e[n],t[n]))return!1;return!0}return e===t}L.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(r,"/").concat(o);k(i,a)||D(t,o)||(M(a)?n.push({op:"add",path:l,value:i}):A(i)&&A(a)?n=n.concat(L.generate(a,i,l)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&M(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(k(t,o))return n;if(!M(t[0])&&M(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(n.push({op:"remove",path:"".concat(r,"/").concat(l)}),o.splice(l,1)):n=n.concat(L.generate(o[l],t[i],"".concat(r,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(n.push({op:"move",path:"".concat(r,"/").concat(s),from:"".concat(r,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return n}(a,i,l)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){M(t[o])&&!D(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},L.apply=function(e,t){t.forEach((function(t){var r,n,o=P(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(A(a)&&A(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!D(r,e)&&delete r[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=P(e,t.from);I(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])}))},L.clone=function(e){return R({},e)},L.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},L.updateObject=function(e,t){Object.keys(e).length?L.apply(e,L.generate(e,t)):R(e,t)};const O=L,T=function(e,r,n){if(!e)return Promise.resolve();var o=O.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var _="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===_)return r[n]}function N(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===_)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const j={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(r,s),p=E.getAboveComp(r,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=q(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=q(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(_))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var z="movingAverage";function G(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===z)return r[n]}function $(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===z)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return r;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),m=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat($(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat($(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat($(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat($(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=G(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=G(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat($(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat($(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(z))return!1;var i=G(t,e);return i&&!i.disabled}};return r}};var H="timeSeriesDecomposition";function V(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===H)return r[n]}function Y(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===H)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var U={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,U),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=V(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var r=V(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(H))return!1;var i=V(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var l=ae(t),s=le(t,r,n),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,s,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Le="qDef.base.qAggrFunc",Ie={initBase:function(e,t){(t||Ie.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,we,i(e,Ee)))},restoreBase:function(e){Ie.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,Ee,i(e,we)),i(e,Re)&&i(e,Le)&&r(e,Re,i(e,Le)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const Ae=Ie;function Me(e){return Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(e)}var De={accumulation:j,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Pe={modifiers:De,apply:Oe,applyModifiers:Te,cleanUpMeasure:_e,destroy:function(e){e&&ke[e.id]&&ke[e.id].masterItemSubscriber&&(ke[e.id].masterItemSubscriber&&ke[e.id].masterItemSubscriber.unsubscribe(),delete ke[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:Ae.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return De[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return De[e]&&De[e].isApplicable({properties:r,layout:n})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=ze(e);Ye({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var ke={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;ke[r.id]=ke[r.id]||{isFirstTime:!0};var u=ke[r.id].isFirstTime;if(ke[r.id].isFirstTime=!1,n&&"object"===Me(n))return Te({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=ke[r.id].lastReloadTime;if(ke[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ye({modifiers:ze(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);$e(n);var o=Qe(n);return Ue({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return m&&function(e){var t=e.properties;je(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(r++,"object"!==Me(De[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=De[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),Te({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Me(e.base)}))}(p)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return je(n).forEach((function(e){return _e(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(s)}function Te(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=s?t()(!0,{},o):o),$e(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(r||(r=je(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return _e(e)})),Promise.resolve();var s=a?void 0:Qe(n);return Ue({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ye({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Ae.isValid(r)||Ae.initBase(r,!0);var s=r.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(l++,"object"!==Me(De[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)");De[e.type].initModifier(e,r);var s=r.qLibraryId||c&&c.qLibraryId;s?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:De[n.type].generateExpression({expression:l,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:s,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof De[n.type].updateModifier&&De[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),l=""===a?a:De[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),Be(r)):_e(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function _e(e){!function(e){var t=ze(e);return Array.isArray(t)&&t.some((function(e){return"object"===Me(e)&&!e.disabled&&!De[e.type]}))}(e)?Ae.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ye({modifiers:ze(e),properties:r,layout:n})}))}function Ne(e){var t=ze(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(De[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||De[t.type].enableTotalsFunction(e)}function je(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function ze(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function Ge(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function $e(e){je(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&Ge(r)!==e.qDef.qDef?delete e.qDef.base:!Ae.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function Be(e){var t=ze(e);Array.isArray(t)&&t.forEach((function(t){"object"===Me(t)&&(t.disabled||!De[t.type]&&Ge(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function He(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,r=e.properties,n=e.layout;return!He(t)&&Ye({modifiers:ze(t),properties:r,layout:n})}function Ye(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Me(e)||e.disabled||!De[e.type])&&(void 0===o[e.type]&&(o[e.type]=De[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ue(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):T(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Me(e)&&!e.disabled&&De[e.type]&&De[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=je(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=ze(t);if(Ye({modifiers:n,properties:e})){var i=He(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(ke[t.id].masterItemSubscriber=ke[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},r=i(e,"qInfo.qType");return r&&l[r]&&l[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=s(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),ke[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>$e});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var l=n[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(645),f=r.n(p);const m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var l,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,s(n.qMeasures));var a,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(n=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=a}var S=r(229),E=r.n(S);function C(e,t){var r=E()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function w(e,t){return E()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var L=Math.pow(2,53)-1;function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const M=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},D=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},P=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},k=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},O=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},T=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=r.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},_=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=r.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},q=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},l=R(a.max,o.dimensions.length,L),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,L),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},N=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},r,o)).components&&(o.components=[]),o},j=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>r&&r>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},G=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return I(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return A(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 A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},B=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const H={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,r||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?k():w,L=s.defaultMeasure,I=void 0===L?O():L;v.qDimensions.length=0,v.qMeasures.length=0,j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),T({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),_({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:I}),G({newProperties:g,dataDefinition:a,hypercubePath:u}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),D("qMaxStackedCells",b,v),D("qNoOfLeftDims",b,v),P("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),P("qMode",b,v,"S"),P("qReductionMode",b,v,"N"),P("qSortbyYValue",b,v),P("qIndentMode",b,v),P("qShowTotalsAbove",b,v),M(g,t,n),h.qProperty=g;var A=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:A}),p&&W(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&W(h.qProperty,"dynamicScript"),h}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function Y(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function U(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!V[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],l=t.length;if(Y(a,t,n,o),U(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})),t.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}))}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(n,o);var s=n[n.length-1];if(s){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,l={};switch(e){case"dimension":r.qLibraryId?(l.type="dimension",l.name=r.qLibraryId,l.id=r.qLibraryId):(l.type="field",t?(l.name=r.label||r.qDef,l.id=r.qDef):(l.name=r.qDef.qFieldDefs[0],l.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(l.expression=i)):(l.type="expression",t?(l.name=r.label||r.qExpression,l.id=r.qExpression):(l.name=r.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=r?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(re(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:r||l,key:r||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}n||(i.auto=!1,i.mode=a)}function le(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===l}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?le(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==l&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:l,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||n[0])),!!l}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=H.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=H.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(r,"unsupportedAutoMinMax")||E()(r.measureAxis,t.measureAxis):W(r,"supportedAutoMinMax")||E()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,r.properties.measureAxes[t[0].axis])):E()(l,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},Ee={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function we(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(r,n,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(r,n,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Le="qHyperCubeDef.qMeasures",Ie="conditionalColoring",Ae="measures",Me="qDef.conditionalColoring";const De={quarantine:function(e){we({properties:e,arrayPath:Le,quarantineName:Ie,arrayName:Ae,itemPath:Me})},unquarantine:function(e){Re({properties:e,arrayPath:Le,itemPath:Me,arrayName:Ae,quarantineName:Ie})}};var Pe="qHyperCubeDef.qMeasures",ke="measures",Oe="qHyperCubeDef.qDimensions",Te="dimensions",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",je="qCalcCondition",ze="conditionalShowHide";const Ge={quarantine:function(e){we({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:ke,itemPath:je}),we({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:Te,itemPath:je})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:ke,itemPath:je}),Re({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:Te,itemPath:je})},quarantineAlternative:function(e){we({properties:e,arrayPath:_e,quarantineName:ze,arrayName:qe,itemPath:je}),we({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:_e,quarantineName:ze,arrayName:qe,itemPath:je}),Re({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})}},$e={hypercube:H,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:De,conditionalShow:Ge}})(),n.default})();var H=$(W.exports);const V="qHyperCubeDef.qMeasures",Y="measures",U="qHyperCubeDef.qDimensions",K="dimensions",X="qDef.representation",J="tableRepresentation",Z="qDef.conditionalColoring",Q="conditionalColoring",ee="qMiniChartDef",te="miniChartDef",re=e=>{H.unquarantineArrayProp({properties:e,arrayPath:U,itemPath:X,arrayName:K,quarantineName:J}),H.unquarantineArrayProp({properties:e,arrayPath:V,itemPath:X,arrayName:Y,quarantineName:J}),H.unquarantineArrayProp({properties:e,arrayPath:V,itemPath:Z,arrayName:Y,quarantineName:Q}),H.unquarantineArrayProp({properties:e,arrayPath:V,itemPath:ee,arrayName:Y,quarantineName:te})},ne=e=>{H.quarantineArrayProp({properties:e,arrayPath:U,itemPath:X,arrayName:K,quarantineName:J}),H.quarantineArrayProp({properties:e,arrayPath:V,itemPath:X,arrayName:Y,quarantineName:J}),H.quarantineArrayProp({properties:e,arrayPath:V,itemPath:Z,arrayName:Y,quarantineName:Q}),H.quarantineArrayProp({properties:e,arrayPath:V,itemPath:ee,arrayName:Y,quarantineName:te})};function oe(e){return"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function ie(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length&&oe(t[0]))return(t[0].r<<16)+(t[0].g<<8)+t[0].b;var n=0,o=0,i=0;if(1===t.length&&"string"==typeof t[0]){var a,l=t[0];(a=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(l))?(n=parseInt(a[1],10),o=parseInt(a[2],10),i=parseInt(a[3],10)):(a=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(l))?(n=parseInt(a[1],16),o=parseInt(a[2],16),i=parseInt(a[3],16)):(a=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(l))&&(n=parseInt(a[1]+a[1],16),o=parseInt(a[2]+a[2],16),i=parseInt(a[3]+a[3],16))}return(n<<16)+(o<<8)+i}function ae(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var se={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},ue="qcm-color";function ce(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o,i,a,l,s,u,c,d,p,f={type:ue,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},m=0,h=0,g=0,b=1;if((null===(e=r[0])||void 0===e?void 0:e.type)===ue){var v=r[0];m=v.r,h=v.g,g=v.b,b=v.a,f.invalid=r[0].invalid,f.spaces=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?le(Object(r),!0).forEach((function(t){ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r[0].spaces)}else if(r.length<3)if("string"==typeof r[0]){var y,x=r[0];if(y=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10);else if(y=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10),b=parseFloat(y[4]);else if(y=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))b=parseInt(y[1],10)/255,m=parseInt(y[2],10),h=parseInt(y[3],10),g=parseInt(y[4],10);else if(y=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(x))m=parseInt(y[1],16),h=parseInt(y[2],16),g=parseInt(y[3],16),b=1;else if(y=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(x))m=parseInt(y[1]+y[1],16),h=parseInt(y[2]+y[2],16),g=parseInt(y[3]+y[3],16),b=1;else if(y=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var S=[];switch(c=Math.floor(c)){case 0:S=[u,d,0];break;case 1:S=[d,u,0];break;case 2:S=[0,u,d];break;case 3:S=[0,d,u];break;case 4:S=[d,0,u];break;case 5:S=[u,0,d];break;default:S=[0,0,0]}p=l-.5*u,m=S[0]+p,h=S[1]+p,g=S[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(y=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),b=parseFloat(y[7]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var E=[];switch(c=Math.floor(c)){case 0:E=[u,d,0];break;case 1:E=[d,u,0];break;case 2:E=[0,u,d];break;case 3:E=[0,d,u];break;case 4:E=[d,0,u];break;case 5:E=[u,0,d];break;default:E=[0,0,0]}p=l-.5*u,m=E[0]+p,h=E[1]+p,g=E[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g)}else if(y=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),s=parseFloat(y[5]),c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)*(i=(i/=100)<0?0:i>1?1:i))*(1-Math.abs(c%2-1));var C=[];switch(c=Math.floor(c)){case 0:C=[u,d,0];break;case 1:C=[d,u,0];break;case 2:C=[0,u,d];break;case 3:C=[0,d,u];break;case 4:C=[d,0,u];break;case 5:C=[u,0,d];break;default:C=[0,0,0]}p=s-u,m=C[0]+p,h=C[1]+p,g=C[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(se[x.toLowerCase()]){a=x.toLowerCase();var w=se[a];m=w.r,h=w.g,g=w.b,b="number"==typeof se[a].a?se[a].a:1}else f.invalid=!0}else"number"==typeof r[0]&&r[0]>=0&&"argb"===r[1]?(b=(4278190080&r[0])>>>24,b/=255,m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):"number"==typeof r[0]&&r[0]>=0?(m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):f.invalid=!0;else r.length>=3&&r.length<=4?(m=r[0],h=r[1],g=r[2],b=arguments.length>=4?r[3]:1):f.invalid=!0;return Number.isNaN(+m+h+g+b)&&(f.invalid=!0),f.r=Math.floor(m),f.g=Math.floor(h),f.b=Math.floor(g),f.a=b,f.l=l,f}function de(e){var t,r,n=0,o="string"==typeof e?ce(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=s;if(s===u)t=0,n=0;else{switch(t=0==(r=s-u)?0:r/c,s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function pe(e){if(oe(e))return"rgb(".concat([e.r,e.g,e.b].join(", "),")");var t="string"==typeof e?ie(e):e,r=(65280&t)>>8,n=255&t;return"rgb(".concat((16711680&t)>>16,", ").concat(r,", ").concat(n,")")}function fe(e,t){return oe(e)?"rgba(".concat([e.r,e.g,e.b,void 0!==t?t:e.a].join(", "),")"):fe(ce(e),t)}function me(e){return oe(e)?1===e.a?pe(e):fe(e):me(ce(e))}var he,ge,be=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function ve(){var e=ce.apply(void 0,arguments);return e.invalid||function(e){return.2126*be(e.r)+.7152*be(e.g)+.0722*be(e.b)}(e)<.4}function ye(){var e=ce.apply(void 0,arguments),t={type:e.type,r:e.r,g:e.g,b:e.b,a:e.a,invalid:e.invalid,spaces:e.spaces},r=function(){return t.spaces.hsla||(t.spaces.hsla=function(e){var t,r,n=0,o="string"==typeof e?ce(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=o.a,u=Math.max(i,a,l),c=Math.min(i,a,l),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsla(".concat(360*n,", ").concat(100*t,", ").concat(100*d,", ").concat(s,")")}(t)),t.spaces.hsla},n=function(e){var t=r(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),o=parseFloat(n[1]),i=parseFloat(n[3]),a=parseFloat(n[7]),l=parseFloat(n[5]),s=Math.max(0,Math.min(l+e,100));return"hsla(".concat(o,", ").concat(i,", ").concat(s,", ").concat(a,")")};return{get type(){return t.type},isInvalid:function(){return t.invalid},get r(){return t.r},get g(){return t.g},get b(){return t.b},get a(){return t.a},getR:function(){return t.r},getG:function(){return t.g},getB:function(){return t.b},getAlpha:function(){return t.a},setAlpha:function(e){t.a=e,t.spaces={}},isEqualTo:function(e){var r=e.type===t.type?e:ce(e);return r.r===t.r&&r.g===t.g&&r.b===t.b&&r.a===t.a},isDark:function(){return ve(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=pe(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=fe(t)),t.spaces.rgba},getString:function(){return t.spaces.string||(t.spaces.string=me(t)),t.spaces.string},getHex:function(){return t.spaces.hex||(t.spaces.hex=function(e){var t,r,n;if(oe(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat([t,r,n].join(""));var o="string"==typeof e?ie(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat(t).concat(r).concat(n)}(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=function(e){var t,r,n=0,o="string"==typeof e?ce(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=(s+u)/2;if(s===u)t=0,n=0;else{switch(r=s-u,t=c>.5?r/(2-s-u):r/(s+u),s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsl(".concat(360*n,", ").concat(100*t,", ").concat(100*c,")")}(t)),t.spaces.hsl},getHSLA:r,getShiftedHSLA:n,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=function(e){var t=de(e),r=t.h,n=t.s,o=t.v;return"hsv(".concat(r,", ").concat(n,", ").concat(o,")")}(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=de(t)),t.spaces.hsvObject},blend:function(e,r){var n=Math.floor(t.r+(e.r-t.r)*r),o=Math.floor(t.g+(e.g-t.g)*r),i=Math.floor(t.b+(e.b-t.b)*r),a=Math.floor(t.a+(e.getAlpha()-t.a)*r);return"rgba(".concat([n,o,i,a].join(", "),")")},getBrightenedColor:function(){return ye(n(18*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))},getDarkenedColor:function(){return ye(n(18*-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))}}}var xe=function(){if(ge)return he;ge=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return he=function e(){var t,r,n,s,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(s=l(t,r))&&(m&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(m,c,s)})):void 0!==s&&a(d,{name:r,newValue:s}));return d},he}();function Se(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Ee(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Ce(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(xe);var we=1/.7,Re="\\s*([+-]?\\d+)\\s*",Le="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ie="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ae=/^#([0-9a-f]{3,8})$/,Me=new RegExp(`^rgb\\(${Re},${Re},${Re}\\)$`),De=new RegExp(`^rgb\\(${Ie},${Ie},${Ie}\\)$`),Pe=new RegExp(`^rgba\\(${Re},${Re},${Re},${Le}\\)$`),ke=new RegExp(`^rgba\\(${Ie},${Ie},${Ie},${Le}\\)$`),Oe=new RegExp(`^hsl\\(${Le},${Ie},${Ie}\\)$`),Te=new RegExp(`^hsla\\(${Le},${Ie},${Ie},${Le}\\)$`),_e={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function qe(){return this.rgb().formatHex()}function Ne(){return this.rgb().formatRgb()}function Fe(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Ae.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?je(t):3===r?new Be(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?ze(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?ze(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Me.exec(e))?new Be(t[1],t[2],t[3],1):(t=De.exec(e))?new Be(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Pe.exec(e))?ze(t[1],t[2],t[3],t[4]):(t=ke.exec(e))?ze(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Oe.exec(e))?Ke(t[1],t[2]/100,t[3]/100,1):(t=Te.exec(e))?Ke(t[1],t[2]/100,t[3]/100,t[4]):_e.hasOwnProperty(e)?je(_e[e]):"transparent"===e?new Be(NaN,NaN,NaN,0):null}function je(e){return new Be(e>>16&255,e>>8&255,255&e,1)}function ze(e,t,r,n){return n<=0&&(e=t=r=NaN),new Be(e,t,r,n)}function Ge(e){return e instanceof Ce||(e=Fe(e)),e?new Be((e=e.rgb()).r,e.g,e.b,e.opacity):new Be}function $e(e,t,r,n){return 1===arguments.length?Ge(e):new Be(e,t,r,null==n?1:n)}function Be(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function We(){return`#${Ue(this.r)}${Ue(this.g)}${Ue(this.b)}`}function He(){const e=Ve(this.opacity);return`${1===e?"rgb(":"rgba("}${Ye(this.r)}, ${Ye(this.g)}, ${Ye(this.b)}${1===e?")":`, ${e})`}`}function Ve(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ye(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ue(e){return((e=Ye(e))<16?"0":"")+e.toString(16)}function Ke(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Je(e,t,r,n)}function Xe(e){if(e instanceof Je)return new Je(e.h,e.s,e.l,e.opacity);if(e instanceof Ce||(e=Fe(e)),!e)return new Je;if(e instanceof Je)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Je(a,l,s,e.opacity)}function Je(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Ze(e){return(e=(e||0)%360)<0?e+360:e}function Qe(e){return Math.max(0,Math.min(1,e||0))}function et(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Se(Ce,Fe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:qe,formatHex:qe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Xe(this).formatHsl()},formatRgb:Ne,toString:Ne}),Se(Be,$e,Ee(Ce,{brighter(e){return e=null==e?we:Math.pow(we,e),new Be(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Be(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Be(Ye(this.r),Ye(this.g),Ye(this.b),Ve(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:We,formatHex:We,formatHex8:function(){return`#${Ue(this.r)}${Ue(this.g)}${Ue(this.b)}${Ue(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:He,toString:He})),Se(Je,(function(e,t,r,n){return 1===arguments.length?Xe(e):new Je(e,t,r,null==n?1:n)}),Ee(Ce,{brighter(e){return e=null==e?we:Math.pow(we,e),new Je(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Je(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Be(et(e>=240?e-240:e+120,o,n),et(e,o,n),et(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Je(Ze(this.h),Qe(this.s),Qe(this.l),Ve(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ve(this.opacity);return`${1===e?"hsl(":"hsla("}${Ze(this.h)}, ${100*Qe(this.s)}%, ${100*Qe(this.l)}%${1===e?")":`, ${e})`}`}}));const tt=Math.PI/180,rt=180/Math.PI,nt=4/29,ot=6/29,it=3*ot*ot;function at(e){if(e instanceof lt)return new lt(e.l,e.a,e.b,e.opacity);if(e instanceof pt)return ft(e);e instanceof Be||(e=Ge(e));var t,r,n=dt(e.r),o=dt(e.g),i=dt(e.b),a=st((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=st((.4360747*n+.3850649*o+.1430804*i)/.96422),r=st((.0139322*n+.0971045*o+.7141733*i)/.82521)),new lt(116*a-16,500*(t-a),200*(a-r),e.opacity)}function lt(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function st(e){return e>.008856451679035631?Math.pow(e,1/3):e/it+nt}function ut(e){return e>ot?e*e*e:it*(e-nt)}function ct(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function dt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function pt(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function ft(e){if(isNaN(e.h))return new lt(e.l,0,0,e.opacity);var t=e.h*tt;return new lt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Se(lt,(function(e,t,r,n){return 1===arguments.length?at(e):new lt(e,t,r,null==n?1:n)}),Ee(Ce,{brighter(e){return new lt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new lt(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new Be(ct(3.1338561*(t=.96422*ut(t))-1.6168667*(e=1*ut(e))-.4906146*(r=.82521*ut(r))),ct(-.9787684*t+1.9161415*e+.033454*r),ct(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Se(pt,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof pt)return new pt(e.h,e.c,e.l,e.opacity);if(e instanceof lt||(e=at(e)),0===e.a&&0===e.b)return new pt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*rt;return new pt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new pt(e,t,r,null==n?1:n)}),Ee(Ce,{brighter(e){return new pt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new pt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ft(this).rgb()}}));var mt=e=>()=>e;function ht(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):mt(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?ht:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):mt(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=$e(e)).r,(t=$e(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=ht(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var gt="center",bt="bottom";[{key:"NoDataExist",alignment:gt,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:gt,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:gt,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:gt},{key:"DataRangeIncludingZero",alignment:bt},{key:"LimitedData",alignment:bt},{key:"NegativeOrZeroValues",alignment:bt}].reduce((function(e,t){return e[t.key]=t,e}),{});var vt,yt=["__proto__","constructor"];function xt(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!yt.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var l=n[a];void 0===i[l]&&(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}}}function St(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function Et(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=wt)):void 0===t&&(t=Ct);for(var r,n,o,i,a,l=new It(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new It(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(Lt)}function Ct(e){return e.children}function wt(e){return Array.isArray(e)?e[1]:null}function Rt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Lt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function It(e){this.data=e,this.depth=this.height=0,this.parent=null}function At(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,r,n){const o="rows"===(null==n?void 0:n.type)?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")},filters:{description:()=>t.get("SimpleProperties.Filters.Filter")}}]}}It.prototype=Et.prototype={constructor:It,count:function(){return this.eachAfter(St)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return Et(this).eachBefore(Rt)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},vt=function(e){
7
+ System.register(["react","@nebula.js/stardust","react-dom","picasso-plugin-q","picasso.js"],(function(e){"use strict";var t,r,n,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,L,I,M,D,A,P,k,O,T,_,q,N,F,j,z,G;return{setters:[function(e){t=e,r=e.default,n=e.useContext,o=e.createElement,i=e.Children,a=e.isValidElement,l=e.cloneElement,s=e.useMemo,u=e.useState,c=e.useRef,d=e.forwardRef,p=e.useCallback,f=e.useEffect,m=e.createContext,h=e.memo,g=e.useLayoutEffect,b=e.PureComponent,v=e.useReducer},function(e){y=e.useMemo,x=e.useOptions,S=e.usePromise,E=e.useState,C=e.useEffect,w=e.useTheme,R=e.onContextMenu,L=e.onTakeSnapshot,I=e.useImperativeHandle,M=e.useTranslator,D=e.useElement,A=e.useStaleLayout,P=e.useModel,k=e.useApp,O=e.useEmbed,T=e.useKeyboard,_=e.useInteractionState,q=e.useSelections,N=e.useRect},function(e){F=e.default,j=e},function(e){z=e.default},function(e){G=e.default}],execute:function(){function $(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function B(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}e("default",(function(e){return{qae:{properties:{initial:QP()},data:Mt(e)},ext:Mg(e),component(){JP(e)}}}));var W={exports:{}};self,W.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Pe});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var l=a[i];return a[i]=r,{updated:r,previous:l}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var l=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(l);if(-1!==r){var n=t.indexOf(s);if(-1!==n)return t.substring(r+l.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var l=S({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),r=e.indexOf(s);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),L={},I=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function D(e){return void 0===e}function A(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function P(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=D(e[r||t])?i:e[t],e=e[r||t]}})),e}function k(e,t){var r=!0;if(M(e)&&M(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){k(e[n],t[n])||(r=!1)})),r);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!k(e[n],t[n]))return!1;return!0}return e===t}L.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(r,"/").concat(o);k(i,a)||A(t,o)||(D(a)?n.push({op:"add",path:l,value:i}):M(i)&&M(a)?n=n.concat(L.generate(a,i,l)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&D(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(k(t,o))return n;if(!D(t[0])&&D(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(n.push({op:"remove",path:"".concat(r,"/").concat(l)}),o.splice(l,1)):n=n.concat(L.generate(o[l],t[i],"".concat(r,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(n.push({op:"move",path:"".concat(r,"/").concat(s),from:"".concat(r,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return n}(a,i,l)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){D(t[o])&&!A(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},L.apply=function(e,t){t.forEach((function(t){var r,n,o=P(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(M(a)&&M(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!A(r,e)&&delete r[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=P(e,t.from);I(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])}))},L.clone=function(e){return R({},e)},L.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},L.updateObject=function(e,t){Object.keys(e).length?L.apply(e,L.generate(e,t)):R(e,t)};const O=L,T=function(e,r,n){if(!e)return Promise.resolve();var o=O.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var _="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===_)return r[n]}function N(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===_)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const j={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(r,s),p=E.getAboveComp(r,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=q(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=q(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(_))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var z="movingAverage";function G(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===z)return r[n]}function $(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===z)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return r;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),m=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat($(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat($(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat($(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat($(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=G(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=G(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat($(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat($(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(z))return!1;var i=G(t,e);return i&&!i.disabled}};return r}};var H="timeSeriesDecomposition";function V(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===H)return r[n]}function Y(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===H)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var U={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,U),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=V(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var r=V(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(H))return!1;var i=V(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var l=ae(t),s=le(t,r,n),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,s,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Le="qDef.base.qAggrFunc",Ie={initBase:function(e,t){(t||Ie.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,we,i(e,Ee)))},restoreBase:function(e){Ie.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,Ee,i(e,we)),i(e,Re)&&i(e,Le)&&r(e,Re,i(e,Le)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const Me=Ie;function De(e){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}var Ae={accumulation:j,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Pe={modifiers:Ae,apply:Oe,applyModifiers:Te,cleanUpMeasure:_e,destroy:function(e){e&&ke[e.id]&&ke[e.id].masterItemSubscriber&&(ke[e.id].masterItemSubscriber&&ke[e.id].masterItemSubscriber.unsubscribe(),delete ke[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:Me.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ae[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Ae[e]&&Ae[e].isApplicable({properties:r,layout:n})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=ze(e);Ye({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var ke={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;ke[r.id]=ke[r.id]||{isFirstTime:!0};var u=ke[r.id].isFirstTime;if(ke[r.id].isFirstTime=!1,n&&"object"===De(n))return Te({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=ke[r.id].lastReloadTime;if(ke[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ye({modifiers:ze(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);$e(n);var o=Qe(n);return Ue({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return m&&function(e){var t=e.properties;je(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===De(e)&&!e.disabled){if(r++,"object"!==De(Ae[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Ae[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),Te({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===De(e.base)}))}(p)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return je(n).forEach((function(e){return _e(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(s)}function Te(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=s?t()(!0,{},o):o),$e(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(r||(r=je(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return _e(e)})),Promise.resolve();var s=a?void 0:Qe(n);return Ue({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ye({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Me.isValid(r)||Me.initBase(r,!0);var s=r.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===De(e)&&!e.disabled){if(l++,"object"!==De(Ae[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)");Ae[e.type].initModifier(e,r);var s=r.qLibraryId||c&&c.qLibraryId;s?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Ae[n.type].generateExpression({expression:l,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:s,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Ae[n.type].updateModifier&&Ae[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),l=""===a?a:Ae[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),Be(r)):_e(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function _e(e){!function(e){var t=ze(e);return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&!Ae[e.type]}))}(e)?Me.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ye({modifiers:ze(e),properties:r,layout:n})}))}function Ne(e){var t=ze(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Ae[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||Ae[t.type].enableTotalsFunction(e)}function je(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function ze(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function Ge(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function $e(e){je(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&Ge(r)!==e.qDef.qDef?delete e.qDef.base:!Me.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function Be(e){var t=ze(e);Array.isArray(t)&&t.forEach((function(t){"object"===De(t)&&(t.disabled||!Ae[t.type]&&Ge(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function He(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,r=e.properties,n=e.layout;return!He(t)&&Ye({modifiers:ze(t),properties:r,layout:n})}function Ye(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==De(e)||e.disabled||!Ae[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ae[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ue(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):T(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&Ae[e.type]&&Ae[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=je(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=ze(t);if(Ye({modifiers:n,properties:e})){var i=He(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(ke[t.id].masterItemSubscriber=ke[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},r=i(e,"qInfo.qType");return r&&l[r]&&l[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=s(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),ke[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>$e});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var l=n[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(645),f=r.n(p);const m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var l,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,s(n.qMeasures));var a,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(n=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=a}var S=r(229),E=r.n(S);function C(e,t){var r=E()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function w(e,t){return E()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var L=Math.pow(2,53)-1;function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const D=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},A=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},P=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},k=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},O=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},T=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=r.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},_=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=r.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},q=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},l=R(a.max,o.dimensions.length,L),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,L),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},N=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},r,o)).components&&(o.components=[]),o},j=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>r&&r>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},G=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return I(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return M(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?M(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},B=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const H={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,r||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?k():w,L=s.defaultMeasure,I=void 0===L?O():L;v.qDimensions.length=0,v.qMeasures.length=0,j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),T({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),_({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:I}),G({newProperties:g,dataDefinition:a,hypercubePath:u}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),A("qMaxStackedCells",b,v),A("qNoOfLeftDims",b,v),P("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),P("qMode",b,v,"S"),P("qReductionMode",b,v,"N"),P("qSortbyYValue",b,v),P("qIndentMode",b,v),P("qShowTotalsAbove",b,v),D(g,t,n),h.qProperty=g;var M=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:M}),p&&W(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&W(h.qProperty,"dynamicScript"),h}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function Y(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function U(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!V[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],l=t.length;if(Y(a,t,n,o),U(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})),t.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}))}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(n,o);var s=n[n.length-1];if(s){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,l={};switch(e){case"dimension":r.qLibraryId?(l.type="dimension",l.name=r.qLibraryId,l.id=r.qLibraryId):(l.type="field",t?(l.name=r.label||r.qDef,l.id=r.qDef):(l.name=r.qDef.qFieldDefs[0],l.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(l.expression=i)):(l.type="expression",t?(l.name=r.label||r.qExpression,l.id=r.qExpression):(l.name=r.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(re(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:l,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}i.auto=!1,i.mode=a}function le(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===l}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?le(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==l&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:l,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||n[0])),!!l}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=H.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=H.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(r,"unsupportedAutoMinMax")||E()(r.measureAxis,t.measureAxis):W(r,"supportedAutoMinMax")||E()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,r.properties.measureAxes[t[0].axis])):E()(l,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},Ee={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function we(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(r,n,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(r,n,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Le="qHyperCubeDef.qMeasures",Ie="conditionalColoring",Me="measures",De="qDef.conditionalColoring";const Ae={quarantine:function(e){we({properties:e,arrayPath:Le,quarantineName:Ie,arrayName:Me,itemPath:De})},unquarantine:function(e){Re({properties:e,arrayPath:Le,itemPath:De,arrayName:Me,quarantineName:Ie})}};var Pe="qHyperCubeDef.qMeasures",ke="measures",Oe="qHyperCubeDef.qDimensions",Te="dimensions",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",je="qCalcCondition",ze="conditionalShowHide";const Ge={quarantine:function(e){we({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:ke,itemPath:je}),we({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:Te,itemPath:je})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:ke,itemPath:je}),Re({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:Te,itemPath:je})},quarantineAlternative:function(e){we({properties:e,arrayPath:_e,quarantineName:ze,arrayName:qe,itemPath:je}),we({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:_e,quarantineName:ze,arrayName:qe,itemPath:je}),Re({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})}},$e={hypercube:H,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:Ae,conditionalShow:Ge}})(),n.default})();var H=$(W.exports);const V="qHyperCubeDef.qMeasures",Y="measures",U="qHyperCubeDef.qDimensions",K="dimensions",X="qDef.representation",J="tableRepresentation",Z="qDef.conditionalColoring",Q="conditionalColoring",ee="qMiniChartDef",te="miniChartDef",re=e=>{H.unquarantineArrayProp({properties:e,arrayPath:U,itemPath:X,arrayName:K,quarantineName:J}),H.unquarantineArrayProp({properties:e,arrayPath:V,itemPath:X,arrayName:Y,quarantineName:J}),H.unquarantineArrayProp({properties:e,arrayPath:V,itemPath:Z,arrayName:Y,quarantineName:Q}),H.unquarantineArrayProp({properties:e,arrayPath:V,itemPath:ee,arrayName:Y,quarantineName:te})},ne=e=>{H.quarantineArrayProp({properties:e,arrayPath:U,itemPath:X,arrayName:K,quarantineName:J}),H.quarantineArrayProp({properties:e,arrayPath:V,itemPath:X,arrayName:Y,quarantineName:J}),H.quarantineArrayProp({properties:e,arrayPath:V,itemPath:Z,arrayName:Y,quarantineName:Q}),H.quarantineArrayProp({properties:e,arrayPath:V,itemPath:ee,arrayName:Y,quarantineName:te})};function oe(e){return"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function ie(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length&&oe(t[0]))return(t[0].r<<16)+(t[0].g<<8)+t[0].b;var n=0,o=0,i=0;if(1===t.length&&"string"==typeof t[0]){var a,l=t[0];(a=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(l))?(n=parseInt(a[1],10),o=parseInt(a[2],10),i=parseInt(a[3],10)):(a=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(l))?(n=parseInt(a[1],16),o=parseInt(a[2],16),i=parseInt(a[3],16)):(a=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(l))&&(n=parseInt(a[1]+a[1],16),o=parseInt(a[2]+a[2],16),i=parseInt(a[3]+a[3],16))}return(n<<16)+(o<<8)+i}function ae(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var se={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},ue="qcm-color";function ce(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o,i,a,l,s,u,c,d,p,f={type:ue,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},m=0,h=0,g=0,b=1;if((null===(e=r[0])||void 0===e?void 0:e.type)===ue){var v=r[0];m=v.r,h=v.g,g=v.b,b=v.a,f.invalid=r[0].invalid,f.spaces=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?le(Object(r),!0).forEach((function(t){ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r[0].spaces)}else if(r.length<3)if("string"==typeof r[0]){var y,x=r[0];if(y=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10);else if(y=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10),b=parseFloat(y[4]);else if(y=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))b=parseInt(y[1],10)/255,m=parseInt(y[2],10),h=parseInt(y[3],10),g=parseInt(y[4],10);else if(y=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(x))m=parseInt(y[1],16),h=parseInt(y[2],16),g=parseInt(y[3],16),b=1;else if(y=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(x))m=parseInt(y[1]+y[1],16),h=parseInt(y[2]+y[2],16),g=parseInt(y[3]+y[3],16),b=1;else if(y=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var S=[];switch(c=Math.floor(c)){case 0:S=[u,d,0];break;case 1:S=[d,u,0];break;case 2:S=[0,u,d];break;case 3:S=[0,d,u];break;case 4:S=[d,0,u];break;case 5:S=[u,0,d];break;default:S=[0,0,0]}p=l-.5*u,m=S[0]+p,h=S[1]+p,g=S[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(y=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),b=parseFloat(y[7]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var E=[];switch(c=Math.floor(c)){case 0:E=[u,d,0];break;case 1:E=[d,u,0];break;case 2:E=[0,u,d];break;case 3:E=[0,d,u];break;case 4:E=[d,0,u];break;case 5:E=[u,0,d];break;default:E=[0,0,0]}p=l-.5*u,m=E[0]+p,h=E[1]+p,g=E[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g)}else if(y=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),s=parseFloat(y[5]),c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)*(i=(i/=100)<0?0:i>1?1:i))*(1-Math.abs(c%2-1));var C=[];switch(c=Math.floor(c)){case 0:C=[u,d,0];break;case 1:C=[d,u,0];break;case 2:C=[0,u,d];break;case 3:C=[0,d,u];break;case 4:C=[d,0,u];break;case 5:C=[u,0,d];break;default:C=[0,0,0]}p=s-u,m=C[0]+p,h=C[1]+p,g=C[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(se[x.toLowerCase()]){a=x.toLowerCase();var w=se[a];m=w.r,h=w.g,g=w.b,b="number"==typeof se[a].a?se[a].a:1}else f.invalid=!0}else"number"==typeof r[0]&&r[0]>=0&&"argb"===r[1]?(b=(4278190080&r[0])>>>24,b/=255,m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):"number"==typeof r[0]&&r[0]>=0?(m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):f.invalid=!0;else r.length>=3&&r.length<=4?(m=r[0],h=r[1],g=r[2],b=arguments.length>=4?r[3]:1):f.invalid=!0;return Number.isNaN(+m+h+g+b)&&(f.invalid=!0),f.r=Math.floor(m),f.g=Math.floor(h),f.b=Math.floor(g),f.a=b,f.l=l,f}function de(e){var t,r,n=0,o="string"==typeof e?ce(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=s;if(s===u)t=0,n=0;else{switch(t=0==(r=s-u)?0:r/c,s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function pe(e){if(oe(e))return"rgb(".concat([e.r,e.g,e.b].join(", "),")");var t="string"==typeof e?ie(e):e,r=(65280&t)>>8,n=255&t;return"rgb(".concat((16711680&t)>>16,", ").concat(r,", ").concat(n,")")}function fe(e,t){return oe(e)?"rgba(".concat([e.r,e.g,e.b,e.a].join(", "),")"):fe(ce(e))}function me(e){return oe(e)?1===e.a?pe(e):fe(e):me(ce(e))}var he,ge,be=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function ve(){var e=ce.apply(void 0,arguments);return e.invalid||function(e){return.2126*be(e.r)+.7152*be(e.g)+.0722*be(e.b)}(e)<.4}function ye(){var e=ce.apply(void 0,arguments),t={type:e.type,r:e.r,g:e.g,b:e.b,a:e.a,invalid:e.invalid,spaces:e.spaces},r=function(){return t.spaces.hsla||(t.spaces.hsla=function(e){var t,r,n=0,o="string"==typeof e?ce(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=o.a,u=Math.max(i,a,l),c=Math.min(i,a,l),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsla(".concat(360*n,", ").concat(100*t,", ").concat(100*d,", ").concat(s,")")}(t)),t.spaces.hsla},n=function(e){var t=r(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),o=parseFloat(n[1]),i=parseFloat(n[3]),a=parseFloat(n[7]),l=parseFloat(n[5]),s=Math.max(0,Math.min(l+e,100));return"hsla(".concat(o,", ").concat(i,", ").concat(s,", ").concat(a,")")};return{get type(){return t.type},isInvalid:function(){return t.invalid},get r(){return t.r},get g(){return t.g},get b(){return t.b},get a(){return t.a},getR:function(){return t.r},getG:function(){return t.g},getB:function(){return t.b},getAlpha:function(){return t.a},setAlpha:function(e){t.a=e,t.spaces={}},isEqualTo:function(e){var r=e.type===t.type?e:ce(e);return r.r===t.r&&r.g===t.g&&r.b===t.b&&r.a===t.a},isDark:function(){return ve(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=pe(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=fe(t)),t.spaces.rgba},getString:function(){return t.spaces.string||(t.spaces.string=me(t)),t.spaces.string},getHex:function(){return t.spaces.hex||(t.spaces.hex=function(e){var t,r,n;if(oe(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat([t,r,n].join(""));var o="string"==typeof e?ie(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat(t).concat(r).concat(n)}(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=function(e){var t,r,n=0,o="string"==typeof e?ce(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=(s+u)/2;if(s===u)t=0,n=0;else{switch(r=s-u,t=c>.5?r/(2-s-u):r/(s+u),s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsl(".concat(360*n,", ").concat(100*t,", ").concat(100*c,")")}(t)),t.spaces.hsl},getHSLA:r,getShiftedHSLA:n,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=function(e){var t=de(e),r=t.h,n=t.s,o=t.v;return"hsv(".concat(r,", ").concat(n,", ").concat(o,")")}(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=de(t)),t.spaces.hsvObject},blend:function(e,r){var n=Math.floor(t.r+(e.r-t.r)*r),o=Math.floor(t.g+(e.g-t.g)*r),i=Math.floor(t.b+(e.b-t.b)*r),a=Math.floor(t.a+(e.getAlpha()-t.a)*r);return"rgba(".concat([n,o,i,a].join(", "),")")},getBrightenedColor:function(){return ye(n(18*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))},getDarkenedColor:function(){return ye(n(18*-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))}}}var xe=function(){if(ge)return he;ge=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return he=function e(){var t,r,n,s,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(s=l(t,r))&&(m&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(m,c,s)})):void 0!==s&&a(d,{name:r,newValue:s}));return d},he}();function Se(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Ee(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Ce(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(xe);var we=1/.7,Re="\\s*([+-]?\\d+)\\s*",Le="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ie="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Me=/^#([0-9a-f]{3,8})$/,De=new RegExp(`^rgb\\(${Re},${Re},${Re}\\)$`),Ae=new RegExp(`^rgb\\(${Ie},${Ie},${Ie}\\)$`),Pe=new RegExp(`^rgba\\(${Re},${Re},${Re},${Le}\\)$`),ke=new RegExp(`^rgba\\(${Ie},${Ie},${Ie},${Le}\\)$`),Oe=new RegExp(`^hsl\\(${Le},${Ie},${Ie}\\)$`),Te=new RegExp(`^hsla\\(${Le},${Ie},${Ie},${Le}\\)$`),_e={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function qe(){return this.rgb().formatHex()}function Ne(){return this.rgb().formatRgb()}function Fe(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Me.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?je(t):3===r?new Be(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?ze(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?ze(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=De.exec(e))?new Be(t[1],t[2],t[3],1):(t=Ae.exec(e))?new Be(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Pe.exec(e))?ze(t[1],t[2],t[3],t[4]):(t=ke.exec(e))?ze(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Oe.exec(e))?Ke(t[1],t[2]/100,t[3]/100,1):(t=Te.exec(e))?Ke(t[1],t[2]/100,t[3]/100,t[4]):_e.hasOwnProperty(e)?je(_e[e]):"transparent"===e?new Be(NaN,NaN,NaN,0):null}function je(e){return new Be(e>>16&255,e>>8&255,255&e,1)}function ze(e,t,r,n){return n<=0&&(e=t=r=NaN),new Be(e,t,r,n)}function Ge(e){return e instanceof Ce||(e=Fe(e)),e?new Be((e=e.rgb()).r,e.g,e.b,e.opacity):new Be}function $e(e,t,r,n){return 1===arguments.length?Ge(e):new Be(e,t,r,null==n?1:n)}function Be(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function We(){return`#${Ue(this.r)}${Ue(this.g)}${Ue(this.b)}`}function He(){const e=Ve(this.opacity);return`${1===e?"rgb(":"rgba("}${Ye(this.r)}, ${Ye(this.g)}, ${Ye(this.b)}${1===e?")":`, ${e})`}`}function Ve(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ye(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ue(e){return((e=Ye(e))<16?"0":"")+e.toString(16)}function Ke(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Je(e,t,r,n)}function Xe(e){if(e instanceof Je)return new Je(e.h,e.s,e.l,e.opacity);if(e instanceof Ce||(e=Fe(e)),!e)return new Je;if(e instanceof Je)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Je(a,l,s,e.opacity)}function Je(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Ze(e){return(e=(e||0)%360)<0?e+360:e}function Qe(e){return Math.max(0,Math.min(1,e||0))}function et(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Se(Ce,Fe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:qe,formatHex:qe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Xe(this).formatHsl()},formatRgb:Ne,toString:Ne}),Se(Be,$e,Ee(Ce,{brighter(e){return e=null==e?we:Math.pow(we,e),new Be(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Be(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Be(Ye(this.r),Ye(this.g),Ye(this.b),Ve(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:We,formatHex:We,formatHex8:function(){return`#${Ue(this.r)}${Ue(this.g)}${Ue(this.b)}${Ue(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:He,toString:He})),Se(Je,(function(e,t,r,n){return 1===arguments.length?Xe(e):new Je(e,t,r,null==n?1:n)}),Ee(Ce,{brighter(e){return e=null==e?we:Math.pow(we,e),new Je(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Je(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Be(et(e>=240?e-240:e+120,o,n),et(e,o,n),et(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Je(Ze(this.h),Qe(this.s),Qe(this.l),Ve(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ve(this.opacity);return`${1===e?"hsl(":"hsla("}${Ze(this.h)}, ${100*Qe(this.s)}%, ${100*Qe(this.l)}%${1===e?")":`, ${e})`}`}}));const tt=Math.PI/180,rt=180/Math.PI,nt=4/29,ot=6/29,it=3*ot*ot;function at(e){if(e instanceof lt)return new lt(e.l,e.a,e.b,e.opacity);if(e instanceof pt)return ft(e);e instanceof Be||(e=Ge(e));var t,r,n=dt(e.r),o=dt(e.g),i=dt(e.b),a=st((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=st((.4360747*n+.3850649*o+.1430804*i)/.96422),r=st((.0139322*n+.0971045*o+.7141733*i)/.82521)),new lt(116*a-16,500*(t-a),200*(a-r),e.opacity)}function lt(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function st(e){return e>.008856451679035631?Math.pow(e,1/3):e/it+nt}function ut(e){return e>ot?e*e*e:it*(e-nt)}function ct(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function dt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function pt(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function ft(e){if(isNaN(e.h))return new lt(e.l,0,0,e.opacity);var t=e.h*tt;return new lt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Se(lt,(function(e,t,r,n){return 1===arguments.length?at(e):new lt(e,t,r,null==n?1:n)}),Ee(Ce,{brighter(e){return new lt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new lt(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new Be(ct(3.1338561*(t=.96422*ut(t))-1.6168667*(e=1*ut(e))-.4906146*(r=.82521*ut(r))),ct(-.9787684*t+1.9161415*e+.033454*r),ct(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Se(pt,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof pt)return new pt(e.h,e.c,e.l,e.opacity);if(e instanceof lt||(e=at(e)),0===e.a&&0===e.b)return new pt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*rt;return new pt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new pt(e,t,r,null==n?1:n)}),Ee(Ce,{brighter(e){return new pt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new pt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ft(this).rgb()}}));var mt=e=>()=>e;function ht(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):mt(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?ht:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):mt(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=$e(e)).r,(t=$e(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=ht(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var gt="center",bt="bottom";[{key:"NoDataExist",alignment:gt,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:gt,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:gt,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:gt},{key:"DataRangeIncludingZero",alignment:bt},{key:"LimitedData",alignment:bt},{key:"NegativeOrZeroValues",alignment:bt}].reduce((function(e,t){return e[t.key]=t,e}),{});var vt,yt=["__proto__","constructor"];function xt(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!yt.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var l=n[a];void 0===i[l]&&(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}}}function St(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function Et(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=wt)):void 0===t&&(t=Ct);for(var r,n,o,i,a,l=new It(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new It(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(Lt)}function Ct(e){return e.children}function wt(e){return Array.isArray(e)?e[1]:null}function Rt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Lt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function It(e){this.data=e,this.depth=this.height=0,this.parent=null}function Mt(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,r,n){const o="rows"===(null==n?void 0:n.type)?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")},filters:{description:()=>t.get("SimpleProperties.Filters.Filter")}}]}}It.prototype=Et.prototype={constructor:It,count:function(){return this.eachAfter(St)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return Et(this).eachBefore(Rt)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},vt=function(e){
8
8
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
9
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},vt({exports:{}});const Mt="qHyperCubeDef.qDimensions",Dt="dimensions",Pt="qOtherTotalSpec.qTotalMode",kt="totalMode",Ot={quarantine(e){H.quarantineArrayProp({properties:e,arrayPath:Mt,quarantineName:kt,arrayName:Dt,itemPath:Pt})},unquarantine(e){H.unquarantineArrayProp({properties:e,arrayPath:Mt,quarantineName:kt,arrayName:Dt,itemPath:Pt})}};function Tt(e){const t=At(e);return(e,r,n,o)=>{var i,a,l;const s=H.hypercube.importProperties({exportFormat:e,initialProperties:r,dataDefinition:t.targets[0],hypercubePath:o}),u=s.qProperty.qHyperCubeDef.qDimensions.length,c=s.qProperty.qHyperCubeDef.qMeasures.length;let d,p=s.qProperty.qHyperCubeDef.qInterColumnSortOrder,f=!0;u+c===p.length&&xt(s,"qProperty.qLayoutExclude.quarantine.interColSortOrder",p.concat());const m=null===(i=s.qProperty.qLayoutExclude.quarantine)||void 0===i?void 0:i.pivotInterColSortOrder;m?(p=m,d=[...m],xt(s,"qProperty.qHyperCubeDef.qInterColumnSortOrder",p),s.qProperty.qLayoutExclude.quarantine&&delete s.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):p.length=0;const h=+(p.indexOf(-1)>-1),g=u+h;if(g>p.length)for(let e=p.length;e<g;e++)p.indexOf(e)<0&&p.push(e-h);for(let e=p.length-1;e>=0;e--)p[e]>=u&&p.splice(e,1);c>1&&p.indexOf(-1)<0?p.push(-1):c<2&&p.indexOf(-1)>-1&&p.splice(p.indexOf(-1),1);const b=null!==(a=s.qProperty.qHyperCubeDef.qNoOfLeftDims)&&void 0!==a?a:-1;if(u>0&&-1===b&&xt(s,"qProperty.qHyperCubeDef.qNoOfLeftDims",u),(null===(l=d)||void 0===l?void 0:l.length)===p.length){for(let e=0;e<d.length;e++)if(d[e]!==p[e]){f=!1;break}f&&H.unquarantineProperty(s.qProperty,"noOfLeftDims")}return H.conditionalShow.unquarantine(s.qProperty),Ot.unquarantine(s.qProperty),re(s.qProperty),H.unquarantineProperty(s.qProperty,"pivotTableIndentMode"),s}}function _t(e,t){var r;const n=e.qProperty.qHyperCubeDef.qInterColumnSortOrder,o=n.slice(),i=n.indexOf(-1);i>-1&&n.splice(i,1);const a=H.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),l=a.properties.qHyperCubeDef,s=l.qDimensions.length,u=l.qMeasures.length;let c=l.qInterColumnSortOrder;xt(a,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",o),H.quarantineProperty(a.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete a.properties.qHyperCubeDef.qNoOfLeftDims;const d=null===(r=a.properties.qLayoutExclude.quarantine)||void 0===r?void 0:r.interColSortOrder;d&&(c=d,xt(a,"properties.qHyperCubeDef.qInterColumnSortOrder",c),xt(a,"data.0.interColumnSortOrder",c),a.properties.qLayoutExclude.quarantine&&delete a.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=c.length;e<s+u;e++)c.length<=e&&c.push(e);return H.quarantineProperty(a.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),H.conditionalShow.quarantine(a.properties),Ot.quarantine(a.properties),ne(a.properties),a}const qt={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}};let Nt=function(e){return e.Text="text",e.Link="link",e.Image="image",e.Indicator="indicator",e.MiniChart="miniChart",e}({}),Ft=function(e){return e.Attribute="attribute",e.Dimension="dimension",e.Measure="measure",e}({});const jt=e=>{switch(null==e?void 0:e.type){case"url":return Nt.Link;case"image":return Nt.Image;case"indicator":return Nt.Indicator;case"miniChart":return Nt.MiniChart;default:return Nt.Text}},zt=({args:e,isIndentModeEnabled:t,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:r,isImagesSupportedInIndentMode:n}={}})=>!e.properties.qHyperCubeDef.qIndentMode||(!(!r&&!n)||!t),Gt=({isImagesEnabled:e,isIndentModeEnabled:t,supportedFeaturesInIndentMode:r})=>{const{isLinksSupportedInIndentMode:n,isImagesSupportedInIndentMode:o}=null!=r?r:{};return{uses:"dimensionRepresentationItems.representationType",show:(e,r,i)=>zt({args:i,isIndentModeEnabled:t,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:n,isImagesSupportedInIndentMode:o}}),options(t,r,i){const{qIndentMode:a}=i.properties.qHyperCubeDef,l=[{value:"text",translation:"Object.Table.Representation.Text"}];return a&&!n||l.push({value:"url",translation:"Object.Table.Representation.Link"}),(!a&&e||a&&o)&&l.push({value:"image",translation:"Object.Table.Representation.Image"}),l}}},$t=(e,t)=>({representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:(r,n,o)=>jt(r.qDef.representation)===Nt.Link&&zt({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:(r,n,o)=>{var i;return jt(r.qDef.representation)===Nt.Link&&(null===(i=r.qDef.representation)||void 0===i?void 0:i.urlPosition)===Ft.Dimension&&zt({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})}},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:(r,n,o)=>{var i;return jt(r.qDef.representation)===Nt.Link&&(null===(i=r.qDef.representation)||void 0===i?void 0:i.urlPosition)===Ft.Attribute&&zt({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})}}}),Bt=(e,t,r)=>{if(e||r)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:(e,n,o)=>jt(e.qDef.representation)===Nt.Image&&zt({args:o,isIndentModeEnabled:t,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:r}}),items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}}},Wt=e=>{var t,r;const{anything:n,flags:o}=e,i=o.isEnabled("CLIENT_IM_5975_INDENT_MODE"),a=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_LINKS"),l=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES"),s=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(t=n.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"tableImages"));return{representationType:Gt({isImagesEnabled:s,isIndentModeEnabled:i,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:a,isImagesSupportedInIndentMode:l}}),...$t(i,a),...Bt(s,i,l)}},Ht=(e,t)=>{var r;const{flags:n,anything:o}=e,i=null===(r=o.sense)||void 0===r?void 0:r.isUnsupportedFeature,a=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=i&&i("tableImages"))&&t.some((e=>e===Nt.Image)),l=n.isEnabled("CLIENT_IM_5975_INDENT_MODE"),s=n.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES"),u=n.isEnabled("CLIENT_IM_7110_TABLE_MINI_CHART")&&!(null!=i&&i("qMiniChartDef"))&&t.some((e=>e===Nt.MiniChart)),c=n.isEnabled("CLIENT_IM_6696_INDICATORS")&&!(null!=i&&i("tableIndicators"))&&t.some((e=>e===Nt.Indicator));return{representationType:{uses:"measureRepresentationItems.representationType",show:(e,t,r)=>zt({args:r,isIndentModeEnabled:l,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:s}}),options:(e,t,r)=>(e=>{var t;const{qIndentMode:r}=null!==(t=e.properties.qHyperCubeDef)&&void 0!==t?t:{},n=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!r&&a||r&&s)&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),c&&n.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),u&&n.push({value:"miniChart",translation:"Common.MiniChart"}),n})(r)},representationImage:a||s?{uses:"measureRepresentationItems.representationImage",show:(e,t,r)=>jt(e.qDef.representation)===Nt.Image&&zt({args:r,isIndentModeEnabled:l,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:s}}),items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:c?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:u?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var Vt,Yt,Ut,Kt;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(Vt||(Vt={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(Yt||(Yt={})),function(e){e.TopGrid="topGrid",e.LeftGrid="leftGrid",e.DataGrid="dataGrid"}(Ut||(Ut={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(Kt||(Kt={}));const Xt="12px",Jt="nebula-table-utils-head-menu-button",Zt="sn-copy-cell";let Qt=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e}({});const er="nebula-table-utils-column-adjuster";let tr=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}({}),rr=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const nr={darker:.15,brighter:.3,opacity:.03},or={darker:.3,brighter:.5,opacity:.05};let ir=function(e){return e.Single="N",e.DrillDown="H",e.Cyclic="C",e}({});const ar="image",lr=(e,t,r)=>{var n,o,i;if(!r.properties.qHyperCubeDef.qIndentMode)return!0;const a=null!==(n=null===(o=r.properties.qHyperCubeDef.qInterColumnSortOrder)||void 0===o?void 0:o.indexOf(-1))&&void 0!==n?n:-1;let l=null!==(i=r.properties.qHyperCubeDef.qNoOfLeftDims)&&void 0!==i?i:-1;a>-1&&a<l&&(l-=1);const s=r.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===s||s>=l},sr=()=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:rr.Auto,translation:"Common.Auto"},{value:rr.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:rr.Pixels,translation:"Object.Table.Column.Pixels"},{value:rr.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:rr.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:tr.PixelsDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===rr.Pixels},change(e){var t;void 0!==(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.pixels)&&(e.qDef.columnWidth.pixels=Math.max(tr.PixelsMin,Math.min(tr.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:tr.PercentageDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===rr.Percentage},change:e=>{var t;void 0!==(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.percentage)&&(e.qDef.columnWidth.percentage=Math.max(tr.PercentageMin,Math.min(tr.PercentageMax,e.qDef.columnWidth.percentage)))}}}),ur=({key:e,translation:t,env:r})=>{var n,o;const i=r.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(n=r.anything.sense)&&void 0!==n&&null!==(o=n.isUnsupportedFeature)&&void 0!==o&&o.call(n,"tableImages"));return{[`${e}Auto`]:{ref:`qDef.${e}.auto`,type:"boolean",component:"switch",translation:t,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0,show:t=>{var r;return!i||"labelTextAlign"===e||(null===(r=t.qDef.representation)||void 0===r?void 0:r.type)!==ar}},[e]:{ref:`qDef.${e}.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:t=>{var r;return void 0!==t.qDef[e]&&!t.qDef[e].auto&&(!i||"labelTextAlign"===e||(null===(r=t.qDef.representation)||void 0===r?void 0:r.type)!==ar)}}}},cr="TOTAL_OFF",dr={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Yt.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Yt.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},pr="TOTAL_OFF",fr={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Yt.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Yt.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},mr=e=>{var t,r;const{translator:n,anything:o,flags:i}=e,a=(e=>{var t,r;const{translator:n,anything:o}=e;return{type:"items",component:"data-assets-panel-pivot",translation:"Common.Data",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:{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},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:cr,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:cr,translation:"properties.off"},show:(null===(t=o.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r||!r.call(t,"totals"))&&lr},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>n.get("Object.Table.Totals"),show(e,t,r){var n,i,a;return!(null!==(n=o.sense)&&void 0!==n&&null!==(i=n.isUnsupportedFeature)&&void 0!==i&&i.call(n,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==cr&&lr(e,0,r)}},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:dr,...ur({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ur({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Wt(e),...sr()}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:dr,...ur({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ur({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Ht(e,[Nt.Image]),...sr()}}}}}}})(e),l=i.isEnabled("IM_6843_FILTER_ADVANCED_MODE");return i.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?a:{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Property.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{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},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:pr,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:pr,translation:"properties.off"},show:(null===(t=o.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r||!r.call(t,"totals"))&&lr},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>n.get("Object.Table.Totals"),show(e,t,r){var n,i,a;return!(null!==(n=o.sense)&&void 0!==n&&null!==(i=n.isUnsupportedFeature)&&void 0!==i&&i.call(n,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==pr&&lr(e,0,r)}},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:fr,...ur({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ur({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Wt(e),...sr()}},measures:{type:"array",component:"measures",translation:"Common.Measures",ref:"qHyperCubeDef.qMeasures",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.measures.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:fr,...ur({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ur({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Ht(e,[Nt.Image]),...sr()}},filters:{type:"items",translation:"SimpleProperties.Filters.Filters",ref:"filters",allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:"properties.filters.add",grouped:!0,show:l,items:{filter:{type:"object",component:"filter-item",ref:"filter"}}}}}};function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hr.apply(null,arguments)}var gr={exports:{}};function br(){}function vr(){}vr.resetWarningCache=br;gr.exports=function(){function e(e,t,r,n,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:vr,resetWarningCache:br};return r.PropTypes=r,r}();var yr=$(gr.exports);function xr(e){if(e.type)return e;if("#"===e.charAt(0))return xr(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map((function(e){return parseFloat(e)}))}}function Sr(e,t){return e=xr(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}(e)}function Er(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function Cr(e,t){return Cr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cr(e,t)}function wr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Cr(e,t)}function Rr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const Lr={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"},Ir={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",...Lr,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)"},Ar=12,Mr=14,Dr=16,Pr=24,kr=3,Or=300,Tr=400,_r=600,qr=700,Nr={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Sr(Ir.GREYSCALE_0,.05),Sr(Ir.GREEN_PALE,.5),Sr(Ir.BLUE_PALE,.5),Sr(Ir.GREEN_PALE,.5),Sr(Ir.BLUE_PALE,.5),Sr(Ir.GREEN_PALE,.5),Sr(Ir.BLUE_PALE,.5);var Fr;function jr(){return jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jr.apply(null,arguments)}Sr(Ir.GREEN_PALE,.5),Sr(Ir.BLUE_PALE,.5),Sr(Ir.GREEN_PALE,.5),Sr(Ir.BLUE_PALE,.5);var zr,Gr=function(e){return t.createElement("svg",jr({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Fr||(Fr=t.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function $r(){return $r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$r.apply(null,arguments)}var Br=function(e){return t.createElement("svg",$r({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),zr||(zr=t.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 Wr({fontSize:e="medium",children:t=null,className:n=""}={}){const o="small"===e?"16px":"20px",i="small"===e?"-2px 0":void 0;return r.createElement("i",{style:{fontSize:o,margin:i,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var Hr=(e={})=>r.createElement(Wr,{...e},r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},r.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),r.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"}))),Vr=(e={})=>r.createElement(Wr,{...e},r.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},r.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),r.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Yr=(e={})=>r.createElement(Wr,{fontSize:"medium",...e},r.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},r.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),Ur=(e={})=>r.createElement(Wr,{fontSize:"medium",...e},r.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),r.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"}))),Kr=({className:e})=>r.createElement(Wr,{fontSize:"small",className:e},r.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},r.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},r.createElement("g",{transform:"translate(4.324187, 1.300372)"},r.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"}),r.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 Xr={black:"#000",white:"#fff"};var Jr={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 Zr={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 Qr={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 en={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 tn={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 rn={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 nn={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 on(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 an="$$material";function ln(){return ln=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ln.apply(this,arguments)}function sn(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function un(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 cn=function(){return cn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},cn.apply(this,arguments)};function dn(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var pn="-ms-",fn="-moz-",mn="-webkit-",hn="comm",gn="rule",bn="decl",vn="@keyframes",yn=Math.abs,xn=String.fromCharCode,Sn=Object.assign;function En(e){return e.trim()}function Cn(e,t){return(e=t.exec(e))?e[0]:e}function wn(e,t,r){return e.replace(t,r)}function Rn(e,t,r){return e.indexOf(t,r)}function Ln(e,t){return 0|e.charCodeAt(t)}function In(e,t,r){return e.slice(t,r)}function An(e){return e.length}function Mn(e){return e.length}function Dn(e,t){return t.push(e),e}function Pn(e,t){return e.filter((function(e){return!Cn(e,t)}))}var kn=1,On=1,Tn=0,_n=0,qn=0,Nn="";function Fn(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:kn,column:On,length:a,return:"",siblings:l}}function jn(e,t){return Sn(Fn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function zn(e){for(;e.root;)e=jn(e.root,{children:[e]});Dn(e,e.siblings)}function Gn(){return qn=_n>0?Ln(Nn,--_n):0,On--,10===qn&&(On=1,kn--),qn}function $n(){return qn=_n<Tn?Ln(Nn,_n++):0,On++,10===qn&&(On=1,kn++),qn}function Bn(){return Ln(Nn,_n)}function Wn(){return _n}function Hn(e,t){return In(Nn,e,t)}function Vn(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 Yn(e){return En(Hn(_n-1,Xn(91===e?e+2:40===e?e+1:e)))}function Un(e){for(;(qn=Bn())&&qn<33;)$n();return Vn(e)>2||Vn(qn)>3?"":" "}function Kn(e,t){for(;--t&&$n()&&!(qn<48||qn>102||qn>57&&qn<65||qn>70&&qn<97););return Hn(e,Wn()+(t<6&&32==Bn()&&32==$n()))}function Xn(e){for(;$n();)switch(qn){case e:return _n;case 34:case 39:34!==e&&39!==e&&Xn(qn);break;case 40:41===e&&Xn(e);break;case 92:$n()}return _n}function Jn(e,t){for(;$n()&&e+qn!==57&&(e+qn!==84||47!==Bn()););return"/*"+Hn(t,_n-1)+"*"+xn(47===e?e:$n())}function Zn(e){for(;!Vn(Bn());)$n();return Hn(e,_n)}function Qn(e){return function(e){return Nn="",e}(eo("",null,null,null,[""],e=function(e){return kn=On=1,Tn=An(Nn=e),_n=0,[]}(e),0,[0],e))}function eo(e,t,r,n,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,E=n,C=y;g;)switch(m=v,v=$n()){case 40:if(108!=m&&58==Ln(C,d-1)){-1!=Rn(C+=wn(Yn(v),"&","&\f"),"&\f",yn(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Yn(v);break;case 9:case 10:case 13:case 32:C+=Un(m);break;case 92:C+=Kn(Wn()-1,7);continue;case 47:switch(Bn()){case 42:case 47:Dn(ro(Jn($n(),Wn()),t,r,s),s);break;default:C+="/"}break;case 123*h:l[u++]=An(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=wn(C,/\f/g,"")),f>0&&An(C)-d&&Dn(f>32?no(C+";",n,r,d-1,s):no(wn(C," ","")+";",n,r,d-2,s),s);break;case 59:C+=";";default:if(Dn(E=to(C,t,r,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)eo(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===Ln(C,3)?100:p){case 100:case 108:case 109:case 115:eo(e,E,E,n&&Dn(to(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,n?x:S);break;default:eo(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+An(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==Gn())continue;switch(C+=xn(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(An(C)-1)*b,b=1;break;case 64:45===Bn()&&(C+=Yn($n())),p=Bn(),c=d=An(y=C+=Zn(Wn())),v++;break;case 45:45===m&&2==An(C)&&(h=0)}}return i}function to(e,t,r,n,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=Mn(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=In(e,p+1,p=yn(g=a[h])),x=e;v<m;++v)(x=En(g>0?f[v]+" "+y:wn(y,/&\f/g,f[v])))&&(s[b++]=x);return Fn(e,t,r,0===o?gn:l,s,u,c,d)}function ro(e,t,r,n){return Fn(e,t,r,hn,xn(qn),In(e,2,-2),0,n)}function no(e,t,r,n,o){return Fn(e,t,r,bn,In(e,0,n),In(e,n+1,-1),n,o)}function oo(e,t,r){switch(function(e,t){return 45^Ln(e,0)?(((t<<2^Ln(e,0))<<2^Ln(e,1))<<2^Ln(e,2))<<2^Ln(e,3):0}(e,t)){case 5103:return mn+"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 mn+e+e;case 4789:return fn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return mn+e+fn+e+pn+e+e;case 5936:switch(Ln(e,t+11)){case 114:return mn+e+pn+wn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return mn+e+pn+wn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return mn+e+pn+wn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return mn+e+pn+e+e;case 6165:return mn+e+pn+"flex-"+e+e;case 5187:return mn+e+wn(e,/(\w+).+(:[^]+)/,mn+"box-$1$2"+pn+"flex-$1$2")+e;case 5443:return mn+e+pn+"flex-item-"+wn(e,/flex-|-self/g,"")+(Cn(e,/flex-|baseline/)?"":pn+"grid-row-"+wn(e,/flex-|-self/g,""))+e;case 4675:return mn+e+pn+"flex-line-pack"+wn(e,/align-content|flex-|-self/g,"")+e;case 5548:return mn+e+pn+wn(e,"shrink","negative")+e;case 5292:return mn+e+pn+wn(e,"basis","preferred-size")+e;case 6060:return mn+"box-"+wn(e,"-grow","")+mn+e+pn+wn(e,"grow","positive")+e;case 4554:return mn+wn(e,/([^-])(transform)/g,"$1"+mn+"$2")+e;case 6187:return wn(wn(wn(e,/(zoom-|grab)/,mn+"$1"),/(image-set)/,mn+"$1"),e,"")+e;case 5495:case 3959:return wn(e,/(image-set\([^]*)/,mn+"$1$`$1");case 4968:return wn(wn(e,/(.+:)(flex-)?(.*)/,mn+"box-pack:$3"+pn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+mn+e+e;case 4200:if(!Cn(e,/flex-|baseline/))return pn+"grid-column-align"+In(e,t)+e;break;case 2592:case 3360:return pn+wn(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,Cn(e.props,/grid-\w+-end/)}))?~Rn(e+(r=r[t].value),"span",0)?e:pn+wn(e,"-start","")+e+pn+"grid-row-span:"+(~Rn(r,"span",0)?Cn(r,/\d+/):+Cn(r,/\d+/)-+Cn(e,/\d+/))+";":pn+wn(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return Cn(e.props,/grid-\w+-start/)}))?e:pn+wn(wn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return wn(e,/(.+)-inline(.+)/,mn+"$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(An(e)-1-t>6)switch(Ln(e,t+1)){case 109:if(45!==Ln(e,t+4))break;case 102:return wn(e,/(.+:)(.+)-([^]+)/,"$1"+mn+"$2-$3$1"+fn+(108==Ln(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Rn(e,"stretch",0)?oo(wn(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return wn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,l){return pn+r+":"+n+l+(o?pn+r+"-span:"+(i?a:+a-+n)+l:"")+e}));case 4949:if(121===Ln(e,t+6))return wn(e,":",":"+mn)+e;break;case 6444:switch(Ln(e,45===Ln(e,14)?18:11)){case 120:return wn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+mn+(45===Ln(e,14)?"inline-":"")+"box$3$1"+mn+"$2$3$1"+pn+"$2box$3")+e;case 100:return wn(e,":",":"+pn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return wn(e,"scroll-","scroll-snap-")+e}return e}function io(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function ao(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case bn:return e.return=e.return||e.value;case hn:return"";case vn:return e.return=e.value+"{"+io(e.children,n)+"}";case gn:if(!An(e.value=e.props.join(",")))return""}return An(r=io(e.children,n))?e.return=e.value+"{"+r+"}":""}function lo(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case bn:return void(e.return=oo(e.value,e.length,r));case vn:return io([jn(e,{value:wn(e.value,"@","@"+mn)})],n);case gn:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(Cn(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":zn(jn(e,{props:[wn(t,/:(read-\w+)/,":-moz-$1")]})),zn(jn(e,{props:[t]})),Sn(e,{props:Pn(r,n)});break;case"::placeholder":zn(jn(e,{props:[wn(t,/:(plac\w+)/,":"+mn+"input-$1")]})),zn(jn(e,{props:[wn(t,/:(plac\w+)/,":-moz-$1")]})),zn(jn(e,{props:[wn(t,/:(plac\w+)/,pn+"input-$1")]})),zn(jn(e,{props:[t]})),Sn(e,{props:Pn(r,n)})}return""}))}}var so={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},uo="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",co="active",po="data-styled-version",fo="6.1.14",mo="/*!sc*/\n",ho="undefined"!=typeof window&&"HTMLElement"in window,go=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)),bo={},vo=Object.freeze([]),yo=Object.freeze({});function xo(e,t,r){return void 0===r&&(r=yo),e.theme!==r.theme&&e.theme||t||r.theme}var So=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Eo=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Co=/(^-|-$)/g;function wo(e){return e.replace(Eo,"-").replace(Co,"")}var Ro=/(a)(d)/gi,Lo=function(e){return String.fromCharCode(e+(e>25?39:97))};function Io(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Lo(t%52)+r;return(Lo(t%52)+r).replace(Ro,"$1-$2")}var Ao,Mo=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Do=function(e){return Mo(5381,e)};function Po(e){return Io(Do(e)>>>0)}function ko(e){return"string"==typeof e&&!0}var Oo="function"==typeof Symbol&&Symbol.for,To=Oo?Symbol.for("react.memo"):60115,_o=Oo?Symbol.for("react.forward_ref"):60112,qo={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},No={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Fo={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},jo=((Ao={})[_o]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ao[To]=Fo,Ao);function zo(e){return("type"in(t=e)&&t.type.$$typeof)===To?Fo:"$$typeof"in e?jo[e.$$typeof]:qo;var t}var Go=Object.defineProperty,$o=Object.getOwnPropertyNames,Bo=Object.getOwnPropertySymbols,Wo=Object.getOwnPropertyDescriptor,Ho=Object.getPrototypeOf,Vo=Object.prototype;function Yo(e,t,r){if("string"!=typeof t){if(Vo){var n=Ho(t);n&&n!==Vo&&Yo(e,n,r)}var o=$o(t);Bo&&(o=o.concat(Bo(t)));for(var i=zo(e),a=zo(t),l=0;l<o.length;++l){var s=o[l];if(!(s in No||r&&r[s]||a&&s in a||i&&s in i)){var u=Wo(t,s);try{Go(e,s,u)}catch(e){}}}}return e}function Uo(e){return"function"==typeof e}function Ko(e){return"object"==typeof e&&"styledComponentId"in e}function Xo(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Jo(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=t?t+e[n]:e[n];return r}function Zo(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Qo(e,t,r){if(void 0===r&&(r=!1),!r&&!Zo(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Qo(e[n],t[n]);else if(Zo(t))for(var n in t)e[n]=Qo(e[n],t[n]);return e}function ei(e,t){Object.defineProperty(e,"toString",{value:t})}function ti(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var ri=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw ti(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(mo);return t},e}(),ni=new Map,oi=new Map,ii=1,ai=function(e){if(ni.has(e))return ni.get(e);for(;oi.has(ii);)ii++;var t=ii++;return ni.set(e,t),oi.set(t,e),t},li=function(e,t){ii=t+1,ni.set(e,t),oi.set(t,e)},si="style[".concat(uo,"][").concat(po,'="').concat(fo,'"]'),ui=new RegExp("^".concat(uo,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ci=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},di=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(mo),o=[],i=0,a=n.length;i<a;i++){var l=n[i].trim();if(l){var s=l.match(ui);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(li(c,u),ci(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},pi=function(e){for(var t=document.querySelectorAll(si),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(uo)!==co&&(di(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var fi=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(uo,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(uo,co),n.setAttribute(po,fo);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},mi=function(){function e(e){this.element=fi(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}throw ti(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}(),hi=function(){function e(e){this.element=fi(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),gi=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}(),bi=ho,vi={isServer:!ho,useCSSOMInjection:!go},yi=function(){function e(e,t,r){void 0===e&&(e=yo),void 0===t&&(t={});var n=this;this.options=cn(cn({},vi),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&ho&&bi&&(bi=!1,pi(this)),ei(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return oi.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(r);if(void 0===i||!i.size||0===a.length)return"continue";var l="".concat(uo,".g").concat(r,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),n+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(mo)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return ai(e)},e.prototype.rehydrate=function(){!this.server&&ho&&pi(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(cn(cn({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new gi(r):t?new mi(r):new hi(r)}(this.options),new ri(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(ai(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(ai(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(ai(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),xi=/&/g,Si=/^\s*\/\/.*$/gm;function Ei(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ei(e.children,t)),e}))}var Ci=new yi,wi=function(e){var t,r,n,o=void 0===e?yo:e,i=o.options,a=void 0===i?yo:i,l=o.plugins,s=void 0===l?vo:l,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===gn&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(xi,r).replace(n,u))})),a.prefix&&c.push(lo),c.push(ao);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var s=e.replace(Si,""),u=Qn(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=Ei(u,a.namespace));var d,p=[];return io(u,function(e){var t=Mn(e);return function(r,n,o,i){for(var a="",l=0;l<t;l++)a+=e[l](r,n,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||ti(15),Mo(e,t.name)}),5381).toString():"",d}(),Ri=r.createContext({shouldForwardProp:void 0,styleSheet:Ci,stylis:wi});function Li(){return n(Ri)}Ri.Consumer;var Ii=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=wi);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ei(this,(function(){throw ti(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=wi),this.name+e.hash},e}(),Ai=function(e){return e>="A"&&e<="Z"};function Mi(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Ai(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Di=function(e){return null==e||!1===e||""===e},Pi=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Di(i)&&(Array.isArray(i)&&i.isCss||Uo(i)?n.push("".concat(Mi(o),":"),i,";"):Zo(i)?n.push.apply(n,dn(dn(["".concat(o," {")],Pi(i),!1),["}"],!1)):n.push("".concat(Mi(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in so||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function ki(e,t,r,n){return Di(e)?[]:Ko(e)?[".".concat(e.styledComponentId)]:Uo(e)?!Uo(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:ki(e(t),t,r,n):e instanceof Ii?r?(e.inject(r,n),[e.getName(n)]):[e]:Zo(e)?Pi(e):Array.isArray(e)?Array.prototype.concat.apply(vo,e.map((function(e){return ki(e,t,r,n)}))):[e.toString()];var o}function Oi(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Uo(r)&&!Ko(r))return!1}return!0}var Ti=Do(fo),_i=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Oi(e),this.componentId=t,this.baseHash=Mo(Ti,t),this.baseStyle=r,yi.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=Xo(n,this.staticRulesId);else{var o=Jo(ki(this.rules,e,t,r)),i=Io(Mo(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=r(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}n=Xo(n,i),this.staticRulesId=i}else{for(var l=Mo(this.baseHash,r.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=Jo(ki(c,e,t,r));l=Mo(l,d+u),s+=d}}if(s){var p=Io(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(s,".".concat(p),void 0,this.componentId)),n=Xo(n,p)}}return n},e}(),qi=r.createContext(void 0);qi.Consumer;var Ni={};new Set;function Fi(e,t,n){var i=Ko(e),a=e,l=!ko(e),s=t.attrs,u=void 0===s?vo:s,c=t.componentId,d=void 0===c?function(e,t){var r="string"!=typeof e?"sc":wo(e);Ni[r]=(Ni[r]||0)+1;var n="".concat(r,"-").concat(Po(fo+r+Ni[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):c,p=t.displayName,f=void 0===p?function(e){return ko(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):p,m=t.displayName&&t.componentId?"".concat(wo(t.displayName),"-").concat(t.componentId):t.componentId||d,h=i&&a.attrs?a.attrs.concat(u).filter(Boolean):u,g=t.shouldForwardProp;if(i&&a.shouldForwardProp){var b=a.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;g=function(e,t){return b(e,t)&&v(e,t)}}else g=b}var y=new _i(n,m,i?a.componentStyle:void 0);function x(e,t){return function(e,t,n){var i=e.attrs,a=e.componentStyle,l=e.defaultProps,s=e.foldedComponentIds,u=e.styledComponentId,c=e.target,d=r.useContext(qi),p=Li(),f=e.shouldForwardProp||p.shouldForwardProp,m=xo(t,d,l)||yo,h=function(e,t,r){for(var n,o=cn(cn({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=Uo(n=e[i])?n(o):n;for(var l in a)o[l]="className"===l?Xo(o[l],a[l]):"style"===l?cn(cn({},o[l]),a[l]):a[l]}return t.className&&(o.className=Xo(o.className,t.className)),o}(i,t,m),g=h.as||c,b={};for(var v in h)void 0===h[v]||"$"===v[0]||"as"===v||"theme"===v&&h.theme===m||("forwardedAs"===v?b.as=h.forwardedAs:f&&!f(v,g)||(b[v]=h[v]));var y=function(e,t){var r=Li();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(a,h),x=Xo(s,u);return y&&(x+=" "+y),h.className&&(x+=" "+h.className),b[ko(g)&&!So.has(g)?"class":"className"]=x,n&&(b.ref=n),o(g,b)}(S,e,t)}x.displayName=f;var S=r.forwardRef(x);return S.attrs=h,S.componentStyle=y,S.displayName=f,S.shouldForwardProp=g,S.foldedComponentIds=i?Xo(a.foldedComponentIds,a.styledComponentId):"",S.styledComponentId=m,S.target=i?a.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)Qo(e,o[n],!0);return e}({},a.defaultProps,e):e}}),ei(S,(function(){return".".concat(S.styledComponentId)})),l&&Yo(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function ji(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var zi=function(e){return Object.assign(e,{isCss:!0})};function Gi(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Uo(e)||Zo(e))return zi(ki(ji(vo,dn([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?ki(n):zi(ki(ji(n,t)))}function $i(e,t,r){if(void 0===r&&(r=yo),!t)throw ti(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,Gi.apply(void 0,dn([n],o,!1)))};return n.attrs=function(n){return $i(e,t,cn(cn({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return $i(e,t,cn(cn({},r),n))},n}var Bi=function(e){return $i(Fi,e)},Wi=Bi;So.forEach((function(e){Wi[e]=Bi(e)}));var Hi=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Oi(e),yi.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(Jo(ki(this.rules,t,r,n)),""),i=this.componentId+e;r.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&yi.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Vi(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Jo(Gi.apply(void 0,dn([e],t,!1))),o=Po(n);return new Ii(o,n)}function Yi(e){const{injectFirst:t,children:r}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return r}Yi.propTypes={children:yr.node,injectFirst:yr.bool};const Ui=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=Gi.apply(void 0,dn([e],t,!1)),i="sc-global-".concat(Po(JSON.stringify(o))),a=new Hi(o,i),l=function(e){var t=Li(),n=r.useContext(qi),o=r.useRef(t.styleSheet.allocateGSInstance(i)).current;return t.styleSheet.server&&s(o,e,t.styleSheet,n,t.stylis),r.useLayoutEffect((function(){if(!t.styleSheet.server)return s(o,e,t.styleSheet,n,t.stylis),function(){return a.removeStyles(o,t.styleSheet)}}),[o,e,t.styleSheet,n,t.stylis]),null};function s(e,t,r,n,o){if(a.isStatic)a.renderStyles(e,bo,r,o);else{var i=cn(cn({},t),{theme:xo(t,n,l.defaultProps)});a.renderStyles(e,i,r,o)}}return r.memo(l)}((e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n}));var Ki=Ui;
9
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},vt({exports:{}});const Dt="qHyperCubeDef.qDimensions",At="dimensions",Pt="qOtherTotalSpec.qTotalMode",kt="totalMode",Ot={quarantine(e){H.quarantineArrayProp({properties:e,arrayPath:Dt,quarantineName:kt,arrayName:At,itemPath:Pt})},unquarantine(e){H.unquarantineArrayProp({properties:e,arrayPath:Dt,quarantineName:kt,arrayName:At,itemPath:Pt})}};function Tt(e){const t=Mt(e);return(e,r,n,o)=>{var i,a,l;const s=H.hypercube.importProperties({exportFormat:e,initialProperties:r,dataDefinition:t.targets[0],hypercubePath:o}),u=s.qProperty.qHyperCubeDef.qDimensions.length,c=s.qProperty.qHyperCubeDef.qMeasures.length;let d,p=s.qProperty.qHyperCubeDef.qInterColumnSortOrder,f=!0;u+c===p.length&&xt(s,"qProperty.qLayoutExclude.quarantine.interColSortOrder",p.concat());const m=null===(i=s.qProperty.qLayoutExclude.quarantine)||void 0===i?void 0:i.pivotInterColSortOrder;m?(p=m,d=[...m],xt(s,"qProperty.qHyperCubeDef.qInterColumnSortOrder",p),s.qProperty.qLayoutExclude.quarantine&&delete s.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):p.length=0;const h=+(p.indexOf(-1)>-1),g=u+h;if(g>p.length)for(let e=p.length;e<g;e++)p.indexOf(e)<0&&p.push(e-h);for(let e=p.length-1;e>=0;e--)p[e]>=u&&p.splice(e,1);c>1&&p.indexOf(-1)<0?p.push(-1):c<2&&p.indexOf(-1)>-1&&p.splice(p.indexOf(-1),1);const b=null!==(a=s.qProperty.qHyperCubeDef.qNoOfLeftDims)&&void 0!==a?a:-1;if(u>0&&-1===b&&xt(s,"qProperty.qHyperCubeDef.qNoOfLeftDims",u),(null===(l=d)||void 0===l?void 0:l.length)===p.length){for(let e=0;e<d.length;e++)if(d[e]!==p[e]){f=!1;break}f&&H.unquarantineProperty(s.qProperty,"noOfLeftDims")}return H.conditionalShow.unquarantine(s.qProperty),Ot.unquarantine(s.qProperty),re(s.qProperty),H.unquarantineProperty(s.qProperty,"pivotTableIndentMode"),s}}function _t(e,t){var r;const n=e.qProperty.qHyperCubeDef.qInterColumnSortOrder,o=n.slice(),i=n.indexOf(-1);i>-1&&n.splice(i,1);const a=H.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),l=a.properties.qHyperCubeDef,s=l.qDimensions.length,u=l.qMeasures.length;let c=l.qInterColumnSortOrder;xt(a,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",o),H.quarantineProperty(a.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete a.properties.qHyperCubeDef.qNoOfLeftDims;const d=null===(r=a.properties.qLayoutExclude.quarantine)||void 0===r?void 0:r.interColSortOrder;d&&(c=d,xt(a,"properties.qHyperCubeDef.qInterColumnSortOrder",c),xt(a,"data.0.interColumnSortOrder",c),a.properties.qLayoutExclude.quarantine&&delete a.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=c.length;e<s+u;e++)c.length<=e&&c.push(e);return H.quarantineProperty(a.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),H.conditionalShow.quarantine(a.properties),Ot.quarantine(a.properties),ne(a.properties),a}const qt={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}};let Nt=function(e){return e.Text="text",e.Link="link",e.Image="image",e.Indicator="indicator",e.MiniChart="miniChart",e}({}),Ft=function(e){return e.Attribute="attribute",e.Dimension="dimension",e.Measure="measure",e}({});const jt=e=>{switch(null==e?void 0:e.type){case"url":return Nt.Link;case"image":return Nt.Image;case"indicator":return Nt.Indicator;case"miniChart":return Nt.MiniChart;default:return Nt.Text}},zt=({args:e,isIndentModeEnabled:t,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:r,isImagesSupportedInIndentMode:n}={}})=>!e.properties.qHyperCubeDef.qIndentMode||(!(!r&&!n)||!t),Gt=({isImagesEnabled:e,isIndentModeEnabled:t,supportedFeaturesInIndentMode:r})=>{const{isLinksSupportedInIndentMode:n,isImagesSupportedInIndentMode:o}=null!=r?r:{};return{uses:"dimensionRepresentationItems.representationType",show:(e,r,i)=>zt({args:i,isIndentModeEnabled:t,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:n,isImagesSupportedInIndentMode:o}}),options(t,r,i){const{qIndentMode:a}=i.properties.qHyperCubeDef,l=[{value:"text",translation:"Object.Table.Representation.Text"}];return a&&!n||l.push({value:"url",translation:"Object.Table.Representation.Link"}),(!a&&e||a&&o)&&l.push({value:"image",translation:"Object.Table.Representation.Image"}),l}}},$t=(e,t)=>({representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:(r,n,o)=>jt(r.qDef.representation)===Nt.Link&&zt({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:(r,n,o)=>{var i;return jt(r.qDef.representation)===Nt.Link&&(null===(i=r.qDef.representation)||void 0===i?void 0:i.urlPosition)===Ft.Dimension&&zt({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})}},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:(r,n,o)=>{var i;return jt(r.qDef.representation)===Nt.Link&&(null===(i=r.qDef.representation)||void 0===i?void 0:i.urlPosition)===Ft.Attribute&&zt({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})}}}),Bt=(e,t,r)=>{if(e||r)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:(e,n,o)=>jt(e.qDef.representation)===Nt.Image&&zt({args:o,isIndentModeEnabled:t,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:r}}),items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}}},Wt=e=>{var t,r;const{anything:n,flags:o}=e,i=o.isEnabled("CLIENT_IM_5975_INDENT_MODE"),a=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_LINKS"),l=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES"),s=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(t=n.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"tableImages"));return{representationType:Gt({isImagesEnabled:s,isIndentModeEnabled:i,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:a,isImagesSupportedInIndentMode:l}}),...$t(i,a),...Bt(s,i,l)}},Ht=(e,t)=>{var r;const{flags:n,anything:o}=e,i=null===(r=o.sense)||void 0===r?void 0:r.isUnsupportedFeature,a=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=i&&i("tableImages"))&&t.some((e=>e===Nt.Image)),l=n.isEnabled("CLIENT_IM_5975_INDENT_MODE"),s=n.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES"),u=n.isEnabled("CLIENT_IM_7110_TABLE_MINI_CHART")&&!(null!=i&&i("qMiniChartDef"))&&t.some((e=>e===Nt.MiniChart)),c=n.isEnabled("CLIENT_IM_6696_INDICATORS")&&!(null!=i&&i("tableIndicators"))&&t.some((e=>e===Nt.Indicator));return{representationType:{uses:"measureRepresentationItems.representationType",show:(e,t,r)=>zt({args:r,isIndentModeEnabled:l,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:s}}),options:(e,t,r)=>(e=>{var t;const{qIndentMode:r}=null!==(t=e.properties.qHyperCubeDef)&&void 0!==t?t:{},n=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!r&&a||r&&s)&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),c&&n.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),u&&n.push({value:"miniChart",translation:"Common.MiniChart"}),n})(r)},representationImage:a||s?{uses:"measureRepresentationItems.representationImage",show:(e,t,r)=>jt(e.qDef.representation)===Nt.Image&&zt({args:r,isIndentModeEnabled:l,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:s}}),items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:c?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:u?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var Vt,Yt,Ut,Kt;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(Vt||(Vt={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(Yt||(Yt={})),function(e){e.TopGrid="topGrid",e.LeftGrid="leftGrid",e.DataGrid="dataGrid"}(Ut||(Ut={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(Kt||(Kt={}));const Xt="12px",Jt="nebula-table-utils-head-menu-button",Zt="sn-copy-cell";let Qt=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e}({});const er="nebula-table-utils-column-adjuster";let tr=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}({}),rr=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const nr={darker:.15,brighter:.3,opacity:.03},or={darker:.3,brighter:.5,opacity:.05};let ir=function(e){return e.Single="N",e.DrillDown="H",e.Cyclic="C",e}({});const ar="image",lr=(e,t,r)=>{var n,o,i;if(!r.properties.qHyperCubeDef.qIndentMode)return!0;const a=null!==(n=null===(o=r.properties.qHyperCubeDef.qInterColumnSortOrder)||void 0===o?void 0:o.indexOf(-1))&&void 0!==n?n:-1;let l=null!==(i=r.properties.qHyperCubeDef.qNoOfLeftDims)&&void 0!==i?i:-1;a>-1&&a<l&&(l-=1);const s=r.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===s||s>=l},sr=()=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:rr.Auto,translation:"Common.Auto"},{value:rr.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:rr.Pixels,translation:"Object.Table.Column.Pixels"},{value:rr.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:rr.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:tr.PixelsDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===rr.Pixels},change(e){var t;void 0!==(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.pixels)&&(e.qDef.columnWidth.pixels=Math.max(tr.PixelsMin,Math.min(tr.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:tr.PercentageDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===rr.Percentage},change:e=>{var t;void 0!==(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.percentage)&&(e.qDef.columnWidth.percentage=Math.max(tr.PercentageMin,Math.min(tr.PercentageMax,e.qDef.columnWidth.percentage)))}}}),ur=({key:e,translation:t,env:r})=>{var n,o;const i=r.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(n=r.anything.sense)&&void 0!==n&&null!==(o=n.isUnsupportedFeature)&&void 0!==o&&o.call(n,"tableImages"));return{[`${e}Auto`]:{ref:`qDef.${e}.auto`,type:"boolean",component:"switch",translation:t,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0,show:t=>{var r;return!i||"labelTextAlign"===e||(null===(r=t.qDef.representation)||void 0===r?void 0:r.type)!==ar}},[e]:{ref:`qDef.${e}.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:t=>{var r;return void 0!==t.qDef[e]&&!t.qDef[e].auto&&(!i||"labelTextAlign"===e||(null===(r=t.qDef.representation)||void 0===r?void 0:r.type)!==ar)}}}},cr="TOTAL_OFF",dr={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Yt.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Yt.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},pr="TOTAL_OFF",fr={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Yt.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Yt.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Yt.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},mr=e=>{var t,r;const{translator:n,anything:o,flags:i}=e,a=(e=>{var t,r;const{translator:n,anything:o}=e;return{type:"items",component:"data-assets-panel-pivot",translation:"Common.Data",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:{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},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:cr,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:cr,translation:"properties.off"},show:(null===(t=o.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r||!r.call(t,"totals"))&&lr},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>n.get("Object.Table.Totals"),show(e,t,r){var n,i,a;return!(null!==(n=o.sense)&&void 0!==n&&null!==(i=n.isUnsupportedFeature)&&void 0!==i&&i.call(n,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==cr&&lr(e,0,r)}},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:dr,...ur({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ur({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Wt(e),...sr()}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:dr,...ur({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ur({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Ht(e,[Nt.Image]),...sr()}}}}}}})(e),l=i.isEnabled("IM_6843_FILTER_ADVANCED_MODE");return i.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?a:{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Property.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{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},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:pr,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:pr,translation:"properties.off"},show:(null===(t=o.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r||!r.call(t,"totals"))&&lr},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>n.get("Object.Table.Totals"),show(e,t,r){var n,i,a;return!(null!==(n=o.sense)&&void 0!==n&&null!==(i=n.isUnsupportedFeature)&&void 0!==i&&i.call(n,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==pr&&lr(e,0,r)}},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:fr,...ur({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ur({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Wt(e),...sr()}},measures:{type:"array",component:"measures",translation:"Common.Measures",ref:"qHyperCubeDef.qMeasures",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.measures.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:fr,...ur({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ur({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Ht(e,[Nt.Image]),...sr()}},filters:{type:"items",translation:"SimpleProperties.Filters.Filters",ref:"filters",allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:"properties.filters.add",grouped:!0,show:l,items:{filter:{type:"object",component:"filter-item",ref:"filter"}}}}}};function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hr.apply(null,arguments)}var gr={exports:{}};function br(){}function vr(){}vr.resetWarningCache=br;gr.exports=function(){function e(e,t,r,n,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:vr,resetWarningCache:br};return r.PropTypes=r,r}();var yr=$(gr.exports);function xr(e){if(e.type)return e;if("#"===e.charAt(0))return xr(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map((function(e){return parseFloat(e)}))}}function Sr(e,t){return e=xr(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}(e)}function Er(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function Cr(e,t){return Cr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cr(e,t)}function wr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Cr(e,t)}function Rr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const Lr={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"},Ir={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",...Lr,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)"},Mr=12,Dr=14,Ar=16,Pr=24,kr=3,Or=300,Tr=400,_r=600,qr=700,Nr={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Sr(Ir.GREYSCALE_0,.05),Sr(Ir.GREEN_PALE,.5),Sr(Ir.BLUE_PALE,.5),Sr(Ir.GREEN_PALE,.5),Sr(Ir.BLUE_PALE,.5),Sr(Ir.GREEN_PALE,.5),Sr(Ir.BLUE_PALE,.5);var Fr;function jr(){return jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jr.apply(null,arguments)}Sr(Ir.GREEN_PALE,.5),Sr(Ir.BLUE_PALE,.5),Sr(Ir.GREEN_PALE,.5),Sr(Ir.BLUE_PALE,.5);var zr,Gr=function(e){return t.createElement("svg",jr({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Fr||(Fr=t.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function $r(){return $r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$r.apply(null,arguments)}var Br=function(e){return t.createElement("svg",$r({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),zr||(zr=t.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 Wr({fontSize:e="medium",children:t=null,className:n=""}={}){const o="small"===e?"16px":"20px",i="small"===e?"-2px 0":void 0;return r.createElement("i",{style:{fontSize:o,margin:i,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var Hr=(e={})=>r.createElement(Wr,{...e},r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},r.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),r.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"}))),Vr=(e={})=>r.createElement(Wr,{...e},r.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},r.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),r.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Yr=(e={})=>r.createElement(Wr,{fontSize:"medium",...e},r.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},r.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),Ur=(e={})=>r.createElement(Wr,{fontSize:"medium",...e},r.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),r.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"}))),Kr=({className:e})=>r.createElement(Wr,{fontSize:"small",className:e},r.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},r.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},r.createElement("g",{transform:"translate(4.324187, 1.300372)"},r.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"}),r.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"}))))));const Xr={black:"#000",white:"#fff"},Jr="#e57373",Zr="#ef5350",Qr="#f44336",en="#d32f2f",tn="#c62828",rn="#f3e5f5",nn="#ce93d8",on="#ba68c8",an="#ab47bc",ln="#9c27b0",sn="#7b1fa2",un="#e3f2fd",cn="#90caf9",dn="#42a5f5",pn="#1976d2",fn="#1565c0",mn="#4fc3f7",hn="#29b6f6",gn="#03a9f4",bn="#0288d1",vn="#01579b",yn="#81c784",xn="#66bb6a",Sn="#4caf50",En="#388e3c",Cn="#2e7d32",wn="#1b5e20",Rn="#ffb74d",Ln="#ffa726",In="#ff9800",Mn="#f57c00",Dn="#e65100",An={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 Pn(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 kn="$$material";function On(){return On=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},On.apply(this,arguments)}function Tn(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function _n(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 qn=function(){return qn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qn.apply(this,arguments)};function Nn(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Fn="-ms-",jn="-moz-",zn="-webkit-",Gn="comm",$n="rule",Bn="decl",Wn="@keyframes",Hn=Math.abs,Vn=String.fromCharCode,Yn=Object.assign;function Un(e){return e.trim()}function Kn(e,t){return(e=t.exec(e))?e[0]:e}function Xn(e,t,r){return e.replace(t,r)}function Jn(e,t,r){return e.indexOf(t,r)}function Zn(e,t){return 0|e.charCodeAt(t)}function Qn(e,t,r){return e.slice(t,r)}function eo(e){return e.length}function to(e){return e.length}function ro(e,t){return t.push(e),e}function no(e,t){return e.filter((function(e){return!Kn(e,t)}))}var oo=1,io=1,ao=0,lo=0,so=0,uo="";function co(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:oo,column:io,length:a,return:"",siblings:l}}function po(e,t){return Yn(co("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function fo(e){for(;e.root;)e=po(e.root,{children:[e]});ro(e,e.siblings)}function mo(){return so=lo>0?Zn(uo,--lo):0,io--,10===so&&(io=1,oo--),so}function ho(){return so=lo<ao?Zn(uo,lo++):0,io++,10===so&&(io=1,oo++),so}function go(){return Zn(uo,lo)}function bo(){return lo}function vo(e,t){return Qn(uo,e,t)}function yo(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 xo(e){return Un(vo(lo-1,Co(91===e?e+2:40===e?e+1:e)))}function So(e){for(;(so=go())&&so<33;)ho();return yo(e)>2||yo(so)>3?"":" "}function Eo(e,t){for(;--t&&ho()&&!(so<48||so>102||so>57&&so<65||so>70&&so<97););return vo(e,bo()+(t<6&&32==go()&&32==ho()))}function Co(e){for(;ho();)switch(so){case e:return lo;case 34:case 39:34!==e&&39!==e&&Co(so);break;case 40:41===e&&Co(e);break;case 92:ho()}return lo}function wo(e,t){for(;ho()&&e+so!==57&&(e+so!==84||47!==go()););return"/*"+vo(t,lo-1)+"*"+Vn(47===e?e:ho())}function Ro(e){for(;!yo(go());)ho();return vo(e,lo)}function Lo(e){return function(e){return uo="",e}(Io("",null,null,null,[""],e=function(e){return oo=io=1,ao=eo(uo=e),lo=0,[]}(e),0,[0],e))}function Io(e,t,r,n,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,E=n,C=y;g;)switch(m=v,v=ho()){case 40:if(108!=m&&58==Zn(C,d-1)){-1!=Jn(C+=Xn(xo(v),"&","&\f"),"&\f",Hn(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=xo(v);break;case 9:case 10:case 13:case 32:C+=So(m);break;case 92:C+=Eo(bo()-1,7);continue;case 47:switch(go()){case 42:case 47:ro(Do(wo(ho(),bo()),t,r,s),s);break;default:C+="/"}break;case 123*h:l[u++]=eo(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=Xn(C,/\f/g,"")),f>0&&eo(C)-d&&ro(f>32?Ao(C+";",n,r,d-1,s):Ao(Xn(C," ","")+";",n,r,d-2,s),s);break;case 59:C+=";";default:if(ro(E=Mo(C,t,r,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)Io(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===Zn(C,3)?100:p){case 100:case 108:case 109:case 115:Io(e,E,E,n&&ro(Mo(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,n?x:S);break;default:Io(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+eo(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==mo())continue;switch(C+=Vn(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(eo(C)-1)*b,b=1;break;case 64:45===go()&&(C+=xo(ho())),p=go(),c=d=eo(y=C+=Ro(bo())),v++;break;case 45:45===m&&2==eo(C)&&(h=0)}}return i}function Mo(e,t,r,n,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=to(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=Qn(e,p+1,p=Hn(g=a[h])),x=e;v<m;++v)(x=Un(g>0?f[v]+" "+y:Xn(y,/&\f/g,f[v])))&&(s[b++]=x);return co(e,t,r,0===o?$n:l,s,u,c,d)}function Do(e,t,r,n){return co(e,t,r,Gn,Vn(so),Qn(e,2,-2),0,n)}function Ao(e,t,r,n,o){return co(e,t,r,Bn,Qn(e,0,n),Qn(e,n+1,-1),n,o)}function Po(e,t,r){switch(function(e,t){return 45^Zn(e,0)?(((t<<2^Zn(e,0))<<2^Zn(e,1))<<2^Zn(e,2))<<2^Zn(e,3):0}(e,t)){case 5103:return zn+"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 zn+e+e;case 4789:return jn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return zn+e+jn+e+Fn+e+e;case 5936:switch(Zn(e,t+11)){case 114:return zn+e+Fn+Xn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return zn+e+Fn+Xn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return zn+e+Fn+Xn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return zn+e+Fn+e+e;case 6165:return zn+e+Fn+"flex-"+e+e;case 5187:return zn+e+Xn(e,/(\w+).+(:[^]+)/,zn+"box-$1$2"+Fn+"flex-$1$2")+e;case 5443:return zn+e+Fn+"flex-item-"+Xn(e,/flex-|-self/g,"")+(Kn(e,/flex-|baseline/)?"":Fn+"grid-row-"+Xn(e,/flex-|-self/g,""))+e;case 4675:return zn+e+Fn+"flex-line-pack"+Xn(e,/align-content|flex-|-self/g,"")+e;case 5548:return zn+e+Fn+Xn(e,"shrink","negative")+e;case 5292:return zn+e+Fn+Xn(e,"basis","preferred-size")+e;case 6060:return zn+"box-"+Xn(e,"-grow","")+zn+e+Fn+Xn(e,"grow","positive")+e;case 4554:return zn+Xn(e,/([^-])(transform)/g,"$1"+zn+"$2")+e;case 6187:return Xn(Xn(Xn(e,/(zoom-|grab)/,zn+"$1"),/(image-set)/,zn+"$1"),e,"")+e;case 5495:case 3959:return Xn(e,/(image-set\([^]*)/,zn+"$1$`$1");case 4968:return Xn(Xn(e,/(.+:)(flex-)?(.*)/,zn+"box-pack:$3"+Fn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+zn+e+e;case 4200:if(!Kn(e,/flex-|baseline/))return Fn+"grid-column-align"+Qn(e,t)+e;break;case 2592:case 3360:return Fn+Xn(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,Kn(e.props,/grid-\w+-end/)}))?~Jn(e+(r=r[t].value),"span",0)?e:Fn+Xn(e,"-start","")+e+Fn+"grid-row-span:"+(~Jn(r,"span",0)?Kn(r,/\d+/):+Kn(r,/\d+/)-+Kn(e,/\d+/))+";":Fn+Xn(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return Kn(e.props,/grid-\w+-start/)}))?e:Fn+Xn(Xn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Xn(e,/(.+)-inline(.+)/,zn+"$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(eo(e)-1-t>6)switch(Zn(e,t+1)){case 109:if(45!==Zn(e,t+4))break;case 102:return Xn(e,/(.+:)(.+)-([^]+)/,"$1"+zn+"$2-$3$1"+jn+(108==Zn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Jn(e,"stretch",0)?Po(Xn(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Xn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,l){return Fn+r+":"+n+l+(o?Fn+r+"-span:"+(i?a:+a-+n)+l:"")+e}));case 4949:if(121===Zn(e,t+6))return Xn(e,":",":"+zn)+e;break;case 6444:switch(Zn(e,45===Zn(e,14)?18:11)){case 120:return Xn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+zn+(45===Zn(e,14)?"inline-":"")+"box$3$1"+zn+"$2$3$1"+Fn+"$2box$3")+e;case 100:return Xn(e,":",":"+Fn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Xn(e,"scroll-","scroll-snap-")+e}return e}function ko(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Oo(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Bn:return e.return=e.return||e.value;case Gn:return"";case Wn:return e.return=e.value+"{"+ko(e.children,n)+"}";case $n:if(!eo(e.value=e.props.join(",")))return""}return eo(r=ko(e.children,n))?e.return=e.value+"{"+r+"}":""}function To(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Bn:return void(e.return=Po(e.value,e.length,r));case Wn:return ko([po(e,{value:Xn(e.value,"@","@"+zn)})],n);case $n:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(Kn(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":fo(po(e,{props:[Xn(t,/:(read-\w+)/,":-moz-$1")]})),fo(po(e,{props:[t]})),Yn(e,{props:no(r,n)});break;case"::placeholder":fo(po(e,{props:[Xn(t,/:(plac\w+)/,":"+zn+"input-$1")]})),fo(po(e,{props:[Xn(t,/:(plac\w+)/,":-moz-$1")]})),fo(po(e,{props:[Xn(t,/:(plac\w+)/,Fn+"input-$1")]})),fo(po(e,{props:[t]})),Yn(e,{props:no(r,n)})}return""}))}}var _o={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},qo="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",No="active",Fo="data-styled-version",jo="6.1.14",zo="/*!sc*/\n",Go="undefined"!=typeof window&&"HTMLElement"in window,$o=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)),Bo={},Wo=Object.freeze([]),Ho=Object.freeze({});function Vo(e,t,r){return void 0===r&&(r=Ho),e.theme!==r.theme&&e.theme||t||r.theme}var Yo=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"]),Uo=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ko=/(^-|-$)/g;function Xo(e){return e.replace(Uo,"-").replace(Ko,"")}var Jo=/(a)(d)/gi,Zo=function(e){return String.fromCharCode(e+(e>25?39:97))};function Qo(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Zo(t%52)+r;return(Zo(t%52)+r).replace(Jo,"$1-$2")}var ei,ti=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},ri=function(e){return ti(5381,e)};function ni(e){return Qo(ri(e)>>>0)}function oi(e){return"string"==typeof e&&!0}var ii="function"==typeof Symbol&&Symbol.for,ai=ii?Symbol.for("react.memo"):60115,li=ii?Symbol.for("react.forward_ref"):60112,si={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ui={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ci={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},di=((ei={})[li]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ei[ai]=ci,ei);function pi(e){return("type"in(t=e)&&t.type.$$typeof)===ai?ci:"$$typeof"in e?di[e.$$typeof]:si;var t}var fi=Object.defineProperty,mi=Object.getOwnPropertyNames,hi=Object.getOwnPropertySymbols,gi=Object.getOwnPropertyDescriptor,bi=Object.getPrototypeOf,vi=Object.prototype;function yi(e,t,r){if("string"!=typeof t){if(vi){var n=bi(t);n&&n!==vi&&yi(e,n,r)}var o=mi(t);hi&&(o=o.concat(hi(t)));for(var i=pi(e),a=pi(t),l=0;l<o.length;++l){var s=o[l];if(!(s in ui||r&&r[s]||a&&s in a||i&&s in i)){var u=gi(t,s);try{fi(e,s,u)}catch(e){}}}}return e}function xi(e){return"function"==typeof e}function Si(e){return"object"==typeof e&&"styledComponentId"in e}function Ei(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Ci(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function wi(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ri(e,t,r){if(void 0===r&&(r=!1),!r&&!wi(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Ri(e[n],t[n]);else if(wi(t))for(var n in t)e[n]=Ri(e[n],t[n]);return e}function Li(e,t){Object.defineProperty(e,"toString",{value:t})}function Ii(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Mi=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw Ii(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(zo);return t},e}(),Di=new Map,Ai=new Map,Pi=1,ki=function(e){if(Di.has(e))return Di.get(e);for(;Ai.has(Pi);)Pi++;var t=Pi++;return Di.set(e,t),Ai.set(t,e),t},Oi=function(e,t){Pi=t+1,Di.set(e,t),Ai.set(t,e)},Ti="style[".concat(qo,"][").concat(Fo,'="').concat(jo,'"]'),_i=new RegExp("^".concat(qo,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),qi=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},Ni=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(zo),o=[],i=0,a=n.length;i<a;i++){var l=n[i].trim();if(l){var s=l.match(_i);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(Oi(c,u),qi(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},Fi=function(e){for(var t=document.querySelectorAll(Ti),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(qo)!==No&&(Ni(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var ji=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(qo,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(qo,No),n.setAttribute(Fo,jo);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},zi=function(){function e(e){this.element=ji(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}throw Ii(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}(),Gi=function(){function e(e){this.element=ji(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),$i=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}(),Bi=Go,Wi={isServer:!Go,useCSSOMInjection:!$o},Hi=function(){function e(e,t,r){void 0===e&&(e=Ho),void 0===t&&(t={});var n=this;this.options=qn(qn({},Wi),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Go&&Bi&&(Bi=!1,Fi(this)),Li(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return Ai.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(r);if(void 0===i||!i.size||0===a.length)return"continue";var l="".concat(qo,".g").concat(r,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),n+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(zo)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return ki(e)},e.prototype.rehydrate=function(){!this.server&&Go&&Fi(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(qn(qn({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new $i(r):t?new zi(r):new Gi(r)}(this.options),new Mi(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(ki(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(ki(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(ki(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Vi=/&/g,Yi=/^\s*\/\/.*$/gm;function Ui(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=Ui(e.children,t)),e}))}var Ki=new Hi,Xi=function(){var e,t,r,n=Ho,o=n.options,i=void 0===o?Ho:o,a=n.plugins,l=void 0===a?Wo:a,s=function(r,n,o){return o.startsWith(t)&&o.endsWith(t)&&o.replaceAll(t,"").length>0?".".concat(e):r},u=l.slice();u.push((function(e){e.type===$n&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Vi,t).replace(r,s))})),i.prefix&&u.push(To),u.push(Oo);var c=function(n,o,a,l){void 0===o&&(o=""),void 0===a&&(a=""),void 0===l&&(l="&"),e=l,t=o,r=new RegExp("\\".concat(t,"\\b"),"g");var s=n.replace(Yi,""),c=Lo(a||o?"".concat(a," ").concat(o," { ").concat(s," }"):s);i.namespace&&(c=Ui(c,i.namespace));var d,p=[];return ko(c,function(e){var t=to(e);return function(r,n,o,i){for(var a="",l=0;l<t;l++)a+=e[l](r,n,o,i)||"";return a}}(u.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return c.hash=l.length?l.reduce((function(e,t){return t.name||Ii(15),ti(e,t.name)}),5381).toString():"",c}(),Ji=r.createContext({shouldForwardProp:void 0,styleSheet:Ki,stylis:Xi});function Zi(){return n(Ji)}Ji.Consumer;var Qi=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Xi);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Li(this,(function(){throw Ii(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Xi),this.name+e.hash},e}(),ea=function(e){return e>="A"&&e<="Z"};function ta(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;ea(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var ra=function(e){return null==e||!1===e||""===e},na=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!ra(i)&&(Array.isArray(i)&&i.isCss||xi(i)?n.push("".concat(ta(o),":"),i,";"):wi(i)?n.push.apply(n,Nn(Nn(["".concat(o," {")],na(i),!1),["}"],!1)):n.push("".concat(ta(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in _o||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function oa(e,t,r,n){return ra(e)?[]:Si(e)?[".".concat(e.styledComponentId)]:xi(e)?!xi(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:oa(e(t),t,r,n):e instanceof Qi?r?(e.inject(r,n),[e.getName(n)]):[e]:wi(e)?na(e):Array.isArray(e)?Array.prototype.concat.apply(Wo,e.map((function(e){return oa(e,t,r,n)}))):[e.toString()];var o}function ia(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(xi(r)&&!Si(r))return!1}return!0}var aa=ri(jo),la=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&ia(e),this.componentId=t,this.baseHash=ti(aa,t),this.baseStyle=r,Hi.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=Ei(n,this.staticRulesId);else{var o=Ci(oa(this.rules,e,t,r)),i=Qo(ti(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=r(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}n=Ei(n,i),this.staticRulesId=i}else{for(var l=ti(this.baseHash,r.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=Ci(oa(c,e,t,r));l=ti(l,d+u),s+=d}}if(s){var p=Qo(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(s,".".concat(p),void 0,this.componentId)),n=Ei(n,p)}}return n},e}(),sa=r.createContext(void 0);sa.Consumer;var ua={};function ca(e,t,n){var i=Si(e),a=e,l=!oi(e),s=t.attrs,u=void 0===s?Wo:s,c=t.componentId,d=void 0===c?function(e,t){var r="string"!=typeof e?"sc":Xo(e);ua[r]=(ua[r]||0)+1;var n="".concat(r,"-").concat(ni(jo+r+ua[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):c,p=t.displayName,f=void 0===p?function(e){return oi(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):p,m=t.displayName&&t.componentId?"".concat(Xo(t.displayName),"-").concat(t.componentId):t.componentId||d,h=i&&a.attrs?a.attrs.concat(u).filter(Boolean):u,g=t.shouldForwardProp;if(i&&a.shouldForwardProp){var b=a.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;g=function(e,t){return b(e,t)&&v(e,t)}}else g=b}var y=new la(n,m,i?a.componentStyle:void 0);function x(e,t){return function(e,t,n){var i=e.attrs,a=e.componentStyle,l=e.defaultProps,s=e.foldedComponentIds,u=e.styledComponentId,c=e.target,d=r.useContext(sa),p=Zi(),f=e.shouldForwardProp||p.shouldForwardProp,m=Vo(t,d,l)||Ho,h=function(e,t,r){for(var n,o=qn(qn({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=xi(n=e[i])?n(o):n;for(var l in a)o[l]="className"===l?Ei(o[l],a[l]):"style"===l?qn(qn({},o[l]),a[l]):a[l]}return t.className&&(o.className=Ei(o.className,t.className)),o}(i,t,m),g=h.as||c,b={};for(var v in h)void 0===h[v]||"$"===v[0]||"as"===v||"theme"===v&&h.theme===m||("forwardedAs"===v?b.as=h.forwardedAs:f&&!f(v,g)||(b[v]=h[v]));var y=function(e,t){var r=Zi();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(a,h),x=Ei(s,u);return y&&(x+=" "+y),h.className&&(x+=" "+h.className),b[oi(g)&&!Yo.has(g)?"class":"className"]=x,n&&(b.ref=n),o(g,b)}(S,e,t)}x.displayName=f;var S=r.forwardRef(x);return S.attrs=h,S.componentStyle=y,S.displayName=f,S.shouldForwardProp=g,S.foldedComponentIds=i?Ei(a.foldedComponentIds,a.styledComponentId):"",S.styledComponentId=m,S.target=i?a.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)Ri(e,o[n],!0);return e}({},a.defaultProps,e):e}}),Li(S,(function(){return".".concat(S.styledComponentId)})),l&&yi(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function da(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var pa=function(e){return Object.assign(e,{isCss:!0})};function fa(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(xi(e)||wi(e))return pa(oa(da(Wo,Nn([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?oa(n):pa(oa(da(n,t)))}function ma(e,t,r){if(void 0===r&&(r=Ho),!t)throw Ii(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,fa.apply(void 0,Nn([n],o,!1)))};return n.attrs=function(n){return ma(e,t,qn(qn({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return ma(e,t,qn(qn({},r),n))},n}var ha=function(e){return ma(ca,e)},ga=ha;Yo.forEach((function(e){ga[e]=ha(e)}));var ba=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ia(e),Hi.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(Ci(oa(this.rules,t,r,n)),""),i=this.componentId+e;r.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&Hi.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function va(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Ci(fa.apply(void 0,Nn([e],t,!1))),o=ni(n);return new Qi(o,n)}function ya(e){const{injectFirst:t,children:r}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return r}ya.propTypes={children:yr.node,injectFirst:yr.bool};const xa=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=fa.apply(void 0,Nn([e],t,!1)),i="sc-global-".concat(ni(JSON.stringify(o))),a=new ba(o,i),l=function(e){var t=Zi(),n=r.useContext(sa),o=r.useRef(t.styleSheet.allocateGSInstance(i)).current;return t.styleSheet.server&&s(o,e,t.styleSheet,n,t.stylis),r.useLayoutEffect((function(){if(!t.styleSheet.server)return s(o,e,t.styleSheet,n,t.stylis),function(){return a.removeStyles(o,t.styleSheet)}}),[o,e,t.styleSheet,n,t.stylis]),null};function s(e,t,r,n,o){if(a.isStatic)a.renderStyles(e,Bo,r,o);else{var i=qn(qn({},t),{theme:Vo(t,n,l.defaultProps)});a.renderStyles(e,i,r,o)}}return r.memo(l)}((e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n}));
10
10
  /**
11
11
  * @mui/styled-engine-sc v6.3.1
12
12
  *
@@ -14,7 +14,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.le
14
14
  * This source code is licensed under the MIT license found in the
15
15
  * LICENSE file in the root directory of this source tree.
16
16
  */
17
- function Xi(e,t){let r;return r=t?Wi(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Wi(e),r}function Ji(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function Zi(e,t){return Ji(e,t)}Ui.propTypes={defaultTheme:yr.object,styles:yr.oneOfType([yr.array,yr.string,yr.object,yr.func])};var Qi=Object.freeze({__proto__:null,GlobalStyles:Ki,StyledEngineProvider:Yi,ThemeContext:qi,css:Gi,default:Xi,internal_mutateStyles:Ji,internal_processStyles:Zi,internal_serializeStyles:function(e){return e},keyframes:Vi});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 ta(e){if(t.isValidElement(e)||!ea(e))return e;const r={};return Object.keys(e).forEach((t=>{r[t]=ta(e[t])})),r}function ra(e,r,n={clone:!0}){const o=n.clone?hr({},e):e;return ea(e)&&ea(r)&&Object.keys(r).forEach((i=>{t.isValidElement(r[i])?o[i]=r[i]:ea(r[i])&&Object.prototype.hasOwnProperty.call(e,i)&&ea(e[i])?o[i]=ra(e[i],r[i],n):n.clone?o[i]=ea(r[i])?ta(r[i]):r[i]:o[i]=r[i]})),o}var na={exports:{}},oa={},ia=Symbol.for("react.transitional.element"),aa=Symbol.for("react.portal"),la=Symbol.for("react.fragment"),sa=Symbol.for("react.strict_mode"),ua=Symbol.for("react.profiler"),ca=Symbol.for("react.consumer"),da=Symbol.for("react.context"),pa=Symbol.for("react.forward_ref"),fa=Symbol.for("react.suspense"),ma=Symbol.for("react.suspense_list"),ha=Symbol.for("react.memo"),ga=Symbol.for("react.lazy"),ba=Symbol.for("react.offscreen"),va=Symbol.for("react.client.reference");function ya(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ia:switch(e=e.type){case la:case ua:case sa:case fa:case ma:return e;default:switch(e=e&&e.$$typeof){case da:case pa:case ga:case ha:case ca:return e;default:return t}}case aa:return t}}}oa.ContextConsumer=ca,oa.ContextProvider=da,oa.Element=ia,oa.ForwardRef=pa,oa.Fragment=la,oa.Lazy=ga,oa.Memo=ha,oa.Portal=aa,oa.Profiler=ua,oa.StrictMode=sa,oa.Suspense=fa,oa.SuspenseList=ma,oa.isContextConsumer=function(e){return ya(e)===ca},oa.isContextProvider=function(e){return ya(e)===da},oa.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ia},oa.isForwardRef=function(e){return ya(e)===pa},oa.isFragment=function(e){return ya(e)===la},oa.isLazy=function(e){return ya(e)===ga},oa.isMemo=function(e){return ya(e)===ha},oa.isPortal=function(e){return ya(e)===aa},oa.isProfiler=function(e){return ya(e)===ua},oa.isStrictMode=function(e){return ya(e)===sa},oa.isSuspense=function(e){return ya(e)===fa},oa.isSuspenseList=function(e){return ya(e)===ma},oa.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===la||e===ua||e===sa||e===fa||e===ma||e===ba||"object"==typeof e&&null!==e&&(e.$$typeof===ga||e.$$typeof===ha||e.$$typeof===da||e.$$typeof===ca||e.$$typeof===pa||e.$$typeof===va||void 0!==e.getModuleId)},oa.typeOf=ya,na.exports=oa;var xa=na.exports;function Sa(e){if("string"!=typeof e)throw new Error(un(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ea(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function Ca(e){return e&&e.ownerDocument||document}function wa(e){return Ca(e).defaultView||window}function Ra(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var La="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function Ia(e){const r=t.useRef(e);return La((()=>{r.current=e})),t.useRef(((...e)=>(0,r.current)(...e))).current}function Aa(...e){return t.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Ra(e,t)}))}),e)}function Ma(e,t){const r=hr({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=hr({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=hr({},i),Object.keys(o).forEach((e=>{r[n][e]=Ma(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function Da(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}function Pa(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Pa(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ka(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Pa(e))&&(n&&(n+=" "),n+=t);return n}const Oa=["values","unit","step"];function Ta(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Er(e,Oa),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>hr({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return hr({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}var _a={borderRadius:4};function qa(e,t){return t?ra(e,t,{clone:!1}):e}const Na={xs:0,sm:600,md:900,lg:1200,xl:1536},Fa={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Na[e]}px)`};function ja(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Fa;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Fa;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Na).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function za(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Ga(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:za(e,r)||n,t&&(o=t(o,n,e)),o}function $a(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=za(e.theme,n)||{};return ja(e,i,(e=>{let n=Ga(a,o,e);return e===n&&"string"==typeof e&&(n=Ga(a,o,`${t}${"default"===e?"":Sa(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Ba={m:"margin",p:"padding"},Wa={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ha={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Va=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Ha[e])return[e];e=Ha[e]}const[t,r]=e.split(""),n=Ba[t],o=Wa[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Ya=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ua=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Ka(e,t,r,n){var o;const i=null!=(o=za(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Xa(e){return Ka(e,"spacing",8)}function Ja(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function Za(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Ja(t,r),e)),{})}(Va(r),n);return ja(e,e[r],o)}function Qa(e,t){const r=Xa(e.theme);return Object.keys(e).map((n=>Za(e,t,n,r))).reduce(qa,{})}function el(e){return Qa(e,Ya)}function tl(e){return Qa(e,Ua)}function rl(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?qa(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function nl(e){return"number"!=typeof e?e:`${e}px solid`}function ol(e,t){return $a({prop:e,themeKey:"borders",transform:t})}el.propTypes={},el.filterProps=Ya,tl.propTypes={},tl.filterProps=Ua;const il=ol("border",nl),al=ol("borderTop",nl),ll=ol("borderRight",nl),sl=ol("borderBottom",nl),ul=ol("borderLeft",nl),cl=ol("borderColor"),dl=ol("borderTopColor"),pl=ol("borderRightColor"),fl=ol("borderBottomColor"),ml=ol("borderLeftColor"),hl=ol("outline",nl),gl=ol("outlineColor"),bl=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Ka(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Ja(t,e)});return ja(e,e.borderRadius,r)}return null};bl.propTypes={},bl.filterProps=["borderRadius"],rl(il,al,ll,sl,ul,cl,dl,pl,fl,ml,bl,hl,gl);const vl=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Ka(e.theme,"spacing",8),r=e=>({gap:Ja(t,e)});return ja(e,e.gap,r)}return null};vl.propTypes={},vl.filterProps=["gap"];const yl=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Ka(e.theme,"spacing",8),r=e=>({columnGap:Ja(t,e)});return ja(e,e.columnGap,r)}return null};yl.propTypes={},yl.filterProps=["columnGap"];const xl=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Ka(e.theme,"spacing",8),r=e=>({rowGap:Ja(t,e)});return ja(e,e.rowGap,r)}return null};xl.propTypes={},xl.filterProps=["rowGap"];function Sl(e,t){return"grey"===t?t:e}rl(vl,yl,xl,$a({prop:"gridColumn"}),$a({prop:"gridRow"}),$a({prop:"gridAutoFlow"}),$a({prop:"gridAutoColumns"}),$a({prop:"gridAutoRows"}),$a({prop:"gridTemplateColumns"}),$a({prop:"gridTemplateRows"}),$a({prop:"gridTemplateAreas"}),$a({prop:"gridArea"}));function El(e){return e<=1&&0!==e?100*e+"%":e}rl($a({prop:"color",themeKey:"palette",transform:Sl}),$a({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Sl}),$a({prop:"backgroundColor",themeKey:"palette",transform:Sl}));const Cl=$a({prop:"width",transform:El}),wl=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||Na[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:El(t)}};return ja(e,e.maxWidth,t)}return null};wl.filterProps=["maxWidth"];const Rl=$a({prop:"minWidth",transform:El}),Ll=$a({prop:"height",transform:El}),Il=$a({prop:"maxHeight",transform:El}),Al=$a({prop:"minHeight",transform:El});$a({prop:"size",cssProperty:"width",transform:El}),$a({prop:"size",cssProperty:"height",transform:El});rl(Cl,wl,Rl,Ll,Il,Al,$a({prop:"boxSizing"}));var Ml={border:{themeKey:"borders",transform:nl},borderTop:{themeKey:"borders",transform:nl},borderRight:{themeKey:"borders",transform:nl},borderBottom:{themeKey:"borders",transform:nl},borderLeft:{themeKey:"borders",transform:nl},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:nl},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:bl},color:{themeKey:"palette",transform:Sl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Sl},backgroundColor:{themeKey:"palette",transform:Sl},p:{style:tl},pt:{style:tl},pr:{style:tl},pb:{style:tl},pl:{style:tl},px:{style:tl},py:{style:tl},padding:{style:tl},paddingTop:{style:tl},paddingRight:{style:tl},paddingBottom:{style:tl},paddingLeft:{style:tl},paddingX:{style:tl},paddingY:{style:tl},paddingInline:{style:tl},paddingInlineStart:{style:tl},paddingInlineEnd:{style:tl},paddingBlock:{style:tl},paddingBlockStart:{style:tl},paddingBlockEnd:{style:tl},m:{style:el},mt:{style:el},mr:{style:el},mb:{style:el},ml:{style:el},mx:{style:el},my:{style:el},margin:{style:el},marginTop:{style:el},marginRight:{style:el},marginBottom:{style:el},marginLeft:{style:el},marginX:{style:el},marginY:{style:el},marginInline:{style:el},marginInlineStart:{style:el},marginInlineEnd:{style:el},marginBlock:{style:el},marginBlockStart:{style:el},marginBlockEnd:{style:el},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:vl},rowGap:{style:xl},columnGap:{style:yl},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:El},maxWidth:{style:wl},minWidth:{transform:El},height:{transform:El},maxHeight:{transform:El},minHeight:{transform:El},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Dl=function(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=za(r,l)||{};if(u)return u(o);return ja(o,t,(t=>{let r=Ga(c,s,t);return t===r&&"string"==typeof t&&(r=Ga(c,s,`${e}${"default"===t?"":Sa(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=null!=(n=i.unstable_sxConfig)?n:Ml;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=qa(s,e(r,o,i,a));else{const e=ja({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?s=qa(s,e):s[r]=t({sx:o,theme:i})}else s=qa(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();Dl.filterProps=["sx"];var Pl=Dl;function kl(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}const Ol=["breakpoints","palette","spacing","shape"];function Tl(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Er(e,Ol),l=Ta(r),s=function(e=8){if(e.mui)return e;const t=Xa({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=ra({breakpoints:l,direction:"ltr",components:{},palette:hr({mode:"light"},n),spacing:s,shape:hr({},_a,i)},a);return u.applyStyles=kl,u=t.reduce(((e,t)=>ra(e,t)),u),u.unstable_sxConfig=hr({},Ml,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Pl({sx:e,theme:this})},u}function _l(e=null){const r=t.useContext(qi);return r&&(n=r,0!==Object.keys(n).length)?r:e;var n}const ql=Tl();function Nl(e=ql){return _l(e)}var Fl={exports:{}},jl={},zl=r,Gl=Symbol.for("react.element"),$l=Symbol.for("react.fragment"),Bl=Object.prototype.hasOwnProperty,Wl=zl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Hl={key:!0,ref:!0,__self:!0,__source:!0};function Vl(e,t,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Bl.call(t,n)&&!Hl.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:Gl,type:e,key:i,ref:a,props:o,_owner:Wl.current}}jl.Fragment=$l,jl.jsx=Vl,jl.jsxs=Vl,Fl.exports=jl;var Yl=Fl.exports;function Ul({styles:e,themeId:t,defaultTheme:r={}}){const n=Nl(r),o="function"==typeof e?e(t&&n[t]||n):e;return Yl.jsx(Ki,{styles:o})}const Kl=["sx"];function Xl(e){const{sx:t}=e,r=Er(e,Kl),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:Ml;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return ea(r)?hr({},n,r):n}:hr({},n,t),hr({},o,{sx:i})}const Jl=["className","component"];const Zl=["ownerState"],Ql=["variants"],es=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ts(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const rs=Tl(),ns=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function os({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function is(e){return e?(t,r)=>r[e]:null}function as(e,t){let{ownerState:r}=t,n=Er(t,Zl);const o="function"==typeof e?e(hr({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>as(e,hr({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=Er(o,Ql);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(hr({ownerState:r},n)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(hr({ownerState:r},n)):e.style))})),t}return o}function ls(e){const{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?Ma(t.components[r].defaultProps,n):n}function ss(e,t=0,r=1){return function(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}(e,t,r)}function us(e){if(e.type)return e;if("#"===e.charAt(0))return us(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(un(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(un(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function cs(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function ds(e){let t="hsl"===(e=us(e)).type||"hsla"===e.type?us(function(e){e=us(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),cs({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 ps(e,t){return e=us(e),t=ss(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,cs(e)}function fs(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 ms(e){if(!fs(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=ms(e[r])})),t}function hs(e,t,r={clone:!0}){const n=r.clone?hr({},e):e;return fs(e)&&fs(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(fs(t[o])&&o in e&&fs(e[o])?n[o]=hs(e[o],t[o],r):r.clone?n[o]=fs(t[o])?ms(t[o]):t[o]:n[o]=t[o])})),n}function gs(e){if("string"!=typeof e)throw new Error(on(7));return e.charAt(0).toUpperCase()+e.slice(1)}function bs(e){return e&&e.ownerDocument||document}function vs(e){return bs(e).defaultView||window}var ys="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;let xs=0;const Ss=t["useId".toString()];function Es(e){if(void 0!==Ss){const t=Ss();return null!=e?e:t}return function(e){const[r,n]=t.useState(e),o=e||r;return t.useEffect((()=>{null==r&&(xs+=1,n(`mui-${xs}`))}),[r]),o}(e)}function Cs({controlled:e,default:r,name:n,state:o="value"}){const{current:i}=t.useRef(void 0!==e),[a,l]=t.useState(r);return[i?e:a,t.useCallback((e=>{i||l(e)}),[])]}function ws(e){const r=t.useRef(e);return ys((()=>{r.current=e})),t.useRef(((...e)=>(0,r.current)(...e))).current}function Rs(...e){return t.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)}let Ls=!0,Is=!1;const As=new class e{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new e}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}},Ms={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 Ds(e){e.metaKey||e.altKey||e.ctrlKey||(Ls=!0)}function Ps(){Ls=!1}function ks(){"hidden"===this.visibilityState&&Is&&(Ls=!0)}function Os(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Ls||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Ms[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Ts(){const e=t.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Ds,!0),t.addEventListener("mousedown",Ps,!0),t.addEventListener("pointerdown",Ps,!0),t.addEventListener("touchstart",Ps,!0),t.addEventListener("visibilitychange",ks,!0))}),[]),r=t.useRef(!1);return{isFocusVisibleRef:r,onFocus:function(e){return!!Os(e)&&(r.current=!0,!0)},onBlur:function(){return!!r.current&&(Is=!0,As.start(100,(()=>{Is=!1})),r.current=!1,!0)},ref:e}}function _s(e,t){const r=hr({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=hr({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=hr({},i),Object.keys(o).forEach((e=>{r[n][e]=_s(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const qs=e=>e;var Ns=(()=>{let e=qs;return{configure(t){e=t},generate:t=>e(t),reset(){e=qs}}})();const Fs={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 js(e,t,r="Mui"){const n=Fs[t];return n?`${r}-${n}`:`${Ns.generate(e)}-${t}`}function zs(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=js(e,t,r)})),n}const Gs=["mode","contrastThreshold","tonalOffset"],$s={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:Xr.white,default:Xr.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}},Bs={text:{primary:Xr.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:Xr.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 Ws(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=function(e,t){if(e=us(e),t=ss(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return cs(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=us(e),t=ss(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return cs(e)}(e.main,i)))}function Hs(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=sn(e,Gs),i=e.primary||function(e="light"){return"dark"===e?{main:Qr[200],light:Qr[50],dark:Qr[400]}:{main:Qr[700],light:Qr[400],dark:Qr[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Zr[200],light:Zr[50],dark:Zr[400]}:{main:Zr[500],light:Zr[300],dark:Zr[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Jr[500],light:Jr[300],dark:Jr[700]}:{main:Jr[700],light:Jr[400],dark:Jr[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:en[400],light:en[300],dark:en[700]}:{main:en[700],light:en[500],dark:en[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:tn[400],light:tn[300],dark:tn[700]}:{main:tn[800],light:tn[500],dark:tn[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:rn[400],light:rn[300],dark:rn[700]}:{main:"#ed6c02",light:rn[500],dark:rn[900]}}(t);function d(e){const t=function(e,t){const r=ds(e),n=ds(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,Bs.text.primary)>=r?Bs.text.primary:$s.text.primary;return t}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=ln({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(on(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(on(12,t?` (${t})`:"",JSON.stringify(e.main)));return Ws(e,"light",o,n),Ws(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Bs,light:$s};return hs(ln({common:ln({},Xr),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:nn,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Vs=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ys={textTransform:"uppercase"},Us='"Roboto", "Helvetica", "Arial", sans-serif';function Ks(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Us,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=sn(r,Vs),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return ln({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===Us?{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,Ys),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Ys),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return hs(ln({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Xs(...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 Js=["none",Xs(0,2,1,-1,0,1,1,0,0,1,3,0),Xs(0,3,1,-2,0,2,2,0,0,1,5,0),Xs(0,3,3,-2,0,3,4,0,0,1,8,0),Xs(0,2,4,-1,0,4,5,0,0,1,10,0),Xs(0,3,5,-1,0,5,8,0,0,1,14,0),Xs(0,3,5,-1,0,6,10,0,0,1,18,0),Xs(0,4,5,-2,0,7,10,1,0,2,16,1),Xs(0,5,5,-3,0,8,10,1,0,3,14,2),Xs(0,5,6,-3,0,9,12,1,0,3,16,2),Xs(0,6,6,-3,0,10,14,1,0,4,18,3),Xs(0,6,7,-4,0,11,15,1,0,4,20,3),Xs(0,7,8,-4,0,12,17,2,0,5,22,4),Xs(0,7,8,-4,0,13,19,2,0,5,24,4),Xs(0,7,9,-4,0,14,21,2,0,5,26,4),Xs(0,8,9,-5,0,15,22,2,0,6,28,5),Xs(0,8,10,-5,0,16,24,2,0,6,30,5),Xs(0,8,11,-5,0,17,26,2,0,6,32,5),Xs(0,9,11,-5,0,18,28,2,0,7,34,6),Xs(0,9,12,-6,0,19,29,2,0,7,36,6),Xs(0,10,13,-6,0,20,31,3,0,8,38,7),Xs(0,10,13,-6,0,21,33,3,0,8,40,7),Xs(0,10,14,-6,0,22,35,3,0,8,42,7),Xs(0,11,14,-7,0,23,36,3,0,9,44,8),Xs(0,11,15,-7,0,24,38,3,0,9,46,8)];const Zs=["duration","easing","delay"],Qs={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},eu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function tu(e){return`${Math.round(e)}ms`}function ru(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function nu(e){const t=ln({},Qs,e.easing),r=ln({},eu,e.duration);return ln({getAutoHeightDuration:ru,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return sn(n,Zs),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:tu(o)} ${i} ${"string"==typeof a?a:tu(a)}`)).join(",")}},e,{easing:t,duration:r})}var ou={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const iu=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function au(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=sn(e,iu);if(e.vars)throw new Error(on(18));const l=Hs(n),s=Tl(e);let u=hs(s,{mixins:(c=s.breakpoints,d=r,ln({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Js.slice(),typography:Ks(l,i),transitions:nu(o),zIndex:ln({},ou),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=hs(u,a),u=t.reduce(((e,t)=>hs(e,t)),u),u.unstable_sxConfig=ln({},Ml,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Pl({sx:e,theme:this})},u}var lu=au();function su(){const e=Nl(lu);return e[an]||e}function uu({props:e,name:t}){return function({props:e,name:t,defaultTheme:r,themeId:n}){let o=Nl(r);return n&&(o=o[n]||o),ls({theme:o,name:t,props:e})}({props:e,name:t,defaultTheme:lu,themeId:an})}const cu=e=>ts(e)&&"classes"!==e,du=ts,pu=function(e={}){const{themeId:t,defaultTheme:r=rs,rootShouldForwardProp:n=ts,slotShouldForwardProp:o=ts}=e,i=e=>Pl(hr({},e,{theme:os(hr({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{Zi(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=is(ns(s))}=a,p=Er(a,es),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=ts;"Root"===s||"root"===s?h=n:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=Xi(e,hr({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||ea(e)?n=>as(e,hr({},n,{theme:os({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&d&&s.push((e=>{const n=os(hr({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[l]||!n.components[l].styleOverrides)return null;const o=n.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=as(r,hr({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=os(hr({},e,{defaultTheme:r,themeId:t}));return as({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},hr({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:an,defaultTheme:lu,rootShouldForwardProp:cu});var fu=pu;var mu=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function hu(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=hu(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function gu(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=hu(e))&&(n&&(n+=" "),n+=t);return n}function bu(e){return js("MuiSvgIcon",e)}zs("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const vu=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],yu=fu("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${gs(r.color)}`],t[`fontSize${gs(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,l,s,u,c,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),xu=t.forwardRef((function(e,r){const n=uu({props:e,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:l="svg",fontSize:s="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24"}=n,f=sn(n,vu),m=t.isValidElement(o)&&"svg"===o.type,h=ln({},n,{color:a,component:l,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:m}),g={};c||(g.viewBox=p);const b=(e=>{const{color:t,fontSize:r,classes:n}=e;return Da({root:["root","inherit"!==t&&`color${gs(t)}`,`fontSize${gs(r)}`]},bu,n)})(h);return Yl.jsxs(yu,ln({as:l,className:gu(b.root,i),focusable:"false",color:u,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:r},g,f,m&&o.props,{ownerState:h,children:[m?o.props.children:o,d?Yl.jsx("title",{children:d}):null]}))}));xu.muiName="SvgIcon";var Su=xu;var Eu,Cu={},wu=Symbol.for("react.element"),Ru=Symbol.for("react.portal"),Lu=Symbol.for("react.fragment"),Iu=Symbol.for("react.strict_mode"),Au=Symbol.for("react.profiler"),Mu=Symbol.for("react.provider"),Du=Symbol.for("react.context"),Pu=Symbol.for("react.server_context"),ku=Symbol.for("react.forward_ref"),Ou=Symbol.for("react.suspense"),Tu=Symbol.for("react.suspense_list"),_u=Symbol.for("react.memo"),qu=Symbol.for("react.lazy"),Nu=Symbol.for("react.offscreen");
17
+ function Sa(e,t){let r;return r=t?ga(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):ga(e),r}function Ea(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function Ca(e,t){return Ea(e,t)}xa.propTypes={defaultTheme:yr.object,styles:yr.oneOfType([yr.array,yr.string,yr.object,yr.func])};var wa=Object.freeze({__proto__:null,GlobalStyles:xa,StyledEngineProvider:ya,ThemeContext:sa,css:fa,default:Sa,internal_mutateStyles:Ea,internal_processStyles:Ca,internal_serializeStyles:function(e){return e},keyframes:va});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 La(e){if(t.isValidElement(e)||!Ra(e))return e;const r={};return Object.keys(e).forEach((t=>{r[t]=La(e[t])})),r}function Ia(e,r,n={clone:!0}){const o=n.clone?hr({},e):e;return Ra(e)&&Ra(r)&&Object.keys(r).forEach((i=>{t.isValidElement(r[i])?o[i]=r[i]:Ra(r[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Ra(e[i])?o[i]=Ia(e[i],r[i],n):n.clone?o[i]=Ra(r[i])?La(r[i]):r[i]:o[i]=r[i]})),o}var Ma={exports:{}},Da={},Aa=Symbol.for("react.transitional.element"),Pa=Symbol.for("react.portal"),ka=Symbol.for("react.fragment"),Oa=Symbol.for("react.strict_mode"),Ta=Symbol.for("react.profiler"),_a=Symbol.for("react.consumer"),qa=Symbol.for("react.context"),Na=Symbol.for("react.forward_ref"),Fa=Symbol.for("react.suspense"),ja=Symbol.for("react.suspense_list"),za=Symbol.for("react.memo"),Ga=Symbol.for("react.lazy"),$a=Symbol.for("react.offscreen"),Ba=Symbol.for("react.client.reference");function Wa(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Aa:switch(e=e.type){case ka:case Ta:case Oa:case Fa:case ja:return e;default:switch(e=e&&e.$$typeof){case qa:case Na:case Ga:case za:case _a:return e;default:return t}}case Pa:return t}}}Da.ContextConsumer=_a,Da.ContextProvider=qa,Da.Element=Aa,Da.ForwardRef=Na,Da.Fragment=ka,Da.Lazy=Ga,Da.Memo=za,Da.Portal=Pa,Da.Profiler=Ta,Da.StrictMode=Oa,Da.Suspense=Fa,Da.SuspenseList=ja,Da.isContextConsumer=function(e){return Wa(e)===_a},Da.isContextProvider=function(e){return Wa(e)===qa},Da.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Aa},Da.isForwardRef=function(e){return Wa(e)===Na},Da.isFragment=function(e){return Wa(e)===ka},Da.isLazy=function(e){return Wa(e)===Ga},Da.isMemo=function(e){return Wa(e)===za},Da.isPortal=function(e){return Wa(e)===Pa},Da.isProfiler=function(e){return Wa(e)===Ta},Da.isStrictMode=function(e){return Wa(e)===Oa},Da.isSuspense=function(e){return Wa(e)===Fa},Da.isSuspenseList=function(e){return Wa(e)===ja},Da.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===ka||e===Ta||e===Oa||e===Fa||e===ja||e===$a||"object"==typeof e&&null!==e&&(e.$$typeof===Ga||e.$$typeof===za||e.$$typeof===qa||e.$$typeof===_a||e.$$typeof===Na||e.$$typeof===Ba||void 0!==e.getModuleId)},Da.typeOf=Wa,Ma.exports=Da;var Ha=Ma.exports;function Va(e){if("string"!=typeof e)throw new Error(_n(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ya(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function Ua(e){return e&&e.ownerDocument||document}function Ka(e){return Ua(e).defaultView||window}function Xa(e,t){"function"==typeof e?e(t):e&&(e.current=t)}const Ja="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function Za(e){const r=t.useRef(e);return Ja((()=>{r.current=e})),t.useRef(((...e)=>(0,r.current)(...e))).current}function Qa(...e){return t.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Xa(e,t)}))}),e)}function el(e,t){const r=hr({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=hr({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=hr({},i),Object.keys(o).forEach((e=>{r[n][e]=el(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function tl(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}function rl(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=rl(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function nl(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=rl(e))&&(n&&(n+=" "),n+=t);return n}const ol=["values","unit","step"];function il(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Er(e,ol),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>hr({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return hr({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const al={borderRadius:4};function ll(e,t){return t?Ia(e,t,{clone:!1}):e}const sl={xs:0,sm:600,md:900,lg:1200,xl:1536},ul={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${sl[e]}px)`};function cl(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||ul;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||ul;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||sl).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function dl(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function pl(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:dl(e,r)||n,t&&(o=t(o,n,e)),o}function fl(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=dl(e.theme,n)||{};return cl(e,i,(e=>{let n=pl(a,o,e);return e===n&&"string"==typeof e&&(n=pl(a,o,`${t}${"default"===e?"":Va(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const ml={m:"margin",p:"padding"},hl={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},gl={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},bl=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!gl[e])return[e];e=gl[e]}const[t,r]=e.split(""),n=ml[t],o=hl[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),vl=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],yl=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function xl(e,t,r,n){var o;const i=null!=(o=dl(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Sl(e){return xl(e,"spacing",8)}function El(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function Cl(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=El(t,r),e)),{})}(bl(r),n);return cl(e,e[r],o)}function wl(e,t){const r=Sl(e.theme);return Object.keys(e).map((n=>Cl(e,t,n,r))).reduce(ll,{})}function Rl(e){return wl(e,vl)}function Ll(e){return wl(e,yl)}function Il(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?ll(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Ml(e){return"number"!=typeof e?e:`${e}px solid`}function Dl(e,t){return fl({prop:e,themeKey:"borders",transform:t})}Rl.propTypes={},Rl.filterProps=vl,Ll.propTypes={},Ll.filterProps=yl;const Al=Dl("border",Ml),Pl=Dl("borderTop",Ml),kl=Dl("borderRight",Ml),Ol=Dl("borderBottom",Ml),Tl=Dl("borderLeft",Ml),_l=Dl("borderColor"),ql=Dl("borderTopColor"),Nl=Dl("borderRightColor"),Fl=Dl("borderBottomColor"),jl=Dl("borderLeftColor"),zl=Dl("outline",Ml),Gl=Dl("outlineColor"),$l=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=xl(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:El(t,e)});return cl(e,e.borderRadius,r)}return null};$l.propTypes={},$l.filterProps=["borderRadius"],Il(Al,Pl,kl,Ol,Tl,_l,ql,Nl,Fl,jl,$l,zl,Gl);const Bl=e=>{if(void 0!==e.gap&&null!==e.gap){const t=xl(e.theme,"spacing",8),r=e=>({gap:El(t,e)});return cl(e,e.gap,r)}return null};Bl.propTypes={},Bl.filterProps=["gap"];const Wl=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=xl(e.theme,"spacing",8),r=e=>({columnGap:El(t,e)});return cl(e,e.columnGap,r)}return null};Wl.propTypes={},Wl.filterProps=["columnGap"];const Hl=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=xl(e.theme,"spacing",8),r=e=>({rowGap:El(t,e)});return cl(e,e.rowGap,r)}return null};Hl.propTypes={},Hl.filterProps=["rowGap"];function Vl(e,t){return"grey"===t?t:e}Il(Bl,Wl,Hl,fl({prop:"gridColumn"}),fl({prop:"gridRow"}),fl({prop:"gridAutoFlow"}),fl({prop:"gridAutoColumns"}),fl({prop:"gridAutoRows"}),fl({prop:"gridTemplateColumns"}),fl({prop:"gridTemplateRows"}),fl({prop:"gridTemplateAreas"}),fl({prop:"gridArea"}));function Yl(e){return e<=1&&0!==e?100*e+"%":e}Il(fl({prop:"color",themeKey:"palette",transform:Vl}),fl({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Vl}),fl({prop:"backgroundColor",themeKey:"palette",transform:Vl}));const Ul=fl({prop:"width",transform:Yl}),Kl=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||sl[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Yl(t)}};return cl(e,e.maxWidth,t)}return null};Kl.filterProps=["maxWidth"];const Xl=fl({prop:"minWidth",transform:Yl}),Jl=fl({prop:"height",transform:Yl}),Zl=fl({prop:"maxHeight",transform:Yl}),Ql=fl({prop:"minHeight",transform:Yl});fl({prop:"size",cssProperty:"width",transform:Yl}),fl({prop:"size",cssProperty:"height",transform:Yl});Il(Ul,Kl,Xl,Jl,Zl,Ql,fl({prop:"boxSizing"}));const es={border:{themeKey:"borders",transform:Ml},borderTop:{themeKey:"borders",transform:Ml},borderRight:{themeKey:"borders",transform:Ml},borderBottom:{themeKey:"borders",transform:Ml},borderLeft:{themeKey:"borders",transform:Ml},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ml},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:$l},color:{themeKey:"palette",transform:Vl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Vl},backgroundColor:{themeKey:"palette",transform:Vl},p:{style:Ll},pt:{style:Ll},pr:{style:Ll},pb:{style:Ll},pl:{style:Ll},px:{style:Ll},py:{style:Ll},padding:{style:Ll},paddingTop:{style:Ll},paddingRight:{style:Ll},paddingBottom:{style:Ll},paddingLeft:{style:Ll},paddingX:{style:Ll},paddingY:{style:Ll},paddingInline:{style:Ll},paddingInlineStart:{style:Ll},paddingInlineEnd:{style:Ll},paddingBlock:{style:Ll},paddingBlockStart:{style:Ll},paddingBlockEnd:{style:Ll},m:{style:Rl},mt:{style:Rl},mr:{style:Rl},mb:{style:Rl},ml:{style:Rl},mx:{style:Rl},my:{style:Rl},margin:{style:Rl},marginTop:{style:Rl},marginRight:{style:Rl},marginBottom:{style:Rl},marginLeft:{style:Rl},marginX:{style:Rl},marginY:{style:Rl},marginInline:{style:Rl},marginInlineStart:{style:Rl},marginInlineEnd:{style:Rl},marginBlock:{style:Rl},marginBlockStart:{style:Rl},marginBlockEnd:{style:Rl},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:Bl},rowGap:{style:Hl},columnGap:{style:Wl},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Yl},maxWidth:{style:Kl},minWidth:{transform:Yl},height:{transform:Yl},maxHeight:{transform:Yl},minHeight:{transform:Yl},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const ts=function(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=dl(r,l)||{};if(u)return u(o);return cl(o,t,(t=>{let r=pl(c,s,t);return t===r&&"string"==typeof t&&(r=pl(c,s,`${e}${"default"===t?"":Va(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=null!=(n=i.unstable_sxConfig)?n:es;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=ll(s,e(r,o,i,a));else{const e=cl({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?s=ll(s,e):s[r]=t({sx:o,theme:i})}else s=ll(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();function rs(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}ts.filterProps=["sx"];const ns=["breakpoints","palette","spacing","shape"];function os(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Er(e,ns),l=il(r),s=function(e=8){if(e.mui)return e;const t=Sl({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=Ia({breakpoints:l,direction:"ltr",components:{},palette:hr({mode:"light"},n),spacing:s,shape:hr({},al,i)},a);return u.applyStyles=rs,u=t.reduce(((e,t)=>Ia(e,t)),u),u.unstable_sxConfig=hr({},es,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ts({sx:e,theme:this})},u}function is(e=null){const r=t.useContext(sa);return r&&(n=r,0!==Object.keys(n).length)?r:e;var n}const as=os();function ls(e=as){return is(e)}var ss={exports:{}},us={},cs=r,ds=Symbol.for("react.element"),ps=Symbol.for("react.fragment"),fs=Object.prototype.hasOwnProperty,ms=cs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,hs={key:!0,ref:!0,__self:!0,__source:!0};function gs(e,t,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)fs.call(t,n)&&!hs.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:ds,type:e,key:i,ref:a,props:o,_owner:ms.current}}us.Fragment=ps,us.jsx=gs,us.jsxs=gs,ss.exports=us;var bs=ss.exports;function vs({styles:e,themeId:t,defaultTheme:r={}}){const n=ls(r),o="function"==typeof e?e(t&&n[t]||n):e;return bs.jsx(xa,{styles:o})}const ys=["sx"];function xs(e){const{sx:t}=e,r=Er(e,ys),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:es;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return Ra(r)?hr({},n,r):n}:hr({},n,t),hr({},o,{sx:i})}const Ss=["className","component"];const Es=["ownerState"],Cs=["variants"],ws=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Rs(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Ls=os(),Is=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Ms({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Ds(e){return e?(t,r)=>r[e]:null}function As(e,t){let{ownerState:r}=t,n=Er(t,Es);const o="function"==typeof e?e(hr({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>As(e,hr({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=Er(o,Cs);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(hr({ownerState:r},n)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(hr({ownerState:r},n)):e.style))})),t}return o}function Ps(e){const{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?el(t.components[r].defaultProps,n):n}function ks(e,t=0,r=1){return function(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}(e,t,r)}function Os(e){if(e.type)return e;if("#"===e.charAt(0))return Os(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(_n(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(_n(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Ts(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function _s(e){let t="hsl"===(e=Os(e)).type||"hsla"===e.type?Os(function(e){e=Os(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Ts({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 qs(e,t){return e=Os(e),t=ks(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Ts(e)}function Ns(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 Fs(e){if(!Ns(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Fs(e[r])})),t}function js(e,t,r={clone:!0}){const n=r.clone?hr({},e):e;return Ns(e)&&Ns(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Ns(t[o])&&o in e&&Ns(e[o])?n[o]=js(e[o],t[o],r):r.clone?n[o]=Ns(t[o])?Fs(t[o]):t[o]:n[o]=t[o])})),n}function zs(e){if("string"!=typeof e)throw new Error(Pn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Gs(e){return e&&e.ownerDocument||document}function $s(e){return Gs(e).defaultView||window}const Bs="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;let Ws=0;const Hs=t["useId".toString()];function Vs(e){if(void 0!==Hs){return Hs()}return function(e){const[r,n]=t.useState(e),o=r;return t.useEffect((()=>{null==r&&(Ws+=1,n(`mui-${Ws}`))}),[r]),o}(e)}function Ys({controlled:e,default:r,name:n,state:o="value"}){const{current:i}=t.useRef(void 0!==e),[a,l]=t.useState(r);return[i?e:a,t.useCallback((e=>{i||l(e)}),[])]}function Us(e){const r=t.useRef(e);return Bs((()=>{r.current=e})),t.useRef(((...e)=>(0,r.current)(...e))).current}function Ks(...e){return t.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)}let Xs=!0,Js=!1;const Zs=new class e{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new e}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}},Qs={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 eu(e){e.metaKey||e.altKey||e.ctrlKey||(Xs=!0)}function tu(){Xs=!1}function ru(){"hidden"===this.visibilityState&&Js&&(Xs=!0)}function nu(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Xs||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Qs[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function ou(){const e=t.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",eu,!0),t.addEventListener("mousedown",tu,!0),t.addEventListener("pointerdown",tu,!0),t.addEventListener("touchstart",tu,!0),t.addEventListener("visibilitychange",ru,!0))}),[]),r=t.useRef(!1);return{isFocusVisibleRef:r,onFocus:function(e){return!!nu(e)&&(r.current=!0,!0)},onBlur:function(){return!!r.current&&(Js=!0,Zs.start(100,(()=>{Js=!1})),r.current=!1,!0)},ref:e}}function iu(e,t){const r=hr({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=hr({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=hr({},i),Object.keys(o).forEach((e=>{r[n][e]=iu(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const au=e=>e,lu=(()=>{let e=au;return{configure(t){e=t},generate:t=>e(t),reset(){e=au}}})(),su={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 uu(e,t,r="Mui"){const n=su[t];return n?`${r}-${n}`:`${lu.generate(e)}-${t}`}function cu(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=uu(e,t,r)})),n}const du=["mode","contrastThreshold","tonalOffset"],pu={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:Xr.white,default:Xr.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}},fu={text:{primary:Xr.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:Xr.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function mu(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=function(e,t){if(e=Os(e),t=ks(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Ts(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Os(e),t=ks(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Ts(e)}(e.main,i)))}function hu(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Tn(e,du),i=e.primary||function(e="light"){return"dark"===e?{main:cn,light:un,dark:dn}:{main:pn,light:dn,dark:fn}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:nn,light:rn,dark:an}:{main:ln,light:on,dark:sn}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Qr,light:Jr,dark:en}:{main:en,light:Zr,dark:tn}}(t),s=e.info||function(e="light"){return"dark"===e?{main:hn,light:mn,dark:bn}:{main:bn,light:gn,dark:vn}}(t),u=e.success||function(e="light"){return"dark"===e?{main:xn,light:yn,dark:En}:{main:Cn,light:Sn,dark:wn}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Ln,light:Rn,dark:Mn}:{main:"#ed6c02",light:In,dark:Dn}}(t);function d(e){const t=function(e,t){const r=_s(e),n=_s(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,fu.text.primary)>=r?fu.text.primary:pu.text.primary;return t}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=On({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Pn(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Pn(12,t?` (${t})`:"",JSON.stringify(e.main)));return mu(e,"light",o,n),mu(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:fu,light:pu};return js(On({common:On({},Xr),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:An,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const gu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const bu={textTransform:"uppercase"},vu='"Roboto", "Helvetica", "Arial", sans-serif';function yu(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=vu,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Tn(r,gu),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return On({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===vu?{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,bu),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,bu),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return js(On({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function xu(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Su=["none",xu(0,2,1,-1,0,1,1,0,0,1,3,0),xu(0,3,1,-2,0,2,2,0,0,1,5,0),xu(0,3,3,-2,0,3,4,0,0,1,8,0),xu(0,2,4,-1,0,4,5,0,0,1,10,0),xu(0,3,5,-1,0,5,8,0,0,1,14,0),xu(0,3,5,-1,0,6,10,0,0,1,18,0),xu(0,4,5,-2,0,7,10,1,0,2,16,1),xu(0,5,5,-3,0,8,10,1,0,3,14,2),xu(0,5,6,-3,0,9,12,1,0,3,16,2),xu(0,6,6,-3,0,10,14,1,0,4,18,3),xu(0,6,7,-4,0,11,15,1,0,4,20,3),xu(0,7,8,-4,0,12,17,2,0,5,22,4),xu(0,7,8,-4,0,13,19,2,0,5,24,4),xu(0,7,9,-4,0,14,21,2,0,5,26,4),xu(0,8,9,-5,0,15,22,2,0,6,28,5),xu(0,8,10,-5,0,16,24,2,0,6,30,5),xu(0,8,11,-5,0,17,26,2,0,6,32,5),xu(0,9,11,-5,0,18,28,2,0,7,34,6),xu(0,9,12,-6,0,19,29,2,0,7,36,6),xu(0,10,13,-6,0,20,31,3,0,8,38,7),xu(0,10,13,-6,0,21,33,3,0,8,40,7),xu(0,10,14,-6,0,22,35,3,0,8,42,7),xu(0,11,14,-7,0,23,36,3,0,9,44,8),xu(0,11,15,-7,0,24,38,3,0,9,46,8)],Eu=["duration","easing","delay"],Cu={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)"},wu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ru(e){return`${Math.round(e)}ms`}function Lu(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Iu(e){const t=On({},Cu,e.easing),r=On({},wu,e.duration);return On({getAutoHeightDuration:Lu,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Tn(n,Eu),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Ru(o)} ${i} ${"string"==typeof a?a:Ru(a)}`)).join(",")}},e,{easing:t,duration:r})}const Mu={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Du=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Au(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Tn(e,Du);if(e.vars)throw new Error(Pn(18));const l=hu(n),s=os(e);let u=js(s,{mixins:(c=s.breakpoints,d=r,On({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Su.slice(),typography:yu(l,i),transitions:Iu(o),zIndex:On({},Mu),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=js(u,a),u=t.reduce(((e,t)=>js(e,t)),u),u.unstable_sxConfig=On({},es,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ts({sx:e,theme:this})},u}const Pu=Au();function ku(){const e=ls(Pu);return e[kn]||e}function Ou({props:e,name:t}){return function({props:e,name:t,defaultTheme:r,themeId:n}){let o=ls(r);return n&&(o=o[n]||o),Ps({theme:o,name:t,props:e})}({props:e,name:t,defaultTheme:Pu,themeId:kn})}const Tu=e=>Rs(e)&&"classes"!==e,_u=Rs,qu=function(e={}){const{themeId:t,defaultTheme:r=Ls,rootShouldForwardProp:n=Rs,slotShouldForwardProp:o=Rs}=e,i=e=>ts(hr({},e,{theme:Ms(hr({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{Ca(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Ds(Is(s))}=a,p=Er(a,ws),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=Rs;"Root"===s||"root"===s?h=n:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=Sa(e,hr({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||Ra(e)?n=>As(e,hr({},n,{theme:Ms({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&d&&s.push((e=>{const n=Ms(hr({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[l]||!n.components[l].styleOverrides)return null;const o=n.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=As(r,hr({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=Ms(hr({},e,{defaultTheme:r,themeId:t}));return As({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},hr({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:kn,defaultTheme:Pu,rootShouldForwardProp:Tu}),Nu=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Fu(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Fu(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ju(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Fu(e))&&(n&&(n+=" "),n+=t);return n}function zu(e){return uu("MuiSvgIcon",e)}cu("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Gu=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],$u=qu("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${zs(r.color)}`],t[`fontSize${zs(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,l,s,u,c,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),Bu=t.forwardRef((function(e,r){const n=Ou({props:e,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:l="svg",fontSize:s="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24"}=n,f=Tn(n,Gu),m=t.isValidElement(o)&&"svg"===o.type,h=On({},n,{color:a,component:l,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:m}),g={};c||(g.viewBox=p);const b=(e=>{const{color:t,fontSize:r,classes:n}=e;return tl({root:["root","inherit"!==t&&`color${zs(t)}`,`fontSize${zs(r)}`]},zu,n)})(h);return bs.jsxs($u,On({as:l,className:ju(b.root,i),focusable:"false",color:u,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:r},g,f,m&&o.props,{ownerState:h,children:[m?o.props.children:o,d?bs.jsx("title",{children:d}):null]}))}));Bu.muiName="SvgIcon";var Wu,Hu={},Vu=Symbol.for("react.element"),Yu=Symbol.for("react.portal"),Uu=Symbol.for("react.fragment"),Ku=Symbol.for("react.strict_mode"),Xu=Symbol.for("react.profiler"),Ju=Symbol.for("react.provider"),Zu=Symbol.for("react.context"),Qu=Symbol.for("react.server_context"),ec=Symbol.for("react.forward_ref"),tc=Symbol.for("react.suspense"),rc=Symbol.for("react.suspense_list"),nc=Symbol.for("react.memo"),oc=Symbol.for("react.lazy"),ic=Symbol.for("react.offscreen");
18
18
  /**
19
19
  * @license React
20
20
  * react-is.production.min.js
@@ -23,7 +23,7 @@ function Xi(e,t){let r;return r=t?Wi(e).withConfig({displayName:t.label,shouldFo
23
23
  *
24
24
  * This source code is licensed under the MIT license found in the
25
25
  * LICENSE file in the root directory of this source tree.
26
- */function Fu(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case wu:switch(e=e.type){case Lu:case Au:case Iu:case Ou:case Tu:return e;default:switch(e=e&&e.$$typeof){case Pu:case Du:case ku:case qu:case _u:case Mu:return e;default:return t}}case Ru:return t}}}Eu=Symbol.for("react.module.reference"),Cu.ContextConsumer=Du,Cu.ContextProvider=Mu,Cu.Element=wu,Cu.ForwardRef=ku,Cu.Fragment=Lu,Cu.Lazy=qu,Cu.Memo=_u,Cu.Portal=Ru,Cu.Profiler=Au,Cu.StrictMode=Iu,Cu.Suspense=Ou,Cu.SuspenseList=Tu,Cu.isAsyncMode=function(){return!1},Cu.isConcurrentMode=function(){return!1},Cu.isContextConsumer=function(e){return Fu(e)===Du},Cu.isContextProvider=function(e){return Fu(e)===Mu},Cu.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===wu},Cu.isForwardRef=function(e){return Fu(e)===ku},Cu.isFragment=function(e){return Fu(e)===Lu},Cu.isLazy=function(e){return Fu(e)===qu},Cu.isMemo=function(e){return Fu(e)===_u},Cu.isPortal=function(e){return Fu(e)===Ru},Cu.isProfiler=function(e){return Fu(e)===Au},Cu.isStrictMode=function(e){return Fu(e)===Iu},Cu.isSuspense=function(e){return Fu(e)===Ou},Cu.isSuspenseList=function(e){return Fu(e)===Tu},Cu.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Lu||e===Au||e===Iu||e===Ou||e===Tu||e===Nu||"object"==typeof e&&null!==e&&(e.$$typeof===qu||e.$$typeof===_u||e.$$typeof===Mu||e.$$typeof===Du||e.$$typeof===ku||e.$$typeof===Eu||void 0!==e.getModuleId)},Cu.typeOf=Fu;var ju=!1,zu=r.createContext(null),Gu="unmounted",$u="exited",Bu="entering",Wu="entered",Hu="exiting",Vu=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=$u,n.appearStatus=Bu):o=Wu:o=t.unmountOnExit||t.mountOnEnter?Gu:$u,n.state={status:o},n.nextCallback=null,n}wr(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Gu?{status:$u}: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 r=this.state.status;this.props.in?r!==Bu&&r!==Wu&&(t=Bu):r!==Bu&&r!==Wu||(t=Hu)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Bu){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:F.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===$u&&this.setState({status:Gu})},n.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[F.findDOMNode(this),n],i=o[0],a=o[1],l=this.getTimeouts(),s=n?l.appear:l.enter;!e&&!r||ju?this.safeSetState({status:Wu},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Bu},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Wu},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:F.findDOMNode(this);t&&!ju?(this.props.onExit(n),this.safeSetState({status:Hu},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:$u},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:$u},(function(){e.props.onExited(n)}))},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,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:F.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Gu)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 o=Er(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return r.createElement(zu.Provider,{value:null},"function"==typeof n?n(e,o):r.cloneElement(r.Children.only(n),o))},t}(r.Component);function Yu(){}Vu.contextType=zu,Vu.propTypes={},Vu.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Yu,onEntering:Yu,onEntered:Yu,onExit:Yu,onExiting:Yu,onExited:Yu},Vu.UNMOUNTED=Gu,Vu.EXITED=$u,Vu.ENTERING=Bu,Vu.ENTERED=Wu,Vu.EXITING=Hu;var Uu=Vu;function Ku(e,t){var r=Object.create(null);return e&&i.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&a(e)?t(e):e}(e)})),r}function Xu(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Ju(e,t,r){var n=Ku(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(n=0;n<o[s].length;n++){var u=o[s][n];l[o[s][n]]=r(u)}l[s]=r(s)}for(n=0;n<i.length;n++)l[i[n]]=r(i[n]);return l}(t,n);return Object.keys(o).forEach((function(i){var s=o[i];if(a(s)){var u=i in t,c=i in n,d=t[i],p=a(d)&&!d.props.in;!c||u&&!p?c||!u||p?c&&u&&a(d)&&(o[i]=l(s,{onExited:r.bind(null,s),in:d.props.in,exit:Xu(s,"exit",e),enter:Xu(s,"enter",e)})):o[i]=l(s,{in:!1}):o[i]=l(s,{onExited:r.bind(null,s),in:!0,exit:Xu(s,"exit",e),enter:Xu(s,"enter",e)})}})),o}var Zu=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Qu=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(Rr(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}wr(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,Ku(r.children,(function(e){return l(e,{onExited:n.bind(null,e),in:!0,appear:Xu(e,"appear",r),enter:Xu(e,"enter",r),exit:Xu(e,"exit",r)})}))):Ju(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var r=Ku(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=hr({},t.children);return delete r[e.key],{children:r}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=Er(e,["component","childFactory"]),i=this.state.contextValue,a=Zu(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?r.createElement(zu.Provider,{value:i},a):r.createElement(zu.Provider,{value:i},r.createElement(t,o,a))},t}(r.Component);Qu.propTypes={},Qu.defaultProps={component:"div",childFactory:function(e){return e}};var ec=Qu;const tc=e=>e.scrollTop;function rc(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function nc(e){return js("MuiPaper",e)}zs("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 oc=["className","component","elevation","square","variant"],ic=fu("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return ln({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&&ln({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${ps("#fff",mu(t.elevation))}, ${ps("#fff",mu(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}));var ac=t.forwardRef((function(e,t){const r=uu({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=sn(r,oc),u=ln({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Da({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},nc,o)})(u);return Yl.jsx(ic,ln({as:o,ownerState:u,className:gu(c.root,n),ref:t},s))}));function lc(e){return"string"==typeof e}function sc(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function uc(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}const cc=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function dc(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Er(e,cc),l=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=ka(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=hr({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=hr({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=sc(hr({},o,n)),l=uc(n),s=uc(o),u=t(a),c=ka(null==u?void 0:u.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),d=hr({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=hr({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(hr({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||lc(e)?t:hr({},t,{ownerState:hr({},t.ownerState,r)})}(r,hr({},s,{ref:Aa(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var pc=zs("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const fc=["center","classes","className"];let mc,hc,gc,bc,vc=e=>e;const yc=Vi(mc||(mc=vc`
26
+ */function ac(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Vu:switch(e=e.type){case Uu:case Xu:case Ku:case tc:case rc:return e;default:switch(e=e&&e.$$typeof){case Qu:case Zu:case ec:case oc:case nc:case Ju:return e;default:return t}}case Yu:return t}}}Wu=Symbol.for("react.module.reference"),Hu.ContextConsumer=Zu,Hu.ContextProvider=Ju,Hu.Element=Vu,Hu.ForwardRef=ec,Hu.Fragment=Uu,Hu.Lazy=oc,Hu.Memo=nc,Hu.Portal=Yu,Hu.Profiler=Xu,Hu.StrictMode=Ku,Hu.Suspense=tc,Hu.SuspenseList=rc,Hu.isAsyncMode=function(){return!1},Hu.isConcurrentMode=function(){return!1},Hu.isContextConsumer=function(e){return ac(e)===Zu},Hu.isContextProvider=function(e){return ac(e)===Ju},Hu.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Vu},Hu.isForwardRef=function(e){return ac(e)===ec},Hu.isFragment=function(e){return ac(e)===Uu},Hu.isLazy=function(e){return ac(e)===oc},Hu.isMemo=function(e){return ac(e)===nc},Hu.isPortal=function(e){return ac(e)===Yu},Hu.isProfiler=function(e){return ac(e)===Xu},Hu.isStrictMode=function(e){return ac(e)===Ku},Hu.isSuspense=function(e){return ac(e)===tc},Hu.isSuspenseList=function(e){return ac(e)===rc},Hu.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Uu||e===Xu||e===Ku||e===tc||e===rc||e===ic||"object"==typeof e&&null!==e&&(e.$$typeof===oc||e.$$typeof===nc||e.$$typeof===Ju||e.$$typeof===Zu||e.$$typeof===ec||e.$$typeof===Wu||void 0!==e.getModuleId)},Hu.typeOf=ac;var lc=!1,sc=r.createContext(null),uc="unmounted",cc="exited",dc="entering",pc="entered",fc="exiting",mc=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=cc,n.appearStatus=dc):o=pc:o=t.unmountOnExit||t.mountOnEnter?uc:cc,n.state={status:o},n.nextCallback=null,n}wr(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===uc?{status:cc}: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 r=this.state.status;this.props.in?r!==dc&&r!==pc&&(t=dc):r!==dc&&r!==pc||(t=fc)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===dc){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:F.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===cc&&this.setState({status:uc})},n.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[F.findDOMNode(this),n],i=o[0],a=o[1],l=this.getTimeouts(),s=n?l.appear:l.enter;!e&&!r||lc?this.safeSetState({status:pc},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:dc},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:pc},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:F.findDOMNode(this);t&&!lc?(this.props.onExit(n),this.safeSetState({status:fc},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:cc},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:cc},(function(){e.props.onExited(n)}))},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,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:F.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===uc)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 o=Er(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return r.createElement(sc.Provider,{value:null},"function"==typeof n?n(e,o):r.cloneElement(r.Children.only(n),o))},t}(r.Component);function hc(){}function gc(e,t){var r=Object.create(null);return e&&i.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&a(e)?t(e):e}(e)})),r}function bc(e,t,r){return null!=r[t]?r[t]:e.props[t]}function vc(e,t,r){var n=gc(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(n=0;n<o[s].length;n++){var u=o[s][n];l[o[s][n]]=r(u)}l[s]=r(s)}for(n=0;n<i.length;n++)l[i[n]]=r(i[n]);return l}(t,n);return Object.keys(o).forEach((function(i){var s=o[i];if(a(s)){var u=i in t,c=i in n,d=t[i],p=a(d)&&!d.props.in;!c||u&&!p?c||!u||p?c&&u&&a(d)&&(o[i]=l(s,{onExited:r.bind(null,s),in:d.props.in,exit:bc(s,"exit",e),enter:bc(s,"enter",e)})):o[i]=l(s,{in:!1}):o[i]=l(s,{onExited:r.bind(null,s),in:!0,exit:bc(s,"exit",e),enter:bc(s,"enter",e)})}})),o}mc.contextType=sc,mc.propTypes={},mc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:hc,onEntering:hc,onEntered:hc,onExit:hc,onExiting:hc,onExited:hc},mc.UNMOUNTED=uc,mc.EXITED=cc,mc.ENTERING=dc,mc.ENTERED=pc,mc.EXITING=fc;var yc=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},xc=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(Rr(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}wr(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,gc(r.children,(function(e){return l(e,{onExited:n.bind(null,e),in:!0,appear:bc(e,"appear",r),enter:bc(e,"enter",r),exit:bc(e,"exit",r)})}))):vc(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var r=gc(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=hr({},t.children);return delete r[e.key],{children:r}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=Er(e,["component","childFactory"]),i=this.state.contextValue,a=yc(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?r.createElement(sc.Provider,{value:i},a):r.createElement(sc.Provider,{value:i},r.createElement(t,o,a))},t}(r.Component);xc.propTypes={},xc.defaultProps={component:"div",childFactory:function(e){return e}};const Sc=e=>e.scrollTop;function Ec(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function Cc(e){return uu("MuiPaper",e)}cu("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const wc=["className","component","elevation","square","variant"],Rc=qu("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return On({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&&On({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${qs("#fff",Nu(t.elevation))}, ${qs("#fff",Nu(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),Lc=t.forwardRef((function(e,t){const r=Ou({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=Tn(r,wc),u=On({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return tl({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Cc,o)})(u);return bs.jsx(Rc,On({as:o,ownerState:u,className:ju(c.root,n),ref:t},s))}));function Ic(e){return"string"==typeof e}function Mc(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function Dc(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}const Ac=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Pc(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Er(e,Ac),l=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=nl(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=hr({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=hr({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Mc(hr({},o,n)),l=Dc(n),s=Dc(o),u=t(a),c=nl(null==u?void 0:u.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),d=hr({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=hr({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(hr({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||Ic(e)?t:hr({},t,{ownerState:hr({},t.ownerState,r)})}(r,hr({},s,{ref:Qa(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}const kc=cu("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Oc=["center","classes","className"];let Tc,_c,qc,Nc,Fc=e=>e;const jc=va(Tc||(Tc=Fc`
27
27
  0% {
28
28
  transform: scale(0);
29
29
  opacity: 0.1;
@@ -33,7 +33,7 @@ function Xi(e,t){let r;return r=t?Wi(e).withConfig({displayName:t.label,shouldFo
33
33
  transform: scale(1);
34
34
  opacity: 0.3;
35
35
  }
36
- `)),xc=Vi(hc||(hc=vc`
36
+ `)),zc=va(_c||(_c=Fc`
37
37
  0% {
38
38
  opacity: 1;
39
39
  }
@@ -41,7 +41,7 @@ function Xi(e,t){let r;return r=t?Wi(e).withConfig({displayName:t.label,shouldFo
41
41
  100% {
42
42
  opacity: 0;
43
43
  }
44
- `)),Sc=Vi(gc||(gc=vc`
44
+ `)),Gc=va(qc||(qc=Fc`
45
45
  0% {
46
46
  transform: scale(1);
47
47
  }
@@ -53,7 +53,7 @@ function Xi(e,t){let r;return r=t?Wi(e).withConfig({displayName:t.label,shouldFo
53
53
  100% {
54
54
  transform: scale(1);
55
55
  }
56
- `)),Ec=fu("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Cc=fu((function(e){const{className:r,classes:n,pulsate:o=!1,rippleX:i,rippleY:a,rippleSize:l,in:s,onExited:u,timeout:c}=e,[d,p]=t.useState(!1),f=gu(r,n.ripple,n.rippleVisible,o&&n.ripplePulsate),m={width:l,height:l,top:-l/2+a,left:-l/2+i},h=gu(n.child,d&&n.childLeaving,o&&n.childPulsate);return s||d||p(!0),t.useEffect((()=>{if(!s&&null!=u){const e=setTimeout(u,c);return()=>{clearTimeout(e)}}}),[u,s,c]),Yl.jsx("span",{className:f,style:m,children:Yl.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(bc||(bc=vc`
56
+ `)),$c=qu("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Bc=qu((function(e){const{className:r,classes:n,pulsate:o=!1,rippleX:i,rippleY:a,rippleSize:l,in:s,onExited:u,timeout:c}=e,[d,p]=t.useState(!1),f=ju(r,n.ripple,n.rippleVisible,o&&n.ripplePulsate),m={width:l,height:l,top:-l/2+a,left:-l/2+i},h=ju(n.child,d&&n.childLeaving,o&&n.childPulsate);return s||d||p(!0),t.useEffect((()=>{if(!s&&null!=u){const e=setTimeout(u,c);return()=>{clearTimeout(e)}}}),[u,s,c]),bs.jsx("span",{className:f,style:m,children:bs.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Nc||(Nc=Fc`
57
57
  opacity: 0;
58
58
  position: absolute;
59
59
 
@@ -96,9 +96,9 @@ function Xi(e,t){let r;return r=t?Wi(e).withConfig({displayName:t.label,shouldFo
96
96
  animation-iteration-count: infinite;
97
97
  animation-delay: 200ms;
98
98
  }
99
- `),pc.rippleVisible,yc,550,(({theme:e})=>e.transitions.easing.easeInOut),pc.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),pc.child,pc.childLeaving,xc,550,(({theme:e})=>e.transitions.easing.easeInOut),pc.childPulsate,Sc,(({theme:e})=>e.transitions.easing.easeInOut));var wc=t.forwardRef((function(e,r){const n=uu({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,l=sn(n,fc),[s,u]=t.useState([]),c=t.useRef(0),d=t.useRef(null);t.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[s]);const p=t.useRef(!1),f=t.useRef(0),m=t.useRef(null),h=t.useRef(null);t.useEffect((()=>()=>{f.current&&clearTimeout(f.current)}),[]);const g=t.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:a}=e;u((e=>[...e,Yl.jsx(Cc,{classes:{ripple:gu(i.ripple,pc.ripple),rippleVisible:gu(i.rippleVisible,pc.rippleVisible),ripplePulsate:gu(i.ripplePulsate,pc.ripplePulsate),child:gu(i.child,pc.child),childLeaving:gu(i.childLeaving,pc.childLeaving),childPulsate:gu(i.childPulsate,pc.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},c.current)])),c.current+=1,d.current=a}),[i]),b=t.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:n=!1,center:i=o||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const l=a?null:h.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:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)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===m.current&&(m.current=()=>{g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})},f.current=setTimeout((()=>{m.current&&(m.current(),m.current=null)}),80)):g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})}),[o,g]),v=t.useCallback((()=>{b({},{pulsate:!0})}),[b]),y=t.useCallback(((e,t)=>{if(clearTimeout(f.current),"touchend"===(null==e?void 0:e.type)&&m.current)return m.current(),m.current=null,void(f.current=setTimeout((()=>{y(e,t)})));m.current=null,u((e=>e.length>0?e.slice(1):e)),d.current=t}),[]);return t.useImperativeHandle(r,(()=>({pulsate:v,start:b,stop:y})),[v,b,y]),Yl.jsx(Ec,ln({className:gu(pc.root,i.root,a),ref:h},l,{children:Yl.jsx(ec,{component:null,exit:!0,children:s})}))}));function Rc(e){return js("MuiButtonBase",e)}var Lc=zs("MuiButtonBase",["root","disabled","focusVisible"]);const Ic=["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"],Ac=fu("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"},[`&.${Lc.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Mc=t.forwardRef((function(e,r){const n=uu({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:m,onClick:h,onContextMenu:g,onDragLeave:b,onFocus:v,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:I,tabIndex:A=0,TouchRippleProps:M,touchRippleRef:D,type:P}=n,k=sn(n,Ic),O=t.useRef(null),T=t.useRef(null),_=Rs(T,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=Ts(),[z,G]=t.useState(!1);u&&z&&G(!1),t.useImperativeHandle(o,(()=>({focusVisible:()=>{G(!0),O.current.focus()}})),[]);const[$,B]=t.useState(!1);t.useEffect((()=>{B(!0)}),[]);const W=$&&!c&&!u;function H(e,t,r=d){return ws((n=>{t&&t(n);return!r&&T.current&&T.current[e](n),!0}))}t.useEffect((()=>{z&&p&&!c&&$&&T.current.pulsate()}),[c,p,z,$]);const V=H("start",E),Y=H("stop",g),U=H("stop",b),K=H("stop",w),X=H("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=H("start",I),Z=H("stop",R),Q=H("stop",L),ee=H("stop",(e=>{F(e),!1===q.current&&G(!1),m&&m(e)}),!1),te=ws((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&(G(!0),y&&y(e)),v&&v(e)})),re=()=>{const e=O.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=t.useRef(!1),oe=ws((e=>{p&&!ne.current&&z&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!u&&(e.preventDefault(),h&&h(e))})),ie=ws((e=>{p&&" "===e.key&&T.current&&z&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(k.href||k.to)&&(ae=f);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=u):(k.href||k.to||(le.role="button"),u&&(le["aria-disabled"]=u));const se=Rs(r,j,O),ue=ln({},n,{centerRipple:i,component:s,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:A,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Da({root:["root",t&&"disabled",r&&"focusVisible"]},Rc,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Yl.jsxs(Ac,ln({as:ae,className:gu(ce.root,l),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:U,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:u?-1:A,type:P},le,k,{children:[a,W?Yl.jsx(wc,ln({ref:_,center:i},M)):null]}))}));var Dc=Mc;function Pc(e){return js("MuiTypography",e)}zs("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const kc=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Oc=fu("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${gs(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>ln({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}))),Tc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},_c={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},qc=t.forwardRef((function(e,t){const r=uu({props:e,name:"MuiTypography"}),n=(e=>_c[e]||e)(r.color),o=Xl(ln({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Tc}=o,f=sn(o,kc),m=ln({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||Tc[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Da({root:["root",i,"inherit"!==e.align&&`align${gs(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},Pc,a)})(m);return Yl.jsx(Oc,ln({as:h,ref:t,ownerState:m,className:gu(g.root,a)},f))}));var Nc=qc;const Fc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function jc(e){const t=[],r=[];return Array.from(e.querySelectorAll(Fc)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function zc(){return!0}function Gc(e){const{children:r,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:a=jc,isEnabled:l=zc,open:s}=e,u=t.useRef(!1),c=t.useRef(null),d=t.useRef(null),p=t.useRef(null),f=t.useRef(null),m=t.useRef(!1),h=t.useRef(null),g=Aa(r.ref,h),b=t.useRef(null);t.useEffect((()=>{s&&h.current&&(m.current=!n)}),[n,s]),t.useEffect((()=>{if(!s||!h.current)return;const e=Ca(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),m.current&&h.current.focus()),()=>{i||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[s]),t.useEffect((()=>{if(!s||!h.current)return;const e=Ca(h.current),t=t=>{b.current=t,!o&&l()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!l()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!m.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=a(h.current)),r.length>0){var n,i;const e=Boolean((null==(n=b.current)?void 0:n.shiftKey)&&"Tab"===(null==(i=b.current)?void 0:i.key)),t=r[0],o=r[r.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const n=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[n,o,i,l,s,a]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0};return Yl.jsxs(t.Fragment,{children:[Yl.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),t.cloneElement(r,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0,f.current=e.target;const t=r.props.onFocus;t&&t(e)}}),Yl.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const $c=t.forwardRef((function(e,r){const{children:n,container:o,disablePortal:i=!1}=e,[a,l]=t.useState(null),s=Aa(t.isValidElement(n)?n.ref:null,r);if(La((()=>{i||l(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,i]),La((()=>{if(a&&!i)return Ra(r,a),()=>{Ra(r,null)}}),[r,a,i]),i){if(t.isValidElement(n)){const e={ref:s};return t.cloneElement(n,e)}return Yl.jsx(t.Fragment,{children:n})}return Yl.jsx(t.Fragment,{children:a?j.createPortal(n,a):a})}));function Bc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Wc(e){return parseInt(wa(e).getComputedStyle(e).paddingRight,10)||0}function Hc(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&Bc(e,o)}))}function Vc(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function Yc(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Ca(e);return t.body===e?wa(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(Ca(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Wc(n)+e}px`;const t=Ca(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Wc(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Ca(n).body;else{const t=n.parentElement,r=wa(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const Uc=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&Bc(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Hc(t,e.mount,e.modalRef,n,!0);const o=Vc(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=Vc(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=Yc(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Vc(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Bc(e.modalRef,t),Hc(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Bc(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Kc(e){const{container:r,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:i=Uc,closeAfterTransition:a=!1,onTransitionEnter:l,onTransitionExited:s,children:u,onClose:c,open:d,rootRef:p}=e,f=t.useRef({}),m=t.useRef(null),h=t.useRef(null),g=Aa(h,p),[b,v]=t.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)},C=Ia((()=>{const e=function(e){return"function"==typeof e?e():e}(r)||Ca(m.current).body;i.add(S(),e),h.current&&E()})),w=t.useCallback((()=>i.isTopModal(S())),[i]),R=Ia((e=>{m.current=e,e&&(d&&w()?E():h.current&&Bc(h.current,x))})),L=t.useCallback((()=>{i.remove(S(),x)}),[x,i]);t.useEffect((()=>()=>{L()}),[L]),t.useEffect((()=>{d?C():y&&a||L()}),[d,L,y,a,C]);const I=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},A=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=sc(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=hr({},r,t);return hr({role:"presentation"},n,{onKeyDown:I(n),ref:g})},getBackdropProps:(e={})=>hr({"aria-hidden":!0},e,{onClick:A(e),open:d}),getTransitionProps:()=>({onEnter:Ea((()=>{v(!1),l&&l()}),null==u?void 0:u.props.onEnter),onExited:Ea((()=>{v(!0),s&&s(),a&&L()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:R,isTopModal:w,exited:b,hasTransition:y}}const Xc=["onChange","maxRows","minRows","style","value"];function Jc(e){return parseInt(e,10)||0}const Zc={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Qc(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const ed=t.forwardRef((function(e,r){const{onChange:n,maxRows:o,minRows:i=1,style:a,value:l}=e,s=Er(e,Xc),{current:u}=t.useRef(null!=l),c=t.useRef(null),d=Aa(r,c),p=t.useRef(null),f=t.useRef(0),[m,h]=t.useState({outerHeightStyle:0}),g=t.useCallback((()=>{const t=c.current,r=wa(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};const n=p.current;n.style.width=r.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=r.boxSizing,l=Jc(r.paddingBottom)+Jc(r.paddingTop),s=Jc(r.borderBottomWidth)+Jc(r.borderTopWidth),u=n.scrollHeight;n.value="x";const d=n.scrollHeight;let f=u;i&&(f=Math.max(Number(i)*d,f)),o&&(f=Math.min(Number(o)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-u)<=1}}),[o,i,e.placeholder]),b=(e,t)=>{const{outerHeightStyle:r,overflow:n}=t;return f.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(f.current+=1,{overflow:n,outerHeightStyle:r}):e},v=t.useCallback((()=>{const e=g();Qc(e)||h((t=>b(t,e)))}),[g]);La((()=>{const e=()=>{f.current=0,(()=>{const e=g();Qc(e)||j.flushSync((()=>{h((t=>b(t,e)))}))})()};const t=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}(e),r=c.current,n=wa(r);let o;return n.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(r)),()=>{t.clear(),cancelAnimationFrame(undefined),n.removeEventListener("resize",t),o&&o.disconnect()}}),[g]),La((()=>{v()})),t.useEffect((()=>{f.current=0}),[l]);return Yl.jsxs(t.Fragment,{children:[Yl.jsx("textarea",hr({value:l,onChange:e=>{f.current=0,u||v(),n&&n(e)},ref:d,rows:i,style:hr({height:m.outerHeightStyle,overflow:m.overflow?"hidden":void 0},a)},s)),Yl.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:hr({},Zc,a,{paddingTop:0,paddingBottom:0})})]})}));function td({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}var rd=t.createContext(void 0);function nd(){return t.useContext(rd)}function od(e){return Yl.jsx(Ul,ln({},e,{defaultTheme:lu,themeId:an}))}function id(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function ad(e,t=!1){return e&&(id(e.value)&&""!==e.value||t&&id(e.defaultValue)&&""!==e.defaultValue)}function ld(e){return js("MuiInputBase",e)}var sd=zs("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const ud=["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"],cd=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${gs(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},dd=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},pd=fu("div",{name:"MuiInputBase",slot:"Root",overridesResolver:cd})((({theme:e,ownerState:t})=>ln({},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",[`&.${sd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&ln({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),fd=fu("input",{name:"MuiInputBase",slot:"Input",overridesResolver:dd})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=ln({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return ln({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${sd.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},[`&.${sd.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"})})),md=Yl.jsx(od,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),hd=t.forwardRef((function(e,r){var n;const o=uu({props:e,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:l,className:s,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:m,fullWidth:h=!1,id:g,inputComponent:b="input",inputProps:v={},inputRef:y,maxRows:x,minRows:S,multiline:E=!1,name:C,onBlur:w,onChange:R,onClick:L,onFocus:I,onKeyDown:A,onKeyUp:M,placeholder:D,readOnly:P,renderSuffix:k,rows:O,slotProps:T={},slots:_={},startAdornment:q,type:N="text",value:F}=o,j=sn(o,ud),z=null!=v.value?v.value:F,{current:G}=t.useRef(null!=z),$=t.useRef(),B=t.useCallback((e=>{}),[]),W=Rs($,y,v.ref,B),[H,V]=t.useState(!1),Y=nd(),U=td({props:o,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=Y?Y.focused:H,t.useEffect((()=>{!Y&&p&&H&&(V(!1),w&&w())}),[Y,p,H,w]);const K=Y&&Y.onFilled,X=Y&&Y.onEmpty,J=t.useCallback((e=>{ad(e)?K&&K():X&&X()}),[K,X]);ys((()=>{G&&J({value:z})}),[z,J,G]);t.useEffect((()=>{J($.current)}),[]);let Z=b,Q=v;E&&"input"===Z&&(Q=ln(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:x,minRows:S},Q),Z=ed);t.useEffect((()=>{Y&&Y.setAdornedStart(Boolean(q))}),[Y,q]);const ee=ln({},o,{color:U.color||"primary",disabled:U.disabled,endAdornment:m,error:U.error,focused:U.focused,formControl:Y,fullWidth:h,hiddenLabel:U.hiddenLabel,multiline:E,size:U.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return Da({root:["root",`color${gs(r)}`,n&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${gs(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},ld,t)})(ee),re=_.root||u.Root||pd,ne=T.root||c.root||{},oe=_.input||u.Input||fd;return Q=ln({},Q,null!=(n=T.input)?n:c.input),Yl.jsxs(t.Fragment,{children:[!f&&md,Yl.jsxs(re,ln({},ne,!lc(re)&&{ownerState:ln({},ee,ne.ownerState)},{ref:r,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),L&&L(e)}},j,{className:gu(te.root,ne.className,s,P&&"MuiInputBase-readOnly"),children:[q,Yl.jsx(rd.Provider,{value:null,children:Yl.jsx(oe,ln({ownerState:ee,"aria-invalid":U.error,"aria-describedby":i,autoComplete:a,autoFocus:l,defaultValue:d,disabled:U.disabled,id:g,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:C,placeholder:D,readOnly:P,required:U.required,rows:O,value:z,onKeyDown:A,onKeyUp:M,type:N},Q,!lc(oe)&&{as:Z,ownerState:ln({},ee,Q.ownerState)},{ref:W,className:gu(te.input,Q.className,P&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),v.onBlur&&v.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!G){const t=e.target||$.current;if(null==t)throw new Error(on(1));J({value:t.value})}v.onChange&&v.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(I&&I(e),v.onFocus&&v.onFocus(e),Y&&Y.onFocus?Y.onFocus(e):V(!0))}}))}),m,k?k(ln({},U,{startAdornment:q})):null]}))]})}));var gd=hd;function bd(e){return js("MuiInput",e)}var vd=ln({},sd,zs("MuiInput",["root","underline","input"]));function yd(e){return js("MuiOutlinedInput",e)}var xd=ln({},sd,zs("MuiOutlinedInput",["root","notchedOutline","input"]));function Sd(e){return js("MuiFilledInput",e)}var Ed=ln({},sd,zs("MuiFilledInput",["root","underline","input"])),Cd=function(e,r){function n(t,n){return Yl.jsx(Su,ln({"data-testid":`${r}Icon`,ref:n},t,{children:e}))}return n.muiName=Su.muiName,t.memo(t.forwardRef(n))}(Yl.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const wd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Rd={entering:{opacity:1},entered:{opacity:1}},Ld=t.forwardRef((function(e,r){const n=su(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:s,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:m,onExiting:h,style:g,timeout:b=o,TransitionComponent:v=Uu}=e,y=sn(e,wd),x=t.useRef(null),S=Rs(x,l.ref,r),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=E(p),w=E(((e,t)=>{tc(e);const r=rc({style:g,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),R=E(d),L=E(h),I=E((e=>{const t=rc({style:g,timeout:b,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),A=E(m);return Yl.jsx(v,ln({appear:a,in:u,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:I,onExited:A,onExiting:L,addEndListener:e=>{i&&i(x.current,e)},timeout:b},y,{children:(e,r)=>t.cloneElement(l,ln({style:ln({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},Rd[e],g,l.props.style),ref:S},r))}))}));var Id=Ld;function Ad(e){return js("MuiBackdrop",e)}zs("MuiBackdrop",["root","invisible"]);const Md=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Dd=fu("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>ln({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"}))),Pd=t.forwardRef((function(e,t){var r,n,o;const i=uu({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=Id,transitionDuration:g}=i,b=sn(i,Md),v=ln({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Da({root:["root",r&&"invisible"]},Ad,t)})(v),x=null!=(r=f.root)?r:c.root;return Yl.jsx(h,ln({in:p,timeout:g},b,{children:Yl.jsx(Dd,ln({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:s,className:gu(y.root,l,null==x?void 0:x.className),ownerState:ln({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var kd=Pd;var Od=zs("MuiBox",["root"]);const Td=au(),_d=function(e={}){const{themeId:r,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:i}=e,a=Xi("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Pl);return t.forwardRef((function(e,t){const l=Nl(n),s=Xl(e),{className:u,component:c="div"}=s,d=Er(s,Jl);return Yl.jsx(a,hr({as:c,ref:t,className:ka(u,i?i(o):o),theme:r&&l[r]||l},d))}))}({themeId:an,defaultTheme:Td,defaultClassName:Od.root,generateClassName:Ns.generate});var qd=_d;function Nd(e){return js("MuiButton",e)}var Fd=zs("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 jd=t.createContext({});var zd=t.createContext(void 0);const Gd=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],$d=e=>ln({},"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}}),Bd=fu(Dc,{shouldForwardProp:e=>cu(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${gs(r.color)}`],t[`size${gs(r.size)}`],t[`${r.variant}Size${gs(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return ln({},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":ln({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ps(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})`:ps(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})`:ps(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":ln({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Fd.focusVisible}`]:ln({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Fd.disabled}`]:ln({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 ${ps(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Fd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Fd.disabled}`]:{boxShadow:"none"}})),Wd=fu("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${gs(r.size)}`]]}})((({ownerState:e})=>ln({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},$d(e)))),Hd=fu("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${gs(r.size)}`]]}})((({ownerState:e})=>ln({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},$d(e)))),Vd=t.forwardRef((function(e,r){const n=t.useContext(jd),o=t.useContext(zd),i=uu({props:_s(n,e),name:"MuiButton"}),{children:a,color:l="primary",component:s="button",className:u,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:p=!1,endIcon:f,focusVisibleClassName:m,fullWidth:h=!1,size:g="medium",startIcon:b,type:v,variant:y="text"}=i,x=sn(i,Gd),S=ln({},i,{color:l,component:s,disabled:c,disableElevation:d,disableFocusRipple:p,fullWidth:h,size:g,type:v,variant:y}),E=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return ln({},a,Da({root:["root",i,`${i}${gs(t)}`,`size${gs(o)}`,`${i}Size${gs(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${gs(o)}`],endIcon:["endIcon",`iconSize${gs(o)}`]},Nd,a))})(S),C=b&&Yl.jsx(Wd,{className:E.startIcon,ownerState:S,children:b}),w=f&&Yl.jsx(Hd,{className:E.endIcon,ownerState:S,children:f}),R=o||"";return Yl.jsxs(Bd,ln({ownerState:S,className:gu(n.className,E.root,u,R),component:s,disabled:c,focusRipple:!p,focusVisibleClassName:gu(E.focusVisible,m),ref:r,type:v},x,{classes:E,children:[C,a,w]}))}));var Yd=Vd;function Ud(e){return js("MuiModal",e)}zs("MuiModal",["root","hidden","backdrop"]);const Kd=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Xd=fu("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>ln({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Jd=fu(kd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Zd=t.forwardRef((function(e,r){var n,o,i,a,l,s;const u=uu({name:"MuiModal",props:e}),{BackdropComponent:c=Jd,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:m,container:h,component:g,components:b={},componentsProps:v={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:I,open:A,slotProps:M,slots:D}=u,P=sn(u,Kd),k=ln({},u,{closeAfterTransition:f,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:O,getBackdropProps:T,getTransitionProps:_,portalRef:q,isTopModal:N,exited:F,hasTransition:j}=Kc(ln({},k,{rootRef:r})),z=ln({},k,{exited:F}),G=(e=>{const{open:t,exited:r,classes:n}=e;return Da({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Ud,n)})(z),$={};if(void 0===m.props.tabIndex&&($.tabIndex="-1"),j){const{onEnter:e,onExited:t}=_();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(o=null==D?void 0:D.root)?o:b.Root)?n:Xd,W=null!=(i=null!=(a=null==D?void 0:D.backdrop)?a:b.Backdrop)?i:c,H=null!=(l=null==M?void 0:M.root)?l:v.root,V=null!=(s=null==M?void 0:M.backdrop)?s:v.backdrop,Y=dc({elementType:B,externalSlotProps:H,externalForwardedProps:P,getSlotProps:O,additionalProps:{ref:r,as:g},ownerState:z,className:gu(p,null==H?void 0:H.className,null==G?void 0:G.root,!z.open&&z.exited&&(null==G?void 0:G.hidden))}),U=dc({elementType:W,externalSlotProps:V,additionalProps:d,getSlotProps:e=>T(ln({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:gu(null==V?void 0:V.className,null==d?void 0:d.className,null==G?void 0:G.backdrop),ownerState:z});return L||A||j&&!F?Yl.jsx($c,{ref:q,container:h,disablePortal:E,children:Yl.jsxs(B,ln({},Y,{children:[!R&&c?Yl.jsx(W,ln({},U)):null,Yl.jsx(Gc,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:N,open:A,children:t.cloneElement(m,$)})]}))}):null}));var Qd=Zd;function ep(e){return js("MuiDivider",e)}var tp=zs("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const rp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],np=fu("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>ln({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)`:ps(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})=>ln({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>ln({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>ln({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>ln({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),op=fu("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>ln({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),ip=t.forwardRef((function(e,t){const r=uu({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=sn(r,rp),m=ln({},r,{absolute:n,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return Da({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},ep,n)})(m);return Yl.jsx(np,ln({as:a,className:gu(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Yl.jsx(op,{className:h.wrapper,ownerState:m,children:o}):null}))}));ip.muiSkipListHighlight=!0;var ap=ip;const lp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],sp=fu(pd,{shouldForwardProp:e=>cu(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...cd(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return ln({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}},[`&.${Ed.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Ed.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ed.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ed.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(.${Ed.disabled}, .${Ed.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ed.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&ln({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}))})),up=fu(fd,{name:"MuiFilledInput",slot:"Input",overridesResolver:dd})((({theme:e,ownerState:t})=>ln({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}))),cp=t.forwardRef((function(e,t){var r,n,o,i;const a=uu({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=sn(a,lp),g=ln({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:r}=e;return ln({},t,Da({root:["root",!r&&"underline"],input:["input"]},Sd,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?hs(v,null!=p?p:s):v,x=null!=(r=null!=(n=f.root)?n:l.Root)?r:sp,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:up;return Yl.jsx(gd,ln({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));cp.muiName="Input";var dp=cp;const pp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function fp(e){return`scale(${e}, ${e**2})`}const mp={entering:{opacity:1,transform:fp(1)},entered:{opacity:1,transform:"none"}},hp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),gp=t.forwardRef((function(e,r){const{addEndListener:n,appear:o=!0,children:i,easing:a,in:l,onEnter:s,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:m,timeout:h="auto",TransitionComponent:g=Uu}=e,b=sn(e,pp),v=t.useRef(),y=t.useRef(),x=su(),S=t.useRef(null),E=Rs(S,i.ref,r),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},w=C(c),R=C(((e,t)=>{tc(e);const{duration:r,delay:n,easing:o}=rc({style:m,timeout:h,easing:a},{mode:"enter"});let i;"auto"===h?(i=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=i):i=r,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:n}),x.transitions.create("transform",{duration:hp?i:.666*i,delay:n,easing:o})].join(","),s&&s(e,t)})),L=C(u),I=C(f),A=C((e=>{const{duration:t,delay:r,easing:n}=rc({style:m,timeout:h,easing:a},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:hp?o:.666*o,delay:hp?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=fp(.75),d&&d(e)})),M=C(p);return t.useEffect((()=>()=>{clearTimeout(v.current)}),[]),Yl.jsx(g,ln({appear:o,in:l,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:A,onExited:M,onExiting:I,addEndListener:e=>{"auto"===h&&(v.current=setTimeout(e,y.current||0)),n&&n(S.current,e)},timeout:"auto"===h?null:h},b,{children:(e,r)=>t.cloneElement(i,ln({style:ln({opacity:0,transform:fp(.75),visibility:"exited"!==e||l?void 0:"hidden"},mp[e],m,i.props.style),ref:E},r))}))}));gp.muiSupportAuto=!0;var bp=gp;const vp=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],yp=fu(pd,{shouldForwardProp:e=>cu(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...cd(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),ln({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"},[`&.${vd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${vd.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${vd.disabled}, .${vd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${vd.disabled}:before`]:{borderBottomStyle:"dotted"}})})),xp=fu(fd,{name:"MuiInput",slot:"Input",overridesResolver:dd})({}),Sp=t.forwardRef((function(e,t){var r,n,o,i;const a=uu({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=sn(a,vp),b=(e=>{const{classes:t,disableUnderline:r}=e;return ln({},t,Da({root:["root",!r&&"underline"],input:["input"]},bd,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?hs(null!=f?f:u,v):v,x=null!=(r=null!=(n=m.root)?n:s.Root)?r:yp,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:xp;return Yl.jsx(gd,ln({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));Sp.muiName="Input";var Ep=Sp;function Cp(e){return js("MuiLink",e)}var wp=zs("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const Rp={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var Lp=({theme:e,ownerState:t})=>{const r=(e=>Rp[e]||e)(t.color),n=za(e,`palette.${r}`,!1)||t.color,o=za(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:ps(n,.4)};const Ip=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Ap=fu(Nc,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${gs(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>ln({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&ln({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Lp({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"},[`&.${wp.focusVisible}`]:{outline:"auto"}}))),Mp=t.forwardRef((function(e,r){const n=uu({props:e,name:"MuiLink"}),{className:o,color:i="primary",component:a="a",onBlur:l,onFocus:s,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:p}=n,f=sn(n,Ip),{isFocusVisibleRef:m,onBlur:h,onFocus:g,ref:b}=Ts(),[v,y]=t.useState(!1),x=Rs(r,b),S=ln({},n,{color:i,component:a,focusVisible:v,underline:c,variant:d}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return Da({root:["root",`underline${gs(o)}`,"button"===r&&"button",n&&"focusVisible"]},Cp,t)})(S);return Yl.jsx(Ap,ln({color:i,className:gu(E.root,o),classes:u,component:a,onBlur:e=>{h(e),!1===m.current&&y(!1),l&&l(e)},onFocus:e=>{g(e),!0===m.current&&y(!0),s&&s(e)},ref:x,ownerState:S,variant:d,sx:[...Object.keys(Rp).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},f))}));var Dp=Mp;var Pp=t.createContext({});function kp(e){return js("MuiList",e)}zs("MuiList",["root","padding","dense","subheader"]);const Op=["children","className","component","dense","disablePadding","subheader"],Tp=fu("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>ln({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var _p=t.forwardRef((function(e,r){const n=uu({props:e,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:l=!1,disablePadding:s=!1,subheader:u}=n,c=sn(n,Op),d=t.useMemo((()=>({dense:l})),[l]),p=ln({},n,{component:a,dense:l,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Da({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},kp,t)})(p);return Yl.jsx(Pp.Provider,{value:d,children:Yl.jsxs(Tp,ln({as:a,className:gu(f.root,i),ref:r,ownerState:p},c,{children:[u,o]}))})}));function qp(e){return js("MuiListItemIcon",e)}var Np=zs("MuiListItemIcon",["root","alignItemsFlexStart"]);const Fp=["className"],jp=fu("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>ln({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var zp=t.forwardRef((function(e,r){const n=uu({props:e,name:"MuiListItemIcon"}),{className:o}=n,i=sn(n,Fp),a=ln({},n,{alignItems:t.useContext(Pp).alignItems}),l=(e=>{const{alignItems:t,classes:r}=e;return Da({root:["root","flex-start"===t&&"alignItemsFlexStart"]},qp,r)})(a);return Yl.jsx(jp,ln({className:gu(l.root,o),ownerState:a,ref:r},i))}));var Gp=zs("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const $p=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Bp(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Wp(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Hp(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Vp(e,t,r,n,o,i){let a=!1,l=o(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Hp(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}var Yp=t.forwardRef((function(e,r){const{actions:n,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:s=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,p=sn(e,$p),f=t.useRef(null),m=t.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ys((()=>{o&&f.current.focus()}),[o]),t.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const r=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&r){const r=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(bs(e))}px`;f.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}})),[]);const h=Rs(f,r);let g=-1;t.Children.forEach(a,((e,r)=>{t.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=r),g===r&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===r&&(g+=1,g>=a.length&&(g=-1))}));const b=t.Children.map(a,((e,r)=>{if(r===g){const r={};return i&&(r.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(r.tabIndex=0),t.cloneElement(e,r)}return e}));return Yl.jsx(_p,ln({role:"menu",ref:h,className:l,onKeyDown:e=>{const t=f.current,r=e.key,n=bs(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Vp(t,n,u,s,Bp);else if("ArrowUp"===r)e.preventDefault(),Vp(t,n,u,s,Wp);else if("Home"===r)e.preventDefault(),Vp(t,null,u,s,Bp);else if("End"===r)e.preventDefault(),Vp(t,null,u,s,Wp);else if(1===r.length){const o=m.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=n&&!o.repeating&&Hp(n,o);o.previousKeyMatched&&(l||Vp(t,n,!1,s,Bp,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:o?0:-1},p,{children:b}))}));function Up(e){return js("MuiPopover",e)}zs("MuiPopover",["root","paper"]);const Kp=["onEntering"],Xp=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Jp=["slotProps"];function Zp(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Qp(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function ef(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function tf(e){return"function"==typeof e?e():e}const rf=fu(Qd,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nf=fu(ac,{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 of=t.forwardRef((function(e,r){var n,o,i;const a=uu({props:e,name:"MuiPopover"}),{action:l,anchorEl:s,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:f,container:m,elevation:h=8,marginThreshold:g=16,open:b,PaperProps:v={},slots:y,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=bp,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=a,L=sn(a.TransitionProps,Kp),I=sn(a,Xp),A=null!=(n=null==x?void 0:x.paper)?n:v,M=t.useRef(),D=Rs(M,A.ref),P=ln({},a,{anchorOrigin:u,anchorReference:d,elevation:h,marginThreshold:g,externalPaperSlotProps:A,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),k=(e=>{const{classes:t}=e;return Da({root:["root"],paper:["paper"]},Up,t)})(P),O=t.useCallback((()=>{if("anchorPosition"===d)return c;const e=tf(s),t=(e&&1===e.nodeType?e:bs(M.current).body).getBoundingClientRect();return{top:t.top+Zp(t,u.vertical),left:t.left+Qp(t,u.horizontal)}}),[s,u.horizontal,u.vertical,c,d]),T=t.useCallback((e=>({vertical:Zp(e,S.vertical),horizontal:Qp(e,S.horizontal)})),[S.horizontal,S.vertical]),_=t.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=T(t);if("none"===d)return{top:null,left:null,transformOrigin:ef(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=vs(tf(s)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,r.vertical+=e}else if(null!==g&&a>c){const e=a-c;o-=e,r.vertical+=e}if(null!==g&&i<g){const e=i-g;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:ef(r)}}),[s,d,O,T,g]),[q,N]=t.useState(b),F=t.useCallback((()=>{const e=M.current;if(!e)return;const t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[_]);t.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[s,R,F]);t.useEffect((()=>{b&&F()})),t.useImperativeHandle(l,(()=>b?{updatePosition:()=>{F()}}:null),[b,F]),t.useEffect((()=>{if(!b)return;const e=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}((()=>{F()})),t=vs(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,b,F]);let j=C;"auto"!==C||E.muiSupportAuto||(j=void 0);const z=m||(s?bs(tf(s)).body:void 0),G=null!=(o=null==y?void 0:y.root)?o:rf,$=null!=(i=null==y?void 0:y.paper)?i:nf,B=dc({elementType:$,externalSlotProps:ln({},A,{style:q?A.style:ln({},A.style,{opacity:0})}),additionalProps:{elevation:h,ref:D},ownerState:P,className:gu(k.paper,null==A?void 0:A.className)}),W=dc({elementType:G,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:I,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:z,open:b},ownerState:P,className:gu(k.root,f)}),{slotProps:H}=W,V=sn(W,Jp);return Yl.jsx(G,ln({},V,!lc(G)&&{slotProps:H,disableScrollLock:R},{children:Yl.jsx(E,ln({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:j},L,{children:Yl.jsx($,ln({},B,{children:p}))}))}))}));function af(e){return js("MuiMenu",e)}zs("MuiMenu",["root","paper","list"]);const lf=["onEntering"],sf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],uf={vertical:"top",horizontal:"right"},cf={vertical:"top",horizontal:"left"},df=fu(of,{shouldForwardProp:e=>cu(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pf=fu(nf,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ff=fu(Yp,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var mf=t.forwardRef((function(e,r){var n,o;const i=uu({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:s,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:f={},PopoverClasses:m,transitionDuration:h="auto",TransitionProps:{onEntering:g}={},variant:b="selectedMenu",slots:v={},slotProps:y={}}=i,x=sn(i.TransitionProps,lf),S=sn(i,sf),E=su(),C="rtl"===E.direction,w=ln({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:h,TransitionProps:x,variant:b}),R=(e=>{const{classes:t}=e;return Da({root:["root"],paper:["paper"],list:["list"]},af,t)})(w),L=a&&!u&&p,I=t.useRef(null);let A=-1;t.Children.map(l,((e,r)=>{t.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===A)&&(A=r))}));const M=null!=(n=v.paper)?n:pf,D=null!=(o=y.paper)?o:f,P=dc({elementType:v.root,externalSlotProps:y.root,ownerState:w,className:[R.root,s]}),k=dc({elementType:M,externalSlotProps:D,ownerState:w,className:R.paper});return Yl.jsx(df,ln({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?uf:cf,slots:{paper:M,root:v.root},slotProps:{root:P,paper:k},open:p,ref:r,transitionDuration:h,TransitionProps:ln({onEntering:(e,t)=>{I.current&&I.current.adjustStyleForScrollbar(e,E),g&&g(e,t)}},x),ownerState:w},S,{classes:m,children:Yl.jsx(ff,ln({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:I,autoFocus:a&&(-1===A||u),autoFocusItem:L,variant:b},c,{className:gu(R.list,c.className),children:l}))}))}));function hf(e){return js("MuiMenuItem",e)}var gf=zs("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const bf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],vf=fu(Dc,{shouldForwardProp:e=>cu(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>ln({},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"}},[`&.${gf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ps(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${gf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ps(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${gf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ps(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})`:ps(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${gf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${gf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${tp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${tp.inset}`]:{marginLeft:52},[`& .${Gp.root}`]:{marginTop:0,marginBottom:0},[`& .${Gp.inset}`]:{paddingLeft:36},[`& .${Np.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&ln({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Np.root} svg`]:{fontSize:"1.25rem"}}))));var yf=t.forwardRef((function(e,r){const n=uu({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:d,className:p}=n,f=sn(n,bf),m=t.useContext(Pp),h=t.useMemo((()=>({dense:a||m.dense||!1,disableGutters:s})),[m.dense,a,s]),g=t.useRef(null);ys((()=>{o&&g.current&&g.current.focus()}),[o]);const b=ln({},n,{dense:h.dense,divider:l,disableGutters:s}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return ln({},a,Da({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},hf,a))})(n),y=Rs(g,r);let x;return n.disabled||(x=void 0!==d?d:-1),Yl.jsx(Pp.Provider,{value:h,children:Yl.jsx(vf,ln({ref:y,role:c,tabIndex:x,component:i,focusVisibleClassName:gu(v.focusVisible,u),className:gu(v.root,p)},f,{ownerState:b,classes:v}))})}));function xf(e){return js("MuiNativeSelect",e)}var Sf=zs("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Ef=["className","disabled","error","IconComponent","inputRef","variant"],Cf=({ownerState:e,theme:t})=>ln({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":ln({},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"},[`&.${Sf.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}}),wf=fu("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:cu,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Sf.multiple}`]:t.multiple}]}})(Cf),Rf=({ownerState:e,theme:t})=>ln({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Sf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Lf=fu("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${gs(r.variant)}`],r.open&&t.iconOpen]}})(Rf),If=t.forwardRef((function(e,r){const{className:n,disabled:o,error:i,IconComponent:a,inputRef:l,variant:s="standard"}=e,u=sn(e,Ef),c=ln({},e,{disabled:o,variant:s,error:i}),d=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Da({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${gs(r)}`,i&&"iconOpen",n&&"disabled"]},xf,t)})(c);return Yl.jsxs(t.Fragment,{children:[Yl.jsx(wf,ln({ownerState:c,className:gu(d.select,n),disabled:o,ref:l||r},u)),e.multiple?null:Yl.jsx(Lf,{as:a,ownerState:c,className:d.icon})]})}));var Af,Mf=If;const Df=["children","classes","className","label","notched"],Pf=fu("fieldset",{shouldForwardProp:cu})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),kf=fu("legend",{shouldForwardProp:cu})((({ownerState:e,theme:t})=>ln({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&&ln({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 Of=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Tf=fu(pd,{shouldForwardProp:e=>cu(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:cd})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return ln({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${xd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${xd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${xd.focused} .${xd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${xd.error} .${xd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${xd.disabled} .${xd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&ln({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),_f=fu((function(e){const{className:t,label:r,notched:n}=e,o=sn(e,Df),i=null!=r&&""!==r,a=ln({},e,{notched:n,withLabel:i});return Yl.jsx(Pf,ln({"aria-hidden":!0,className:t,ownerState:a},o,{children:Yl.jsx(kf,{ownerState:a,children:i?Yl.jsx("span",{children:r}):Af||(Af=Yl.jsx("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),qf=fu(fd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:dd})((({theme:e,ownerState:t})=>ln({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}))),Nf=t.forwardRef((function(e,r){var n,o,i,a,l;const s=uu({props:e,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:f=!1,notched:m,slots:h={},type:g="text"}=s,b=sn(s,Of),v=(e=>{const{classes:t}=e;return ln({},t,Da({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},yd,t))})(s),y=nd(),x=td({props:s,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=ln({},s,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:y,fullWidth:c,hiddenLabel:x.hiddenLabel,multiline:f,size:x.size,type:g}),E=null!=(n=null!=(o=h.root)?o:u.Root)?n:Tf,C=null!=(i=null!=(a=h.input)?a:u.Input)?i:qf;return Yl.jsx(gd,ln({slots:{root:E,input:C},renderSuffix:e=>Yl.jsx(_f,{ownerState:S,className:v.notchedOutline,label:null!=p&&""!==p&&x.required?l||(l=Yl.jsxs(t.Fragment,{children:[p," ","*"]})):p,notched:void 0!==m?m:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:d,multiline:f,ref:r,type:g},b,{classes:ln({},v,{notchedOutline:null})}))}));Nf.muiName="Input";var Ff=Nf;function jf(e){return js("MuiSelect",e)}var zf,Gf=zs("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const $f=["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"],Bf=fu("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Gf.select}`]:t.select},{[`&.${Gf.select}`]:t[r.variant]},{[`&.${Gf.error}`]:t.error},{[`&.${Gf.multiple}`]:t.multiple}]}})(Cf,{[`&.${Gf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Wf=fu("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${gs(r.variant)}`],r.open&&t.iconOpen]}})(Rf),Hf=fu("input",{shouldForwardProp:e=>du(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 Vf(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Yf(e){return null==e||"string"==typeof e&&!e.trim()}const Uf=t.forwardRef((function(e,r){var n;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:l,children:s,className:u,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:f,error:m=!1,IconComponent:h,inputRef:g,labelId:b,MenuProps:v={},multiple:y,name:x,onBlur:S,onChange:E,onClose:C,onFocus:w,onOpen:R,open:L,readOnly:I,renderValue:A,SelectDisplayProps:M={},tabIndex:D,value:P,variant:k="standard"}=e,O=sn(e,$f),[T,_]=Cs({controlled:P,default:d,name:"Select"}),[q,N]=Cs({controlled:L,default:c,name:"Select"}),F=t.useRef(null),j=t.useRef(null),[z,G]=t.useState(null),{current:$}=t.useRef(null!=L),[B,W]=t.useState(),H=Rs(r,g),V=t.useCallback((e=>{j.current=e,e&&G(e)}),[]),Y=null==z?void 0:z.parentNode;t.useImperativeHandle(H,(()=>({focus:()=>{j.current.focus()},node:F.current,value:T})),[T]),t.useEffect((()=>{c&&q&&z&&!$&&(W(l?null:Y.clientWidth),j.current.focus())}),[z,l]),t.useEffect((()=>{a&&j.current.focus()}),[a]),t.useEffect((()=>{if(!b)return;const e=bs(j.current).getElementById(b);if(e){const t=()=>{getSelection().isCollapsed&&j.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[b]);const U=(e,t)=>{e?R&&R(t):C&&C(t),$||(W(l?null:Y.clientWidth),N(e))},K=t.Children.toArray(s),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(y){r=Array.isArray(T)?T.slice():[];const t=T.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),T!==r&&(_(r),E)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:x}}),E(o,e)}y||U(!1,t)}},J=null!==z&&q;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(ad({value:T})||f)&&(A?Z=A(T):te=!0);const re=K.map((e=>{if(!t.isValidElement(e))return null;let r;if(y){if(!Array.isArray(T))throw new Error(on(2));r=T.some((t=>Vf(t,e.props.value))),r&&te&&ee.push(e.props.children)}else r=Vf(T,e.props.value),r&&te&&(Q=e.props.children);return t.cloneElement(e,{"aria-selected":r?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:r,value:void 0,"data-value":e.props.value})}));te&&(Z=y?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Q);let ne,oe=B;!l&&$&&z&&(oe=Y.clientWidth),ne=void 0!==D?D:p?null:0;const ie=M.id||(x?`mui-component-select-${x}`:void 0),ae=ln({},e,{variant:k,value:T,open:J,error:m}),le=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Da({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${gs(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},jf,t)})(ae),se=ln({},v.PaperProps,null==(n=v.slotProps)?void 0:n.paper),ue=Es();return Yl.jsxs(t.Fragment,{children:[Yl.jsx(Bf,ln({ref:V,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":p?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[b,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:e=>{if(!I){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:p||I?null:e=>{0===e.button&&(e.preventDefault(),j.current.focus(),U(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:T,name:x}}),S(e))},onFocus:w},M,{ownerState:ae,className:gu(M.className,le.select,u),id:ie,children:Yf(Z)?zf||(zf=Yl.jsx("span",{className:"notranslate",children:"​"})):Z})),Yl.jsx(Hf,ln({"aria-invalid":m,value:Array.isArray(T)?T.join(","):T,name:x,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(_(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:p,className:le.nativeInput,autoFocus:a,ownerState:ae},O)),Yl.jsx(Wf,{as:h,className:le.icon,ownerState:ae}),Yl.jsx(mf,ln({id:`menu-${x||""}`,anchorEl:Y,open:J,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:ln({"aria-labelledby":b,role:"listbox","aria-multiselectable":y?"true":void 0,disableListWrap:!0,id:ue},v.MenuListProps),slotProps:ln({},v.slotProps,{paper:ln({},se,{style:ln({minWidth:oe},null!=se?se.style:null)})}),children:re}))]})}));var Kf=Uf;const Xf=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Jf=["root"],Zf={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>cu(e)&&"variant"!==e,slot:"Root"},Qf=fu(Ep,Zf)(""),em=fu(Ff,Zf)(""),tm=fu(dp,Zf)(""),rm=t.forwardRef((function(e,r){const n=uu({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:i,classes:a={},className:l,defaultOpen:s=!1,displayEmpty:u=!1,IconComponent:c=Cd,id:d,input:p,inputProps:f,label:m,labelId:h,MenuProps:g,multiple:b=!1,native:v=!1,onClose:y,onOpen:x,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=n,R=sn(n,Xf),L=v?Mf:Kf,I=td({props:n,muiFormControl:nd(),states:["variant","error"]}),A=I.variant||w,M=ln({},n,{variant:A,classes:a}),D=(e=>{const{classes:t}=e;return t})(M),P=sn(D,Jf),k=p||{standard:Yl.jsx(Qf,{ownerState:M}),outlined:Yl.jsx(em,{label:m,ownerState:M}),filled:Yl.jsx(tm,{ownerState:M})}[A],O=Rs(r,k.ref);return Yl.jsx(t.Fragment,{children:t.cloneElement(k,ln({inputComponent:L,inputProps:ln({children:i,error:I.error,IconComponent:c,variant:A,type:void 0,multiple:b},v?{id:d}:{autoWidth:o,defaultOpen:s,displayEmpty:u,labelId:h,MenuProps:g,onClose:y,onOpen:x,open:S,renderValue:E,SelectDisplayProps:ln({id:d},C)},f,{classes:f?hs(P,f.classes):P},p?p.props.inputProps:{})},b&&v&&"outlined"===A?{notched:!0}:{},{ref:O,className:gu(k.props.className,l,D.root)},!p&&{variant:A},R))})}));rm.muiName="Select";var nm=rm,om=(e={})=>r.createElement(Wr,{...e},r.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},r.createElement("rect",{stroke:Ir.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const im={MuiAccordion:{styleOverrides:{root:{backgroundColor:Ir.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Ir.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:r.createElement(Gr,{"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 ${Ir.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Ir.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Ir.MISC_FOCUS_BORDER}`,borderRadius:kr,backgroundColor:Ir.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 ${Ir.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Ir.WHITE,color:Ir.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:kr},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Ir.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Ir.GREYSCALE_0_15,backgroundColor:Ir.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Ir.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Ir.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Ir.GREEN_PALE},"&:active":{backgroundColor:Ir.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Ir.GREEN_PALE,boxShadow:`0 0 0 3px ${ps(Ir.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Ir.BLUE_PALE},"&:active":{backgroundColor:Ir.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Ir.BLUE_PALE,boxShadow:`0 0 0 3px ${ps(Ir.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:kr,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Ir.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Ir.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Ir.GREYSCALE_0_15,backgroundColor:Ir.GREYSCALE_100_60,"&:active":{backgroundColor:Ir.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Ir.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Ir.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Ir.PURPLE,"&.Mui-focusVisible":{borderColor:Ir.PURPLE,boxShadow:`0 0 0 3px ${ps(Ir.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Ir.GREEN,"&.Mui-focusVisible":{borderColor:Ir.GREEN,boxShadow:`0 0 0 3px ${ps(Ir.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Ir.BLUE,"&.Mui-focusVisible":{borderColor:Ir.BLUE,boxShadow:`0 0 0 3px ${ps(Ir.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Ir.ORANGE,"&.Mui-focusVisible":{borderColor:Ir.ORANGE,boxShadow:`0 0 0 3px ${ps(Ir.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Ir.RED,"&.Mui-focusVisible":{borderColor:Ir.RED,boxShadow:`0 0 0 3px ${ps(Ir.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Ir.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Ir.PURPLE_PALE},"&:active":{backgroundColor:Ir.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Ir.PURPLE_PALE,boxShadow:`0 0 0 3px ${ps(Ir.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Ir.GREEN_PALE},"&:active":{backgroundColor:Ir.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Ir.GREEN_PALE,boxShadow:`0 0 0 3px ${ps(Ir.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Ir.BLUE_PALE},"&:active":{backgroundColor:Ir.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Ir.BLUE_PALE,boxShadow:`0 0 0 3px ${ps(Ir.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Ir.ORANGE_PALE},"&:active":{backgroundColor:Ir.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Ir.ORANGE_PALE,boxShadow:`0 0 0 3px ${ps(Ir.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Ir.RED_PALE},"&:active":{backgroundColor:Ir.RED_DARK},"&.Mui-focusVisible":{borderColor:Ir.RED_PALE,boxShadow:`0 0 0 3px ${ps(Ir.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:Ir.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Ir.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:kr,boxShadow:`inset 0 0 0 2px ${Ir.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:r.createElement(Br,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Ar,borderRadius:kr,color:Ir.TEXT_PRIMARY,backgroundColor:Ir.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Ir.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Ir.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Ir.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Ir.GREYSCALE_0_05,color:Ir.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Ir.GREEN,borderColor:Ir.GREEN},"&.MuiChip-outlinedInfo":{color:Ir.BLUE,borderColor:Ir.BLUE},"&.MuiChip-outlinedWarning":{color:Ir.ORANGE,borderColor:Ir.ORANGE},"&.MuiChip-outlinedError":{color:Ir.RED,borderColor:Ir.RED}},outlined:{border:`solid 1px ${Ir.GREYSCALE_0_15}`,backgroundColor:Ir.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:kr,boxShadow:"none",backgroundColor:Ir.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Ir.GREEN,borderColor:Ir.GREEN},outlinedSecondary:{color:Ir.BLUE,borderColor:Ir.BLUE},label:{fontFamily:Nr.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:r.createElement(Br,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:r.createElement(Gr,{"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:kr},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:kr,fontSize:Mr,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Ir.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Ir.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Ir.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Ir.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Ir.GREYSCALE_0_05}}},popupIndicator:{borderRadius:kr,border:`solid 1px ${Ir.GREYSCALE_0_15}`,color:Ir.GREYSCALE_0_60,marginRight:0,width:Pr,height:Pr},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Ir.GREYSCALE_0_15}`},clearIndicator:{borderRadius:kr,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Ir.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Mr}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Ar,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Ir.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Ir.GREYSCALE_25,fontSize:Ar,fontFamily:Nr.FONT_FAMILY,fontWeight:_r,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Ir.TEXT_PRIMARY},"&.Mui-error":{color:Ir.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Ir.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Tr,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Ir.TEXT_SECONDARY,content:"'(required)'",fontWeight:Tr,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Mr,lineHeight:"16px",backgroundColor:Ir.WHITE,borderRadius:kr,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ir.GREYSCALE_0_05}`,borderColor:Ir.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ir.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Ir.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Ir.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ir.RED}`,boxShadow:`0px 0px 0px 1px ${Ir.RED}, inset 0 2px 0 0 ${Ir.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ir.GREYSCALE_0_10}`,borderColor:Ir.GREYSCALE_0_10,backgroundColor:Ir.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Ir.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Ir.GREYSCALE_0_15,borderRadius:kr,boxShadow:`inset 0 2px 0 0 ${Ir.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>r.createElement(Gr,{...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:Ir.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Ir.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Ir.GREYSCALE_0_03},"&:active":{backgroundColor:Ir.GREYSCALE_0_10},"&:focus":{backgroundColor:Ir.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Ir.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Ir.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Ir.GREYSCALE_0_30,"&:hover":{backgroundColor:Ir.GREYSCALE_0_0,borderColor:Ir.GREYSCALE_0_15},"& ~svg":{color:Ir.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Ir.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:kr}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Ir.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Ir.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Ir.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Mr,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Ar,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Ar,fontWeight:_r,color:Ir.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:_r}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Ir.GREYSCALE_0_15}, 0px 0px 0px 1px ${Ir.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:r.createElement(Yr,null),checkedIcon:r.createElement(Ur,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Ir.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Ir.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Ir.GREEN_PALE,boxShadow:`0 0 0 3px ${ps(Ir.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Ir.BLUE_PALE,boxShadow:`0 0 0 3px ${ps(Ir.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Ir.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Ir.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:r.createElement(om,null),checkedIcon:r.createElement(Hr,null),indeterminateIcon:r.createElement(Vr,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:kr,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Ir.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Ir.GREYSCALE_0_55,color:Ir.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:Ir.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Ir.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Ir.GREYSCALE_0_55,"&:hover":{color:Ir.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:Ir.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Ir.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Mr,color:Ir.TEXT_PRIMARY,lineHeight:"16px",fontWeight:_r},secondary:{fontSize:Ar,color:Ir.GREYSCALE_45,fontWeight:Tr,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Mr,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Mr,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Ir.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Ar,borderBottom:`solid 1px ${Ir.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Mr,color:Ir.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Ir.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Ir.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Ir.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:Ir.RED}}},"&.Mui-focusVisible":{backgroundColor:Ir.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:Ir.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:Ir.GREEN,height:"24px","&.Mui-disabled":{color:Ir.GREYSCALE_0_15}},rail:{backgroundColor:Ir.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Ir.GREYSCALE_0_05}`,borderRadius:kr,boxShadow:`inset 0px 0px 0px 1px ${Ir.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Ir.GREYSCALE_0_05}`,borderRadius:kr},thumb:{height:"16px",width:"16px",borderRadius:kr,backgroundColor:Ir.WHITE,boxShadow:`0px 1px 2px 0px ${Ir.GREYSCALE_0_15}, 0px 0px 0px 1px ${Ir.GREYSCALE_0_05}`,"&:hover":{borderRadius:kr,boxShadow:`0 2px 4px 0 ${Ir.GREYSCALE_0_30}, 0 0 0 1px ${Ir.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Ir.GREYSCALE_0_15}, 0 0 0 1px ${Ir.GREYSCALE_0_06}, 0 0 0 2px ${Ir.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Ir.GREYSCALE_0_15}, 0 0 0 1px ${Ir.GREYSCALE_0_06}, 0 0 0 2px ${Ir.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Ir.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Ir.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Ir.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Ir.GREYSCALE_0_15},markLabel:{color:Ir.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Ir.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Ir.WHITE,color:Ir.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:Ir.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:Ir.GREEN_PALE,boxShadow:`0 0 0 3px ${ps(Ir.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Ir.BLUE_PALE,boxShadow:`0 0 0 3px ${ps(Ir.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Ir.GREYSCALE_0_15,borderRadius:kr},thumb:{height:"16px",width:"16px",borderRadius:kr,backgroundColor:Ir.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:Mr,fontWeight:_r,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Ir.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Ir.MISC_FOCUS_BORDER}`,backgroundColor:Ir.GREYSCALE_0_03,borderRadius:kr},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Ir.GREYSCALE_25,"&.Mui-selected":{color:Ir.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Mr,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:kr,"&:hover":{backgroundColor:`${Ir.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 ${Ir.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Ir.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:kr,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Ir.GREYSCALE_0_05},"&:hover":{backgroundColor:`${Ir.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Ir.GREYSCALE_85}`,borderRight:`1px solid ${Ir.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:_r,backgroundColor:Ir.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:Ir.GREYSCALE_98,borderBottom:`1px solid ${Ir.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Ir.GREYSCALE_85}`,borderTop:`1px solid ${Ir.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Ir.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Ir.GREYSCALE_0_05,"&:hover":{backgroundColor:Ir.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Ir.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>r.createElement(Kr,{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 ${Ir.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Mr,borderRadius:kr,padding:"7px 16px",border:`1px solid ${Ir.GREYSCALE_0_15}`,backgroundColor:Ir.GREYSCALE_100_60,color:Ir.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Ir.GREYSCALE_0_10,border:`1px solid ${Ir.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Ir.GREYSCALE_0_03,border:`1px solid ${Ir.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Ir.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Ir.MISC_FOCUS_BORDER}`,border:`1px solid ${Ir.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Ir.GREYSCALE_25,backgroundColor:Ir.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Ir.GREYSCALE_0_10,border:`1px solid ${Ir.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Ar,height:24,width:24,padding:7},sizeLarge:{fontSize:Dr,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Mr,borderRadius:kr}}},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:Ir.GREYSCALE_20},tooltip:{backgroundColor:Ir.GREYSCALE_20,fontSize:Ar,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var am=e=>im;const lm={mode:"light",primary:{ultraLight:Ir.GREEN_ULTRA_LIGHT,light:Ir.GREEN_PALE,main:Ir.GREEN,dark:Ir.GREEN_DARK,extraDark:Ir.GREEN_EXTRA_DARK,contrastText:Ir.WHITE},secondary:{ultraLight:Ir.BLUE_ULTRA_LIGHT,light:Ir.BLUE_PALE,main:Ir.BLUE,dark:Ir.BLUE_DARK,extraDark:Ir.BLUE_EXTRA_DARK,contrastText:Ir.WHITE},error:{ultraLight:Ir.RED_ULTRA_LIGHT,light:Ir.RED_PALE,main:Ir.RED,dark:Ir.RED_DARK,extraDark:Ir.RED_EXTRA_DARK,contrastText:Ir.WHITE},warning:{ultraLight:Ir.ORANGE_ULTRA_LIGHT,light:Ir.ORANGE_PALE,main:Ir.ORANGE,dark:Ir.ORANGE_DARK,extraDark:Ir.ORANGE_EXTRA_DARK,contrastText:Ir.WHITE},success:{ultraLight:Ir.GREEN_ULTRA_LIGHT,light:Ir.GREEN_PALE,main:Ir.GREEN,dark:Ir.GREEN_DARK,extraDark:Ir.GREEN_EXTRA_DARK,contrastText:Ir.WHITE},info:{ultraLight:Ir.BLUE_ULTRA_LIGHT,light:Ir.BLUE_PALE,main:Ir.BLUE,dark:Ir.BLUE_DARK,extraDark:Ir.BLUE_EXTRA_DARK,contrastText:Ir.WHITE},text:{primary:Ir.TEXT_PRIMARY,secondary:Ir.TEXT_SECONDARY,disabled:Ir.GREYSCALE_0_30},action:{hover:Ir.GREYSCALE_0_03,hoverOpacity:.03,selected:Ir.GREYSCALE_0_05,selectedOpacity:.05,focus:Ir.MISC_FOCUS_BORDER},amethyst:{ultraLight:Ir.WHITE,main:Ir.PURPLE,light:Ir.PURPLE_PALE,dark:Ir.PURPLE_DARK,extraDark:Ir.GREYSCALE_0_0,contrastText:Ir.WHITE},background:{paper:Ir.WHITE,default:Ir.GREYSCALE_95},divider:Ir.GREYSCALE_0_15},sm=e=>({components:am(),palette:lm,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:Mr,fontWeightLight:Or,fontWeightRegular:Tr,fontWeightMedium:_r,fontWeightBold:qr,htmlFontSize:Mr,fontFamily:Nr.FONT_FAMILY,button:{fontWeight:_r,fontSize:Mr,textTransform:"none"},body1:{fontSize:Dr,lineHeight:"24px"},body2:{fontSize:Mr,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Pr,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Dr,fontWeight:_r,lineHeight:"16px"},h6:{fontSize:Mr,fontWeight:_r,lineHeight:"16px"},caption:{color:Ir.TEXT_SECONDARY},subtitle1:{fontSize:Mr,color:Ir.TEXT_SECONDARY},subtitle2:{fontSize:Ar,color:Ir.TEXT_SECONDARY}},shape:{borderRadius:kr}}),um={...Lr,MISC_FOCUS_BORDER:Ir.MISC_FOCUS_BORDER},cm=sm().palette,dm={TEXT:cm.text.primary,DISABLED:cm.text.disabled,HOVER:cm.action.hover,WHITE:um.GREYSCALE_100,BORDER_LIGHT:um.GREYSCALE_90,BORDER_MEDIUM:um.GREYSCALE_85,BORDER_HEAVY:um.GREYSCALE_50,DARK_MODE_TEXT:um.GREYSCALE_95,DARK_MODE_BORDER:um.GREYSCALE_95,DARK_MODE_DISABLED:um.GREYSCALE_70,DARK_MODE_BACKGROUND:um.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:um.GREYSCALE_95,SELECTED:cm.primary.main};function pm(e){return"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function fm(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length&&pm(t[0]))return(t[0].r<<16)+(t[0].g<<8)+t[0].b;var n=0,o=0,i=0;if(1===t.length&&"string"==typeof t[0]){var a,l=t[0];(a=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(l))?(n=parseInt(a[1],10),o=parseInt(a[2],10),i=parseInt(a[3],10)):(a=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(l))?(n=parseInt(a[1],16),o=parseInt(a[2],16),i=parseInt(a[3],16)):(a=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(l))&&(n=parseInt(a[1]+a[1],16),o=parseInt(a[2]+a[2],16),i=parseInt(a[3]+a[3],16))}return(n<<16)+(o<<8)+i}function mm(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function gm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hm(Object(r),!0).forEach((function(t){mm(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var bm={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},vm="qcm-color";function ym(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o,i,a,l,s,u,c,d,p,f={type:vm,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},m=0,h=0,g=0,b=1;if((null===(e=r[0])||void 0===e?void 0:e.type)===vm){var v=r[0];m=v.r,h=v.g,g=v.b,b=v.a,f.invalid=r[0].invalid,f.spaces=gm({},r[0].spaces)}else if(r.length<3)if("string"==typeof r[0]){var y,x=r[0];if(y=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10);else if(y=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10),b=parseFloat(y[4]);else if(y=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))b=parseInt(y[1],10)/255,m=parseInt(y[2],10),h=parseInt(y[3],10),g=parseInt(y[4],10);else if(y=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(x))m=parseInt(y[1],16),h=parseInt(y[2],16),g=parseInt(y[3],16),b=1;else if(y=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(x))m=parseInt(y[1]+y[1],16),h=parseInt(y[2]+y[2],16),g=parseInt(y[3]+y[3],16),b=1;else if(y=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var S=[];switch(c=Math.floor(c)){case 0:S=[u,d,0];break;case 1:S=[d,u,0];break;case 2:S=[0,u,d];break;case 3:S=[0,d,u];break;case 4:S=[d,0,u];break;case 5:S=[u,0,d];break;default:S=[0,0,0]}p=l-.5*u,m=S[0]+p,h=S[1]+p,g=S[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(y=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),b=parseFloat(y[7]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var E=[];switch(c=Math.floor(c)){case 0:E=[u,d,0];break;case 1:E=[d,u,0];break;case 2:E=[0,u,d];break;case 3:E=[0,d,u];break;case 4:E=[d,0,u];break;case 5:E=[u,0,d];break;default:E=[0,0,0]}p=l-.5*u,m=E[0]+p,h=E[1]+p,g=E[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g)}else if(y=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),s=parseFloat(y[5]),c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)*(i=(i/=100)<0?0:i>1?1:i))*(1-Math.abs(c%2-1));var C=[];switch(c=Math.floor(c)){case 0:C=[u,d,0];break;case 1:C=[d,u,0];break;case 2:C=[0,u,d];break;case 3:C=[0,d,u];break;case 4:C=[d,0,u];break;case 5:C=[u,0,d];break;default:C=[0,0,0]}p=s-u,m=C[0]+p,h=C[1]+p,g=C[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(bm[x.toLowerCase()]){a=x.toLowerCase();var w=bm[a];m=w.r,h=w.g,g=w.b,b="number"==typeof bm[a].a?bm[a].a:1}else f.invalid=!0}else"number"==typeof r[0]&&r[0]>=0&&"argb"===r[1]?(b=(4278190080&r[0])>>>24,b/=255,m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):"number"==typeof r[0]&&r[0]>=0?(m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):f.invalid=!0;else r.length>=3&&r.length<=4?(m=r[0],h=r[1],g=r[2],b=arguments.length>=4?r[3]:1):f.invalid=!0;return Number.isNaN(+m+h+g+b)&&(f.invalid=!0),f.r=Math.floor(m),f.g=Math.floor(h),f.b=Math.floor(g),f.a=b,f.l=l,f}function xm(e){var t,r,n;if(pm(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat([t,r,n].join(""));var o="string"==typeof e?fm(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat(t).concat(r).concat(n)}function Sm(e){var t,r,n=0,o="string"==typeof e?ym(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=s;if(s===u)t=0,n=0;else{switch(t=0==(r=s-u)?0:r/c,s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function Em(e){if(pm(e))return"rgb(".concat([e.r,e.g,e.b].join(", "),")");var t="string"==typeof e?fm(e):e,r=(65280&t)>>8,n=255&t;return"rgb(".concat((16711680&t)>>16,", ").concat(r,", ").concat(n,")")}function Cm(e,t){return pm(e)?"rgba(".concat([e.r,e.g,e.b,void 0!==t?t:e.a].join(", "),")"):Cm(ym(e),t)}function wm(e){return pm(e)?1===e.a?Em(e):Cm(e):wm(ym(e))}var Rm=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function Lm(e){return.2126*Rm(e.r)+.7152*Rm(e.g)+.0722*Rm(e.b)}function Im(){var e=ym.apply(void 0,arguments),t={type:e.type,r:e.r,g:e.g,b:e.b,a:e.a,invalid:e.invalid,spaces:e.spaces},r=function(){return t.spaces.hsla||(t.spaces.hsla=function(e){var t,r,n=0,o="string"==typeof e?ym(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=o.a,u=Math.max(i,a,l),c=Math.min(i,a,l),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsla(".concat(360*n,", ").concat(100*t,", ").concat(100*d,", ").concat(s,")")}(t)),t.spaces.hsla},n=function(e){var t=r(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),o=parseFloat(n[1]),i=parseFloat(n[3]),a=parseFloat(n[7]),l=parseFloat(n[5]),s=Math.max(0,Math.min(l+e,100));return"hsla(".concat(o,", ").concat(i,", ").concat(s,", ").concat(a,")")};return{get type(){return t.type},isInvalid:function(){return t.invalid},get r(){return t.r},get g(){return t.g},get b(){return t.b},get a(){return t.a},getR:function(){return t.r},getG:function(){return t.g},getB:function(){return t.b},getAlpha:function(){return t.a},setAlpha:function(e){t.a=e,t.spaces={}},isEqualTo:function(e){var r=e.type===t.type?e:ym(e);return r.r===t.r&&r.g===t.g&&r.b===t.b&&r.a===t.a},isDark:function(){return function(){var e=ym.apply(void 0,arguments);return e.invalid||Lm(e)<.4}(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=Em(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=Cm(t)),t.spaces.rgba},getString:function(){return t.spaces.string||(t.spaces.string=wm(t)),t.spaces.string},getHex:function(){return t.spaces.hex||(t.spaces.hex=xm(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=function(e){var t,r,n=0,o="string"==typeof e?ym(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=(s+u)/2;if(s===u)t=0,n=0;else{switch(r=s-u,t=c>.5?r/(2-s-u):r/(s+u),s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsl(".concat(360*n,", ").concat(100*t,", ").concat(100*c,")")}(t)),t.spaces.hsl},getHSLA:r,getShiftedHSLA:n,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=function(e){var t=Sm(e),r=t.h,n=t.s,o=t.v;return"hsv(".concat(r,", ").concat(n,", ").concat(o,")")}(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=Sm(t)),t.spaces.hsvObject},blend:function(e,r){var n=Math.floor(t.r+(e.r-t.r)*r),o=Math.floor(t.g+(e.g-t.g)*r),i=Math.floor(t.b+(e.b-t.b)*r),a=Math.floor(t.a+(e.getAlpha()-t.a)*r);return"rgba(".concat([n,o,i,a].join(", "),")")},getBrightenedColor:function(){return Im(n(18*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))},getDarkenedColor:function(){return Im(n(18*-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))}}}function Am(e,t){if(e&&t){var r=Lm(e),n=Lm(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}}var Mm,Dm,Pm=["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"],km=["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 Om(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?km:Pm}var Tm=function(){if(Dm)return Mm;Dm=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return Mm=function e(){var t,r,n,s,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(s=l(t,r))&&(m&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(m,c,s)})):void 0!==s&&a(d,{name:r,newValue:s}));return d},Mm}();function _m(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function qm(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Nm(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Tm);var Fm=1/.7,jm="\\s*([+-]?\\d+)\\s*",zm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Gm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$m=/^#([0-9a-f]{3,8})$/,Bm=new RegExp(`^rgb\\(${jm},${jm},${jm}\\)$`),Wm=new RegExp(`^rgb\\(${Gm},${Gm},${Gm}\\)$`),Hm=new RegExp(`^rgba\\(${jm},${jm},${jm},${zm}\\)$`),Vm=new RegExp(`^rgba\\(${Gm},${Gm},${Gm},${zm}\\)$`),Ym=new RegExp(`^hsl\\(${zm},${Gm},${Gm}\\)$`),Um=new RegExp(`^hsla\\(${zm},${Gm},${Gm},${zm}\\)$`),Km={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 Xm(){return this.rgb().formatHex()}function Jm(){return this.rgb().formatRgb()}function Zm(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=$m.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Qm(t):3===r?new nh(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?eh(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?eh(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=Bm.exec(e))?new nh(t[1],t[2],t[3],1):(t=Wm.exec(e))?new nh(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Hm.exec(e))?eh(t[1],t[2],t[3],t[4]):(t=Vm.exec(e))?eh(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ym.exec(e))?uh(t[1],t[2]/100,t[3]/100,1):(t=Um.exec(e))?uh(t[1],t[2]/100,t[3]/100,t[4]):Km.hasOwnProperty(e)?Qm(Km[e]):"transparent"===e?new nh(NaN,NaN,NaN,0):null}function Qm(e){return new nh(e>>16&255,e>>8&255,255&e,1)}function eh(e,t,r,n){return n<=0&&(e=t=r=NaN),new nh(e,t,r,n)}function th(e){return e instanceof Nm||(e=Zm(e)),e?new nh((e=e.rgb()).r,e.g,e.b,e.opacity):new nh}function rh(e,t,r,n){return 1===arguments.length?th(e):new nh(e,t,r,null==n?1:n)}function nh(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function oh(){return`#${sh(this.r)}${sh(this.g)}${sh(this.b)}`}function ih(){const e=ah(this.opacity);return`${1===e?"rgb(":"rgba("}${lh(this.r)}, ${lh(this.g)}, ${lh(this.b)}${1===e?")":`, ${e})`}`}function ah(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function lh(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function sh(e){return((e=lh(e))<16?"0":"")+e.toString(16)}function uh(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new dh(e,t,r,n)}function ch(e){if(e instanceof dh)return new dh(e.h,e.s,e.l,e.opacity);if(e instanceof Nm||(e=Zm(e)),!e)return new dh;if(e instanceof dh)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new dh(a,l,s,e.opacity)}function dh(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function ph(e){return(e=(e||0)%360)<0?e+360:e}function fh(e){return Math.max(0,Math.min(1,e||0))}function mh(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}_m(Nm,Zm,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Xm,formatHex:Xm,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ch(this).formatHsl()},formatRgb:Jm,toString:Jm}),_m(nh,rh,qm(Nm,{brighter(e){return e=null==e?Fm:Math.pow(Fm,e),new nh(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new nh(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new nh(lh(this.r),lh(this.g),lh(this.b),ah(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:oh,formatHex:oh,formatHex8:function(){return`#${sh(this.r)}${sh(this.g)}${sh(this.b)}${sh(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ih,toString:ih})),_m(dh,(function(e,t,r,n){return 1===arguments.length?ch(e):new dh(e,t,r,null==n?1:n)}),qm(Nm,{brighter(e){return e=null==e?Fm:Math.pow(Fm,e),new dh(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new dh(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new nh(mh(e>=240?e-240:e+120,o,n),mh(e,o,n),mh(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new dh(ph(this.h),fh(this.s),fh(this.l),ah(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=ah(this.opacity);return`${1===e?"hsl(":"hsla("}${ph(this.h)}, ${100*fh(this.s)}%, ${100*fh(this.l)}%${1===e?")":`, ${e})`}`}}));const hh=Math.PI/180,gh=180/Math.PI,bh=4/29,vh=6/29,yh=3*vh*vh;function xh(e){if(e instanceof Sh)return new Sh(e.l,e.a,e.b,e.opacity);if(e instanceof Lh)return Ih(e);e instanceof nh||(e=th(e));var t,r,n=Rh(e.r),o=Rh(e.g),i=Rh(e.b),a=Eh((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=Eh((.4360747*n+.3850649*o+.1430804*i)/.96422),r=Eh((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Sh(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Sh(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Eh(e){return e>.008856451679035631?Math.pow(e,1/3):e/yh+bh}function Ch(e){return e>vh?e*e*e:yh*(e-bh)}function wh(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Rh(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Lh(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Ih(e){if(isNaN(e.h))return new Sh(e.l,0,0,e.opacity);var t=e.h*hh;return new Sh(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}_m(Sh,(function(e,t,r,n){return 1===arguments.length?xh(e):new Sh(e,t,r,null==n?1:n)}),qm(Nm,{brighter(e){return new Sh(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Sh(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new nh(wh(3.1338561*(t=.96422*Ch(t))-1.6168667*(e=1*Ch(e))-.4906146*(r=.82521*Ch(r))),wh(-.9787684*t+1.9161415*e+.033454*r),wh(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),_m(Lh,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Lh)return new Lh(e.h,e.c,e.l,e.opacity);if(e instanceof Sh||(e=xh(e)),0===e.a&&0===e.b)return new Lh(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*gh;return new Lh(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Lh(e,t,r,null==n?1:n)}),qm(Nm,{brighter(e){return new Lh(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Lh(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Ih(this).rgb()}}));var Ah=e=>()=>e;function Mh(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Ah(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?Mh:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):Ah(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=rh(e)).r,(t=rh(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Mh(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var Dh,Ph="center",kh="bottom";function Oh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},r=function(){var e={};return{get:function(t){return e[t]},set:function(t,r){return e[t]=r,r},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(n){var o=t(n);return r.has(o)?r.get(o):r.set(o,e(n))}}function Th(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function _h(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Nh)):void 0===t&&(t=qh);for(var r,n,o,i,a,l=new zh(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new zh(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(jh)}function qh(e){return e.children}function Nh(e){return Array.isArray(e)?e[1]:null}function Fh(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function jh(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function zh(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:Ph,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Ph,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:Ph,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Ph},{key:"DataRangeIncludingZero",alignment:kh},{key:"LimitedData",alignment:kh},{key:"NegativeOrZeroValues",alignment:kh}].reduce((function(e,t){return e[t.key]=t,e}),{}),zh.prototype=_h.prototype={constructor:zh,count:function(){return this.eachAfter(Th)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return _h(this).eachBefore(Fh)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},Dh=function(e){
99
+ `),kc.rippleVisible,jc,550,(({theme:e})=>e.transitions.easing.easeInOut),kc.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),kc.child,kc.childLeaving,zc,550,(({theme:e})=>e.transitions.easing.easeInOut),kc.childPulsate,Gc,(({theme:e})=>e.transitions.easing.easeInOut)),Wc=t.forwardRef((function(e,r){const n=Ou({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,l=Tn(n,Oc),[s,u]=t.useState([]),c=t.useRef(0),d=t.useRef(null);t.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[s]);const p=t.useRef(!1),f=t.useRef(0),m=t.useRef(null),h=t.useRef(null);t.useEffect((()=>()=>{f.current&&clearTimeout(f.current)}),[]);const g=t.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:a}=e;u((e=>[...e,bs.jsx(Bc,{classes:{ripple:ju(i.ripple,kc.ripple),rippleVisible:ju(i.rippleVisible,kc.rippleVisible),ripplePulsate:ju(i.ripplePulsate,kc.ripplePulsate),child:ju(i.child,kc.child),childLeaving:ju(i.childLeaving,kc.childLeaving),childPulsate:ju(i.childPulsate,kc.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},c.current)])),c.current+=1,d.current=a}),[i]),b=t.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:n=!1,center:i=o||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const l=a?null:h.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:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)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===m.current&&(m.current=()=>{g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})},f.current=setTimeout((()=>{m.current&&(m.current(),m.current=null)}),80)):g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})}),[o,g]),v=t.useCallback((()=>{b({},{pulsate:!0})}),[b]),y=t.useCallback(((e,t)=>{if(clearTimeout(f.current),"touchend"===(null==e?void 0:e.type)&&m.current)return m.current(),m.current=null,void(f.current=setTimeout((()=>{y(e,t)})));m.current=null,u((e=>e.length>0?e.slice(1):e)),d.current=t}),[]);return t.useImperativeHandle(r,(()=>({pulsate:v,start:b,stop:y})),[v,b,y]),bs.jsx($c,On({className:ju(kc.root,i.root,a),ref:h},l,{children:bs.jsx(xc,{component:null,exit:!0,children:s})}))}));function Hc(e){return uu("MuiButtonBase",e)}const Vc=cu("MuiButtonBase",["root","disabled","focusVisible"]),Yc=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Uc=qu("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"},[`&.${Vc.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Kc=t.forwardRef((function(e,r){const n=Ou({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:m,onClick:h,onContextMenu:g,onDragLeave:b,onFocus:v,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:I,tabIndex:M=0,TouchRippleProps:D,touchRippleRef:A,type:P}=n,k=Tn(n,Yc),O=t.useRef(null),T=t.useRef(null),_=Ks(T,A),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=ou(),[z,G]=t.useState(!1);u&&z&&G(!1),t.useImperativeHandle(o,(()=>({focusVisible:()=>{G(!0),O.current.focus()}})),[]);const[$,B]=t.useState(!1);t.useEffect((()=>{B(!0)}),[]);const W=$&&!c&&!u;function H(e,t,r=d){return Us((n=>{t&&t(n);return!r&&T.current&&T.current[e](n),!0}))}t.useEffect((()=>{z&&p&&!c&&$&&T.current.pulsate()}),[c,p,z,$]);const V=H("start",E),Y=H("stop",g),U=H("stop",b),K=H("stop",w),X=H("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=H("start",I),Z=H("stop",R),Q=H("stop",L),ee=H("stop",(e=>{F(e),!1===q.current&&G(!1),m&&m(e)}),!1),te=Us((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&(G(!0),y&&y(e)),v&&v(e)})),re=()=>{const e=O.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=t.useRef(!1),oe=Us((e=>{p&&!ne.current&&z&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!u&&(e.preventDefault(),h&&h(e))})),ie=Us((e=>{p&&" "===e.key&&T.current&&z&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(k.href||k.to)&&(ae=f);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=u):(k.href||k.to||(le.role="button"),u&&(le["aria-disabled"]=u));const se=Ks(r,j,O),ue=On({},n,{centerRipple:i,component:s,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:M,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=tl({root:["root",t&&"disabled",r&&"focusVisible"]},Hc,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return bs.jsxs(Uc,On({as:ae,className:ju(ce.root,l),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:U,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:u?-1:M,type:P},le,k,{children:[a,W?bs.jsx(Wc,On({ref:_,center:i},D)):null]}))}));function Xc(e){return uu("MuiTypography",e)}cu("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Jc=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Zc=qu("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${zs(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>On({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}))),Qc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ed={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},td=t.forwardRef((function(e,t){const r=Ou({props:e,name:"MuiTypography"}),n=(e=>ed[e]||e)(r.color),o=xs(On({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Qc}=o,f=Tn(o,Jc),m=On({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||Qc[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return tl({root:["root",i,"inherit"!==e.align&&`align${zs(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},Xc,a)})(m);return bs.jsx(Zc,On({as:h,ref:t,ownerState:m,className:ju(g.root,a)},f))})),rd=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function nd(e){const t=[],r=[];return Array.from(e.querySelectorAll(rd)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function od(){return!0}function id(e){const{children:r,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:a=nd,isEnabled:l=od,open:s}=e,u=t.useRef(!1),c=t.useRef(null),d=t.useRef(null),p=t.useRef(null),f=t.useRef(null),m=t.useRef(!1),h=t.useRef(null),g=Qa(r.ref,h),b=t.useRef(null);t.useEffect((()=>{s&&h.current&&(m.current=!n)}),[n,s]),t.useEffect((()=>{if(!s||!h.current)return;const e=Ua(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),m.current&&h.current.focus()),()=>{i||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[s]),t.useEffect((()=>{if(!s||!h.current)return;const e=Ua(h.current),t=t=>{b.current=t,!o&&l()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!l()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!m.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=a(h.current)),r.length>0){var n,i;const e=Boolean((null==(n=b.current)?void 0:n.shiftKey)&&"Tab"===(null==(i=b.current)?void 0:i.key)),t=r[0],o=r[r.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const n=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[n,o,i,l,s,a]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0};return bs.jsxs(t.Fragment,{children:[bs.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),t.cloneElement(r,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0,f.current=e.target;const t=r.props.onFocus;t&&t(e)}}),bs.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const ad=t.forwardRef((function(e,r){const{children:n,container:o,disablePortal:i=!1}=e,[a,l]=t.useState(null),s=Qa(t.isValidElement(n)?n.ref:null,r);if(Ja((()=>{i||l(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,i]),Ja((()=>{if(a&&!i)return Xa(r,a),()=>{Xa(r,null)}}),[r,a,i]),i){if(t.isValidElement(n)){const e={ref:s};return t.cloneElement(n,e)}return bs.jsx(t.Fragment,{children:n})}return bs.jsx(t.Fragment,{children:a?j.createPortal(n,a):a})}));function ld(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function sd(e){return parseInt(Ka(e).getComputedStyle(e).paddingRight,10)||0}function ud(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&ld(e,o)}))}function cd(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function dd(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Ua(e);return t.body===e?Ka(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(Ua(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${sd(n)+e}px`;const t=Ua(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${sd(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Ua(n).body;else{const t=n.parentElement,r=Ka(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const pd=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&ld(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);ud(t,e.mount,e.modalRef,n,!0);const o=cd(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=cd(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=dd(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=cd(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&ld(e.modalRef,t),ud(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&ld(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function fd(e){const{container:r,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:i=pd,closeAfterTransition:a=!1,onTransitionEnter:l,onTransitionExited:s,children:u,onClose:c,open:d,rootRef:p}=e,f=t.useRef({}),m=t.useRef(null),h=t.useRef(null),g=Qa(h,p),[b,v]=t.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)},C=Za((()=>{const e=function(e){return"function"==typeof e?e():e}(r)||Ua(m.current).body;i.add(S(),e),h.current&&E()})),w=t.useCallback((()=>i.isTopModal(S())),[i]),R=Za((e=>{m.current=e,e&&(d&&w()?E():h.current&&ld(h.current,x))})),L=t.useCallback((()=>{i.remove(S(),x)}),[x,i]);t.useEffect((()=>()=>{L()}),[L]),t.useEffect((()=>{d?C():y&&a||L()}),[d,L,y,a,C]);const I=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},M=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Mc(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=hr({},r,t);return hr({role:"presentation"},n,{onKeyDown:I(n),ref:g})},getBackdropProps:(e={})=>hr({"aria-hidden":!0},e,{onClick:M(e),open:d}),getTransitionProps:()=>({onEnter:Ya((()=>{v(!1),l&&l()}),null==u?void 0:u.props.onEnter),onExited:Ya((()=>{v(!0),s&&s(),a&&L()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:R,isTopModal:w,exited:b,hasTransition:y}}const md=["onChange","maxRows","minRows","style","value"];function hd(e){return parseInt(e,10)||0}const gd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function bd(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const vd=t.forwardRef((function(e,r){const{onChange:n,maxRows:o,minRows:i=1,style:a,value:l}=e,s=Er(e,md),{current:u}=t.useRef(null!=l),c=t.useRef(null),d=Qa(r,c),p=t.useRef(null),f=t.useRef(0),[m,h]=t.useState({outerHeightStyle:0}),g=t.useCallback((()=>{const t=c.current,r=Ka(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};const n=p.current;n.style.width=r.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=r.boxSizing,l=hd(r.paddingBottom)+hd(r.paddingTop),s=hd(r.borderBottomWidth)+hd(r.borderTopWidth),u=n.scrollHeight;n.value="x";const d=n.scrollHeight;let f=u;i&&(f=Math.max(Number(i)*d,f)),o&&(f=Math.min(Number(o)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-u)<=1}}),[o,i,e.placeholder]),b=(e,t)=>{const{outerHeightStyle:r,overflow:n}=t;return f.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(f.current+=1,{overflow:n,outerHeightStyle:r}):e},v=t.useCallback((()=>{const e=g();bd(e)||h((t=>b(t,e)))}),[g]);Ja((()=>{const e=()=>{f.current=0,(()=>{const e=g();bd(e)||j.flushSync((()=>{h((t=>b(t,e)))}))})()};const t=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}(e),r=c.current,n=Ka(r);let o;return n.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(r)),()=>{t.clear(),cancelAnimationFrame(undefined),n.removeEventListener("resize",t),o&&o.disconnect()}}),[g]),Ja((()=>{v()})),t.useEffect((()=>{f.current=0}),[l]);return bs.jsxs(t.Fragment,{children:[bs.jsx("textarea",hr({value:l,onChange:e=>{f.current=0,u||v(),n&&n(e)},ref:d,rows:i,style:hr({height:m.outerHeightStyle,overflow:m.overflow?"hidden":void 0},a)},s)),bs.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:hr({},gd,a,{paddingTop:0,paddingBottom:0})})]})}));function yd({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}const xd=t.createContext(void 0);function Sd(){return t.useContext(xd)}function Ed(e){return bs.jsx(vs,On({},e,{defaultTheme:Pu,themeId:kn}))}function Cd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function wd(e,t=!1){return e&&(Cd(e.value)&&""!==e.value||t&&Cd(e.defaultValue)&&""!==e.defaultValue)}function Rd(e){return uu("MuiInputBase",e)}const Ld=cu("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Id=["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"],Md=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${zs(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Dd=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Ad=qu("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Md})((({theme:e,ownerState:t})=>On({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ld.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&On({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Pd=qu("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Dd})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=On({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return On({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ld.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Ld.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),kd=bs.jsx(Ed,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Od=t.forwardRef((function(e,r){var n;const o=Ou({props:e,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:l,className:s,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:m,fullWidth:h=!1,id:g,inputComponent:b="input",inputProps:v={},inputRef:y,maxRows:x,minRows:S,multiline:E=!1,name:C,onBlur:w,onChange:R,onClick:L,onFocus:I,onKeyDown:M,onKeyUp:D,placeholder:A,readOnly:P,renderSuffix:k,rows:O,slotProps:T={},slots:_={},startAdornment:q,type:N="text",value:F}=o,j=Tn(o,Id),z=null!=v.value?v.value:F,{current:G}=t.useRef(null!=z),$=t.useRef(),B=t.useCallback((e=>{}),[]),W=Ks($,y,v.ref,B),[H,V]=t.useState(!1),Y=Sd(),U=yd({props:o,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=Y?Y.focused:H,t.useEffect((()=>{!Y&&p&&H&&(V(!1),w&&w())}),[Y,p,H,w]);const K=Y&&Y.onFilled,X=Y&&Y.onEmpty,J=t.useCallback((e=>{wd(e)?K&&K():X&&X()}),[K,X]);Bs((()=>{G&&J({value:z})}),[z,J,G]);t.useEffect((()=>{J($.current)}),[]);let Z=b,Q=v;E&&"input"===Z&&(Q=On(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:x,minRows:S},Q),Z=vd);t.useEffect((()=>{Y&&Y.setAdornedStart(Boolean(q))}),[Y,q]);const ee=On({},o,{color:U.color||"primary",disabled:U.disabled,endAdornment:m,error:U.error,focused:U.focused,formControl:Y,fullWidth:h,hiddenLabel:U.hiddenLabel,multiline:E,size:U.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return tl({root:["root",`color${zs(r)}`,n&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${zs(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Rd,t)})(ee),re=_.root||u.Root||Ad,ne=T.root||c.root||{},oe=_.input||u.Input||Pd;return Q=On({},Q,null!=(n=T.input)?n:c.input),bs.jsxs(t.Fragment,{children:[!f&&kd,bs.jsxs(re,On({},ne,!Ic(re)&&{ownerState:On({},ee,ne.ownerState)},{ref:r,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),L&&L(e)}},j,{className:ju(te.root,ne.className,s,P&&"MuiInputBase-readOnly"),children:[q,bs.jsx(xd.Provider,{value:null,children:bs.jsx(oe,On({ownerState:ee,"aria-invalid":U.error,"aria-describedby":i,autoComplete:a,autoFocus:l,defaultValue:d,disabled:U.disabled,id:g,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:C,placeholder:A,readOnly:P,required:U.required,rows:O,value:z,onKeyDown:M,onKeyUp:D,type:N},Q,!Ic(oe)&&{as:Z,ownerState:On({},ee,Q.ownerState)},{ref:W,className:ju(te.input,Q.className,P&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),v.onBlur&&v.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!G){const t=e.target||$.current;if(null==t)throw new Error(Pn(1));J({value:t.value})}v.onChange&&v.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(I&&I(e),v.onFocus&&v.onFocus(e),Y&&Y.onFocus?Y.onFocus(e):V(!0))}}))}),m,k?k(On({},U,{startAdornment:q})):null]}))]})}));function Td(e){return uu("MuiInput",e)}const _d=On({},Ld,cu("MuiInput",["root","underline","input"]));function qd(e){return uu("MuiOutlinedInput",e)}const Nd=On({},Ld,cu("MuiOutlinedInput",["root","notchedOutline","input"]));function Fd(e){return uu("MuiFilledInput",e)}const jd=On({},Ld,cu("MuiFilledInput",["root","underline","input"]));var zd=function(e,r){function n(t,n){return bs.jsx(Bu,On({"data-testid":`${r}Icon`,ref:n},t,{children:e}))}return n.muiName=Bu.muiName,t.memo(t.forwardRef(n))}(bs.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Gd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],$d={entering:{opacity:1},entered:{opacity:1}},Bd=t.forwardRef((function(e,r){const n=ku(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:s,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:m,onExiting:h,style:g,timeout:b=o,TransitionComponent:v=mc}=e,y=Tn(e,Gd),x=t.useRef(null),S=Ks(x,l.ref,r),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=E(p),w=E(((e,t)=>{Sc(e);const r=Ec({style:g,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),R=E(d),L=E(h),I=E((e=>{const t=Ec({style:g,timeout:b,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),M=E(m);return bs.jsx(v,On({appear:a,in:u,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:I,onExited:M,onExiting:L,addEndListener:e=>{i&&i(x.current,e)},timeout:b},y,{children:(e,r)=>t.cloneElement(l,On({style:On({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},$d[e],g,l.props.style),ref:S},r))}))}));function Wd(e){return uu("MuiBackdrop",e)}cu("MuiBackdrop",["root","invisible"]);const Hd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Vd=qu("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>On({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"}))),Yd=t.forwardRef((function(e,t){var r,n,o;const i=Ou({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=Bd,transitionDuration:g}=i,b=Tn(i,Hd),v=On({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return tl({root:["root",r&&"invisible"]},Wd,t)})(v),x=null!=(r=f.root)?r:c.root;return bs.jsx(h,On({in:p,timeout:g},b,{children:bs.jsx(Vd,On({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:s,className:ju(y.root,l,null==x?void 0:x.className),ownerState:On({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),Ud=cu("MuiBox",["root"]),Kd=Au(),Xd=function(e={}){const{themeId:r,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:i}=e,a=Sa("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ts);return t.forwardRef((function(e,t){const l=ls(n),s=xs(e),{className:u,component:c="div"}=s,d=Er(s,Ss);return bs.jsx(a,hr({as:c,ref:t,className:nl(u,i?i(o):o),theme:r&&l[r]||l},d))}))}({themeId:kn,defaultTheme:Kd,defaultClassName:Ud.root,generateClassName:lu.generate});function Jd(e){return uu("MuiButton",e)}const Zd=cu("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"]),Qd=t.createContext({}),ep=t.createContext(void 0),tp=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],rp=e=>On({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),np=qu(Kc,{shouldForwardProp:e=>Tu(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${zs(r.color)}`],t[`size${zs(r.size)}`],t[`${r.variant}Size${zs(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return On({},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":On({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:qs(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})`:qs(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})`:qs(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":On({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Zd.focusVisible}`]:On({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Zd.disabled}`]:On({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 ${qs(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Zd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Zd.disabled}`]:{boxShadow:"none"}})),op=qu("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${zs(r.size)}`]]}})((({ownerState:e})=>On({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},rp(e)))),ip=qu("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${zs(r.size)}`]]}})((({ownerState:e})=>On({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},rp(e)))),ap=t.forwardRef((function(e,r){const n=t.useContext(Qd),o=t.useContext(ep),i=Ou({props:iu(n,e),name:"MuiButton"}),{children:a,color:l="primary",component:s="button",className:u,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:p=!1,endIcon:f,focusVisibleClassName:m,fullWidth:h=!1,size:g="medium",startIcon:b,type:v,variant:y="text"}=i,x=Tn(i,tp),S=On({},i,{color:l,component:s,disabled:c,disableElevation:d,disableFocusRipple:p,fullWidth:h,size:g,type:v,variant:y}),E=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return On({},a,tl({root:["root",i,`${i}${zs(t)}`,`size${zs(o)}`,`${i}Size${zs(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${zs(o)}`],endIcon:["endIcon",`iconSize${zs(o)}`]},Jd,a))})(S),C=b&&bs.jsx(op,{className:E.startIcon,ownerState:S,children:b}),w=f&&bs.jsx(ip,{className:E.endIcon,ownerState:S,children:f}),R=o||"";return bs.jsxs(np,On({ownerState:S,className:ju(n.className,E.root,u,R),component:s,disabled:c,focusRipple:!p,focusVisibleClassName:ju(E.focusVisible,m),ref:r,type:v},x,{classes:E,children:[C,a,w]}))}));function lp(e){return uu("MuiModal",e)}cu("MuiModal",["root","hidden","backdrop"]);const sp=["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"],up=qu("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>On({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),cp=qu(Yd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),dp=t.forwardRef((function(e,r){var n,o,i,a,l,s;const u=Ou({name:"MuiModal",props:e}),{BackdropComponent:c=cp,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:m,container:h,component:g,components:b={},componentsProps:v={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:I,open:M,slotProps:D,slots:A}=u,P=Tn(u,sp),k=On({},u,{closeAfterTransition:f,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:O,getBackdropProps:T,getTransitionProps:_,portalRef:q,isTopModal:N,exited:F,hasTransition:j}=fd(On({},k,{rootRef:r})),z=On({},k,{exited:F}),G=(e=>{const{open:t,exited:r,classes:n}=e;return tl({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},lp,n)})(z),$={};if(void 0===m.props.tabIndex&&($.tabIndex="-1"),j){const{onEnter:e,onExited:t}=_();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(o=null==A?void 0:A.root)?o:b.Root)?n:up,W=null!=(i=null!=(a=null==A?void 0:A.backdrop)?a:b.Backdrop)?i:c,H=null!=(l=null==D?void 0:D.root)?l:v.root,V=null!=(s=null==D?void 0:D.backdrop)?s:v.backdrop,Y=Pc({elementType:B,externalSlotProps:H,externalForwardedProps:P,getSlotProps:O,additionalProps:{ref:r,as:g},ownerState:z,className:ju(p,null==H?void 0:H.className,null==G?void 0:G.root,!z.open&&z.exited&&(null==G?void 0:G.hidden))}),U=Pc({elementType:W,externalSlotProps:V,additionalProps:d,getSlotProps:e=>T(On({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:ju(null==V?void 0:V.className,null==d?void 0:d.className,null==G?void 0:G.backdrop),ownerState:z});return L||M||j&&!F?bs.jsx(ad,{ref:q,container:h,disablePortal:E,children:bs.jsxs(B,On({},Y,{children:[!R&&c?bs.jsx(W,On({},U)):null,bs.jsx(id,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:N,open:M,children:t.cloneElement(m,$)})]}))}):null}));function pp(e){return uu("MuiDivider",e)}const fp=cu("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),mp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],hp=qu("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>On({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)`:qs(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})=>On({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>On({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>On({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>On({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),gp=qu("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>On({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)`}))),bp=t.forwardRef((function(e,t){const r=Ou({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=Tn(r,mp),m=On({},r,{absolute:n,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return tl({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},pp,n)})(m);return bs.jsx(hp,On({as:a,className:ju(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?bs.jsx(gp,{className:h.wrapper,ownerState:m,children:o}):null}))}));bp.muiSkipListHighlight=!0;const vp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],yp=qu(Ad,{shouldForwardProp:e=>Tu(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Md(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return On({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}},[`&.${jd.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${jd.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${jd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${jd.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(.${jd.disabled}, .${jd.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${jd.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&On({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}))})),xp=qu(Pd,{name:"MuiFilledInput",slot:"Input",overridesResolver:Dd})((({theme:e,ownerState:t})=>On({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}))),Sp=t.forwardRef((function(e,t){var r,n,o,i;const a=Ou({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=Tn(a,vp),g=On({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:r}=e;return On({},t,tl({root:["root",!r&&"underline"],input:["input"]},Fd,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?js(v,null!=p?p:s):v,x=null!=(r=null!=(n=f.root)?n:l.Root)?r:yp,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:xp;return bs.jsx(Od,On({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));Sp.muiName="Input";const Ep=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Cp(e){return`scale(${e}, ${e**2})`}const wp={entering:{opacity:1,transform:Cp(1)},entered:{opacity:1,transform:"none"}},Rp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Lp=t.forwardRef((function(e,r){const{addEndListener:n,appear:o=!0,children:i,easing:a,in:l,onEnter:s,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:m,timeout:h="auto",TransitionComponent:g=mc}=e,b=Tn(e,Ep),v=t.useRef(),y=t.useRef(),x=ku(),S=t.useRef(null),E=Ks(S,i.ref,r),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},w=C(c),R=C(((e,t)=>{Sc(e);const{duration:r,delay:n,easing:o}=Ec({style:m,timeout:h,easing:a},{mode:"enter"});let i;"auto"===h?(i=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=i):i=r,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:n}),x.transitions.create("transform",{duration:Rp?i:.666*i,delay:n,easing:o})].join(","),s&&s(e,t)})),L=C(u),I=C(f),M=C((e=>{const{duration:t,delay:r,easing:n}=Ec({style:m,timeout:h,easing:a},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:Rp?o:.666*o,delay:Rp?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Cp(.75),d&&d(e)})),D=C(p);return t.useEffect((()=>()=>{clearTimeout(v.current)}),[]),bs.jsx(g,On({appear:o,in:l,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:M,onExited:D,onExiting:I,addEndListener:e=>{"auto"===h&&(v.current=setTimeout(e,y.current||0)),n&&n(S.current,e)},timeout:"auto"===h?null:h},b,{children:(e,r)=>t.cloneElement(i,On({style:On({opacity:0,transform:Cp(.75),visibility:"exited"!==e||l?void 0:"hidden"},wp[e],m,i.props.style),ref:E},r))}))}));Lp.muiSupportAuto=!0;const Ip=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Mp=qu(Ad,{shouldForwardProp:e=>Tu(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Md(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),On({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"},[`&.${_d.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${_d.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${_d.disabled}, .${_d.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${_d.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Dp=qu(Pd,{name:"MuiInput",slot:"Input",overridesResolver:Dd})({}),Ap=t.forwardRef((function(e,t){var r,n,o,i;const a=Ou({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=Tn(a,Ip),b=(e=>{const{classes:t,disableUnderline:r}=e;return On({},t,tl({root:["root",!r&&"underline"],input:["input"]},Td,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?js(null!=f?f:u,v):v,x=null!=(r=null!=(n=m.root)?n:s.Root)?r:Mp,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:Dp;return bs.jsx(Od,On({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));function Pp(e){return uu("MuiLink",e)}Ap.muiName="Input";const kp=cu("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Op={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Tp=({theme:e,ownerState:t})=>{const r=(e=>Op[e]||e)(t.color),n=dl(e,`palette.${r}`,!1)||t.color,o=dl(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:qs(n,.4)},_p=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],qp=qu(td,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${zs(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>On({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&On({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Tp({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${kp.focusVisible}`]:{outline:"auto"}}))),Np=t.forwardRef((function(e,r){const n=Ou({props:e,name:"MuiLink"}),{className:o,color:i="primary",component:a="a",onBlur:l,onFocus:s,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:p}=n,f=Tn(n,_p),{isFocusVisibleRef:m,onBlur:h,onFocus:g,ref:b}=ou(),[v,y]=t.useState(!1),x=Ks(r,b),S=On({},n,{color:i,component:a,focusVisible:v,underline:c,variant:d}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return tl({root:["root",`underline${zs(o)}`,"button"===r&&"button",n&&"focusVisible"]},Pp,t)})(S);return bs.jsx(qp,On({color:i,className:ju(E.root,o),classes:u,component:a,onBlur:e=>{h(e),!1===m.current&&y(!1),l&&l(e)},onFocus:e=>{g(e),!0===m.current&&y(!0),s&&s(e)},ref:x,ownerState:S,variant:d,sx:[...Object.keys(Op).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},f))})),Fp=t.createContext({});function jp(e){return uu("MuiList",e)}cu("MuiList",["root","padding","dense","subheader"]);const zp=["children","className","component","dense","disablePadding","subheader"],Gp=qu("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>On({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),$p=t.forwardRef((function(e,r){const n=Ou({props:e,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:l=!1,disablePadding:s=!1,subheader:u}=n,c=Tn(n,zp),d=t.useMemo((()=>({dense:l})),[l]),p=On({},n,{component:a,dense:l,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return tl({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},jp,t)})(p);return bs.jsx(Fp.Provider,{value:d,children:bs.jsxs(Gp,On({as:a,className:ju(f.root,i),ref:r,ownerState:p},c,{children:[u,o]}))})}));function Bp(e){return uu("MuiListItemIcon",e)}const Wp=cu("MuiListItemIcon",["root","alignItemsFlexStart"]),Hp=["className"],Vp=qu("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>On({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),Yp=t.forwardRef((function(e,r){const n=Ou({props:e,name:"MuiListItemIcon"}),{className:o}=n,i=Tn(n,Hp),a=On({},n,{alignItems:t.useContext(Fp).alignItems}),l=(e=>{const{alignItems:t,classes:r}=e;return tl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Bp,r)})(a);return bs.jsx(Vp,On({className:ju(l.root,o),ownerState:a,ref:r},i))})),Up=cu("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Kp=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Xp(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Jp(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Zp(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Qp(e,t,r,n,o,i){let a=!1,l=o(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Zp(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}const ef=t.forwardRef((function(e,r){const{actions:n,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:s=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,p=Tn(e,Kp),f=t.useRef(null),m=t.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Bs((()=>{o&&f.current.focus()}),[o]),t.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const r=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&r){const r=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(Gs(e))}px`;f.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}})),[]);const h=Ks(f,r);let g=-1;t.Children.forEach(a,((e,r)=>{t.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=r),g===r&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===r&&(g+=1,g>=a.length&&(g=-1))}));const b=t.Children.map(a,((e,r)=>{if(r===g){const r={};return i&&(r.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(r.tabIndex=0),t.cloneElement(e,r)}return e}));return bs.jsx($p,On({role:"menu",ref:h,className:l,onKeyDown:e=>{const t=f.current,r=e.key,n=Gs(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Qp(t,n,u,s,Xp);else if("ArrowUp"===r)e.preventDefault(),Qp(t,n,u,s,Jp);else if("Home"===r)e.preventDefault(),Qp(t,null,u,s,Xp);else if("End"===r)e.preventDefault(),Qp(t,null,u,s,Jp);else if(1===r.length){const o=m.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=n&&!o.repeating&&Zp(n,o);o.previousKeyMatched&&(l||Qp(t,n,!1,s,Xp,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:o?0:-1},p,{children:b}))}));function tf(e){return uu("MuiPopover",e)}cu("MuiPopover",["root","paper"]);const rf=["onEntering"],nf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],of=["slotProps"];function af(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function lf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function sf(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function uf(e){return"function"==typeof e?e():e}const cf=qu(dp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),df=qu(Lc,{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}),pf=t.forwardRef((function(e,r){var n,o,i;const a=Ou({props:e,name:"MuiPopover"}),{action:l,anchorEl:s,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:f,container:m,elevation:h=8,marginThreshold:g=16,open:b,PaperProps:v={},slots:y,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=Lp,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=a,L=Tn(a.TransitionProps,rf),I=Tn(a,nf),M=null!=(n=null==x?void 0:x.paper)?n:v,D=t.useRef(),A=Ks(D,M.ref),P=On({},a,{anchorOrigin:u,anchorReference:d,elevation:h,marginThreshold:g,externalPaperSlotProps:M,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),k=(e=>{const{classes:t}=e;return tl({root:["root"],paper:["paper"]},tf,t)})(P),O=t.useCallback((()=>{if("anchorPosition"===d)return c;const e=uf(s),t=(e&&1===e.nodeType?e:Gs(D.current).body).getBoundingClientRect();return{top:t.top+af(t,u.vertical),left:t.left+lf(t,u.horizontal)}}),[s,u.horizontal,u.vertical,c,d]),T=t.useCallback((e=>({vertical:af(e,S.vertical),horizontal:lf(e,S.horizontal)})),[S.horizontal,S.vertical]),_=t.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=T(t);if("none"===d)return{top:null,left:null,transformOrigin:sf(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=$s(uf(s)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,r.vertical+=e}else if(null!==g&&a>c){const e=a-c;o-=e,r.vertical+=e}if(null!==g&&i<g){const e=i-g;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:sf(r)}}),[s,d,O,T,g]),[q,N]=t.useState(b),F=t.useCallback((()=>{const e=D.current;if(!e)return;const t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[_]);t.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[s,R,F]);t.useEffect((()=>{b&&F()})),t.useImperativeHandle(l,(()=>b?{updatePosition:()=>{F()}}:null),[b,F]),t.useEffect((()=>{if(!b)return;const e=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}((()=>{F()})),t=$s(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,b,F]);let j=C;"auto"!==C||E.muiSupportAuto||(j=void 0);const z=m||(s?Gs(uf(s)).body:void 0),G=null!=(o=null==y?void 0:y.root)?o:cf,$=null!=(i=null==y?void 0:y.paper)?i:df,B=Pc({elementType:$,externalSlotProps:On({},M,{style:q?M.style:On({},M.style,{opacity:0})}),additionalProps:{elevation:h,ref:A},ownerState:P,className:ju(k.paper,null==M?void 0:M.className)}),W=Pc({elementType:G,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:I,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:z,open:b},ownerState:P,className:ju(k.root,f)}),{slotProps:H}=W,V=Tn(W,of);return bs.jsx(G,On({},V,!Ic(G)&&{slotProps:H,disableScrollLock:R},{children:bs.jsx(E,On({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:j},L,{children:bs.jsx($,On({},B,{children:p}))}))}))}));function ff(e){return uu("MuiMenu",e)}cu("MuiMenu",["root","paper","list"]);const mf=["onEntering"],hf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],gf={vertical:"top",horizontal:"right"},bf={vertical:"top",horizontal:"left"},vf=qu(pf,{shouldForwardProp:e=>Tu(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),yf=qu(df,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),xf=qu(ef,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Sf=t.forwardRef((function(e,r){var n,o;const i=Ou({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:s,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:f={},PopoverClasses:m,transitionDuration:h="auto",TransitionProps:{onEntering:g}={},variant:b="selectedMenu",slots:v={},slotProps:y={}}=i,x=Tn(i.TransitionProps,mf),S=Tn(i,hf),E=ku(),C="rtl"===E.direction,w=On({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:h,TransitionProps:x,variant:b}),R=(e=>{const{classes:t}=e;return tl({root:["root"],paper:["paper"],list:["list"]},ff,t)})(w),L=a&&!u&&p,I=t.useRef(null);let M=-1;t.Children.map(l,((e,r)=>{t.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===M)&&(M=r))}));const D=null!=(n=v.paper)?n:yf,A=null!=(o=y.paper)?o:f,P=Pc({elementType:v.root,externalSlotProps:y.root,ownerState:w,className:[R.root,s]}),k=Pc({elementType:D,externalSlotProps:A,ownerState:w,className:R.paper});return bs.jsx(vf,On({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?gf:bf,slots:{paper:D,root:v.root},slotProps:{root:P,paper:k},open:p,ref:r,transitionDuration:h,TransitionProps:On({onEntering:(e,t)=>{I.current&&I.current.adjustStyleForScrollbar(e,E),g&&g(e,t)}},x),ownerState:w},S,{classes:m,children:bs.jsx(xf,On({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:I,autoFocus:a&&(-1===M||u),autoFocusItem:L,variant:b},c,{className:ju(R.list,c.className),children:l}))}))}));function Ef(e){return uu("MuiMenuItem",e)}const Cf=cu("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),wf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Rf=qu(Kc,{shouldForwardProp:e=>Tu(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>On({},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"}},[`&.${Cf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:qs(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Cf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:qs(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Cf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:qs(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})`:qs(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Cf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Cf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${fp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${fp.inset}`]:{marginLeft:52},[`& .${Up.root}`]:{marginTop:0,marginBottom:0},[`& .${Up.inset}`]:{paddingLeft:36},[`& .${Wp.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&On({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Wp.root} svg`]:{fontSize:"1.25rem"}})))),Lf=t.forwardRef((function(e,r){const n=Ou({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:d,className:p}=n,f=Tn(n,wf),m=t.useContext(Fp),h=t.useMemo((()=>({dense:a||m.dense||!1,disableGutters:s})),[m.dense,a,s]),g=t.useRef(null);Bs((()=>{o&&g.current&&g.current.focus()}),[o]);const b=On({},n,{dense:h.dense,divider:l,disableGutters:s}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return On({},a,tl({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Ef,a))})(n),y=Ks(g,r);let x;return n.disabled||(x=void 0!==d?d:-1),bs.jsx(Fp.Provider,{value:h,children:bs.jsx(Rf,On({ref:y,role:c,tabIndex:x,component:i,focusVisibleClassName:ju(v.focusVisible,u),className:ju(v.root,p)},f,{ownerState:b,classes:v}))})}));function If(e){return uu("MuiNativeSelect",e)}const Mf=cu("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Df=["className","disabled","error","IconComponent","inputRef","variant"],Af=({ownerState:e,theme:t})=>On({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":On({},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"},[`&.${Mf.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}}),Pf=qu("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Tu,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Mf.multiple}`]:t.multiple}]}})(Af),kf=({ownerState:e,theme:t})=>On({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Mf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Of=qu("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${zs(r.variant)}`],r.open&&t.iconOpen]}})(kf),Tf=t.forwardRef((function(e,r){const{className:n,disabled:o,error:i,IconComponent:a,inputRef:l,variant:s="standard"}=e,u=Tn(e,Df),c=On({},e,{disabled:o,variant:s,error:i}),d=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return tl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${zs(r)}`,i&&"iconOpen",n&&"disabled"]},If,t)})(c);return bs.jsxs(t.Fragment,{children:[bs.jsx(Pf,On({ownerState:c,className:ju(d.select,n),disabled:o,ref:l||r},u)),e.multiple?null:bs.jsx(Of,{as:a,ownerState:c,className:d.icon})]})}));var _f;const qf=["children","classes","className","label","notched"],Nf=qu("fieldset",{shouldForwardProp:Tu})({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%"}),Ff=qu("legend",{shouldForwardProp:Tu})((({ownerState:e,theme:t})=>On({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&&On({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 jf=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],zf=qu(Ad,{shouldForwardProp:e=>Tu(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Md})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return On({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Nd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Nd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Nd.focused} .${Nd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Nd.error} .${Nd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Nd.disabled} .${Nd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&On({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Gf=qu((function(e){const{className:t,label:r,notched:n}=e,o=Tn(e,qf),i=null!=r&&""!==r,a=On({},e,{notched:n,withLabel:i});return bs.jsx(Nf,On({"aria-hidden":!0,className:t,ownerState:a},o,{children:bs.jsx(Ff,{ownerState:a,children:i?bs.jsx("span",{children:r}):_f||(_f=bs.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}})),$f=qu(Pd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Dd})((({theme:e,ownerState:t})=>On({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}))),Bf=t.forwardRef((function(e,r){var n,o,i,a,l;const s=Ou({props:e,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:f=!1,notched:m,slots:h={},type:g="text"}=s,b=Tn(s,jf),v=(e=>{const{classes:t}=e;return On({},t,tl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},qd,t))})(s),y=Sd(),x=yd({props:s,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=On({},s,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:y,fullWidth:c,hiddenLabel:x.hiddenLabel,multiline:f,size:x.size,type:g}),E=null!=(n=null!=(o=h.root)?o:u.Root)?n:zf,C=null!=(i=null!=(a=h.input)?a:u.Input)?i:$f;return bs.jsx(Od,On({slots:{root:E,input:C},renderSuffix:e=>bs.jsx(Gf,{ownerState:S,className:v.notchedOutline,label:null!=p&&""!==p&&x.required?l||(l=bs.jsxs(t.Fragment,{children:[p," ","*"]})):p,notched:void 0!==m?m:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:d,multiline:f,ref:r,type:g},b,{classes:On({},v,{notchedOutline:null})}))}));function Wf(e){return uu("MuiSelect",e)}Bf.muiName="Input";const Hf=cu("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Vf;const Yf=["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"],Uf=qu("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Hf.select}`]:t.select},{[`&.${Hf.select}`]:t[r.variant]},{[`&.${Hf.error}`]:t.error},{[`&.${Hf.multiple}`]:t.multiple}]}})(Af,{[`&.${Hf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Kf=qu("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${zs(r.variant)}`],r.open&&t.iconOpen]}})(kf),Xf=qu("input",{shouldForwardProp:e=>_u(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 Jf(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Zf(e){return null==e||"string"==typeof e&&!e.trim()}const Qf=t.forwardRef((function(e,r){var n;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:l,children:s,className:u,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:f,error:m=!1,IconComponent:h,inputRef:g,labelId:b,MenuProps:v={},multiple:y,name:x,onBlur:S,onChange:E,onClose:C,onFocus:w,onOpen:R,open:L,readOnly:I,renderValue:M,SelectDisplayProps:D={},tabIndex:A,value:P,variant:k="standard"}=e,O=Tn(e,Yf),[T,_]=Ys({controlled:P,default:d,name:"Select"}),[q,N]=Ys({controlled:L,default:c,name:"Select"}),F=t.useRef(null),j=t.useRef(null),[z,G]=t.useState(null),{current:$}=t.useRef(null!=L),[B,W]=t.useState(),H=Ks(r,g),V=t.useCallback((e=>{j.current=e,e&&G(e)}),[]),Y=null==z?void 0:z.parentNode;t.useImperativeHandle(H,(()=>({focus:()=>{j.current.focus()},node:F.current,value:T})),[T]),t.useEffect((()=>{c&&q&&z&&!$&&(W(l?null:Y.clientWidth),j.current.focus())}),[z,l]),t.useEffect((()=>{a&&j.current.focus()}),[a]),t.useEffect((()=>{if(!b)return;const e=Gs(j.current).getElementById(b);if(e){const t=()=>{getSelection().isCollapsed&&j.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[b]);const U=(e,t)=>{e?R&&R(t):C&&C(t),$||(W(l?null:Y.clientWidth),N(e))},K=t.Children.toArray(s),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(y){r=Array.isArray(T)?T.slice():[];const t=T.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),T!==r&&(_(r),E)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:x}}),E(o,e)}y||U(!1,t)}},J=null!==z&&q;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(wd({value:T})||f)&&(M?Z=M(T):te=!0);const re=K.map((e=>{if(!t.isValidElement(e))return null;let r;if(y){if(!Array.isArray(T))throw new Error(Pn(2));r=T.some((t=>Jf(t,e.props.value))),r&&te&&ee.push(e.props.children)}else r=Jf(T,e.props.value),r&&te&&(Q=e.props.children);return t.cloneElement(e,{"aria-selected":r?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:r,value:void 0,"data-value":e.props.value})}));te&&(Z=y?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Q);let ne,oe=B;!l&&$&&z&&(oe=Y.clientWidth),ne=void 0!==A?A:p?null:0;const ie=D.id||(x?`mui-component-select-${x}`:void 0),ae=On({},e,{variant:k,value:T,open:J,error:m}),le=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return tl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${zs(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},Wf,t)})(ae),se=On({},v.PaperProps,null==(n=v.slotProps)?void 0:n.paper),ue=Vs();return bs.jsxs(t.Fragment,{children:[bs.jsx(Uf,On({ref:V,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":p?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[b,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:e=>{if(!I){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:p||I?null:e=>{0===e.button&&(e.preventDefault(),j.current.focus(),U(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:T,name:x}}),S(e))},onFocus:w},D,{ownerState:ae,className:ju(D.className,le.select,u),id:ie,children:Zf(Z)?Vf||(Vf=bs.jsx("span",{className:"notranslate",children:"​"})):Z})),bs.jsx(Xf,On({"aria-invalid":m,value:Array.isArray(T)?T.join(","):T,name:x,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(_(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:p,className:le.nativeInput,autoFocus:a,ownerState:ae},O)),bs.jsx(Kf,{as:h,className:le.icon,ownerState:ae}),bs.jsx(Sf,On({id:`menu-${x||""}`,anchorEl:Y,open:J,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:On({"aria-labelledby":b,role:"listbox","aria-multiselectable":y?"true":void 0,disableListWrap:!0,id:ue},v.MenuListProps),slotProps:On({},v.slotProps,{paper:On({},se,{style:On({minWidth:oe},null!=se?se.style:null)})}),children:re}))]})})),em=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],tm=["root"],rm={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Tu(e)&&"variant"!==e,slot:"Root"},nm=qu(Ap,rm)(""),om=qu(Bf,rm)(""),im=qu(Sp,rm)(""),am=t.forwardRef((function(e,r){const n=Ou({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:i,classes:a={},className:l,defaultOpen:s=!1,displayEmpty:u=!1,IconComponent:c=zd,id:d,input:p,inputProps:f,label:m,labelId:h,MenuProps:g,multiple:b=!1,native:v=!1,onClose:y,onOpen:x,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=n,R=Tn(n,em),L=v?Tf:Qf,I=yd({props:n,muiFormControl:Sd(),states:["variant","error"]}),M=I.variant||w,D=On({},n,{variant:M,classes:a}),A=(e=>{const{classes:t}=e;return t})(D),P=Tn(A,tm),k=p||{standard:bs.jsx(nm,{ownerState:D}),outlined:bs.jsx(om,{label:m,ownerState:D}),filled:bs.jsx(im,{ownerState:D})}[M],O=Ks(r,k.ref);return bs.jsx(t.Fragment,{children:t.cloneElement(k,On({inputComponent:L,inputProps:On({children:i,error:I.error,IconComponent:c,variant:M,type:void 0,multiple:b},v?{id:d}:{autoWidth:o,defaultOpen:s,displayEmpty:u,labelId:h,MenuProps:g,onClose:y,onOpen:x,open:S,renderValue:E,SelectDisplayProps:On({id:d},C)},f,{classes:f?js(P,f.classes):P},p?p.props.inputProps:{})},b&&v&&"outlined"===M?{notched:!0}:{},{ref:O,className:ju(k.props.className,l,A.root)},!p&&{variant:M},R))})}));am.muiName="Select";var lm=(e={})=>r.createElement(Wr,{...e},r.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},r.createElement("rect",{stroke:Ir.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const sm={MuiAccordion:{styleOverrides:{root:{backgroundColor:Ir.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Ir.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:r.createElement(Gr,{"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 ${Ir.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Ir.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Ir.MISC_FOCUS_BORDER}`,borderRadius:kr,backgroundColor:Ir.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 ${Ir.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Ir.WHITE,color:Ir.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:kr},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Ir.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Ir.GREYSCALE_0_15,backgroundColor:Ir.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Ir.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Ir.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Ir.GREEN_PALE},"&:active":{backgroundColor:Ir.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Ir.GREEN_PALE,boxShadow:`0 0 0 3px ${qs(Ir.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Ir.BLUE_PALE},"&:active":{backgroundColor:Ir.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Ir.BLUE_PALE,boxShadow:`0 0 0 3px ${qs(Ir.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:kr,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Ir.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Ir.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Ir.GREYSCALE_0_15,backgroundColor:Ir.GREYSCALE_100_60,"&:active":{backgroundColor:Ir.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Ir.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Ir.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Ir.PURPLE,"&.Mui-focusVisible":{borderColor:Ir.PURPLE,boxShadow:`0 0 0 3px ${qs(Ir.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Ir.GREEN,"&.Mui-focusVisible":{borderColor:Ir.GREEN,boxShadow:`0 0 0 3px ${qs(Ir.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Ir.BLUE,"&.Mui-focusVisible":{borderColor:Ir.BLUE,boxShadow:`0 0 0 3px ${qs(Ir.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Ir.ORANGE,"&.Mui-focusVisible":{borderColor:Ir.ORANGE,boxShadow:`0 0 0 3px ${qs(Ir.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Ir.RED,"&.Mui-focusVisible":{borderColor:Ir.RED,boxShadow:`0 0 0 3px ${qs(Ir.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Ir.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Ir.PURPLE_PALE},"&:active":{backgroundColor:Ir.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Ir.PURPLE_PALE,boxShadow:`0 0 0 3px ${qs(Ir.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Ir.GREEN_PALE},"&:active":{backgroundColor:Ir.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Ir.GREEN_PALE,boxShadow:`0 0 0 3px ${qs(Ir.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Ir.BLUE_PALE},"&:active":{backgroundColor:Ir.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Ir.BLUE_PALE,boxShadow:`0 0 0 3px ${qs(Ir.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Ir.ORANGE_PALE},"&:active":{backgroundColor:Ir.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Ir.ORANGE_PALE,boxShadow:`0 0 0 3px ${qs(Ir.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Ir.RED_PALE},"&:active":{backgroundColor:Ir.RED_DARK},"&.Mui-focusVisible":{borderColor:Ir.RED_PALE,boxShadow:`0 0 0 3px ${qs(Ir.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:Ir.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Ir.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:kr,boxShadow:`inset 0 0 0 2px ${Ir.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:r.createElement(Br,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Mr,borderRadius:kr,color:Ir.TEXT_PRIMARY,backgroundColor:Ir.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Ir.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Ir.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Ir.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Ir.GREYSCALE_0_05,color:Ir.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Ir.GREEN,borderColor:Ir.GREEN},"&.MuiChip-outlinedInfo":{color:Ir.BLUE,borderColor:Ir.BLUE},"&.MuiChip-outlinedWarning":{color:Ir.ORANGE,borderColor:Ir.ORANGE},"&.MuiChip-outlinedError":{color:Ir.RED,borderColor:Ir.RED}},outlined:{border:`solid 1px ${Ir.GREYSCALE_0_15}`,backgroundColor:Ir.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:kr,boxShadow:"none",backgroundColor:Ir.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Ir.GREEN,borderColor:Ir.GREEN},outlinedSecondary:{color:Ir.BLUE,borderColor:Ir.BLUE},label:{fontFamily:Nr.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:r.createElement(Br,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:r.createElement(Gr,{"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:kr},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:kr,fontSize:Dr,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Ir.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Ir.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Ir.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Ir.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Ir.GREYSCALE_0_05}}},popupIndicator:{borderRadius:kr,border:`solid 1px ${Ir.GREYSCALE_0_15}`,color:Ir.GREYSCALE_0_60,marginRight:0,width:Pr,height:Pr},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Ir.GREYSCALE_0_15}`},clearIndicator:{borderRadius:kr,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Ir.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Dr}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Mr,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Ir.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Ir.GREYSCALE_25,fontSize:Mr,fontFamily:Nr.FONT_FAMILY,fontWeight:_r,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Ir.TEXT_PRIMARY},"&.Mui-error":{color:Ir.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Ir.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Tr,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Ir.TEXT_SECONDARY,content:"'(required)'",fontWeight:Tr,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Dr,lineHeight:"16px",backgroundColor:Ir.WHITE,borderRadius:kr,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ir.GREYSCALE_0_05}`,borderColor:Ir.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ir.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Ir.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Ir.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ir.RED}`,boxShadow:`0px 0px 0px 1px ${Ir.RED}, inset 0 2px 0 0 ${Ir.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ir.GREYSCALE_0_10}`,borderColor:Ir.GREYSCALE_0_10,backgroundColor:Ir.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Ir.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Ir.GREYSCALE_0_15,borderRadius:kr,boxShadow:`inset 0 2px 0 0 ${Ir.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>r.createElement(Gr,{...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:Ir.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Ir.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Ir.GREYSCALE_0_03},"&:active":{backgroundColor:Ir.GREYSCALE_0_10},"&:focus":{backgroundColor:Ir.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Ir.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Ir.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Ir.GREYSCALE_0_30,"&:hover":{backgroundColor:Ir.GREYSCALE_0_0,borderColor:Ir.GREYSCALE_0_15},"& ~svg":{color:Ir.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Ir.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:kr}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Ir.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Ir.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Ir.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Dr,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Mr,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Mr,fontWeight:_r,color:Ir.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:_r}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Ir.GREYSCALE_0_15}, 0px 0px 0px 1px ${Ir.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:r.createElement(Yr,null),checkedIcon:r.createElement(Ur,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Ir.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Ir.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Ir.GREEN_PALE,boxShadow:`0 0 0 3px ${qs(Ir.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Ir.BLUE_PALE,boxShadow:`0 0 0 3px ${qs(Ir.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Ir.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Ir.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:r.createElement(lm,null),checkedIcon:r.createElement(Hr,null),indeterminateIcon:r.createElement(Vr,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:kr,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Ir.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Ir.GREYSCALE_0_55,color:Ir.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:Ir.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Ir.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Ir.GREYSCALE_0_55,"&:hover":{color:Ir.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:Ir.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Ir.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Dr,color:Ir.TEXT_PRIMARY,lineHeight:"16px",fontWeight:_r},secondary:{fontSize:Mr,color:Ir.GREYSCALE_45,fontWeight:Tr,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Dr,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Dr,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Ir.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Mr,borderBottom:`solid 1px ${Ir.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Dr,color:Ir.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Ir.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Ir.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Ir.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:Ir.RED}}},"&.Mui-focusVisible":{backgroundColor:Ir.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:Ir.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:Ir.GREEN,height:"24px","&.Mui-disabled":{color:Ir.GREYSCALE_0_15}},rail:{backgroundColor:Ir.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Ir.GREYSCALE_0_05}`,borderRadius:kr,boxShadow:`inset 0px 0px 0px 1px ${Ir.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Ir.GREYSCALE_0_05}`,borderRadius:kr},thumb:{height:"16px",width:"16px",borderRadius:kr,backgroundColor:Ir.WHITE,boxShadow:`0px 1px 2px 0px ${Ir.GREYSCALE_0_15}, 0px 0px 0px 1px ${Ir.GREYSCALE_0_05}`,"&:hover":{borderRadius:kr,boxShadow:`0 2px 4px 0 ${Ir.GREYSCALE_0_30}, 0 0 0 1px ${Ir.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Ir.GREYSCALE_0_15}, 0 0 0 1px ${Ir.GREYSCALE_0_06}, 0 0 0 2px ${Ir.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Ir.GREYSCALE_0_15}, 0 0 0 1px ${Ir.GREYSCALE_0_06}, 0 0 0 2px ${Ir.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Ir.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Ir.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Ir.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Ir.GREYSCALE_0_15},markLabel:{color:Ir.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Ir.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Ir.WHITE,color:Ir.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:Ir.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:Ir.GREEN_PALE,boxShadow:`0 0 0 3px ${qs(Ir.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Ir.BLUE_PALE,boxShadow:`0 0 0 3px ${qs(Ir.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Ir.GREYSCALE_0_15,borderRadius:kr},thumb:{height:"16px",width:"16px",borderRadius:kr,backgroundColor:Ir.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:Dr,fontWeight:_r,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Ir.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Ir.MISC_FOCUS_BORDER}`,backgroundColor:Ir.GREYSCALE_0_03,borderRadius:kr},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Ir.GREYSCALE_25,"&.Mui-selected":{color:Ir.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Dr,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:kr,"&:hover":{backgroundColor:`${Ir.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 ${Ir.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Ir.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:kr,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Ir.GREYSCALE_0_05},"&:hover":{backgroundColor:`${Ir.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Ir.GREYSCALE_85}`,borderRight:`1px solid ${Ir.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:_r,backgroundColor:Ir.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:Ir.GREYSCALE_98,borderBottom:`1px solid ${Ir.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Ir.GREYSCALE_85}`,borderTop:`1px solid ${Ir.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Ir.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Ir.GREYSCALE_0_05,"&:hover":{backgroundColor:Ir.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Ir.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>r.createElement(Kr,{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 ${Ir.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Dr,borderRadius:kr,padding:"7px 16px",border:`1px solid ${Ir.GREYSCALE_0_15}`,backgroundColor:Ir.GREYSCALE_100_60,color:Ir.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Ir.GREYSCALE_0_10,border:`1px solid ${Ir.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Ir.GREYSCALE_0_03,border:`1px solid ${Ir.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Ir.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Ir.MISC_FOCUS_BORDER}`,border:`1px solid ${Ir.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Ir.GREYSCALE_25,backgroundColor:Ir.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Ir.GREYSCALE_0_10,border:`1px solid ${Ir.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Mr,height:24,width:24,padding:7},sizeLarge:{fontSize:Ar,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Dr,borderRadius:kr}}},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:Ir.GREYSCALE_20},tooltip:{backgroundColor:Ir.GREYSCALE_20,fontSize:Mr,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var um=e=>sm;const cm={mode:"light",primary:{ultraLight:Ir.GREEN_ULTRA_LIGHT,light:Ir.GREEN_PALE,main:Ir.GREEN,dark:Ir.GREEN_DARK,extraDark:Ir.GREEN_EXTRA_DARK,contrastText:Ir.WHITE},secondary:{ultraLight:Ir.BLUE_ULTRA_LIGHT,light:Ir.BLUE_PALE,main:Ir.BLUE,dark:Ir.BLUE_DARK,extraDark:Ir.BLUE_EXTRA_DARK,contrastText:Ir.WHITE},error:{ultraLight:Ir.RED_ULTRA_LIGHT,light:Ir.RED_PALE,main:Ir.RED,dark:Ir.RED_DARK,extraDark:Ir.RED_EXTRA_DARK,contrastText:Ir.WHITE},warning:{ultraLight:Ir.ORANGE_ULTRA_LIGHT,light:Ir.ORANGE_PALE,main:Ir.ORANGE,dark:Ir.ORANGE_DARK,extraDark:Ir.ORANGE_EXTRA_DARK,contrastText:Ir.WHITE},success:{ultraLight:Ir.GREEN_ULTRA_LIGHT,light:Ir.GREEN_PALE,main:Ir.GREEN,dark:Ir.GREEN_DARK,extraDark:Ir.GREEN_EXTRA_DARK,contrastText:Ir.WHITE},info:{ultraLight:Ir.BLUE_ULTRA_LIGHT,light:Ir.BLUE_PALE,main:Ir.BLUE,dark:Ir.BLUE_DARK,extraDark:Ir.BLUE_EXTRA_DARK,contrastText:Ir.WHITE},text:{primary:Ir.TEXT_PRIMARY,secondary:Ir.TEXT_SECONDARY,disabled:Ir.GREYSCALE_0_30},action:{hover:Ir.GREYSCALE_0_03,hoverOpacity:.03,selected:Ir.GREYSCALE_0_05,selectedOpacity:.05,focus:Ir.MISC_FOCUS_BORDER},amethyst:{ultraLight:Ir.WHITE,main:Ir.PURPLE,light:Ir.PURPLE_PALE,dark:Ir.PURPLE_DARK,extraDark:Ir.GREYSCALE_0_0,contrastText:Ir.WHITE},background:{paper:Ir.WHITE,default:Ir.GREYSCALE_95},divider:Ir.GREYSCALE_0_15},dm=e=>({components:um(),palette:cm,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:Dr,fontWeightLight:Or,fontWeightRegular:Tr,fontWeightMedium:_r,fontWeightBold:qr,htmlFontSize:Dr,fontFamily:Nr.FONT_FAMILY,button:{fontWeight:_r,fontSize:Dr,textTransform:"none"},body1:{fontSize:Ar,lineHeight:"24px"},body2:{fontSize:Dr,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Pr,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Ar,fontWeight:_r,lineHeight:"16px"},h6:{fontSize:Dr,fontWeight:_r,lineHeight:"16px"},caption:{color:Ir.TEXT_SECONDARY},subtitle1:{fontSize:Dr,color:Ir.TEXT_SECONDARY},subtitle2:{fontSize:Mr,color:Ir.TEXT_SECONDARY}},shape:{borderRadius:kr}}),pm={...Lr,MISC_FOCUS_BORDER:Ir.MISC_FOCUS_BORDER},fm=dm().palette,mm={TEXT:fm.text.primary,DISABLED:fm.text.disabled,HOVER:fm.action.hover,WHITE:pm.GREYSCALE_100,BORDER_LIGHT:pm.GREYSCALE_90,BORDER_MEDIUM:pm.GREYSCALE_85,BORDER_HEAVY:pm.GREYSCALE_50,DARK_MODE_TEXT:pm.GREYSCALE_95,DARK_MODE_BORDER:pm.GREYSCALE_95,DARK_MODE_DISABLED:pm.GREYSCALE_70,DARK_MODE_BACKGROUND:pm.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:pm.GREYSCALE_95,SELECTED:fm.primary.main};function hm(e){return"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function gm(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length&&hm(t[0]))return(t[0].r<<16)+(t[0].g<<8)+t[0].b;var n=0,o=0,i=0;if(1===t.length&&"string"==typeof t[0]){var a,l=t[0];(a=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(l))?(n=parseInt(a[1],10),o=parseInt(a[2],10),i=parseInt(a[3],10)):(a=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(l))?(n=parseInt(a[1],16),o=parseInt(a[2],16),i=parseInt(a[3],16)):(a=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(l))&&(n=parseInt(a[1]+a[1],16),o=parseInt(a[2]+a[2],16),i=parseInt(a[3]+a[3],16))}return(n<<16)+(o<<8)+i}function bm(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ym(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vm(Object(r),!0).forEach((function(t){bm(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var xm={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},Sm="qcm-color";function Em(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o,i,a,l,s,u,c,d,p,f={type:Sm,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},m=0,h=0,g=0,b=1;if((null===(e=r[0])||void 0===e?void 0:e.type)===Sm){var v=r[0];m=v.r,h=v.g,g=v.b,b=v.a,f.invalid=r[0].invalid,f.spaces=ym({},r[0].spaces)}else if(r.length<3)if("string"==typeof r[0]){var y,x=r[0];if(y=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10);else if(y=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10),b=parseFloat(y[4]);else if(y=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))b=parseInt(y[1],10)/255,m=parseInt(y[2],10),h=parseInt(y[3],10),g=parseInt(y[4],10);else if(y=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(x))m=parseInt(y[1],16),h=parseInt(y[2],16),g=parseInt(y[3],16),b=1;else if(y=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(x))m=parseInt(y[1]+y[1],16),h=parseInt(y[2]+y[2],16),g=parseInt(y[3]+y[3],16),b=1;else if(y=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var S=[];switch(c=Math.floor(c)){case 0:S=[u,d,0];break;case 1:S=[d,u,0];break;case 2:S=[0,u,d];break;case 3:S=[0,d,u];break;case 4:S=[d,0,u];break;case 5:S=[u,0,d];break;default:S=[0,0,0]}p=l-.5*u,m=S[0]+p,h=S[1]+p,g=S[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(y=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),b=parseFloat(y[7]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var E=[];switch(c=Math.floor(c)){case 0:E=[u,d,0];break;case 1:E=[d,u,0];break;case 2:E=[0,u,d];break;case 3:E=[0,d,u];break;case 4:E=[d,0,u];break;case 5:E=[u,0,d];break;default:E=[0,0,0]}p=l-.5*u,m=E[0]+p,h=E[1]+p,g=E[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g)}else if(y=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),s=parseFloat(y[5]),c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)*(i=(i/=100)<0?0:i>1?1:i))*(1-Math.abs(c%2-1));var C=[];switch(c=Math.floor(c)){case 0:C=[u,d,0];break;case 1:C=[d,u,0];break;case 2:C=[0,u,d];break;case 3:C=[0,d,u];break;case 4:C=[d,0,u];break;case 5:C=[u,0,d];break;default:C=[0,0,0]}p=s-u,m=C[0]+p,h=C[1]+p,g=C[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(xm[x.toLowerCase()]){a=x.toLowerCase();var w=xm[a];m=w.r,h=w.g,g=w.b,b="number"==typeof xm[a].a?xm[a].a:1}else f.invalid=!0}else"number"==typeof r[0]&&r[0]>=0&&"argb"===r[1]?(b=(4278190080&r[0])>>>24,b/=255,m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):"number"==typeof r[0]&&r[0]>=0?(m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):f.invalid=!0;else r.length>=3&&r.length<=4?(m=r[0],h=r[1],g=r[2],b=arguments.length>=4?r[3]:1):f.invalid=!0;return Number.isNaN(+m+h+g+b)&&(f.invalid=!0),f.r=Math.floor(m),f.g=Math.floor(h),f.b=Math.floor(g),f.a=b,f.l=l,f}function Cm(e){var t,r,n;if(hm(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat([t,r,n].join(""));var o="string"==typeof e?gm(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat(t).concat(r).concat(n)}function wm(e){var t,r,n=0,o="string"==typeof e?Em(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=s;if(s===u)t=0,n=0;else{switch(t=0==(r=s-u)?0:r/c,s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function Rm(e){if(hm(e))return"rgb(".concat([e.r,e.g,e.b].join(", "),")");var t="string"==typeof e?gm(e):e,r=(65280&t)>>8,n=255&t;return"rgb(".concat((16711680&t)>>16,", ").concat(r,", ").concat(n,")")}function Lm(e,t){return hm(e)?"rgba(".concat([e.r,e.g,e.b,e.a].join(", "),")"):Lm(Em(e))}function Im(e){return hm(e)?1===e.a?Rm(e):Lm(e):Im(Em(e))}var Mm=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function Dm(e){return.2126*Mm(e.r)+.7152*Mm(e.g)+.0722*Mm(e.b)}function Am(){var e=Em.apply(void 0,arguments),t={type:e.type,r:e.r,g:e.g,b:e.b,a:e.a,invalid:e.invalid,spaces:e.spaces},r=function(){return t.spaces.hsla||(t.spaces.hsla=function(e){var t,r,n=0,o="string"==typeof e?Em(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=o.a,u=Math.max(i,a,l),c=Math.min(i,a,l),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsla(".concat(360*n,", ").concat(100*t,", ").concat(100*d,", ").concat(s,")")}(t)),t.spaces.hsla},n=function(e){var t=r(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),o=parseFloat(n[1]),i=parseFloat(n[3]),a=parseFloat(n[7]),l=parseFloat(n[5]),s=Math.max(0,Math.min(l+e,100));return"hsla(".concat(o,", ").concat(i,", ").concat(s,", ").concat(a,")")};return{get type(){return t.type},isInvalid:function(){return t.invalid},get r(){return t.r},get g(){return t.g},get b(){return t.b},get a(){return t.a},getR:function(){return t.r},getG:function(){return t.g},getB:function(){return t.b},getAlpha:function(){return t.a},setAlpha:function(e){t.a=e,t.spaces={}},isEqualTo:function(e){var r=e.type===t.type?e:Em(e);return r.r===t.r&&r.g===t.g&&r.b===t.b&&r.a===t.a},isDark:function(){return function(){var e=Em.apply(void 0,arguments);return e.invalid||Dm(e)<.4}(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=Rm(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=Lm(t)),t.spaces.rgba},getString:function(){return t.spaces.string||(t.spaces.string=Im(t)),t.spaces.string},getHex:function(){return t.spaces.hex||(t.spaces.hex=Cm(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=function(e){var t,r,n=0,o="string"==typeof e?Em(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=(s+u)/2;if(s===u)t=0,n=0;else{switch(r=s-u,t=c>.5?r/(2-s-u):r/(s+u),s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsl(".concat(360*n,", ").concat(100*t,", ").concat(100*c,")")}(t)),t.spaces.hsl},getHSLA:r,getShiftedHSLA:n,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=function(e){var t=wm(e),r=t.h,n=t.s,o=t.v;return"hsv(".concat(r,", ").concat(n,", ").concat(o,")")}(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=wm(t)),t.spaces.hsvObject},blend:function(e,r){var n=Math.floor(t.r+(e.r-t.r)*r),o=Math.floor(t.g+(e.g-t.g)*r),i=Math.floor(t.b+(e.b-t.b)*r),a=Math.floor(t.a+(e.getAlpha()-t.a)*r);return"rgba(".concat([n,o,i,a].join(", "),")")},getBrightenedColor:function(){return Am(n(18*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))},getDarkenedColor:function(){return Am(n(18*-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))}}}function Pm(e,t){if(e&&t){var r=Dm(e),n=Dm(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}}var km,Om,Tm=["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"],_m=["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 qm(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?_m:Tm}var Nm=function(){if(Om)return km;Om=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return km=function e(){var t,r,n,s,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(s=l(t,r))&&(m&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(m,c,s)})):void 0!==s&&a(d,{name:r,newValue:s}));return d},km}();function Fm(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function jm(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function zm(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Nm);var Gm=1/.7,$m="\\s*([+-]?\\d+)\\s*",Bm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Wm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Hm=/^#([0-9a-f]{3,8})$/,Vm=new RegExp(`^rgb\\(${$m},${$m},${$m}\\)$`),Ym=new RegExp(`^rgb\\(${Wm},${Wm},${Wm}\\)$`),Um=new RegExp(`^rgba\\(${$m},${$m},${$m},${Bm}\\)$`),Km=new RegExp(`^rgba\\(${Wm},${Wm},${Wm},${Bm}\\)$`),Xm=new RegExp(`^hsl\\(${Bm},${Wm},${Wm}\\)$`),Jm=new RegExp(`^hsla\\(${Bm},${Wm},${Wm},${Bm}\\)$`),Zm={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 Qm(){return this.rgb().formatHex()}function eh(){return this.rgb().formatRgb()}function th(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Hm.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?rh(t):3===r?new ah(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?nh(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?nh(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=Vm.exec(e))?new ah(t[1],t[2],t[3],1):(t=Ym.exec(e))?new ah(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Um.exec(e))?nh(t[1],t[2],t[3],t[4]):(t=Km.exec(e))?nh(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Xm.exec(e))?ph(t[1],t[2]/100,t[3]/100,1):(t=Jm.exec(e))?ph(t[1],t[2]/100,t[3]/100,t[4]):Zm.hasOwnProperty(e)?rh(Zm[e]):"transparent"===e?new ah(NaN,NaN,NaN,0):null}function rh(e){return new ah(e>>16&255,e>>8&255,255&e,1)}function nh(e,t,r,n){return n<=0&&(e=t=r=NaN),new ah(e,t,r,n)}function oh(e){return e instanceof zm||(e=th(e)),e?new ah((e=e.rgb()).r,e.g,e.b,e.opacity):new ah}function ih(e,t,r,n){return 1===arguments.length?oh(e):new ah(e,t,r,null==n?1:n)}function ah(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function lh(){return`#${dh(this.r)}${dh(this.g)}${dh(this.b)}`}function sh(){const e=uh(this.opacity);return`${1===e?"rgb(":"rgba("}${ch(this.r)}, ${ch(this.g)}, ${ch(this.b)}${1===e?")":`, ${e})`}`}function uh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ch(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function dh(e){return((e=ch(e))<16?"0":"")+e.toString(16)}function ph(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new mh(e,t,r,n)}function fh(e){if(e instanceof mh)return new mh(e.h,e.s,e.l,e.opacity);if(e instanceof zm||(e=th(e)),!e)return new mh;if(e instanceof mh)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new mh(a,l,s,e.opacity)}function mh(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function hh(e){return(e=(e||0)%360)<0?e+360:e}function gh(e){return Math.max(0,Math.min(1,e||0))}function bh(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Fm(zm,th,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Qm,formatHex:Qm,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return fh(this).formatHsl()},formatRgb:eh,toString:eh}),Fm(ah,ih,jm(zm,{brighter(e){return e=null==e?Gm:Math.pow(Gm,e),new ah(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ah(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ah(ch(this.r),ch(this.g),ch(this.b),uh(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:lh,formatHex:lh,formatHex8:function(){return`#${dh(this.r)}${dh(this.g)}${dh(this.b)}${dh(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:sh,toString:sh})),Fm(mh,(function(e,t,r,n){return 1===arguments.length?fh(e):new mh(e,t,r,null==n?1:n)}),jm(zm,{brighter(e){return e=null==e?Gm:Math.pow(Gm,e),new mh(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new mh(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new ah(bh(e>=240?e-240:e+120,o,n),bh(e,o,n),bh(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new mh(hh(this.h),gh(this.s),gh(this.l),uh(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=uh(this.opacity);return`${1===e?"hsl(":"hsla("}${hh(this.h)}, ${100*gh(this.s)}%, ${100*gh(this.l)}%${1===e?")":`, ${e})`}`}}));const vh=Math.PI/180,yh=180/Math.PI,xh=4/29,Sh=6/29,Eh=3*Sh*Sh;function Ch(e){if(e instanceof wh)return new wh(e.l,e.a,e.b,e.opacity);if(e instanceof Dh)return Ah(e);e instanceof ah||(e=oh(e));var t,r,n=Mh(e.r),o=Mh(e.g),i=Mh(e.b),a=Rh((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=Rh((.4360747*n+.3850649*o+.1430804*i)/.96422),r=Rh((.0139322*n+.0971045*o+.7141733*i)/.82521)),new wh(116*a-16,500*(t-a),200*(a-r),e.opacity)}function wh(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Rh(e){return e>.008856451679035631?Math.pow(e,1/3):e/Eh+xh}function Lh(e){return e>Sh?e*e*e:Eh*(e-xh)}function Ih(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Mh(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Dh(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Ah(e){if(isNaN(e.h))return new wh(e.l,0,0,e.opacity);var t=e.h*vh;return new wh(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Fm(wh,(function(e,t,r,n){return 1===arguments.length?Ch(e):new wh(e,t,r,null==n?1:n)}),jm(zm,{brighter(e){return new wh(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new wh(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new ah(Ih(3.1338561*(t=.96422*Lh(t))-1.6168667*(e=1*Lh(e))-.4906146*(r=.82521*Lh(r))),Ih(-.9787684*t+1.9161415*e+.033454*r),Ih(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Fm(Dh,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Dh)return new Dh(e.h,e.c,e.l,e.opacity);if(e instanceof wh||(e=Ch(e)),0===e.a&&0===e.b)return new Dh(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*yh;return new Dh(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Dh(e,t,r,null==n?1:n)}),jm(zm,{brighter(e){return new Dh(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Dh(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Ah(this).rgb()}}));var Ph=e=>()=>e;function kh(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Ph(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?kh:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):Ph(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=ih(e)).r,(t=ih(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=kh(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var Oh,Th="center",_h="bottom";function qh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},r=function(){var e={};return{get:function(t){return e[t]},set:function(t,r){return e[t]=r,r},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(n){var o=t(n);return r.has(o)?r.get(o):r.set(o,e(n))}}function Nh(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function Fh(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=zh)):void 0===t&&(t=jh);for(var r,n,o,i,a,l=new Bh(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new Bh(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore($h)}function jh(e){return e.children}function zh(e){return Array.isArray(e)?e[1]:null}function Gh(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function $h(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Bh(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:Th,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Th,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:Th,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Th},{key:"DataRangeIncludingZero",alignment:_h},{key:"LimitedData",alignment:_h},{key:"NegativeOrZeroValues",alignment:_h}].reduce((function(e,t){return e[t.key]=t,e}),{}),Bh.prototype=Fh.prototype={constructor:Bh,count:function(){return this.eachAfter(Nh)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return Fh(this).eachBefore(Gh)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},Oh=function(e){
100
100
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
101
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},Dh({exports:{}});const Gh=(e,t=dm.TEXT,r=dm.WHITE)=>{const n=Im(e),o=Im(t),i=Im(r);return n.isInvalid()?t:function(e,t,r){return Am(e,t)>Am(e,r)?t:r}(n,i,o).getRGB()},$h=e=>{const t=e.getStyle("","","dataColors.selected")||dm.SELECTED,r=function(e,t){var r=Im("#FFFFFF"),n=Im(e),o=Im(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;var i=Am(r,n),a=Am(o,n),l=i>a||i>4.5;return!l&&a>3?t:l?"#FFFFFF":"#000000"}(t,dm.TEXT);return{background:t,color:r}},Bh=(e,t)=>{const r=Im(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},Wh=e=>!!e&&0===Im(e).a,Hh=e=>{const t=Im(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},Vh=e=>{e.stopPropagation(),e.preventDefault()},Yh=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:null!=n&&n,defaultValue(e,t,o){var i;const a=null!==(i=null==n?void 0:n(e,t,o))&&void 0!==i&&i,l=o.theme.current(),s=r(l,a);return{color:"transparent"===s?"none":s}}}),Uh=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},Kh=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:"Source Sans Pro, sans-serif",l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>Uh(e,!0)))],c=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...Om(n).filter((e=>!s.includes(e))).map((e=>Uh(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),Xh=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Jh=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{var n;const o=t.fontSize,i=null!==(n=t.fontSizes)&&void 0!==n?n:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>Uh(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...Xh.filter((e=>!a.includes(e))).map((e=>Uh(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),Zh=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:null!=i?i:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:Kh({ref:`${e}.fontFamily`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontFamily"))&&void 0!==r?r:t.fontFamily},translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:Jh({ref:`${e}.fontSize`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontSize"))&&void 0!==r?r:t.fontSize},translator:r}),fontColor:Yh(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=o(t,e,"color"))&&void 0!==r?r:t.color}))}},background:Yh(`${e}.background`,"properties.background",((t,r)=>{var n;const i=r?dm.WHITE:dm.TRANSPARENT;return null!==(n=o(t,e,"backgroundColor"))&&void 0!==n?n:i}),a)}}}}),Qh=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:Yh(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=n(t,e,"color"))&&void 0!==r?r:t.color}))}},background:Yh(`${e}.background`,"properties.background",(t=>{var o,i;return null!==(o=null!==(i=n(t,e,"backgroundColor"))&&void 0!==i?i:r)&&void 0!==o?o:"transparent"}))}}}}),eg=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),tg="12px",rg="Source Sans Pro, sans-serif",ng="600",og=15e3,ig=4/3;var ag,lg;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(ag||(ag={})),function(e){e.Solid="solid",e.None="none"}(lg||(lg={}));const sg={display:"flex",justifyContent:"center",alignItems:"center"},ug={borderStyle:"solid"},cg={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},dg={lineHeight:ig,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},pg=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),fg=(e,t)=>e>0?`${e}px ${lg.Solid} ${t}`:lg.None,mg=(e,t,r,n)=>{const o=Number(!t||(null==n?void 0:n.right)),i=Number(!e||(null==n?void 0:n.bottom));return{borderRight:fg(o,r),borderBottom:fg(i,r),borderLeft:lg.None,borderTop:lg.None}},hg=(e,t,r,n,o,i)=>{const a=mg(t,n,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=fg(2,o)),r||(a.borderLeft=fg(1,o))),a},gg=({bottomDivider:e,rightDivider:t,borderColor:r})=>{const n={};return e&&(n.borderBottom=fg(1,r)),t&&(n.borderRight=fg(1,r)),n},bg=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:eg("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?eg("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:Yh("grid.border","properties.border",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.grid)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:ag.DividerLight})),divider:Yh("grid.divider","properties.pivot.divider",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.grid)||void 0===r||null===(r=r.divider)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:ag.DividerDark})),background:Yh("grid.background","properties.background",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.grid)||void 0===r?void 0:r.backgroundColor)&&void 0!==t?t:ag.Transparent}))}}}}),vg=(e,t,r)=>{var n,o,i,a,l,s;switch(t){case"header":return null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.dimension)||void 0===n||null===(n=n.label)||void 0===n||null===(n=n.name)||void 0===n?void 0:n[r];case"dimensionValues":return null===(o=e.object)||void 0===o||null===(o=o.pivotTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[r];case"measureLabels":return null===(i=e.object)||void 0===i||null===(i=i.pivotTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i[r];case"measureValues":return null===(a=e.object)||void 0===a||null===(a=a.pivotTableV2)||void 0===a||null===(a=a.measure)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[r];case"totalValues":return null===(l=e.object)||void 0===l||null===(l=l.pivotTableV2)||void 0===l||null===(l=l.total)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[r];case"nullValues":return null===(s=e.object)||void 0===s||null===(s=s.pivotTableV2)||void 0===s||null===(s=s.null)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[r];default:return}},yg=(e,t)=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.PivotTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,defaultValue:[],items:{headerSection:Zh({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:vg}),dimensionValueSection:Zh({section:"dimensionValues",translator:e,flags:t,getThemeValue:vg}),measureValueSection:Zh({section:"measureValues",translator:e,flags:t,getThemeValue:vg}),measureLabelSection:Qh({section:"measureLabels",getThemeValue:vg}),totalValuesSection:Qh({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:vg}),nullValuesSection:Qh({section:"nullValues",fallbackBackground:ag.NullValueBackground,getThemeValue:vg}),gridSection:bg(t)}}]}),xg=e=>({type:"items",items:{nullValueText:{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"},alwaysFullyExpanded:{ref:"qHyperCubeDef.qAlwaysFullyExpanded",type:"boolean",translation:"properties.pivot.fullyExpanded",defaultValue:!1},...e.isEnabled("CLIENT_IM_5975_INDENT_MODE")&&{indentMode:{ref:"qHyperCubeDef.qIndentMode",type:"boolean",translation:"properties.pivot.indentMode",defaultValue:!1,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}},type:{type:"string",component:"dropdown",ref:"qHyperCubeDef.indentModeColumnWidth.type",translation:"Object.Table.Column.Width",options:[{value:rr.Auto,translation:"Common.Auto"},{value:rr.Pixels,translation:"Object.Table.Column.Pixels"},{value:rr.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:rr.Auto,show:e=>!!e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:tr.PixelsDefault,show:e=>{var t;const r=e.qHyperCubeDef;return r.qIndentMode&&(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.type)===rr.Pixels},change:e=>{var t;const r=e.qHyperCubeDef;void 0!==(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.pixels)&&(r.indentModeColumnWidth.pixels=Math.max(tr.PixelsMin,Math.min(tr.PixelsMax,r.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:tr.PercentageDefault,show:e=>{var t;const r=e.qHyperCubeDef;return r.qIndentMode&&(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.type)===rr.Percentage},change:e=>{var t;const r=e.qHyperCubeDef;void 0!==(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.percentage)&&(r.indentModeColumnWidth.percentage=Math.max(tr.PercentageMin,Math.min(tr.PercentageMaxInIndentMode,r.indentModeColumnWidth.percentage)))}}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(t){const{qIndentMode:r}=t.qHyperCubeDef;return(!r||!e.isEnabled("CLIENT_IM_5975_INDENT_MODE"))&&!!t.qHyperCubeDef.qDimensions.some((e=>{var t;return"TOTAL_EXPR"===(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qTotalMode)}))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>!!e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,r,n){e.qHyperCubeDef.qExpansionState=[],n.$emit("saveProperties",e)}}}}),Sg=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[yg(e,t),xg(t)]}}}),Eg="auto",Cg={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>{t("integer",e?-1:0)}},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>!!e.qHyperCubeDef.qSortbyYValue}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:Eg,translation:"Object.Table.SortingInSearch",options:[{value:Eg,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function wg(e){const{translator:t,flags:r}=e;return{type:"items",component:"accordion",items:{data:mr(e),sorting:Cg,addons:qt,settings:Sg(t,r)}}}function Rg(e){return{support:{cssScaling:!0,snapshot:!0,export:!0,sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:wg(e),importProperties:Tt(e),exportProperties:_t}}const Lg=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function Ig(e,t){return y((()=>e),t)}const Ag={},Mg=e=>{const t=y((()=>({current:Ag})),[]);return t.current=t.current===Ag?e:t.current,t},Dg=()=>{const{viewState:e}=x(),t=Mg(new Set),r=void 0!==e,{promise:n,resolve:o}=y((()=>Lg()),[]),i=Ig((e=>{r&&t.current.add(e)}),[t]),a=Ig(function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}((async()=>{await Promise.all(t.current),t.current.clear(),o()}),1e3),[o,t]);return S((async()=>{r&&await n}),[n,r]),y((()=>({viewState:e,isDownloadedAsPDForImage:r,notifyIsDoneRendering:a,waitForPromise:i})),[a,r,e,i])},Pg="#grid",kg=(e,t)=>{const r=null==t?void 0:t.closest(e);return r&&window.getComputedStyle(r).backgroundColor},Og=(e,t,r,n,o)=>{const i=kg(".qv-object .qv-inner-object",r),a=kg(".qv-panel-sheet",r),l=kg(Pg,r),s=null!=l?l:a,u=(e=>{var t,r,n,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(r=l.bgColor)||void 0===r?void 0:r.colorExpression,u=null==l||null===(n=l.bgColor)||void 0===n||null===(n=n.color)||void 0===n?void 0:n.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return Hh(s);if("none"===u)return"transparent";if(void 0===u)return;const c=Im(u);return c.setAlpha(null!==(i=null==l||null===(a=l.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.a),c.getRGBA()})(e),c=null==n?void 0:n(t),d=null==o?void 0:o(t),p=c||i||d,f=Wh(p),m=!Wh(h=f?s:p)&&Gh(h,dm.TEXT,dm.DARK_MODE_TEXT)===Em(dm.DARK_MODE_TEXT);var h;const g=((e,t,r,n=dm.WHITE)=>e&&!Wh(e)?e:Wh(t)?r&&!Wh(r)?r:n:t)(u,p,s);return{color:p,headerColor:g,isDark:m}},Tg=(e,t,r,n)=>{const o=w(),i=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,n]=E([]);return C((()=>{let r;return e&&(r=new MutationObserver((e=>{n(e)})),r.observe(e,t)),()=>{var e;null===(e=r)||void 0===e||e.disconnect()}}),[e,t]),r})(t.closest(Pg),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return y((()=>({...o,background:Og(e,o,t,r,n)})),[o.name(),t,r,n,e,i])};function _g(e,t){const r=y((()=>({isLoading:!0})),t),[n,o]=S((async()=>{try{return await e()}finally{r.isLoading=!1}}),t);return[n,r.isLoading,o]}const qg=3;function Ng(e,t,r){let n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=r(a),u=r(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?n=i+1:o=i}return null}function Fg({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=qg}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:u}=s((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=Oh(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=Oh((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=Ng(o,t,l)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:s}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:u}}var jg,zg=F;jg=zg.createRoot,zg.hydrateRoot;const Gg="Source Sans Pro, sans-serif";function $g(e,t){const[r,n]=u(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var Bg={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","zh-CN":"折叠","zh-TW":"收合"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","zh-CN":"展开","zh-TW":"展開"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const Wg=({translator:e})=>(s((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Bg).forEach((t=>{e.add(Bg[t])}))}}(e)}),[e]),e);function Hg(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 Vg=Object.freeze({__proto__:null,default:Hg}),Yg="$$material";function Ug(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 Kg(e){if(t.isValidElement(e)||!Ug(e))return e;const r={};return Object.keys(e).forEach((t=>{r[t]=Kg(e[t])})),r}function Xg(e,r,n={clone:!0}){const o=n.clone?hr({},e):e;return Ug(e)&&Ug(r)&&Object.keys(r).forEach((i=>{t.isValidElement(r[i])?o[i]=r[i]:Ug(r[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Ug(e[i])?o[i]=Xg(e[i],r[i],n):n.clone?o[i]=Ug(r[i])?Kg(r[i]):r[i]:o[i]=r[i]})),o}var Jg=Object.freeze({__proto__:null,default:Xg,isPlainObject:Ug});const Zg=["values","unit","step"];function Qg(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Er(e,Zg),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>hr({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return hr({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}var eb={borderRadius:4};function tb(e,t){return t?Xg(e,t,{clone:!1}):e}const rb={xs:0,sm:600,md:900,lg:1200,xl:1536},nb={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${rb[e]}px)`};function ob(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||nb;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||nb;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||rb).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function ib(e){if("string"!=typeof e)throw new Error(Hg(7));return e.charAt(0).toUpperCase()+e.slice(1)}var ab=Object.freeze({__proto__:null,default:ib});function lb(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function sb(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:lb(e,r)||n,t&&(o=t(o,n,e)),o}function ub(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=lb(e.theme,n)||{};return ob(e,i,(e=>{let n=sb(a,o,e);return e===n&&"string"==typeof e&&(n=sb(a,o,`${t}${"default"===e?"":ib(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const cb={m:"margin",p:"padding"},db={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},pb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},fb=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!pb[e])return[e];e=pb[e]}const[t,r]=e.split(""),n=cb[t],o=db[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),mb=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],hb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function gb(e,t,r,n){var o;const i=null!=(o=lb(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function bb(e){return gb(e,"spacing",8)}function vb(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function yb(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=vb(t,r),e)),{})}(fb(r),n);return ob(e,e[r],o)}function xb(e,t){const r=bb(e.theme);return Object.keys(e).map((n=>yb(e,t,n,r))).reduce(tb,{})}function Sb(e){return xb(e,mb)}function Eb(e){return xb(e,hb)}function Cb(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?tb(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function wb(e){return"number"!=typeof e?e:`${e}px solid`}function Rb(e,t){return ub({prop:e,themeKey:"borders",transform:t})}Sb.propTypes={},Sb.filterProps=mb,Eb.propTypes={},Eb.filterProps=hb;const Lb=Rb("border",wb),Ib=Rb("borderTop",wb),Ab=Rb("borderRight",wb),Mb=Rb("borderBottom",wb),Db=Rb("borderLeft",wb),Pb=Rb("borderColor"),kb=Rb("borderTopColor"),Ob=Rb("borderRightColor"),Tb=Rb("borderBottomColor"),_b=Rb("borderLeftColor"),qb=Rb("outline",wb),Nb=Rb("outlineColor"),Fb=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=gb(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:vb(t,e)});return ob(e,e.borderRadius,r)}return null};Fb.propTypes={},Fb.filterProps=["borderRadius"],Cb(Lb,Ib,Ab,Mb,Db,Pb,kb,Ob,Tb,_b,Fb,qb,Nb);const jb=e=>{if(void 0!==e.gap&&null!==e.gap){const t=gb(e.theme,"spacing",8),r=e=>({gap:vb(t,e)});return ob(e,e.gap,r)}return null};jb.propTypes={},jb.filterProps=["gap"];const zb=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=gb(e.theme,"spacing",8),r=e=>({columnGap:vb(t,e)});return ob(e,e.columnGap,r)}return null};zb.propTypes={},zb.filterProps=["columnGap"];const Gb=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=gb(e.theme,"spacing",8),r=e=>({rowGap:vb(t,e)});return ob(e,e.rowGap,r)}return null};Gb.propTypes={},Gb.filterProps=["rowGap"];function $b(e,t){return"grey"===t?t:e}Cb(jb,zb,Gb,ub({prop:"gridColumn"}),ub({prop:"gridRow"}),ub({prop:"gridAutoFlow"}),ub({prop:"gridAutoColumns"}),ub({prop:"gridAutoRows"}),ub({prop:"gridTemplateColumns"}),ub({prop:"gridTemplateRows"}),ub({prop:"gridTemplateAreas"}),ub({prop:"gridArea"}));function Bb(e){return e<=1&&0!==e?100*e+"%":e}Cb(ub({prop:"color",themeKey:"palette",transform:$b}),ub({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:$b}),ub({prop:"backgroundColor",themeKey:"palette",transform:$b}));const Wb=ub({prop:"width",transform:Bb}),Hb=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||rb[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Bb(t)}};return ob(e,e.maxWidth,t)}return null};Hb.filterProps=["maxWidth"];const Vb=ub({prop:"minWidth",transform:Bb}),Yb=ub({prop:"height",transform:Bb}),Ub=ub({prop:"maxHeight",transform:Bb}),Kb=ub({prop:"minHeight",transform:Bb});ub({prop:"size",cssProperty:"width",transform:Bb}),ub({prop:"size",cssProperty:"height",transform:Bb});Cb(Wb,Hb,Vb,Yb,Ub,Kb,ub({prop:"boxSizing"}));var Xb={border:{themeKey:"borders",transform:wb},borderTop:{themeKey:"borders",transform:wb},borderRight:{themeKey:"borders",transform:wb},borderBottom:{themeKey:"borders",transform:wb},borderLeft:{themeKey:"borders",transform:wb},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:wb},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Fb},color:{themeKey:"palette",transform:$b},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:$b},backgroundColor:{themeKey:"palette",transform:$b},p:{style:Eb},pt:{style:Eb},pr:{style:Eb},pb:{style:Eb},pl:{style:Eb},px:{style:Eb},py:{style:Eb},padding:{style:Eb},paddingTop:{style:Eb},paddingRight:{style:Eb},paddingBottom:{style:Eb},paddingLeft:{style:Eb},paddingX:{style:Eb},paddingY:{style:Eb},paddingInline:{style:Eb},paddingInlineStart:{style:Eb},paddingInlineEnd:{style:Eb},paddingBlock:{style:Eb},paddingBlockStart:{style:Eb},paddingBlockEnd:{style:Eb},m:{style:Sb},mt:{style:Sb},mr:{style:Sb},mb:{style:Sb},ml:{style:Sb},mx:{style:Sb},my:{style:Sb},margin:{style:Sb},marginTop:{style:Sb},marginRight:{style:Sb},marginBottom:{style:Sb},marginLeft:{style:Sb},marginX:{style:Sb},marginY:{style:Sb},marginInline:{style:Sb},marginInlineStart:{style:Sb},marginInlineEnd:{style:Sb},marginBlock:{style:Sb},marginBlockStart:{style:Sb},marginBlockEnd:{style:Sb},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:jb},rowGap:{style:Gb},columnGap:{style:zb},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Bb},maxWidth:{style:Hb},minWidth:{transform:Bb},height:{transform:Bb},maxHeight:{transform:Bb},minHeight:{transform:Bb},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Jb(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=lb(r,l)||{};if(u)return u(o);return ob(o,t,(t=>{let r=sb(c,s,t);return t===r&&"string"==typeof t&&(r=sb(c,s,`${e}${"default"===t?"":ib(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=null!=(n=i.unstable_sxConfig)?n:Xb;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=tb(s,e(r,o,i,a));else{const e=ob({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?s=tb(s,e):s[r]=t({sx:o,theme:i})}else s=tb(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const Zb=Jb();Zb.filterProps=["sx"];var Qb=Zb;function ev(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}const tv=["breakpoints","palette","spacing","shape"];function rv(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Er(e,tv),l=Qg(r),s=function(e=8){if(e.mui)return e;const t=bb({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=Xg({breakpoints:l,direction:"ltr",components:{},palette:hr({mode:"light"},n),spacing:s,shape:hr({},eb,i)},a);return u.applyStyles=ev,u=t.reduce(((e,t)=>Xg(e,t)),u),u.unstable_sxConfig=hr({},Xb,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Qb({sx:e,theme:this})},u}var nv=Object.freeze({__proto__:null,default:rv,private_createBreakpoints:Qg,unstable_applyStyles:ev});function ov(e=null){const r=t.useContext(qi);return r&&(n=r,0!==Object.keys(n).length)?r:e;var n}const iv=rv();function av(e=iv){return ov(e)}const lv=["sx"];function sv(e){const{sx:t}=e,r=Er(e,lv),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:Xb;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return Ug(r)?hr({},n,r):n}:hr({},n,t),hr({},o,{sx:i})}var uv=Object.freeze({__proto__:null,default:Qb,extendSxProp:sv,unstable_createStyleFunctionSx:Jb,unstable_defaultSxConfig:Xb});const cv=e=>e;var dv=(()=>{let e=cv;return{configure(t){e=t},generate:t=>e(t),reset(){e=cv}}})();const pv=["className","component"];const fv={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 mv(e,t,r="Mui"){const n=fv[t];return n?`${r}-${n}`:`${dv.generate(e)}-${t}`}function hv(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=mv(e,t,r)})),n}const gv=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function bv(e){const t=`${e}`.match(gv);return t&&t[1]||""}function vv(e,t=""){return e.displayName||e.name||bv(e)||t}function yv(e,t,r){const n=vv(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var xv=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return vv(e,"Component");if("object"==typeof e)switch(e.$$typeof){case xa.ForwardRef:return yv(e,e.render,"ForwardRef");case xa.Memo:return yv(e,e.type,"memo");default:return}}},getFunctionName:bv});function Sv(e,t){const r=hr({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=hr({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=hr({},i),Object.keys(o).forEach((e=>{r[n][e]=Sv(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}var Ev="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function Cv(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var wv=Object.freeze({__proto__:null,default:Cv});function Rv(e){if(e.type)return e;if("#"===e.charAt(0))return Rv(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(Hg(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(Hg(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Lv(e,t){return e=Rv(e),t=function(e,t=0,r=1){return Cv(e,t,r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function Iv(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function Av(e){return e&&e.ownerDocument||document}function Mv(e){return Av(e).defaultView||window}function Dv(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Pv(e){const r=t.useRef(e);return Ev((()=>{r.current=e})),t.useRef(((...e)=>(0,r.current)(...e))).current}function kv(...e){return t.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Dv(e,t)}))}),e)}const Ov={};const Tv=[];class _v{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new _v}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function qv(){const e=function(e,r){const n=t.useRef(Ov);return n.current===Ov&&(n.current=e(r)),n}(_v.create).current;return function(e){t.useEffect(e,Tv)}(e.disposeEffect),e}let Nv=!0,Fv=!1;const jv=new _v,zv={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 Gv(e){e.metaKey||e.altKey||e.ctrlKey||(Nv=!0)}function $v(){Nv=!1}function Bv(){"hidden"===this.visibilityState&&Fv&&(Nv=!0)}function Wv(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Nv||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!zv[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Hv(){const e=t.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Gv,!0),t.addEventListener("mousedown",$v,!0),t.addEventListener("pointerdown",$v,!0),t.addEventListener("touchstart",$v,!0),t.addEventListener("visibilitychange",Bv,!0))}),[]),r=t.useRef(!1);return{isFocusVisibleRef:r,onFocus:function(e){return!!Wv(e)&&(r.current=!0,!0)},onBlur:function(){return!!r.current&&(Fv=!0,jv.start(100,(()=>{Fv=!1})),r.current=!1,!0)},ref:e}}function Vv(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Yv(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}function Uv(e){return"string"==typeof e}function Kv(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function Xv(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}const Jv=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Zv(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Er(e,Jv),l=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=ka(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=hr({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=hr({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Kv(hr({},o,n)),l=Xv(n),s=Xv(o),u=t(a),c=ka(null==u?void 0:u.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),d=hr({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=hr({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(hr({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||Uv(e)?t:hr({},t,{ownerState:hr({},t.ownerState,r)})}(r,hr({},s,{ref:kv(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function Qv(e){var r;return parseInt(t.version,10)>=19?(null==e||null==(r=e.props)?void 0:r.ref)||null:(null==e?void 0:e.ref)||null}var ey=t.createContext(null);function ty(){return t.useContext(ey)}var ry="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function ny(e){const{children:r,theme:n}=e,o=ty(),i=t.useMemo((()=>{const e=null===o?n:function(e,t){if("function"==typeof t)return t(e);return hr({},e,t)}(o,n);return null!=e&&(e[ry]=null!==o),e}),[n,o]);return Yl.jsx(ey.Provider,{value:i,children:r})}const oy=["value"],iy=t.createContext();function ay(e){let{value:t}=e,r=Er(e,oy);return Yl.jsx(iy.Provider,hr({value:null==t||t},r))}const ly=t.createContext(void 0);function sy({value:e,children:t}){return Yl.jsx(ly.Provider,{value:e,children:t})}function uy({props:e,name:r}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Sv(o.defaultProps,n):o.styleOverrides||o.variants?n:Sv(o,n)}({props:e,name:r,theme:{components:t.useContext(ly)}})}const cy={};function dy(e,r,n,o=!1){return t.useMemo((()=>{const t=e&&r[e]||r;if("function"==typeof n){const i=n(t),a=e?hr({},r,{[e]:i}):i;return o?()=>a:a}return hr({},r,e?{[e]:n}:n)}),[e,r,n,o])}function py(e){const{children:t,theme:r,themeId:n}=e,o=ov(cy),i=ty()||cy,a=dy(n,o,r),l=dy(n,i,r,!0),s="rtl"===a.direction;return Yl.jsx(ny,{theme:l,children:Yl.jsx(qi.Provider,{value:a,children:Yl.jsx(ay,{value:s,children:Yl.jsx(sy,{value:null==a?void 0:a.components,children:t})})})})}var fy={},my={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(my);var hy=my.exports,gy=B(Vg),by=B(wv),vy=hy;Object.defineProperty(fy,"__esModule",{value:!0});var yy=fy.alpha=ky;fy.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=Iy(e),a=Iy(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return My({type:"rgb",values:l})},fy.colorChannel=void 0;var xy=fy.darken=Oy;fy.decomposeColor=Iy,fy.emphasize=_y;var Sy=fy.getContrastRatio=function(e,t){const r=Py(e),n=Py(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};fy.getLuminance=Py,fy.hexToRgb=Ly,fy.hslToRgb=Dy;var Ey=fy.lighten=Ty;fy.private_safeAlpha=function(e,t,r){try{return ky(e,t)}catch(t){return e}},fy.private_safeColorChannel=void 0,fy.private_safeDarken=function(e,t,r){try{return Oy(e,t)}catch(t){return e}},fy.private_safeEmphasize=function(e,t,r){try{return _y(e,t)}catch(t){return e}},fy.private_safeLighten=function(e,t,r){try{return Ty(e,t)}catch(t){return e}},fy.recomposeColor=My,fy.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Iy(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 Cy=vy(gy),wy=vy(by);function Ry(e,t=0,r=1){return(0,wy.default)(e,t,r)}function Ly(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Iy(e){if(e.type)return e;if("#"===e.charAt(0))return Iy(Ly(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,Cy.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,Cy.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const Ay=e=>{const t=Iy(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};fy.colorChannel=Ay;function My(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function Dy(e){e=Iy(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),My({type:l,values:s})}function Py(e){let t="hsl"===(e=Iy(e)).type||"hsla"===e.type?Iy(Dy(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 ky(e,t){return e=Iy(e),t=Ry(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,My(e)}function Oy(e,t){if(e=Iy(e),t=Ry(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return My(e)}function Ty(e,t){if(e=Iy(e),t=Ry(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return My(e)}function _y(e,t=.15){return Py(e)>.5?Oy(e,t):Ty(e,t)}fy.private_safeColorChannel=(e,t)=>{try{return Ay(e)}catch(t){return e}};var qy={black:"#000",white:"#fff"};var Ny={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 Fy={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 jy={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 zy={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 Gy={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 $y={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 By={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 Wy=["mode","contrastThreshold","tonalOffset"],Hy={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:qy.white,default:qy.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}},Vy={text:{primary:qy.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:qy.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 Yy(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=Ey(e.main,o):"dark"===t&&(e.dark=xy(e.main,i)))}function Uy(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Er(e,Wy),i=e.primary||function(e="light"){return"dark"===e?{main:Gy[200],light:Gy[50],dark:Gy[400]}:{main:Gy[700],light:Gy[400],dark:Gy[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Fy[200],light:Fy[50],dark:Fy[400]}:{main:Fy[500],light:Fy[300],dark:Fy[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:jy[500],light:jy[300],dark:jy[700]}:{main:jy[700],light:jy[400],dark:jy[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:$y[400],light:$y[300],dark:$y[700]}:{main:$y[700],light:$y[500],dark:$y[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:By[400],light:By[300],dark:By[700]}:{main:By[800],light:By[500],dark:By[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:zy[400],light:zy[300],dark:zy[700]}:{main:"#ed6c02",light:zy[500],dark:zy[900]}}(t);function d(e){return Sy(e,Vy.text.primary)>=r?Vy.text.primary:Hy.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=hr({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Hg(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Hg(12,t?` (${t})`:"",JSON.stringify(e.main)));return Yy(e,"light",o,n),Yy(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Vy,light:Hy};return Xg(hr({common:hr({},qy),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:Ny,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Ky=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Xy={textTransform:"uppercase"},Jy='"Roboto", "Helvetica", "Arial", sans-serif';function Zy(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Jy,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Er(r,Ky),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return hr({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===Jy?{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,Xy),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Xy),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Xg(hr({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Qy(...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 ex=["none",Qy(0,2,1,-1,0,1,1,0,0,1,3,0),Qy(0,3,1,-2,0,2,2,0,0,1,5,0),Qy(0,3,3,-2,0,3,4,0,0,1,8,0),Qy(0,2,4,-1,0,4,5,0,0,1,10,0),Qy(0,3,5,-1,0,5,8,0,0,1,14,0),Qy(0,3,5,-1,0,6,10,0,0,1,18,0),Qy(0,4,5,-2,0,7,10,1,0,2,16,1),Qy(0,5,5,-3,0,8,10,1,0,3,14,2),Qy(0,5,6,-3,0,9,12,1,0,3,16,2),Qy(0,6,6,-3,0,10,14,1,0,4,18,3),Qy(0,6,7,-4,0,11,15,1,0,4,20,3),Qy(0,7,8,-4,0,12,17,2,0,5,22,4),Qy(0,7,8,-4,0,13,19,2,0,5,24,4),Qy(0,7,9,-4,0,14,21,2,0,5,26,4),Qy(0,8,9,-5,0,15,22,2,0,6,28,5),Qy(0,8,10,-5,0,16,24,2,0,6,30,5),Qy(0,8,11,-5,0,17,26,2,0,6,32,5),Qy(0,9,11,-5,0,18,28,2,0,7,34,6),Qy(0,9,12,-6,0,19,29,2,0,7,36,6),Qy(0,10,13,-6,0,20,31,3,0,8,38,7),Qy(0,10,13,-6,0,21,33,3,0,8,40,7),Qy(0,10,14,-6,0,22,35,3,0,8,42,7),Qy(0,11,14,-7,0,23,36,3,0,9,44,8),Qy(0,11,15,-7,0,24,38,3,0,9,46,8)];const tx=["duration","easing","delay"],rx={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)"},nx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ox(e){return`${Math.round(e)}ms`}function ix(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ax(e){const t=hr({},rx,e.easing),r=hr({},nx,e.duration);return hr({getAutoHeightDuration:ix,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Er(n,tx),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:ox(o)} ${i} ${"string"==typeof a?a:ox(a)}`)).join(",")}},e,{easing:t,duration:r})}var lx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const sx=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ux(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Er(e,sx);if(e.vars)throw new Error(Hg(18));const l=Uy(n),s=rv(e);let u=Xg(s,{mixins:(c=s.breakpoints,d=r,hr({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:ex.slice(),typography:Zy(l,i),transitions:ax(o),zIndex:hr({},lx)});var c,d;return u=Xg(u,a),u=t.reduce(((e,t)=>Xg(e,t)),u),u.unstable_sxConfig=hr({},Xb,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Qb({sx:e,theme:this})},u}var cx=ux();function dx(){const e=av(cx);return e[Yg]||e}var px,fx={},mx={exports:{}};var hx,gx={exports:{}};var bx=B(Qi),vx=B(Jg),yx=B(ab),xx=B(xv),Sx=B(nv),Ex=B(uv),Cx=hy;Object.defineProperty(fx,"__esModule",{value:!0});var wx=fx.default=function(e={}){const{themeId:t,defaultTheme:r=qx,rootShouldForwardProp:n=_x,slotShouldForwardProp:o=_x}=e,i=e=>(0,Dx.default)((0,Rx.default)({},e,{theme:Fx((0,Rx.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Ix.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=jx(Nx(s))}=a,p=(0,Lx.default)(a,Ox),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=_x;"Root"===s||"root"===s?h=n:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,Ix.default)(e,(0,Rx.default)({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Ax.isPlainObject)(e)?n=>zx(e,(0,Rx.default)({},n,{theme:Fx({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&d&&s.push((e=>{const n=Fx((0,Rx.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[l]||!n.components[l].styleOverrides)return null;const o=n.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=zx(r,(0,Rx.default)({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=Fx((0,Rx.default)({},e,{defaultTheme:r,themeId:t}));return zx({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},(0,Rx.default)({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};fx.shouldForwardProp=_x,fx.systemDefaultTheme=void 0;var Rx=Cx((px||(px=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(mx)),mx.exports)),Lx=Cx((hx||(hx=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(gx)),gx.exports)),Ix=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=Tx(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(bx),Ax=vx;Cx(yx),Cx(xx);var Mx=Cx(Sx),Dx=Cx(Ex);const Px=["ownerState"],kx=["variants"],Ox=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Tx(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(Tx=function(e){return e?r:t})(e)}function _x(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const qx=fx.systemDefaultTheme=(0,Mx.default)(),Nx=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Fx({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function jx(e){return e?(t,r)=>r[e]:null}function zx(e,t){let{ownerState:r}=t,n=(0,Lx.default)(t,Px);const o="function"==typeof e?e((0,Rx.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>zx(e,(0,Rx.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Lx.default)(o,kx);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,Rx.default)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,Rx.default)({ownerState:r},n,r)):e.style))})),t}return o}var Gx=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var $x=wx({themeId:Yg,defaultTheme:cx,rootShouldForwardProp:Gx});const Bx=["theme"];function Wx(e){let{theme:t}=e,r=Er(e,Bx);const n=t[Yg];return Yl.jsx(py,hr({},r,{themeId:n?Yg:void 0,theme:n||t}))}var Hx=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};const Vx={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},Yx={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},Ux=fu("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...Vx},"&::-moz-range-track":{...Vx},"&::-ms-track":{...Vx},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...Yx},"&::-moz-range-thumb":{...Yx},"&::-ms-thumb":{...Yx},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}}))),Kx=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:l,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:d,accessibilityRelatedArgs:p,direction:f="ltr"})=>{const m=Wg({translator:p.translator}),h=c({initWidth:e,columnWidth:e,initX:0}),g=n?0:1,b=o&&!d,v={left:"rtl"===f?"0px":b?h.current.columnWidth-g:"100%",right:"rtl"===f?"100%":"0px"},y=t=>{h.current={initWidth:e,columnWidth:e,initX:null!=t?t:h.current.initX}};$g((()=>{b&&y()}),[e]);const x=e=>{const t=Math.max(e,tr.PixelsMin);h.current.columnWidth=t,a(t)},S=()=>{if(h.current.columnWidth!==h.current.initWidth){const e={type:rr.Pixels,pixels:h.current.columnWidth};l(e)}else null==u||u(!1)},E=e=>{const t="rtl"===f?h.current.initWidth+h.current.initX-e.clientX:h.current.initWidth+e.clientX-h.current.initX;x(t)},C=e=>{Vh(e),document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",C),S()},w=e=>{const t="rtl"===f?h.current.initWidth+-h.current.initX-e.touches[0].clientX:h.current.initWidth+e.touches[0].clientX-h.current.initX;x(t)},R=e=>{Vh(e),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",R),S()},L=!o&&s?e=>{if(e.key===Qt.Left||e.key===Qt.Right){Vh(e);const t=5,r=e.key===Qt.Left?t:-t,n="rtl"===f?r:-r;x(h.current.columnWidth+n)}else e.key===Qt.Space||e.key===Qt.Enter?(Vh(e),s(e),S()):e.key===Qt.Esc&&(Vh(e),s(e),x(h.current.initWidth))}:void 0,I=m.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(p.columnLabel)]);return r.createElement(Ux,{style:v,key:t,hoverColor:i,isLastColumn:n,className:er,"data-testid":er,onMouseDown:e=>{Vh(e),document.addEventListener("mousemove",E),document.addEventListener("mouseup",C),null==u||u(!0),y(e.clientX)},onDoubleClick:()=>{l({type:rr.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(Vh(e),document.addEventListener("touchmove",w),document.addEventListener("touchend",R),null==u||u(!0),y(e.touches[0].clientX))},onKeyDown:L,onBlur:s,onFocus:()=>{y()},type:"range",tabIndex:-1,max:tr.PixelsMax,"aria-label":I,"aria-valuemin":tr.PixelsMin,"aria-valuemax":tr.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:f})};function Xx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Jx=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Xx(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),Zx=d(Jx);function Qx(){return Qx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qx.apply(null,arguments)}const eS=fu(qd,{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"}))),tS=fu(Zx,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),rS=fu(mf)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),nS=fu(ap)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),oS=fu(yf)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),iS=fu(yf,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden ",boxSizing:"border-box !important",background:r?"rgba(0, 0, 0, 0.05)":"transparent"}))),aS=fu("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"}))),lS=fu("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),sS=fu(Nc)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),uS=fu(zp)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function cS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const dS=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){cS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),pS=d(dS);let fS={};const mS=({autoFocus:e,id:t,onClick:n,itemTitle:o,icon:i,enabled:a,subMenus:l,isSubMenu:s,isActive:d,handleHeadCellMenuKeyDown:f})=>{const[m,h]=u(!1),g=c(null),b=p((e=>{e.stopPropagation(),h(!1)}),[h]);return r.createElement(r.Fragment,null,r.createElement(iS,{ref:l?g: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),fS={}),null!=l&&l.length&&(h(!0),fS[o]=h))},disabled:!a,autoFocus:e,isSubMenu:!!s,isActive:!!d,onKeyDown:f},d?r.createElement(aS,null):null,r.createElement(lS,null,r.createElement(uS,null,r.createElement(i,null)),r.createElement(sS,{variant:"body2"},o)),null!=l&&l.length?r.createElement(pS,null):null),null!=l&&l.length?r.createElement(bS,{isSubMenu:!0,open:m,anchorEl:g.current,onClose:b,menuGroups:(v=l,y=fS,v.map((e=>e.map((e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(y).forEach((([,e])=>{e(!1)})),await e(t)}}:{}})))})))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:f}):null);var v,y},hS=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>[[e.groupHeading&&r.createElement(oS,{key:e.groupHeading,disabled:!0,style:{opacity:1}},e.groupHeading),e.items.map((e=>r.createElement(mS,Qx({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)])),gS={appear:200,enter:200,exit:100},bS=({anchorEl:e,open:t,onClose:n,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,handleHeadCellMenuKeyDown:s})=>o.length?r.createElement(rS,Qx({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,transitionDuration:gS,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"}},a?{anchorOrigin:a}:{},i?{transformOrigin:i}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((o,i)=>[hS({menuGroup:o,isSubMenu:t,handleHeadCellMenuKeyDown:n}),i<e.length-1?r.createElement(nS,{"data-testid":"group-divider",variant:"middle"}):void 0])))({itemGroups:o,isSubMenu:l,handleHeadCellMenuKeyDown:s})):null,vS=(e,t)=>e.some((e=>t[e]>0)),yS={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},xS=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=u(null),[a,l]=u(yS);return $g((()=>{e||(l(yS),i(null))}),[e]),f((()=>{if(null==n||!n.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const s=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{var e,u,c;const d=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,r),p=await n.createSessionObject(d),f=await p.getLayout(),{qStateCounts:m}=null!==(e=null===(u=f.qListObject)||void 0===u?void 0:u.qDimensionInfo)&&void 0!==e?e:{};o=null===(c=f.qInfo)||void 0===c?void 0:c.qId,a?s():(i(p),m&&l((e=>({canSelectAll:vS(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:vS(["qSelected"],e),canSelectPossible:vS(["qOption"],e),canSelectAlternative:vS(["qAlternative"],e),canSelectExcluded:vS(["qAlternative","qExcluded"],e)}))(m)))}catch(e){console.error(e)}})(),()=>{a=!0,s()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}};function SS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ES=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){SS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.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"})),CS=d(ES);function wS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const RS=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){wS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.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"})),LS=d(RS);function IS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const AS=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){IS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.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"})),MS=d(AS);function DS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const PS=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){DS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.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"})),kS=d(PS);function OS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const TS=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){OS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.createElement("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.454.858v6.484a1 1 0 0 1-.576.906L8.5 14.663V7.17z"})),_S=d(TS);function qS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const NS=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){qS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})),FS=d(NS);function jS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const zS=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){jS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})),GS=d(zS);function $S(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const BS=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){$S(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.createElement("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})),WS=d(BS);function HS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const VS=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){HS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.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"})),YS=d(VS);function US(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const KS=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){US(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.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"})),XS=d(KS);function JS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ZS=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){JS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.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"})),QS=d(ZS);function eE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const tE=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){eE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.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"})),rE=d(tE);function nE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const oE=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){nE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.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"})),iE=d(oE);function aE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const lE=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){aE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.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"})),sE=d(lE);let uE=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const cE="/qListObjectDef",dE=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[uE.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"A")),n(!1)},icon:CS,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"D")),n(!1)},icon:kS,enabled:l,isActive:!!r&&"D"===i,autoFocus:!a&&l}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:WS,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:_S,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&null!=i&&i.select){const e=[];r[uE.Searching]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:YS,enabled:!0}]}]),r[uE.Selections]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:sE,enabled:!!l,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectAll(cE))},icon:XS,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectPossible(cE))},icon:iE,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectAlternative(cE))},icon:QS,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectExcluded(cE))},icon:rE,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.clearSelections(cE))},icon:LS,enabled:s.canClearSelections}]}]]}]}]),p&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:GS,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:FS,enabled:!0}]}]),e.length>0&&f.push(...e)}return r[uE.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),null==c||c(u)},icon:MS,enabled:!0}]}]),f},pE=({open:e,setOpen:t,anchorRef:n,headerData:o,translator:i,interactions:a,handleHeadCellMenuKeyDown:l,menuAvailabilityFlags:s,shouldShowMenuIcon:u=!0,sortRelatedArgs:c,searchRelatedArgs:d,selectionRelatedArgs:f,adjustHeaderSizeRelatedArgs:m,expandOrCollapseArgs:h,env:g,model:b,direction:v="ltr",isPagination:y})=>{var x;const S=Wg({translator:i}),{qLibraryId:E,fieldId:C,headTextAlign:w}=o,R=null==f?void 0:f.app,{fieldInstance:L,selectionActionsEnabledStatus:I}=xS({open:e,headerData:o,app:R,qStateName:null==f?void 0:f.qStateName});let A=null;if(g.flags.isEnabled("CLIENT_IM_7107_TABLE_MENU_CYCLIC_DIM")&&b&&"setActiveField"in b&&void 0!==o.dimensionInfoIndex){const e=o.dimensionInfoIndex;A=async t=>{try{await b.setActiveField("/qHyperCubeDef",e,t)}catch(e){console.error(e)}}}const M=p((()=>{const e=E?{qLibraryId:E,type:"dimension"}:C;if(null!=d&&d.embed){const{embed:t,listboxRef:r}=d;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:y||"rtl"!==v?"left":"right"},sortCriteria:d.sortCriteria,stateName:null==f?void 0:f.qStateName})}}),[E,C,d,null==f?void 0:f.qStateName,v,y]),D=p((e=>{e.stopPropagation(),t(!1)}),[t]);return a.active?r.createElement(eS,{rightAligned:"right"===w,shouldShowMenuIcon:u,className:"nebula-table-utils-head-menu-wrapper"},u?r.createElement(tS,{height:Xt,className:Jt,"data-testid":Jt,isInteractionsActive:null!==(x=a.active)&&void 0!==x&&x},r.createElement(Zx,null)):null,r.createElement(bS,{open:e,anchorEl:n.current,onClose:D,menuGroups:dE({headerData:o,translator:S,menuAvailabilityFlags:s,setOpen:t,...c,embedListbox:M,interactions:a,fieldInstance:L,selectionActionsEnabledStatus:I,anchorRef:n,setFocusOnColumnAdjuster:null==m?void 0:m.setFocusOnColumnAdjuster,setActiveFieldCallback:A,expandOrCollapseArgs:h}),handleHeadCellMenuKeyDown:l})):null},fE=e=>e.isDark?{background:e.color,borderColor:dm.DARK_MODE_BORDER,color:dm.DARK_MODE_TEXT,disabledColor:dm.DARK_MODE_DISABLED,iconColor:dm.DARK_MODE_TEXT}:{background:e.color,borderColor:dm.BORDER_MEDIUM,color:dm.TEXT,disabledColor:dm.DISABLED},mE=fu(qd,{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}`}))),hE=fu(nm,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),gE=fu(Yd,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)}))),bE=fu(Nc)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),vE=({children:e,footerContainer:t,interactions:n,theme:o,paginationNeeded:i=!0})=>{const a=s((()=>fE(o.background)),[o]);if(!n.active)return null;const l=i?r.createElement(mE,{footerStyle:a},e):null;return t?F.createPortal(e,t):l},yE=m({}),xE=()=>n(yE),SE=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:o,footerContainer:i,isSelectionMode:a,handleChangePage:l,totalRowCount:u,totalColumnCount:c,totalPages:d,keyboard:p,translator:f,theme:m,interactions:h,rect:g,layout:b})=>{const v=(e=>!e.enabled||e.active)(p)?0:-1,y=s((()=>fE(m.background)),[m]),x=i?i.getBoundingClientRect().width:g.width,S=Wg({translator:f}),E=s((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:o,footerContainer:i,isSelectionMode:a,handleChangePage:l,totalRowCount:u,totalColumnCount:c,totalPages:d,keyboard:p,translator:S,theme:m,interactions:h,rect:g,layout:b,footerStyle:y,tabIndex:v,width:x})),[t,n,o,i,a,l,u,c,d,p,S,m,h,g,b,y,v,x]);return r.createElement(yE.Provider,{value:E},e)};let EE=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),CE=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 wE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const RE=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){wE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),LE=d(RE);function IE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const AE=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){IE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),ME=d(AE);function DE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const PE=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){DE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),kE=d(PE),OE={FirstPage:ME,PreviousPage:LE,NextPage:pS,LastPage:kE,FirstPageRTL:kE,PreviousPageRTL:pS,NextPageRTL:LE,LastPageRTL:ME},TE=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=xE(),u=r.concat("rtl"===n?"RTL":""),c=OE[u];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:s,onClick:e?void 0:()=>{i(t)}},IconComponent:c}},_E=()=>{const{pageInfo:e,width:t}=xE(),n=0===e.page,{IconComponent:o,styledProps:i}=TE({type:EE.FirstPage,disabledCondition:n,pageNumber:0});return t<=CE.FirstPage?null:r.createElement(gE,i,r.createElement(o,{height:Xt}))},qE=(e,t,r=!1)=>{r&&e.key===Qt.Tab&&!e.shiftKey&&(Vh(e),((e,t,r)=>{var n,o,i,a;const l=null!==(n=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==n?n:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,r)})(e.target,t,!1))},NE=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:o,width:i}=xE(),a=e.page>=n-1,{IconComponent:l,styledProps:s}=TE({type:EE.LastPage,disabledCondition:a,pageNumber:n-1}),u=t.enabled?e=>{qE(e,t,o)}:void 0;return i<=CE.LastPage?null:r.createElement(gE,Qx({},s,{onKeyDown:u}),r.createElement(l,{height:Xt}))},FE=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:o,width:i}=xE(),a=e.page>=n-1,{IconComponent:l,styledProps:s}=TE({type:EE.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(i>CE.FirstPage&&i>CE.LastPage)&&t.enabled?e=>{qE(e,t,o)}:void 0;return r.createElement(gE,Qx({},s,{onKeyDown:u}),r.createElement(l,{height:Xt}))},jE=()=>{const{pageInfo:e}=xE(),t=0===e.page,{IconComponent:n,styledProps:o}=TE({type:EE.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return r.createElement(gE,o,r.createElement(n,{height:Xt}))},zE=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:o}=xE(),{page:i,rowsPerPage:a}=n;if(t<=CE.DisplayedRowsLabel)return null;const l=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,o)}`,o.toString()]);return r.createElement(bE,{variant:"caption"},l)},GE=({name:e,value:t,options:n,handleChange:o})=>{const{layout:i,footerStyle:a,translator:l,tabIndex:s}=xE(),u=i.qInfo.qId,c=l.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return r.createElement(r.Fragment,null,r.createElement(bE,{variant:"caption",id:p},c,":"),r.createElement(hE,{footerStyle:a,size:"small",native:!0,value:t,onChange:o,inputProps:f},n))},$E=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:o,width:i,handleChangeRowsPerPage:a}=xE();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&i>CE.RowsPerPage&&o<=100)||void 0===t.rowsPerPageOptions)return null;const l=r.createElement(r.Fragment,null,t.rowsPerPageOptions.map((e=>r.createElement("option",{key:e,value:e},e))));return r.createElement(GE,{name:"RowsPerPage",value:t.rowsPerPage,options:l,handleChange:e=>{null==a||a(+e.target.value)}})},BE=1e3,WE="…",HE=({totalPages:e,page:t})=>{const n=Math.min(e,BE),o=n<e&&t>500,i=o?Math.min(500+t,e):n,a=o?Math.max(0,i-BE):0,l=Array.from(Array(n).keys()).map((e=>{const t=e+a;return r.createElement("option",{key:t,value:t},t+1)}));return a>0&&l.unshift(r.createElement("option",{key:"startMoreOptions",value:WE,disabled:!0},WE)),i<e-1&&l.push(r.createElement("option",{key:"endMoreOptions",value:WE,disabled:!0},WE)),r.createElement(r.Fragment,null,l)},VE=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:o}=xE(),{page:i}=e;if(t<=CE.SelectPage)return null;const a=r.createElement(HE,{totalPages:n,page:i});return r.createElement(GE,{name:"SelectPage",value:i,options:a,handleChange:e=>{o(+e.target.value)}})};var YE=h((e=>r.createElement(SE,e,r.createElement($E,null),r.createElement(VE,null),r.createElement(zE,null),r.createElement(_E,null),r.createElement(jE,null),r.createElement(FE,null),r.createElement(NE,null))));const UE=e=>r.createElement(vE,e,r.createElement(YE,e)),KE=m({}),XE=()=>n(KE),JE=({rect:e,pageInfo:t,qPivotDataPages:r,updatePageInfo:n,children:o})=>{const i=s((()=>({rect:e,pageInfo:t,qPivotDataPages:r,updatePageInfo:n})),[e,t,r,n]);return Yl.jsx(KE.Provider,{value:i,children:o})},ZE=m({}),QE=()=>n(ZE),eC=({app:e,model:t,theme:r,embed:n,keyboard:o,translator:i,interactions:a,env:l,children:u})=>{const c=s((()=>({model:t,app:e,interactions:a,embed:n,theme:r,keyboard:o,env:l,translator:i})),[e,a,t,n,r,o,l,i]);return Yl.jsx(ZE.Provider,{value:c,children:u})},tC=m({}),rC=()=>n(tC),nC=({children:e,...t})=>Yl.jsx(tC.Provider,{value:t,children:e}),oC=()=>{const{text:e,fontFamily:t,fontSize:r,justifyContent:n,alignItems:o,height:i}=(()=>{var e;const{theme:t,translator:r}=QE(),{layoutService:n}=rC(),o=null!==(e=t.getStyle("","","fontFamily"))&&void 0!==e?e:rg;return n.hasData?n.hasLimitedData?{text:r.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:r.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})();return void 0===e?null:Yl.jsx("div",{style:{display:"flex",justifyContent:n,alignItems:o,width:"100%",height:i},children:Yl.jsx("span",{style:{...dg,fontFamily:t,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:e})})},iC="/qHyperCubeDef",aC=-1,lC="PSEUDO-DIM",sC=[];for(let e=0;e<256;++e)sC.push((e+256).toString(16).slice(1));let uC;const cC=new Uint8Array(16);function dC(){if(!uC){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");uC=crypto.getRandomValues.bind(crypto)}return uC(cC)}var pC={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function fC(e,t,r){if(pC.randomUUID&&!t&&!e)return pC.randomUUID();const n=(e=e||{}).random||(e.rng||dC)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return function(e,t=0){return(sC[e[t+0]]+sC[e[t+1]]+sC[e[t+2]]+sC[e[t+3]]+"-"+sC[e[t+4]]+sC[e[t+5]]+"-"+sC[e[t+6]]+sC[e[t+7]]+"-"+sC[e[t+8]]+sC[e[t+9]]+"-"+sC[e[t+10]]+sC[e[t+11]]+sC[e[t+12]]+sC[e[t+13]]+sC[e[t+14]]+sC[e[t+15]]).toLowerCase()}(n)}const mC=()=>{var e,t,r;return null!==(e=null===(t=crypto)||void 0===t||null===(r=t.randomUUID)||void 0===r?void 0:r.call(t))&&void 0!==e?e:fC()},hC=e=>e===aC?lC:(({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:mC()})(e),gC=({layoutService:e,visibleLeftDimensionInfos:t,cell:r,colIdx:n})=>{r&&(r.canBeResized=!0,r.colIdx=r.colIdx||n,r.dimensionInfoIndex===aC?r.columnWidthLocation=Vt.Measures:r.isLeftDimension?r.columnWidthLocation=Vt.Dimension:t.at(-1)===aC?r.columnWidthLocation=Vt.Measures:e.hasPseudoDimOnLeft&&(r.columnWidthLocation=Vt.Pivot))},bC=(e,t,r,n)=>{var o;const i=hC(r),a=e.getDimensionInfoIndex(r),l=e.isLeftDimension(a);return r===aC?{id:i,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,isCyclic:!1,groupDimensionPos:0,groupDimensionLabels:[],headTextAlign:"left",dimensionInfoIndex:a,canBeResized:!1,isLeftDimension:l,isLastDimension:n,columnWidthLocation:Vt.Measures,isPivot:!0,qEffectiveDimensionName:void 0}:{id:i,colIdx:0,label:r.qFallbackTitle,qReverseSort:r.qReverseSort,sortDirection:r.qSortIndicator&&"N"!==r.qSortIndicator?r.qSortIndicator:"A",qLibraryId:r.qLibraryId,fieldId:r.qGroupFieldDefs[r.qGroupPos],isLocked:null!==(o=r.qLocked)&&void 0!==o&&o,columnWidth:r.columnWidth,qApprMaxGlyphCount:r.qApprMaxGlyphCount,isDim:!0,isCyclic:r.qGrouping===ir.Cyclic,groupDimensionPos:r.qGroupPos,groupDimensionLabels:r.qGroupFallbackTitles,headTextAlign:"left",dimensionInfoIndex:a,canBeResized:!1,isLeftDimension:l,isLastDimension:n,columnWidthLocation:Vt.Dimension,isPivot:!0,isSortedByFirstMeasure:t.isSortedByFirstMeasure,qEffectiveDimensionName:r.qEffectiveDimensionName}},vC=({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n})=>{let o=n;var i;r.length>0&&(o=(i=n).at(-1)===aC?i.slice(0,-1):i);const a=o.length+(r.length?1:0),l=Math.max(1,r.length),s=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(a,l);return r.forEach(((r,n,o)=>{const i=n===o.length-1;s[a-1][n]=bC(e,t,r,i)})),o.forEach(((r,n,o)=>{const i=n===o.length-1;s[n][l-1]=bC(e,t,r,i)})),s},yC=(e,t,r,n)=>{var o,i;const a=((e,t,r,n)=>{let o;var i;return o=0===r.length||r.includes(aC)?vC({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r}):(e=>e[0].map(((t,r)=>e.map((e=>e[r])))))(vC({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n})),e.isIndentModeEnabled&&o[o.length-1].length>1&&(o[o.length-1]=[o.at(-1),...new Array(o[0]?o[0].length-1:0).fill(null)]),o.length&&(null===(i=o.at(-1))||void 0===i||i.forEach(((t,r)=>{if(Array.isArray(t)){const r=t;for(let t=0;t<r.length;t++)gC({layoutService:e,visibleLeftDimensionInfos:n,cell:r[t],colIdx:t})}else gC({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})}))),o})(e,t,r,n);return{data:a,size:{x:null!==(o=null===(i=a[0])||void 0===i?void 0:i.length)&&void 0!==o?o:0,y:a.length}}};function xC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function SC(e,t,r){return t=RC(t),function(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)}(e,IC()?Reflect.construct(t,r||[],RC(e).constructor):t.apply(e,r))}function EC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,DC(n.key),n)}}function wC(e,t,r){return t&&CC(e.prototype,t),r&&CC(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function RC(e){return RC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},RC(e)}function LC(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&&AC(e,t)}function IC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(IC=function(){return!!e})()}function AC(e,t){return AC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},AC(e,t)}function MC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return xC(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xC(e,t):void 0}}(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 DC(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function PC(e){return PC="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},PC(e)}var kC={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var r,n=e.indexOf("="),o="",i=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),i=!0),t.push(function(e,t,r){return{key:OC(e),value:OC(t),useEqualSign:r}}(r,o,i))}})),t}};function OC(e){try{return decodeURIComponent(e)}catch(t){return e}}function TC(e){if(!(this instanceof TC))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return kC.fromSearchString(t.search)}}})}function _C(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2B/gi,"+").replace(/%2C/gi,",").replace(/%3B/gi,";")}TC.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},TC.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=_C((t=e[n]).key),t.value?r+="=".concat(_C(t.value)):r+=t.useEqualSign?"=":"";return r};var qC,NC=function(){return wC((function e(t){EC(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}),[{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}}])}(),FC=function(){return wC((function e(){EC(this,e)}),[{key:"decode",value:function(e){for(var t,r="",n=new NC(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}])}(),jC=function(e){return e>=0&&e<=1114111},zC=function(e){return e.match(/[\s]/)},GC=function(e){function t(){return EC(this,t),SC(this,t,arguments)}return LC(t,e),wC(t,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,r=0;r<5&&(null!=(n=e.next())&&!zC(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return jC(a)?String.fromCharCode(a):"�"}}])}(FC),$C=function(){function e(t,r){EC(this,e),this._key=t,this._value=r}return wC(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}}])}(),BC=function(){function e(){EC(this,e)}return wC(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,r,n){var o,i;if(t.length===r)return i=this._value,this.setValue(n),i;var a=t.charAt(r);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return $C.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return $C.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||$C.newInstanceIfNeeded(e,t,this._value)}}])}(),WC=function(){return wC((function e(){EC(this,e),this.clear()}),[{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 BC);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}])}(),HC=function(){var e,t,r,n=[],o=[],i=new WC;for(e in n["&quot"]="34",n["&amp"]="38",n["&lt"]="60",n["&gt"]="62",n["&nbsp"]="160",n["&iexcl"]="161",n["&cent"]="162",n["&pound"]="163",n["&curren"]="164",n["&yen"]="165",n["&brvbar"]="166",n["&sect"]="167",n["&uml"]="168",n["&copy"]="169",n["&ordf"]="170",n["&laquo"]="171",n["&not"]="172",n["&shy"]="173",n["&reg"]="174",n["&macr"]="175",n["&deg"]="176",n["&plusmn"]="177",n["&sup2"]="178",n["&sup3"]="179",n["&acute"]="180",n["&micro"]="181",n["&para"]="182",n["&middot"]="183",n["&cedil"]="184",n["&sup1"]="185",n["&ordm"]="186",n["&raquo"]="187",n["&frac14"]="188",n["&frac12"]="189",n["&frac34"]="190",n["&iquest"]="191",n["&Agrave"]="192",n["&Aacute"]="193",n["&Acirc"]="194",n["&Atilde"]="195",n["&Auml"]="196",n["&Aring"]="197",n["&AElig"]="198",n["&Ccedil"]="199",n["&Egrave"]="200",n["&Eacute"]="201",n["&Ecirc"]="202",n["&Euml"]="203",n["&Igrave"]="204",n["&Iacute"]="205",n["&Icirc"]="206",n["&Iuml"]="207",n["&ETH"]="208",n["&Ntilde"]="209",n["&Ograve"]="210",n["&Oacute"]="211",n["&Ocirc"]="212",n["&Otilde"]="213",n["&Ouml"]="214",n["&times"]="215",n["&Oslash"]="216",n["&Ugrave"]="217",n["&Uacute"]="218",n["&Ucirc"]="219",n["&Uuml"]="220",n["&Yacute"]="221",n["&THORN"]="222",n["&szlig"]="223",n["&agrave"]="224",n["&aacute"]="225",n["&acirc"]="226",n["&atilde"]="227",n["&auml"]="228",n["&aring"]="229",n["&aelig"]="230",n["&ccedil"]="231",n["&egrave"]="232",n["&eacute"]="233",n["&ecirc"]="234",n["&euml"]="235",n["&igrave"]="236",n["&iacute"]="237",n["&icirc"]="238",n["&iuml"]="239",n["&eth"]="240",n["&ntilde"]="241",n["&ograve"]="242",n["&oacute"]="243",n["&ocirc"]="244",n["&otilde"]="245",n["&ouml"]="246",n["&divide"]="247",n["&oslash"]="248",n["&ugrave"]="249",n["&uacute"]="250",n["&ucirc"]="251",n["&uuml"]="252",n["&yacute"]="253",n["&thorn"]="254",n["&yuml"]="255",n["&OElig"]="338",n["&oelig"]="339",n["&Scaron"]="352",n["&scaron"]="353",n["&Yuml"]="376",n["&fnof"]="402",n["&circ"]="710",n["&tilde"]="732",n["&Alpha"]="913",n["&Beta"]="914",n["&Gamma"]="915",n["&Delta"]="916",n["&Epsilon"]="917",n["&Zeta"]="918",n["&Eta"]="919",n["&Theta"]="920",n["&Iota"]="921",n["&Kappa"]="922",n["&Lambda"]="923",n["&Mu"]="924",n["&Nu"]="925",n["&Xi"]="926",n["&Omicron"]="927",n["&Pi"]="928",n["&Rho"]="929",n["&Sigma"]="931",n["&Tau"]="932",n["&Upsilon"]="933",n["&Phi"]="934",n["&Chi"]="935",n["&Psi"]="936",n["&Omega"]="937",n["&alpha"]="945",n["&beta"]="946",n["&gamma"]="947",n["&delta"]="948",n["&epsilon"]="949",n["&zeta"]="950",n["&eta"]="951",n["&theta"]="952",n["&iota"]="953",n["&kappa"]="954",n["&lambda"]="955",n["&mu"]="956",n["&nu"]="957",n["&xi"]="958",n["&omicron"]="959",n["&pi"]="960",n["&rho"]="961",n["&sigmaf"]="962",n["&sigma"]="963",n["&tau"]="964",n["&upsilon"]="965",n["&phi"]="966",n["&chi"]="967",n["&psi"]="968",n["&omega"]="969",n["&thetasym"]="977",n["&upsih"]="978",n["&piv"]="982",n["&ensp"]="8194",n["&emsp"]="8195",n["&thinsp"]="8201",n["&zwnj"]="8204",n["&zwj"]="8205",n["&lrm"]="8206",n["&rlm"]="8207",n["&ndash"]="8211",n["&mdash"]="8212",n["&lsquo"]="8216",n["&rsquo"]="8217",n["&sbquo"]="8218",n["&ldquo"]="8220",n["&rdquo"]="8221",n["&bdquo"]="8222",n["&dagger"]="8224",n["&Dagger"]="8225",n["&bull"]="8226",n["&hellip"]="8230",n["&permil"]="8240",n["&prime"]="8242",n["&Prime"]="8243",n["&lsaquo"]="8249",n["&rsaquo"]="8250",n["&oline"]="8254",n["&frasl"]="8260",n["&euro"]="8364",n["&image"]="8365",n["&weierp"]="8472",n["&real"]="8476",n["&trade"]="8482",n["&alefsym"]="8501",n["&larr"]="8592",n["&uarr"]="8593",n["&rarr"]="8594",n["&darr"]="8595",n["&harr"]="8596",n["&crarr"]="8629",n["&lArr"]="8656",n["&uArr"]="8657",n["&rArr"]="8658",n["&dArr"]="8659",n["&hArr"]="8660",n["&forall"]="8704",n["&part"]="8706",n["&exist"]="8707",n["&empty"]="8709",n["&nabla"]="8711",n["&isin"]="8712",n["&notin"]="8713",n["&ni"]="8715",n["&prod"]="8719",n["&sum"]="8721",n["&minus"]="8722",n["&lowast"]="8727",n["&radic"]="8730",n["&prop"]="8733",n["&infin"]="8734",n["&ang"]="8736",n["&and"]="8743",n["&or"]="8744",n["&cap"]="8745",n["&cup"]="8746",n["&int"]="8747",n["&there4"]="8756",n["&sim"]="8764",n["&cong"]="8773",n["&asymp"]="8776",n["&ne"]="8800",n["&equiv"]="8801",n["&le"]="8804",n["&ge"]="8805",n["&sub"]="8834",n["&sup"]="8835",n["&nsub"]="8836",n["&sube"]="8838",n["&supe"]="8839",n["&oplus"]="8853",n["&otimes"]="8855",n["&perp"]="8869",n["&sdot"]="8901",n["&lceil"]="8968",n["&rceil"]="8969",n["&lfloor"]="8970",n["&rfloor"]="8971",n["&lang"]="9001",n["&rang"]="9002",n["&loz"]="9674",n["&spades"]="9824",n["&clubs"]="9827",n["&hearts"]="9829",n["&diams"]="9830",n)"function"!=typeof n[e]&&n.hasOwnProperty(e)&&(o[n[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(r=o[t].toLowerCase().substr(1),i.put(r,String.fromCharCode(t)));return i}(),VC=function(e){function t(){return EC(this,t),SC(this,t,arguments)}return LC(t,e),wC(t,[{key:"decodeCharacter",value:function(e){var t;e.mark();var r=e.next();if(null==r||"&"!==r)return e.reset(),null;var n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(null!=(t=this._getNumericEntity(e)))return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,r,n,o="";for(t=Math.min(e.remainder().length,HC.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=HC.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,16);return!Number.isNaN(+n)&&jC(n)?String.fromCharCode(n):null}},{key:"_parseNumber",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,10);return!Number.isNaN(+n)&&jC(n)?String.fromCharCode(n):null}}])}(FC),YC=function(e){function t(){return EC(this,t),SC(this,t,arguments)}return LC(t,e),wC(t,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",r=0;r<2;r++)null!=(n=e.nextHex())&&(t+=n);return 2===t.length&&(o=parseInt(t,16),jC(o))?String.fromCharCode(o):(e.reset(),null)}}])}(FC),UC=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(qC=document.createElement("div"));var KC=Array.prototype.indexOf,XC=[",",".","_"," "],JC=[",",".","-","_"," "],ZC={width:["%"],height:["%"]},QC={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},ew={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":QC.image,"background-color":QC.color,"border-color":QC.color,"border-image":QC.image,color:QC.color,icon:QC.image,"list-style-image":QC.image,"outline-color":QC.color},tw={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function rw(e,t,r){var n;if(t){if(KC)return KC.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function nw(e){if(null==e)return"";var t,r=document.createTextNode(e);return qC.appendChild(r),t=qC.innerHTML,qC.removeChild(r),t}function ow(e,t,r){var n,o,i,a,l,s,u,c,d;if(e=aw(e).toLowerCase(),t=aw(t),rw(e,tw.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<tw.attr_val;i++)if(t.toLowerCase().match(tw.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=ZC[e])||(n=JC),o="",!r){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=l}o+='="'}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&rw(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function iw(e,t,r){var n,o,i,a,l,s,u,c,d,p;if(e=aw(e).toLowerCase(),t=aw(t),rw(e,tw.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<tw.css_val.length;n++)if(t.toLowerCase().indexOf(tw.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=ew[e])||(o=QC.default),i="",!r){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=l}i+=": "}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&rw(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function aw(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var l=[new VC,new YC,new GC];!a;){n=r;for(var s=0;s<l.length;s++)(i=l[s].decode(r))!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}for(var lw=[],sw=0;sw<255;sw++)lw[sw]=sw>=48&&sw<=57||sw>=65&&sw<=90||sw>=97&&sw<=122?null:sw.toString(16);var uw=function(e){return nw(e.unsafe)},cw=function(e){var t,r=[],n=[],o={},i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=iw(t,r[t],!0),i+=iw(t,r[t],!0),o[t]=n[t]);return e.map?o:i},dw=function(e){var t=[],r=[],n={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(r[i]=ow(i,t[i],!0),o+=ow(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function pw(e,t){throw new Error(t)}var fw={canonicalize:aw,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===PC(arguments[0])?function(){for(var e,t,r,n=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(n===(r=e[t]))continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?uw(e):"css"===e.context?(null!=e.map&&"object"!==PC(e.map)&&pw(this,"Invalid parameter type"),cw(e)):"attr"===e.context?(null!=e.map&&"object"!==PC(e.map)&&pw(this,"Invalid parameter type"),dw(e)):void pw(this,"Invalid parameter type")},encodeForAttr:ow,encodeForAttr2:function(e){return ow("nonsens",e,!0)},encodeForCSS:iw,encodeForHref:function(e){aw(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new TC(e),r=TC.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+TC.encodeSearchParams(n)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var r,n,o,i,a,l;for(t||(t=XC),l="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),rw(o,t)>=0||null==lw[i]?l+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),l+="\\x".concat(a).concat(n.toUpperCase())):(a="0000".substr(n.length),l+="\\u".concat(a).concat(n.toUpperCase())));return l},encodeForHTML:nw,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=aw(t).toLowerCase():pw(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':""},isSafeDataURL:function(e,t){var r=null!=t?t:{},n=r.maxByteSizeSvg,o=void 0===n?5e5:n,i=r.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,r=MC(null!==(t=UC.exec(e.trim()))&&void 0!==t?t:[],4),n=r[1];return{encoding:r[2],data:r[3],mimeType:null==n?void 0:n.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,r){var n={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(r)],n).size}catch(e){return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch(e){return!1}}(e))return!1;var t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;var r=function(e){for(var t=e,r="";t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");var n=r.lastIndexOf("/");-1!==n&&(r=r.slice(0,n))}else if("/.."===t){t="/";var o=r.lastIndexOf("/");-1!==o&&(r=r.slice(0,o))}else if("."===t||".."===t)t="";else{var i=t.match(/^\/?[^/]*/),a=i?i[0]:"";t=t.slice(a.length),r+=a}return r}(t);return""!==r&&"/"!==r&&r}};const mw=(e,t)=>{var r;return null===(r=t.qAttrExps)||void 0===r||null===(r=r.qValues)||void 0===r?void 0:r[e]},hw=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"}}},gw=({text:e,url:t,imageSize:r,imagePosition:n})=>n&&t&&!t.toLowerCase().includes("javascript:")&&fw.isSafeDataURL(t)?{type:Nt.Image,url:t,text:e,imageSize:r,resolvedImagePosition:hw(n)}:{type:Nt.Text,url:void 0,text:e},bw=(e,t,r,n)=>{if(!e.qMiniChart||null==t||!t.miniChart||!r)return{type:Nt.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{var n,o;const i="global"===(null===(n=t.yAxis)||void 0===n?void 0:n.scale),a="zeroCenter"===(null===(o=t.yAxis)||void 0===o?void 0:o.position),l=i?r.qYMin:e.qMiniChart.qMin,s=i?r.qYMax:e.qMiniChart.qMax;if(a){const e=Math.max(Math.abs(l),Math.abs(s));return{minY:-e,maxY:e}}return(e=>{var t,r;return"zeroBaseline"===(null===(t=e.yAxis)||void 0===t?void 0:t.position)||"bars"===e.type&&"auto"===(null===(r=e.yAxis)||void 0===r?void 0:r.position)})(t)?{minY:Math.min(0,l),maxY:Math.max(0,s)}:{minY:l,maxY:s}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:Nt.MiniChart,text:n,miniChart:a}},vw=(e,t,r)=>{var n;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(n=o.qValues)||void 0===n?void 0:n[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==r?void 0:r.urlPosition)===Ft.Attribute||null==r?void 0:r.urlLabel},yw=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:Nt.Link,url:fw.encodeForHref(r),text:t,labelStructure:e}}catch(r){return{type:Nt.Text,url:void 0,text:t,labelStructure:e}}},xw=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:l=e=>e.qText})=>{var s,u,c,d,p,f;const m=jt(t),h=l(e);return m!==Nt.Image||!n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(s=n.anything.sense)&&void 0!==s&&null!==(u=s.isUnsupportedFeature)&&void 0!==u&&u.call(s,"tableImages")?m===Nt.Link?((e,t,r,n,o)=>{const{urlPosition:i}=null!=t?t:{};if(i===Ft.Attribute){var a;const i=vw(null!==(a=r.url)&&void 0!==a?a:-1,e,t);return yw({labelStructure:n,text:o||i||"",url:i})}if(i===Ft.Dimension){var l,s;const i=vw(null!==(l=r.urlLabel)&&void 0!==l?l:-1,e,t)||o;return n&&(n.maskedValue=i),yw({text:i,labelStructure:n,url:null!==(s=null==n?void 0:n.originalValue)&&void 0!==s?s:o})}return{type:Nt.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,h):m!==Nt.Indicator||!n.flags.isEnabled("CLIENT_IM_6696_INDICATORS")||null!==(c=n.anything.sense)&&void 0!==c&&null!==(d=c.isUnsupportedFeature)&&void 0!==d&&d.call(c,"tableIndicators")?m!==Nt.MiniChart||!n.flags.isEnabled("CLIENT_IM_7110_TABLE_MINI_CHART")||null!==(p=n.anything.sense)&&void 0!==p&&null!==(f=p.isUnsupportedFeature)&&void 0!==f&&f.call(p,"qMiniChartDef")?{type:Nt.Text,url:void 0,text:h,labelStructure:a}:bw(e,t,i,h):((e,t,r)=>{const{indicator:n}=null!=e?e:{};return{type:Nt.Indicator,url:void 0,text:r,indicator:{applySegmentColors:null==n?void 0:n.applySegmentColors,position:null==n?void 0:n.position,showTextValues:null==n?void 0:n.showTextValues},indicatorConditionalColoring:t}})(t,o,h):((e,t,r,n)=>{const{imageSize:o,imagePosition:i,imageSetting:a,imageLabel:l}=null!=t?t:{};if("url"===a){var s,u;const t=null===(s=mw(null!==(u=r.imageUrl)&&void 0!==u?u:-1,e))||void 0===s?void 0:s.qText;return gw({text:n,url:t,imageSize:o,imagePosition:i})}if("label"===a){var c,d,p;const t=n;if(-1===r.imageLabel)return gw({text:l||t||"",url:t,imageSize:o,imagePosition:i});const a=null!==(c=null===(d=mw(null!==(p=r.imageLabel)&&void 0!==p?p:-1,e))||void 0===d?void 0:d.qText)&&void 0!==c?c:n;return gw({text:a,url:t,imageSize:o,imagePosition:i})}return{type:Nt.Text,url:void 0,text:n}})(e,t,r,h)},Sw=(e,t)=>{var r,n,o,i;const a=t.qAttrExps,l=null==a||null===(r=a.qValues)||void 0===r||null===(r=r[null!==(n=null==e?void 0:e.cellForegroundColor)&&void 0!==n?n:-1])||void 0===r?void 0:r.qText,s=null==a||null===(o=a.qValues)||void 0===o||null===(o=o[null!==(i=null==e?void 0:e.cellBackgroundColor)&&void 0!==i?i:-1])||void 0===o?void 0:o.qText,u=s?Hh(s):null,c=l?Hh(l):null,d=((e,t)=>e||!t?null:Gh(t))(c,u);return{color:null!=d?d:c,background:u}},Ew=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:Ew(e,t)),e),Cw=(e,t,r,n,o,i)=>{const a=o?i.rowsPerPage-r:og-n;let l=e.qUp+e.qDown;if(o&&0===r){const r=(t+e.qUp)%i.rowsPerPage;l=e.qDown+r}return Math.min(a,Ew(l,e))},ww=(e,t,r)=>{if(e!==aC){if(t){const t=jt(e.representation)===Nt.Link;return null!=r&&r.isLinksSupported&&t?e.representation:{type:Nt.Text}}return e.representation}},Rw=({node:e,parent:t,root:r,x:n,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentModeFeatures:d,indentLevel:p,labelStructure:f,env:m,pageInfo:h})=>{const g=(!c||!u)&&"P"===e.qType;let b=e.qText;if(u&&c&&f){const{originalValue:e,delimeter:t,suffix:r}=f;b=`${e} ${!r||!e&&r?"":t} ${r}`.trim()}const v={id:mC(),ref:e,x:n,y:o,pageX:n,pageY:i,mainAxisPageCoord:u?i:n,isLeftColumn:u,parent:t,root:r,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:Cw(e,o,i,n,u,h),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:"T"===e.qType||!(null==t||!t.isTotal),isEmpty:"E"===e.qType||-4===e.qElemNo,isNull:"U"===e.qType,isPseudoDimension:g,expressionColor:Sw(s,e),selectionCellType:u?"L":"T",dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:g?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:xw({cell:{...e,qText:b},representationProperties:ww(l,c,d),attrExprInfoIndex:s,env:m,labelStructure:f}),...void 0!==p&&{indentLevel:p}};return t&&(t.children[v.mainAxisPageCoord-t.mainAxisPageCoord]=v),v},Lw=(e,t,r,n,o,i,a,l)=>{const{isIndentModeEnabled:s,indentModeFeatures:u}=o;if(!t.length)return e;let c=0;return function t(d,p,f,m=0,h=-1){e[m]||(e[m]={}),s&&h++;const g=o.leftDimensionInfoIndexes.indexOf(aC);f.forEach(((f,b)=>{var v,y;const x={originalValue:null!==(v=f.qText)&&void 0!==v?v:"",maskedValue:"",delimeter:"-",suffix:""};c+=0===b?0:1;const S=r.qTop-n.page*n.rowsPerPage,E=Math.max(0,S+c-f.qUp),C=r.qTop+c-f.qUp;var w,R;if(s&&(o.hasPseudoDimOnLeft&&h<=g))if(x.originalValue=null!==(w=f.qText)&&void 0!==w?w:"",x.maskedValue=null!==(R=f.qText)&&void 0!==R?R:"","N"===f.qType||"U"===f.qType||"T"===f.qType)h<g&&(x.suffix=o.visibleMeasureInfo[0].qFallbackTitle);else if("P"===f.qType){var L,I,A,M,D,P,k,O;x.originalValue=null!==(L=null===(I=p||d)||void 0===I||null===(I=I.representation.labelStructure)||void 0===I?void 0:I.originalValue)&&void 0!==L?L:"",x.maskedValue=null!==(A=null===(M=p||d)||void 0===M||null===(M=M.representation.labelStructure)||void 0===M?void 0:M.originalValue)&&void 0!==A?A:"",x.suffix=null!==(D=f.qText)&&void 0!==D?D:"";const e=f.qSubNodes;f={...null===(P=p||d)||void 0===P?void 0:P.ref,...f.qText?{qText:f.qText}:{},qSubNodes:e},h=null!==(k=null===(O=p||d)||void 0===O?void 0:O.indentLevel)&&void 0!==k?k:0}let T=m;s&&(T=g>=1&&h>=g?h+1:h,0===h&&0===g&&0===f.qSubNodes.length&&(T=0));const _=null===(y=e.at(m))||void 0===y?void 0:y[E],q=s&&void 0===(null==_?void 0:_.ref.qText)||!_?Rw({node:f,parent:p,root:d,x:T,y:C,pageY:E,layoutService:o,dimensionInfo:i[T],attrExprInfoIndex:a[T],isLeftColumn:!0,...s&&{isIndentModeEnabled:s,indentModeFeatures:u,indentLevel:h},env:l,pageInfo:n,labelStructure:x}):e[m][E];if(e[m][E]=q,f.qSubNodes.length){const e=s?0:m+1;t(d||q,q,f.qSubNodes,e,h)}}))}(null,null,t,0,-1),e},Iw=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,r,n)=>{const o=n.at(r+1);e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},Aw=(e,t)=>{const r=e[0],n=r?Object.values(r):[],o=null!=t&&t.isIndentModeEnabled&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,i=null==r?void 0:r[o],a=n.at(-1);return null!=i&&i.isTotal?i.isLeafNode?i.mainAxisPageCoord:i.mainAxisPageCoord+i.leafCount-1:null!=a&&a.isTotal?a.mainAxisPageCoord-1:-1},Mw=({prevData:e,nextDataPage:t,pageInfo:r,layoutService:n,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i,env:a})=>{const{qLeft:l,qArea:s}=t;if(!l.length)return e;const u=Lw(e.grid,l,s,r,n,o,i,a);Iw(u,r.rowsOnCurrentPage);const c=Aw(u,n);return{...e,grid:u,columnCount:u.length,totalDividerIndex:c}},Dw=({qArea:e,prevData:t,pivotValuePoints:r,pageInfo:n})=>{const o=[...t];return r.forEach(((t,r)=>{t.forEach(((t,i)=>{var a;const l=e.qTop-n.page*n.rowsPerPage+r,s=e.qLeft+i;Array.isArray(o[l])||(o[l]=[]);const u="U"===t.qType;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:mC(),ref:t,isNull:u}}))})),o},Pw=({prevData:e,dataPage:t,pageInfo:r})=>{const{qData:n,qArea:o}=t;return null!=n&&n.length?Dw({qArea:o,prevData:e,pivotValuePoints:n,pageInfo:r}):e},kw=(e,t,r,n,o,i,a,l,s)=>{const{isIndentModeEnabled:u,indentModeFeatures:c}=n;if(!t.length)return e;let d=0;!function t(a,p,f,m=0){e[m]||(e[m]={}),f.forEach(((f,h)=>{var g;d+=0===h?0:1;const b=r.qLeft+d-f.qUp,v=null!==(g=e[m][b])&&void 0!==g?g:Rw({node:f,parent:p,root:a,x:b,y:m,pageY:m,layoutService:n,dimensionInfo:o[m],attrExprInfoIndex:i[m],isLeftColumn:!1,...u&&{isIndentModeEnabled:u,indentModeFeatures:c},env:l,pageInfo:s});e[m][b]=v,f.qSubNodes.length&&t(a||v,v,f.qSubNodes,m+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},Ow=({prevData:e,nextDataPage:t,layoutService:r,visibleTopDimensionInfo:n,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:l})=>{const{qTop:s,qArea:u}=t;if(!s.length)return e;const c=kw(e.grid,s,u,r,n,o,i,a,l);Iw(c,r.size.x);const d=Aw(c);return{...e,grid:c,rowCount:c.length,totalDividerIndex:d}},Tw=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),_w=(e,t)=>{const{env:r}=QE(),{layoutService:n,effectivePropertiesService:o}=rC(),{qPivotDataPages:i,pageInfo:a}=XE(),[l,c]=u(null),d=((e,t,r)=>s((()=>({left:e.map(Tw),top:t.map(Tw),measures:r.map(Tw)})),[r,e,t]))(e,t,n.visibleMeasureInfo),f=s((()=>yC(n,o,t,e)),[n,o,t,e]),m=p((()=>i.slice(1).reduce(((e,t)=>Pw({prevData:e,dataPage:t,pageInfo:a})),((e,t)=>{const{qData:r,qArea:n}=e;return Dw({qArea:n,prevData:[],pivotValuePoints:r,pageInfo:t})})(i[0],a))),[i,a]),h=p((()=>i.slice(1).reduce(((e,o)=>Ow({prevData:e,nextDataPage:o,layoutService:n,visibleTopDimensionInfo:t,attrExprInfoIndexes:d.top,headerRows:f.size.y,env:r,pageInfo:a})),((e,t,r,n,o,i,a)=>{const{qArea:l,qTop:s}=e,u=kw([],s,l,t,r,n,o,i,a);Iw(u,t.size.x);const c=Aw(u);return{grid:u,rowCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(i[0],n,t,d.top,f.size.y,r,a))),[i,n,t,d.top,f.size.y,r,a]),g=p((()=>i.slice(1).reduce(((t,o)=>Mw({prevData:t,nextDataPage:o,pageInfo:a,layoutService:n,visibleLeftDimensionInfo:e,attrExprInfoIndexes:d.left,env:r})),((e,t,r,n,o,i)=>{const{qArea:a,qLeft:l}=e,s=Lw([],l,a,r,t,n,o,i);Iw(s,r.rowsOnCurrentPage);const u=Aw(s,t);return{grid:s,columnCount:s.length,layoutSize:t.size,totalDividerIndex:u}})(i[0],n,a,e,d.left,r))),[i,n,a,e,d,r]),[b,v]=u((()=>m())),[y,x]=u((()=>h())),[S,E]=u((()=>g()));$g((()=>{v(m())}),[m]),$g((()=>{x(h())}),[h]),$g((()=>{E(g())}),[g]),$g((()=>{l&&l.forEach((o=>{v((e=>Pw({prevData:e,dataPage:o,pageInfo:a}))),x((e=>Ow({prevData:e,nextDataPage:o,layoutService:n,visibleTopDimensionInfo:t,attrExprInfoIndexes:d.top,headerRows:f.size.y,env:r,pageInfo:a}))),E((t=>Mw({prevData:t,nextDataPage:o,pageInfo:a,layoutService:n,visibleLeftDimensionInfo:e,attrExprInfoIndexes:d.left,env:r})))}))}),[l]);const C=p((e=>{c(e)}),[]);return{headersData:f,measureData:b,topDimensionData:y,leftDimensionData:S,attrExprInfoIndexes:d,nextPageHandler:C}},qw=Math.sqrt(1e4),Nw=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/tr.PixelsMin)}),Fw=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],r=Math.ceil(e.qWidth/qw),n=Math.ceil(e.qHeight/qw);for(let o=0;o<r;o++)for(let r=0;r<n;r++)t.push({qLeft:e.qLeft+o*qw,qTop:e.qTop+r*qw,qWidth:Math.min(qw,e.qWidth-o*qw),qHeight:Math.min(qw,e.qHeight-r*qw)});return t};function jw({nextPageHandler:e}){const{model:t}=QE(),{pageInfo:r}=XE(),{layoutService:n}=rC(),o=(e=>{const t=c(e);return t.current=e,t})(r.page),i=t,a=p((async(e,t)=>{await(null==i?void 0:i.collapseLeft(iC,e,t,!1))}),[i]),l=p((async(e,t)=>{await(null==i?void 0:i.collapseTop(iC,e,t,!1))}),[i]),u=p((async(e,t)=>{await(null==i?void 0:i.expandLeft(iC,e,t,!1))}),[i]),d=p((async(e,t)=>{await(null==i?void 0:i.expandTop(iC,e,t,!1))}),[i]),f=p((async t=>{if(null!=i&&i.getHyperCubePivotData&&0!==t.length)try{const n=await i.getHyperCubePivotData(iC,t.reduce(((e,t)=>[...e,...Fw(t)]),[]));o.current===r.page&&e(n)}catch(e){console.error(e)}}),[i,e,r,o]),m=p(((e,{dimensionInfoIndex:r,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=n.layout.qHyperCube;let c=[];switch(a){case Vt.Dimension:c=[{qPath:`${iC}/qDimensions/${r}/qDef/columnWidth`,oldValue:s[r].columnWidth}];break;case Vt.Measures:if(o)c=l.map(((e,t)=>({qPath:`${iC}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=n.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${iC}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case Vt.Pivot:c=[{qPath:`${iC}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((t=>{const{qPath:r,oldValue:n}=t;return{qPath:r,qOp:n?"Replace":"Add",qValue:JSON.stringify({...n,...e})}}));null==t||t.applyPatches(d,!0)}),[t,n]),h=p((async e=>{await(null==i?void 0:i.applyPatches([{qPath:`${iC}/indentModeColumnWidth`,qOp:n.layout.qHyperCube.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...n.indentModeColumnWidth,...e})}],!0))}),[i,n]);return s((()=>({collapseLeft:a,collapseTop:l,expandLeft:u,expandTop:d,applyColumnWidth:m,applyIndentModeColumnWidth:h,fetchPages:f})),[a,l,u,d,m,h,f])}const zw=(e,t,r)=>(n,o)=>{if("P"===n)return aC;const i=t[r+o];return e[i]},Gw=e=>{const t=[],r=(e,n=0)=>{e.slice(0,1).forEach((e=>{t[n]=e.qType,e.qSubNodes.length&&r(e.qSubNodes,n+1)}))};return r(e),t},$w=m({}),Bw=()=>n($w),Ww=({children:e})=>{const{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r}=(()=>{const{layoutService:{layout:{qHyperCube:{qNoOfLeftDims:e,qEffectiveInterColumnSortOrder:t,qDimensionInfo:r}}}}=rC(),{qPivotDataPages:n}=XE();return s((()=>{var o,i,a,l;const s=Gw(null!==(o=null===(i=n[0])||void 0===i?void 0:i.qLeft)&&void 0!==o?o:[]),u=Gw(null!==(a=null===(l=n[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(zw(r,t,0)),visibleTopDimensionInfo:u.map(zw(r,t,e))}}),[r,t,e,n])})(),{headersData:n,measureData:o,topDimensionData:i,leftDimensionData:a,attrExprInfoIndexes:l,nextPageHandler:u}=_w(t,r),c=jw({nextPageHandler:u}),d=s((()=>({gridSectionsData:{headersData:n,topDimensionData:i,leftDimensionData:a,measureData:o},visibleDimensionsInfo:{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r},attrExprInfoIndexes:l,dataModel:c})),[t,r,n,o,i,a,l,c]);return Yl.jsx($w.Provider,{value:d,children:e})},Hw=18,Vw=.75,Yw=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===Nt.Image},Uw=e=>void 0===e?ng:e,Kw=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,Xw=e=>Kw(e,tr.PixelsDefault),Jw=(e,t)=>Kw(e,tr.PercentageDefault)*t/100,Zw=(e,t,r)=>{switch(null==t?void 0:t.type){case rr.Pixels:return Xw(t.pixels);case rr.Percentage:return Jw(t.percentage,e);case rr.FitToContent:case rr.Auto:default:return r}},Qw=({headers:e,layoutService:t,effectivePropertiesService:r,estimateWidthForDimensionValue:n,shouldConsiderCombinatedLength:o,measureTextForHeader:i,longestMeasureValuePossible:a})=>e.reduce(((e,l,s)=>{const{layout:{qHyperCube:{qNoOfLeftDims:u}}}=t,{id:c,colIdx:d,qApprMaxGlyphCount:p,isLeftDimension:f}=l;if(!f)return e+0;if(c===lC)return e+0;const m=n(p),h=!r.qAlwaysFullyExpanded&&d<u-1?21:0;let g=0;if(o&&i&&a){g=i("-")+a}return Math.max(e,24*s+Hw+h+m+g)}),0),eR=(e,t,r)=>e.reduce(((e,n)=>{const o=(r?0:1)*Hw;return Math.max(e,o+t(n.qFallbackTitle))}),0),tR=(e,t,r,n)=>{const o=100*e/t,i=n*Vw*(o/100),a=r*(o/100);return Math.min(a,i)},rR=(e,t,r,n)=>n*(r/100)*(100*e/t/100),nR=(e,t)=>e.some((e=>e>=t*Vw)),oR=({layoutService:e,effectivePropertiesService:t,headersData:r,columnWidths:n,tableWidth:o,widthOverride:i,measureTextForHeader:a,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:s,translator:u})=>{let c=[];const d=o*Vw,p=r.data[r.data.length-1][0],f=Math.min(d,n.at(-1)),m=Math.min(d,Qw({headers:p,layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:l})),h=Math.min(d,eR(e.visibleMeasureInfo,a));let g=0;const b=p.findIndex((e=>e.id===lC)),v=(({layoutService:e,measureTextForHeader:t,translator:r,headersData:n})=>{const{type:o}=e.indentModeColumnWidth;return o===rr.Auto&&n.size.y<=1?t(r.get("SNPivotTable.IndentMode.Rows"))+8+Hw+16:24})({layoutService:e,measureTextForHeader:a,translator:u,headersData:r});if(e.hasPseudoDimOnLeft)if(0===b){const e=Math.max(f,m,h);c=[Math.max(v,e-f),f]}else{const r=Math.min(d,eR(e.visibleMeasureInfo,s,!0));g=Math.min(d,Qw({headers:p.slice(0,b),layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:l,shouldConsiderCombinatedLength:!0,measureTextForHeader:a,longestMeasureValuePossible:r}));const n=Math.max(f,m,g);c=[Math.max(v,n-f),f]}else c=[Math.max(v,m-f),f];const y=Math.min(d,c.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:x}=e;i&&i<=d&&(x.type=rr.Pixels,x.pixels=i);return[rr.Pixels,rr.Percentage].includes(x.type)||nR(c,o)?((e,t,r,n)=>{let o=e[0],i=e[1],a=[];const l=e.reduce(((e,t)=>e+t),0),{type:s,pixels:u,percentage:c}=t,d=nR(e,r);s===rr.Auto&&d&&(o>i?o-=i:i-=o),s===rr.Pixels&&u&&(o=tR(e[0],l,u,r),i=tR(e[1],l,u,r)),s===rr.Percentage&&c&&(o=rR(e[0],l,c,r),i=rR(e[1],l,c,r));let p=0;i<=n&&(p=o-5,p>0&&(o-=p,i+=p)),p=i-n,p>0&&(o+=p,i-=p),a=[o,i];const f=a.reduce(((e,t)=>e+t),0);return{leftGridColumnWidths:a,leftGridWidth:f,leftGridFullWidth:f}})(c,x,o,f):{leftGridWidth:y,leftGridColumnWidths:c,leftGridFullWidth:y}};function iR({tableWidth:e}){const t=e*Vw,{styleService:r,layoutService:n,effectivePropertiesService:o}=rC(),{translator:i}=QE(),{gridSectionsData:{headersData:a}}=Bw(),{measureText:l}=Fg(r.header),{estimateWidth:s,measureText:c}=Fg({...r.dimensionValues,fontWeight:Uw(r.dimensionValues.fontWeight)}),{measureText:d}=Fg({...r.dimensionValues,...r.measureLabels}),f=p(((r,u)=>{const{layout:{qHyperCube:{qNoOfLeftDims:p,topHeadersColumnWidth:f}},visibleMeasureInfo:m,isIndentModeEnabled:h,hasPseudoDimOnLeft:g}=n,b=(t=0)=>m.reduce(((r,{qFallbackTitle:n,columnWidth:o})=>{const i=d(n)+Hw,a=Math.max(i,t);return Math.max(r,h?a:Zw(e,o,a))}),0),v=e=>a.data.reduce(((t,r)=>{const n=r[e];if(!n)return t;if(n.id===lC)return t;const o=(e=>{const{label:t,isLocked:r}=e,n=r?20:0;return Hw+l(t)+20+n})(n);return Math.max(o,t)}),0);let y=0,x=a.data.at(-1);h&&a.size.x>1&&x&&x[0]&&(x=x[0]);const S=x.map(((i,l)=>{let c=Hw;if(h&&1!==a.size.x||!r||void 0===u||u!==i.colIdx){let t;i.columnWidthLocation===Vt.Pivot?t=h?void 0:f:i.columnWidthLocation===Vt.Dimension&&({columnWidth:t}=i);let r=0;if(i.isLeftDimension)if(i.id===lC)r=b();else{const e=v(l),t=((e,t)=>{const{qApprMaxGlyphCount:r,isLeftDimension:i,dimensionInfoIndex:a}=e,l=n.getDimensionInfo(a);if(Yw(l))return tr.PixelsDefault;const u=!o.qAlwaysFullyExpanded&&i&&t<p-1?21:0;return Hw+s(r)+u})(i,l);r=Math.max(e,t),h&&!g&&l+1===p&&i.columnWidthLocation===Vt.Dimension&&a.size.x>1&&(r=e)}else r=v(l),i.columnWidthLocation===Vt.Measures&&(r=b(r));h&&1===a.size.x&&(t=n.indentModeColumnWidth),c=h&&!g&&a.size.x>1?r:Zw(e,t,r)}else c=h?Math.min(t,r):r;return y+=c,c}));return h&&a.size.x>1?oR({layoutService:n,effectivePropertiesService:o,headersData:a,columnWidths:S,tableWidth:e,widthOverride:r,measureTextForHeader:l,estimateWidthForDimensionValue:s,measureTextWidthForMeasuresCombinedWithDimensions:c,translator:i}):{leftGridWidth:Math.min(t,y),leftGridColumnWidths:S,leftGridFullWidth:y}}),[e,a,n,t,l,d,s,c,i,o]),[m,h]=u(f);$g((()=>{h(f())}),[f]);const g=p(((e,t)=>{h(f(e,t))}),[f]);return{...m,overrideLeftGridWidth:g}}function aR({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:r}){const{styleService:n,layoutService:o}=rC(),{visibleDimensionsInfo:{visibleTopDimensionInfo:i}}=Bw(),{layout:{qHyperCube:{qNoOfLeftDims:a,qEffectiveInterColumnSortOrder:l}},size:u,visibleMeasureInfo:c}=o,{estimateWidth:d,measureText:f}=Fg(n.measureValues),{estimateWidth:m}=Fg({...n.dimensionValues,fontWeight:Uw(n.dimensionValues.fontWeight)}),h=e-r-1,g=i.at(-1),b=g===aC,v=l.length-a>i.length?21:0,y=s((()=>{const e=b?c:[g],t=u.x/e.length,r=[],n=[];let o=h;const i=(e,n)=>{r[e]=Math.min(tr.PixelsMax,Math.max(tr.PixelsMin,n)),o-=r[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:r,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:s}=e;switch(r){case rr.Pixels:i(t,Xw(o));break;case rr.Percentage:i(t,Jw(a,h));break;case rr.FitToContent:i(t,((e,t,r)=>r?tr.PixelsDefault:Hw+(b?Math.max(d(e),f(t)):Math.max(Math.max(...c.map((e=>d(e.qApprMaxGlyphCount)))),m(e)+v)))(l,s,Yw(e)));break;case rr.Auto:default:n.push(t)}}else n.push(t)})),n.length){const e=n.length*t,i=o/e;n.forEach((e=>{r[e]=Math.max(tr.AutoMinPivot,i)}))}return r}),[b,c,g,u.x,h,d,f,m,v]),x=s((()=>{if(b){return c.reduce(((e,t,r)=>e+y[r]),0)/c.length}return y[0]}),[b,y,c]),S=parseFloat((t/o.size.x).toFixed(12)),E=p((e=>(b&&void 0!==e?y[o.getMeasureInfoIndexFromCellIndex(e,!0)]:x)-S),[b,y,o,x,S]),C=u.x*x;return{rightGridFullWidth:C,rightGridWidth:Math.min(C,h),getRightGridColumnWidth:E}}const lR=`scrollable-container--${Ut.TopGrid}`,sR=`scrollable-container--${Ut.LeftGrid}`,uR=`scrollable-container--${Ut.DataGrid}`,cR=e=>e&&e instanceof HTMLDivElement?{width:e.offsetWidth-e.clientWidth,height:e.offsetHeight-e.clientHeight}:{width:0,height:0},dR=(e,t)=>e>t?Kt.Forward:e<t?Kt.Backward:Kt.None,pR=()=>{const{layoutService:e}=rC(),t=c(null),r=c(null),n=c(null),o=c(null),i=c([]),a=c([]),l=c(null),{scrollbarsDimensions:{verticalScrollbarWidth:s,horizontalScrollbarHeight:d},resetHorizontalScrollbarHeight:m}=(({topGridWrapperRef:e,leftGridWrapperRef:t,dataGridWrapperRef:r})=>{const[n,o]=u(0),[i,a]=u(0);return g((()=>{(e.current||r.current)&&o(Math.max(cR(e.current).width,cR(r.current).width))})),g((()=>{(t.current||r.current)&&a(Math.max(cR(t.current).height,cR(r.current).height))})),{scrollbarsDimensions:{verticalScrollbarWidth:n,horizontalScrollbarHeight:i},resetHorizontalScrollbarHeight:()=>{a(0)}}})({topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o});(({gridSectionsWrapperRefs:{headerGridWrapperRef:e,topGridWrapperRef:t,leftGridWrapperRef:r,dataGridWrapperRef:n},gridRefs:{topGridRef:o,leftGridRef:i,dataGridRef:a}})=>{const{pageInfo:l}=XE(),{downloadService:s,viewService:u,layoutService:c}=rC(),d=p((()=>{var o,i,a,l;const s={left:0,top:0};null===(o=e.current)||void 0===o||o.scrollTo(s),null===(i=t.current)||void 0===i||i.scrollTo(s),null===(a=r.current)||void 0===a||a.scrollTo(s),null===(l=n.current)||void 0===l||l.scrollTo(s)}),[e,t,r,n]);g((()=>{d()}),[l.page,d]),g((()=>{c.triggerdByExpandOrCollapse||d()}),[c,d]),g((()=>{if(c.triggerdByExpandOrCollapse){var e,t,r,l,s,u,d;const c=null!==(e=null===(t=n.current)||void 0===t?void 0:t.scrollLeft)&&void 0!==e?e:0,p=null!==(r=null===(l=n.current)||void 0===l?void 0:l.scrollTop)&&void 0!==r?r:0;null===(s=i.current)||void 0===s||s.forEach((e=>{null==e||e.scrollTo(p)})),null===(u=o.current)||void 0===u||u.forEach((e=>{null==e||e.scrollTo(c)})),null===(d=a.current)||void 0===d||d.scrollTo({scrollTop:p,scrollLeft:c})}}),[c,n,a,i,o]),g((()=>{(s.isDownloadedAsPDForImage||c.isSnapshot)&&n.current&&r.current&&t.current&&(n.current.scrollTop=u.scrollTop,n.current.scrollLeft=u.scrollLeft,r.current.scrollLeft=u.leftGridScrollLeft,t.current.scrollTop=u.topGridScrollTop)}),[u,s,c,n,r,t])})({gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:l}});const{trackScrollDirection:h,scrollDirectionRefs:{verticalScrollDirection:b,horizontalScrollDirection:v}}=(()=>{const e=c(Kt.None),t=c(Kt.None),r=c({prevScrollTop:0,prevScrollLeft:0});return{trackScrollDirection:p((n=>{if(n instanceof WheelEvent&&(e.current=dR(n.deltaY,0),t.current=dR(n.deltaX,0)),n instanceof Event&&!(n instanceof WheelEvent)){const o=n.target;e.current=dR(o.scrollTop,r.current.prevScrollTop),r.current.prevScrollTop=o.scrollTop,t.current=dR(o.scrollLeft,r.current.prevScrollLeft),r.current.prevScrollLeft=o.scrollLeft}}),[e,t,r]),scrollDirectionRefs:{verticalScrollDirection:e,horizontalScrollDirection:t}}})(),y=(()=>{const{viewService:e}=rC();return p((t=>{const r=t.target,n=t.currentTarget,o=r.dataset.key;o===sR&&(e.leftGridScrollLeft=n.scrollLeft),o===uR&&(e.scrollLeft=n.scrollLeft),o===lR&&(e.topGridScrollTop=n.scrollTop),o!==sR&&o!==uR||(e.scrollTop=n.scrollTop)}),[e])})(),x={gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:l},getWrapperElements:p((()=>({headerGridWrapperElement:t.current,topGridWrapperElement:r.current,leftGridWrapperElement:n.current,dataGridWrapperElement:o.current})),[t,r,n,o]),updateViewService:y,trackScrollDirection:h,isSnapshotMode:e.isSnapshot};return(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:o,trackScrollDirection:i,isSnapshotMode:a})=>{f((()=>{const{headerGridWrapperElement:o,topGridWrapperElement:l,leftGridWrapperElement:s,dataGridWrapperElement:u}=n(),c=e=>{o.scrollLeft+=e.deltaX,o.scrollTop+=e.deltaY,s.scrollLeft=o.scrollLeft,l.scrollTop=o.scrollTop,i(e)},d=e=>{var n,a;s.scrollTop+=e.deltaY,null===(n=t.current)||void 0===n||n.forEach((e=>{null==e||e.scrollTo(s.scrollTop)})),o.scrollLeft+=e.deltaX,s.scrollLeft=o.scrollLeft,u.scrollTop=s.scrollTop,null===(a=r.current)||void 0===a||a.scrollTo({scrollTop:s.scrollTop}),i(e)},p=t=>{var n,a;l.scrollLeft+=t.deltaX,null===(n=e.current)||void 0===n||n.forEach((e=>{null==e||e.scrollTo(l.scrollLeft)})),o.scrollTop+=t.deltaY,l.scrollTop=o.scrollTop,u.scrollLeft=l.scrollLeft,null===(a=r.current)||void 0===a||a.scrollTo({scrollLeft:l.scrollLeft}),i(t)},f=n=>{var o,a,c;u.scrollLeft+=n.deltaX,u.scrollTop+=n.deltaY,null===(o=r.current)||void 0===o||o.scrollTo({scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}),l.scrollLeft=u.scrollLeft,null===(a=e.current)||void 0===a||a.forEach((e=>{null==e||e.scrollTo(u.scrollLeft)})),s.scrollTop=u.scrollTop,null===(c=t.current)||void 0===c||c.forEach((e=>{null==e||e.scrollTo(u.scrollTop)})),i(n)};return o.addEventListener("wheel",c),s.addEventListener("wheel",d),l.addEventListener("wheel",p),u.addEventListener("wheel",f),a&&setTimeout((()=>{o.removeEventListener("wheel",c),s.removeEventListener("wheel",d),l.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}),0),()=>{o.removeEventListener("wheel",c),s.removeEventListener("wheel",d),l.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}}),[i,o,a,e,t,r,n])})(x),(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:o,trackScrollDirection:i,isSnapshotMode:a})=>{f((()=>{const{headerGridWrapperElement:l,topGridWrapperElement:s,leftGridWrapperElement:u,dataGridWrapperElement:c}=n(),d=e=>{const t=e.target;l.scrollLeft=t.scrollLeft,i(e),null==o||o(e)},p=e=>{const t=e.target;l.scrollTop=t.scrollTop,i(e),null==o||o(e)},f=n=>{var a,l,d;const p=n.target;null===(a=r.current)||void 0===a||a.scrollTo({scrollLeft:p.scrollLeft,scrollTop:p.scrollTop}),s.scrollLeft=c.scrollLeft,null===(l=e.current)||void 0===l||l.forEach((e=>{null==e||e.scrollTo(p.scrollLeft)})),u.scrollTop=c.scrollTop,null===(d=t.current)||void 0===d||d.forEach((e=>{null==e||e.scrollTo(p.scrollTop)})),i(n),null==o||o(n)};return u.addEventListener("scroll",d),s.addEventListener("scroll",p),c.addEventListener("scroll",f),a&&setTimeout((()=>{u.removeEventListener("scroll",d),s.removeEventListener("scroll",p),c.removeEventListener("scroll",f)}),0),()=>{u.removeEventListener("scroll",d),s.removeEventListener("scroll",p),c.removeEventListener("scroll",f)}}),[i,o,a,e,t,r,n])})(x),{gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:l},scrollDirectionRefs:{verticalScrollDirection:b,horizontalScrollDirection:v},scrollbarsDimensions:{verticalScrollbarWidth:s,horizontalScrollbarHeight:d,resetHorizontalScrollbarHeight:m}}},fR=()=>{const{layoutService:e}=rC(),{rect:t,pageInfo:r}=XE();return s((()=>{let{height:n}=t;return e.hasLimitedData&&(n-=22),r.shouldShowPagination&&(n-=41),{...t,height:n}}),[t,e,r.shouldShowPagination])},mR=({children:e,style:t})=>Yl.jsx("div",{"data-testid":"fullSize",style:t,children:e}),hR=({children:e,style:t})=>Yl.jsx("div",{"data-section-id":"GRID",style:{display:"grid",...t},children:e}),gR=e=>e&&`scrollable-container--${e}`,bR=({children:e,style:t,origin:r},n)=>{const{interactions:o}=QE(),i=o.active?t:{overflow:"hidden"};return Yl.jsx("div",{"data-testid":"scrollable","data-key":gR(r),style:i,ref:n,children:e})};var vR=r.forwardRef(bR);const yR=({children:e,style:t})=>Yl.jsx("div",{"data-testid":"sticky",style:{position:"sticky",top:0,left:0,...t},children:e});var xR=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function SR(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],o=t[r],!(n===o||xR(n)&&xR(o)))return!1;var n,o;return!0}function ER(e,t){var r;void 0===t&&(t=SR);var n,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var CR="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function wR(e){cancelAnimationFrame(e.id)}function RR(e,t){var r=CR();var n={id:requestAnimationFrame((function o(){CR()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var LR=-1;function IR(e){if(void 0===e&&(e=!1),-1===LR||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),LR=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return LR}var AR=null;function MR(e){if(void 0===e&&(e=!1),null===AR||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?AR="positive-descending":(t.scrollLeft=1,AR=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),AR}return AR}var DR=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function PR(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,i=e.getColumnStopIndexForStartIndex,a=e.getColumnWidth,l=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,u=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,d=e.getRowHeight,p=e.getRowOffset,f=e.getRowStartIndexForOffset,m=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,g=e.shouldResetStyleCacheOnItemSizeChange,v=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=h(n.props,Rr(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Rr(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=ER((function(e,t,r,o,i,a,l,s){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),n._callOnScroll=void 0,n._callOnScroll=ER((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,i=n.props,l=i.columnWidth,s=i.direction,u=i.rowHeight,c=n._getItemStyleCache(g&&l,g&&s,g&&u),f=e+":"+t;if(c.hasOwnProperty(f))o=c[f];else{var m=r(n.props,t,n._instanceProps),h="rtl"===s;c[f]=o={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:p(n.props,e,n._instanceProps),height:d(n.props,e,n._instanceProps),width:a(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=ER((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(MR()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&wR(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=RR(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}wr(t,e),t.getDerivedStateFromProps=function(e,t){return kR(e,t),v(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,a=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=IR();void 0!==n&&(n=Math.max(0,Math.min(n,a-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=l(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?u(this.props,n,r,h,this._instanceProps,x):h,scrollTop:void 0!==o?c(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(MR()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&wR(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,i=e.direction,a=e.height,u=e.innerRef,c=e.innerElementType,d=e.innerTagName,p=e.itemData,f=e.itemKey,m=void 0===f?DR:f,h=e.outerElementType,g=e.outerTagName,b=e.rowCount,v=e.style,y=e.useIsScrolling,x=e.width,S=this.state.isScrolling,E=this._getHorizontalRangeToRender(),C=E[0],w=E[1],R=this._getVerticalRangeToRender(),L=R[0],I=R[1],A=[];if(n>0&&b)for(var M=L;M<=I;M++)for(var D=C;D<=w;D++)A.push(o(t,{columnIndex:D,data:p,isScrolling:y?S:void 0,key:m({columnIndex:D,data:p,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,D)}));var P=l(this.props,this._instanceProps),k=s(this.props,this._instanceProps);return o(h||g||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:hr({position:"relative",height:a,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},v)},o(c||d||"div",{children:A,ref:u,style:{height:P,pointerEvents:S?"none":void 0,width:k}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof n){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,o=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=r||o||a||1;if(0===t||0===l)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),m=i(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=f(this.props,u,this._instanceProps),p=m(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,p+g)),d,p]},t}(b),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var kR=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},OR=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},TR=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},_R=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},qR=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?NR(e,t,r,i,0,n):FR(e,t,r,Math.max(0,i),n)},NR=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),l=_R(e,t,a,r).offset;if(l===i)return a;l<i?o=a+1:l>i&&(n=a-1)}return o>0?o-1:0},FR=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&_R(e,t,n,r).offset<o;)n+=a,a*=2;return NR(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},jR=function(e,t,r,n,o,i,a){var l="column"===e?t.width:t.height,s=_R(e,t,r,i),u="column"===e?TR(t,i):OR(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===n&&(n=o>=d-l&&o<=c+l?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},zR=PR({getColumnOffset:function(e,t,r){return _R("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return qR("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=_R("column",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=_R("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:OR,getEstimatedTotalWidth:TR,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return jR("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return jR("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return _R("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return qR("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=_R("row",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=_R("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),GR=function(e,t){return e};function $R(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,l=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,u=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=u(n.props,Rr(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Rr(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=ER((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=ER((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,o=n.props,a=o.direction,l=o.itemSize,s=o.layout,u=n._getItemStyleCache(c&&l,c&&s,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=r(n.props,e,n._instanceProps),p=i(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?d:0;u[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=ER((function(e,t,r){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(MR()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&wR(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=RR(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}wr(t,e),t.getDerivedStateFromProps=function(e,t){return BR(e,t),d(e),null};var p=t.prototype;return p.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)},p.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,i=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?IR():0:s.scrollHeight>s.clientHeight?IR():0}this.scrollTo(a(this.props,e,t,i,this._instanceProps,l))},p.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},p.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(MR()){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()},p.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&wR(this._resetIsScrollingTimeoutId)},p.render=function(){var e=this.props,t=e.children,r=e.className,i=e.direction,a=e.height,l=e.innerRef,s=e.innerElementType,u=e.innerTagName,c=e.itemCount,d=e.itemData,p=e.itemKey,f=void 0===p?GR:p,m=e.layout,h=e.outerElementType,g=e.outerTagName,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S="horizontal"===i||"horizontal"===m,E=S?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),w=C[0],R=C[1],L=[];if(c>0)for(var I=w;I<=R;I++)L.push(o(t,{data:d,key:f(I,d),index:I,isScrolling:v?x:void 0,style:this._getItemStyle(I)}));var A=n(this.props,this._instanceProps);return o(h||g||"div",{className:r,onScroll:E,ref:this._outerRefSetter,style:hr({position:"relative",height:a,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},b)},o(s||u||"div",{children:L,ref:l,style:{height:S?"100%":A,pointerEvents:x?"none":void 0,width:S?A:"100%"}}))},p._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},p._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,a=n.scrollOffset;if(0===t)return[0,0,0,0];var u=l(this.props,a,this._instanceProps),c=s(this.props,u,a,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(b),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var BR=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},WR=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=n(s);o[s]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},HR=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=WR(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},VR=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&WR(e,r,t).offset<n;)r+=i,i*=2;return HR(e,t,Math.min(r,o-1),Math.floor(r/2),n)},YR=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},UR=$R({getItemOffset:function(e,t,r){return WR(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:YR,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=WR(e,t,o),p=YR(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=m-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return n>=m&&n<=f?n:n<m?m:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?HR(e,t,o,0,r):VR(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=WR(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=WR(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function KR(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var XR=["style"],JR=["style"];function ZR(e,t){var r=e.style,n=Er(e,XR),o=t.style,i=Er(t,JR);return!KR(r,o)&&!KR(n,i)}const QR=10,eL=(e,t)=>e.current===Kt.Backward?t:0,tL=(e,t,r,n)=>{for(let o=r;o<r+n;o++){const r=e.at(o);if(void 0===r||void 0===r.at(t))return!0}return!1},rL=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,nL=({pageInfo:e,measureData:t,pageTop:r,qHeight:n,startLeft:o,endLeft:i})=>{const a=[],l=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(tL(t,e,r,n)){const t=a[a.length-1],o={qLeft:e,qTop:r+l,qWidth:1,qHeight:n};void 0!==t&&rL(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},oL=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=n,u=r.current===Kt.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return nL({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},iL=({pageInfo:e,measureData:t,scrollDirection:r,layoutService:n,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:l,qHeight:s}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=e.size.x,s=eL(r,QR),u=Math.max(n-s,0);return{startLeft:u,endLeft:u+Math.min(i+QR,l-u),pageTop:o,qHeight:a}})(n,o,r),u=nL({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...oL({pageInfo:e,measureData:t,scrollDirection:r,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:n.size.x})]:u},aL=(e,t,r,n)=>{const o=e[r];if(void 0===o)return!0;for(let e=t;e<t+n;e++){if(void 0===o[e])return!0}return!1},lL=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,sL=({startTop:e,endTop:t,qLeft:r,qWidth:n,measureData:o,pageInfo:i})=>{const a=[],l=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(aL(o,r,i,n)){const e=a.at(-1),t={qLeft:r,qTop:i+l,qWidth:n,qHeight:1};void 0!==e&&lL(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},uL=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:l}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=eL(r,QR),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+QR,e.rowsOnCurrentPage-s),qLeft:n,qWidth:i}})(e,n,r),s=sL({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const n=r.current===Kt.Backward?Math.max(0,o-25):i,u=Math.min(n+25,e.rowsOnCurrentPage),c=sL({startTop:n,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},cL=async(e,t,r,n,o,i,a,l)=>{const{gridColumnStartIndex:s,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==Kt.None&&(p=uL({pageInfo:n,measureData:r,scrollDirection:i,viewService:o})),a.current!==Kt.None&&(f=iL({pageInfo:n,measureData:r,scrollDirection:a,layoutService:t,viewService:o})),i.current===Kt.None&&a.current===Kt.None&&(p=sL({measureData:r,pageInfo:n,qLeft:s,qWidth:c,startTop:u,endTop:u+d}));const m=e.fetchPages([...p,...f]);l.isDownloadedAsPDForImage&&l.waitForPromise(m)},dL=function(e){var t,r,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];r=l;var u=Date.now()-i,c=function(){i=Date.now(),n=0,e.apply(t,r)};n||(u>=o?c():n=setTimeout(c,o-u))}}(cL,100),pL=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}(cL,75),fL=(e,t,r=!1)=>void 0!==e&&(e.isLeafNode||r&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),mL=({style:e,index:t,isLastRow:r,isLastColumn:n,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{styleService:{grid:{border:l,divider:s}}}=rC();return Yl.jsx("div",{style:{...e,...cg,...mg(r,n,l,o),...gg({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},hL=({children:e,verticalAlign:t,width:r,right:n})=>Yl.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",overflow:"hidden",flexDirection:"row",alignItems:t,width:r,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:n,alignSelf:t},children:e}),gL=e=>{const{type:t,imageSize:r}=e;return t!==Nt.Image||"fill"!==r&&"fitWidth"!==r?"fit-content":"100%"};function bL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const vL=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){bL(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})),yL=d(vL);function xL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const SL=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){xL(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})),EL=d(SL),CL=e=>{var t;return!(null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t||!t.includes(er))},wL=(e,t)=>{switch(t.type){case"clearSelections":return{engineSelectedCells:null,activeSelection:null,selectedField:null};case"mouseup":return{...e,activeSelection:null,engineSelectedCells:t.payload.engineSelectedCells};case"mousedown":return{...e,activeSelection:t.payload.activeSelection,selectedField:t.payload.selectedField};case"mouseover":{if(!e.activeSelection)return e;const{index:r}=t.payload,n=Math.min(r,e.activeSelection.startIndex),o=Math.max(r,e.activeSelection.endIndex);if(n===e.activeSelection.startIndex&&o===e.activeSelection.endIndex)return e;const i={...e.activeSelection,startIndex:n,endIndex:o};return i.clientSelectedCells=(e=>{const{getCellFromIndex:t,startIndex:r,endIndex:n,clientSelectedCells:o}=e,i=new Map(o);for(let e=r;e<=n;e++){const r=t(e);"N"===(null==r?void 0:r.ref.qType)&&i.set(r.ref.qElemNo,r)}return i})(i),{...e,activeSelection:i}}default:return e}};const RL=m({createMouseDownHandler:()=>()=>{},createMouseOverHandler:()=>()=>{},isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),LL=()=>n(RL),IL=({children:e,selections:t})=>{const r=function(e){var t,r,n;const{env:o}=QE(),{updatePageInfo:i}=XE(),a=e.isActive(),[l,u]=v(wL,{engineSelectedCells:null,selectedField:null,activeSelection:null});f((()=>{const t=()=>{u({type:"clearSelections"})},r=()=>{t(),i({page:0})};return e.on("deactivated",t),e.on("canceled",t),e.on("confirmed",r),e.on("cleared",t),()=>{e.removeListener("deactivated",t),e.removeListener("canceled",t),e.removeListener("confirmed",r),e.removeListener("cleared",t)}}),[e,i]);const c=p((async()=>{var t,r,n;if(!l.activeSelection)return;1===l.activeSelection.clientSelectedCells.size&&(r=l.engineSelectedCells,(n=l.activeSelection).clientSelectedCells.forEach(((e,t)=>{null!=r&&r.has(t)&&(n.clientSelectedCells.delete(t),r.delete(t))})));const o=new Map([...null!==(t=l.engineSelectedCells)&&void 0!==t?t:new Map,...l.activeSelection.clientSelectedCells]);try{u({type:"mouseup",payload:{engineSelectedCells:o}}),await e.select({method:"selectPivotCells",params:[iC,Array.from(o,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]})}catch(e){console.error(e),u({type:"mouseup",payload:{engineSelectedCells:l.engineSelectedCells}})}}),[l,e]);f((()=>{if(l.activeSelection)return document.addEventListener("mouseup",c),()=>{document.removeEventListener("mouseup",c)}}),[c,l.activeSelection]);const d=p(((e,t)=>r=>{const n=t(e);CL(r)||(e=>{var t;return null!==(null===(t=e.target)||void 0===t?void 0:t.closest("[data-prevent-selection]"))})(r)||(e=>{var t;return"A"===(null===(t=e.target)||void 0===t?void 0:t.tagName)})(r)||!(e=>1===e.buttons)(r)||!n||u({type:"mousedown",payload:{activeSelection:{startIndex:e,endIndex:e,getCellFromIndex:t,clientSelectedCells:(new Map).set(n.ref.qElemNo,n)},selectedField:{selectionCellType:n.selectionCellType,index:"L"===n.selectionCellType?n.x:n.y}}})}),[]),m=p((t=>o.flags.isEnabled("CLIENT_IM_6223_PIVOT_RANGE_SELECTION")?async()=>{l.activeSelection&&(e.isActive()||await e.begin([iC]),u({type:"mouseover",payload:{index:t}}))}:void 0),[l.activeSelection,e,o]),h=p((e=>{var t,r;return!(!(null!==(t=l.engineSelectedCells)&&void 0!==t&&t.size||null!==(r=l.activeSelection)&&void 0!==r&&r.clientSelectedCells.size)||!l.selectedField||e.selectionCellType===l.selectedField.selectionCellType&&("L"===e.selectionCellType?l.selectedField.index===e.x:l.selectedField.index===e.y))}),[null===(t=l.activeSelection)||void 0===t?void 0:t.clientSelectedCells.size,null===(r=l.engineSelectedCells)||void 0===r?void 0:r.size,l.selectedField]),g=p((e=>{var t,r;return!h(e)&&((null===(t=l.engineSelectedCells)||void 0===t?void 0:t.has(e.ref.qElemNo))||!(null===(r=l.activeSelection)||void 0===r||!r.clientSelectedCells.has(e.ref.qElemNo)))}),[h,null===(n=l.activeSelection)||void 0===n?void 0:n.clientSelectedCells,l.engineSelectedCells]);return s((()=>({isSelected:g,isActive:a,isLocked:h,createMouseDownHandler:d,createMouseOverHandler:m})),[g,a,h,d,m])}(t);return Yl.jsx(RL.Provider,{value:r,children:e})};var AL;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(AL||(AL={}));const ML={brighter:.5,darker:.3,opacity:.03},DL=(e,{cell:t,styleService:r})=>{if(e===AL.Background||e===AL.Color){const r=t.expressionColor[e];if(r)return r}return t.isNull?r.nullValues[e]:t.isPseudoDimension?r.measureLabels[e]:t.isTotal?r.totalValues[e]:r.dimensionValues[e]},PL=({styleService:e,isCellSelected:t,cell:r,isCellLocked:n})=>{if(t)return e.selectedColors.background;const o=DL(AL.Background,{cell:r,styleService:e});return!n||!o||r.isPseudoDimension||r.isEmpty||r.isNull||r.isTotal?DL(AL.Background,{cell:r,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${Bh(i=o,ML)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},kL=({cell:e,styleService:t,isCellSelected:r})=>r?t.selectedColors.color:DL(AL.Color,{cell:e,styleService:t}),OL=({cell:e,styleService:t})=>{const{qCanCollapse:r,qCanExpand:n}=e.ref,o=DL(AL.FontWeight,{cell:e,styleService:t});return void 0===o&&(n||r)?ng:o},TL=({cell:e,styleService:t})=>DL(AL.FontStyle,{cell:e,styleService:t}),_L=({cell:e,styleService:t})=>DL(AL.TextDecoration,{cell:e,styleService:t}),qL=e=>e?"pointer":"default",NL=({expandOrCollapse:e,cell:t})=>r=>{null==e||e(t.y,t.x),r.stopPropagation()},FL=(e,t)=>{if(!e.isLeftColumn||e.representation.type===Nt.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},jL=({cell:e,isLeftColumn:t,isCellSelected:r})=>{const{styleService:n}=rC(),{interactions:o}=QE(),{isActive:i}=LL(),{dataModel:a}=Bw();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!o.active||i||!a,s=kL({cell:e,styleService:n,isCellSelected:r}),u=i?.4:1,c=e.ref.qCanExpand?EL:yL;let d;return d=e.ref.qCanExpand?t?a.expandLeft:a.expandTop:t?a.collapseLeft:a.collapseTop,Yl.jsx(c,{opacity:u,color:s,"data-prevent-selection":!l||void 0,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",...FL(e,n)},onClick:l?void 0:NL({cell:e,expandOrCollapse:d})})},zL=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},GL=e=>{switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},$L=({representation:e,styleService:t,canExpandOrCollapse:r,leafCount:n,isLeftColumn:o})=>{const i=`calc(100% - ${r?21:0}px)`,a=o?t.contentCellHeight:t.headerCellHeight,l=o&&void 0!==n?a*Math.max(n,1):a;switch(e.imageSize){case"originalSize":return{maxWidth:i,maxHeight:l};case"fitWidth":return{width:i,maxHeight:l};case"fitHeight":return{height:l,maxWidth:i};case"fill":return{height:l,width:i};default:return{width:i,height:a}}},BL=(e,t)=>{if("alwaysFit"===e)switch(null==t?void 0:t.vertical){case"flex-start":return"center top";case"flex-end":return"center bottom";default:return"center center"}},WL=e=>{if("alwaysFit"===e)return"contain"},HL=({representation:e,styleService:t,textStyle:r,canExpandOrCollapse:n,leafCount:o,isLeftColumn:i})=>{const{imageRef:a,onLoad:l}=(()=>{const{downloadService:e}=rC(),t=c(null),{promise:r,resolve:n}=s((()=>Lg()),[]);return f((()=>{var o;return e.isDownloadedAsPDForImage&&(e.waitForPromise(r),null!==(o=t.current)&&void 0!==o&&o.complete&&n()),()=>{n()}}),[t,e,r,n]),{onLoad:p((()=>{n()}),[n]),imageRef:t}})(),{url:u,text:d,imageSize:m,resolvedImagePosition:h}=e,{overflow:g,...b}=r;return Yl.jsx("div",{"data-key":"image-container",style:{display:"flex",flexDirection:"column",justifyContent:null==h?void 0:h.vertical,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...$L({representation:e,styleService:t,canExpandOrCollapse:n,leafCount:o,isLeftColumn:i})},children:Yl.jsx("img",{src:u,alt:d,style:{width:GL(m),height:zL(m),objectFit:WL(m),objectPosition:BL(m,h),...b},onLoad:l,ref:a})})},VL=(e,t)=>{if(null!=e&&e.auto)return t;switch(null==e?void 0:e.align){case"center":return"center";case"left":return"flex-start";case"right":return"flex-end";default:return t}},YL={display:"flex",flexDirection:"row",alignItems:"center"},UL={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},KL=(e,t,r,n)=>t?{...UL,...e.nullValues}:r?{...YL,color:e.totalValues.color,background:null!=n?n:e.totalValues.background}:{...YL,color:e.measureValues.color,background:null!=n?n:e.measureValues.background},XL=(e,t,r,n,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...dg,...!r&&pg(e.grid.lineClamp),...t&&{color:t},fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.nullValues;return{...l,fontWeight:t,fontStyle:r,textDecoration:n}}if(n){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.totalValues;return{...l,fontWeight:t,fontStyle:r,textDecoration:n}}const{fontWeight:s,fontStyle:u,textDecoration:c}=e.measureValues;return{...l,fontWeight:void 0===s?ng:s,fontStyle:u,textDecoration:c}},JL=(e,t,r,n)=>{const{textAlign:o}=t,i=n?"flex-end":"center";var a,l;return e.isNull||r.type!==Nt.Image?VL(o,i):null!==(a=null===(l=r.resolvedImagePosition)||void 0===l?void 0:l.horizontal)&&void 0!==a?a:"center"},ZL=({cell:e,representation:t,color:r,isNumeric:n,isTotalValueCell:o})=>{const{layoutService:i,styleService:a}=rC(),l=e.isNull?i.getNullValueText():t.text,s=XL(a,r,n,o,e.isNull);return t.type!==Nt.Image||e.isNull?Yl.jsx("span",{style:{padding:4,...s},children:l}):Yl.jsx(HL,{representation:t,styleService:a,textStyle:s,isLeftColumn:!0})},QL=(e,t)=>{var r,n;return null!==(r=null==e||null===(n=e[t])||void 0===n?void 0:n.visibleMeasureInfoIndex)&&void 0!==r?r:0},eI="flex-start",tI=(e,t)=>{return e.isNull?eI:t.type===Nt.Image&&"fill"!==t.imageSize?null===(r=t.resolvedImagePosition)||void 0===r?void 0:r.vertical:eI;var r},rI=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o;const{env:i}=QE(),{pageInfo:a}=XE(),{styleService:l,layoutService:s}=rC(),{attrExprInfoIndexes:u,gridSectionsData:{measureData:c,leftDimensionData:d,topDimensionData:f},visibleDimensionsInfo:{visibleLeftDimensionInfo:m,visibleTopDimensionInfo:h}}=Bw(),g=(()=>{const{layoutService:{isIndentModeEnabled:e}}=rC(),{gridSectionsData:{leftDimensionData:t,topDimensionData:r},visibleDimensionsInfo:{visibleLeftDimensionInfo:n,visibleTopDimensionInfo:o}}=Bw(),i=n.length,a=o.length;return p(((n,o)=>{var l,s;return!!(null!==(l=r.grid.at(a-1))&&void 0!==l&&null!==(l=l[n])&&void 0!==l&&l.isTotal||null!==(s=t.grid.at(e?0:i-1))&&void 0!==s&&null!==(s=s[o])&&void 0!==s&&s.isTotal)}),[r,t,i,a,e])})(),b=(()=>{const{gridSectionsData:{topDimensionData:e},visibleDimensionsInfo:{visibleTopDimensionInfo:t}}=Bw(),r=t.length;return p((t=>{var n;const o=null===(n=e.grid.at(r-1))||void 0===n?void 0:n[t];return fL(o,e.totalDividerIndex)}),[e,r])})(),v=(()=>{const{layoutService:{isIndentModeEnabled:e}}=rC(),{gridSectionsData:{leftDimensionData:t},visibleDimensionsInfo:{visibleLeftDimensionInfo:r}}=Bw(),n=r.length;return p((r=>{var o;const i=e?0:n-1,a=null===(o=t.grid.at(i))||void 0===o?void 0:o[r];return fL(a,t.totalDividerIndex,e)}),[t,e,n])})(),{showLastBorder:y}=n,x=f.grid.at(h.length-1),S=d.grid.at(m.length-1),{background:E}=l.measureValues,C=null===(o=c[t])||void 0===o?void 0:o[e],w=t===a.rowsOnCurrentPage-1,R=e===s.size.x-1;if(!C)return Yl.jsx(mL,{style:{...r,background:E},isLastRow:w,isLastColumn:R,showLastBorder:y,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const L=s.hasPseudoDimOnLeft?QL(S,t):QL(x,e),I=s.visibleMeasureInfo[L],A=xw({cell:C.ref,representationProperties:s.isIndentModeEnabled?{type:Nt.Text}:I.representation,attrExprInfoIndex:u.measures[L],env:i}),M=!C.isNull&&g(e,t),D=C.isNull?s.getNullValueText():A.text,P=!C.isNull||!Number.isNaN(+D),k=Sw(u.measures[L],C.ref),O={...KL(l,C.isNull,M,k.background),...mg(w,R,l.grid.border,y),...gg({bottomDivider:v(t),rightDivider:b(e),borderColor:l.grid.divider}),...cg,padding:"0px 4px",display:"flex",justifyContent:JL(C,I,A,P)};return Yl.jsx("div",{className:Zt,title:D,style:{...O,...r},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:Yl.jsx(hL,{width:gL(A),verticalAlign:tI(C,A),children:Yl.jsx(ZL,{cell:C,representation:A,isNumeric:P,isTotalValueCell:M,color:k.color})})})};var nI=r.memo(rI,ZR);const oI=(e,t)=>{var r,n;return null!==(r=null===(n=t.list[e])||void 0===n?void 0:n.id)&&void 0!==r?r:e.toString()},iI=({columnIndex:e,rowIndex:t,data:r})=>{var n,o;return null!==(n=null===(o=r.grid[t])||void 0===o||null===(o=o[e])||void 0===o?void 0:o.id)&&void 0!==n?n:`${t}-${e}`},aI={...ug,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},lI=({dataGridRef:e,height:t,rowHightCallback:r,width:n,showLastBorder:o,getRightGridColumnWidth:i,verticalScrollDirection:a,horizontalScrollDirection:l})=>{const{pageInfo:s}=XE(),{layoutService:u,styleService:{grid:{divider:c},contentCellHeight:d}}=rC(),{dataModel:f,gridSectionsData:{measureData:m}}=Bw(),h={...aI,borderColor:c,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},b=(({verticalScrollDirection:e,horizontalScrollDirection:t})=>{const{pageInfo:r}=XE(),{downloadService:n,viewService:o,layoutService:i}=rC(),{dataModel:a,gridSectionsData:{leftDimensionData:l,topDimensionData:s,measureData:u}}=Bw(),c=l.columnCount,d=s.rowCount;return p((async({overscanColumnStartIndex:l,overscanColumnStopIndex:s,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{o.gridColumnStartIndex=l,o.gridRowStartIndex=p,o.gridWidth=s-l+1,o.gridHeight=f-p+1;const m=o.gridWidth+c+(t.current===Kt.None?0:QR),h=o.gridHeight+d+(e.current===Kt.None?0:QR);let g=dL;h*m>1500&&(g=pL),g(a,i,u,r,o,e,t,n)}),[o,i,a,u,e,t,r,c,d,n])})({verticalScrollDirection:a,horizontalScrollDirection:l});return $g((()=>{e.current&&e.current.resetAfterColumnIndex(0,!1)}),[e,f,m]),g((()=>{e.current&&e.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[n,t,e,d]),0===u.size.x?null:Yl.jsx(zR,{"data-section-id":"DATA_GRID",ref:e,style:h,columnCount:u.size.x,columnWidth:i,height:t,rowCount:s.rowsOnCurrentPage,rowHeight:r,width:n,itemData:{showLastBorder:o,grid:m},onItemsRendered:b,estimatedRowHeight:r(),estimatedColumnWidth:i(),itemKey:iI,children:nI})};var sI=h(lI);function uI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const cI=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){uI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.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"}),r.createElement("use",{fillRule:"evenodd"})),dI=d(cI),pI=e=>{const[t,r]=u(!1);return $g((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}},fI=()=>{const[e,t]=u(!1),{dataModel:r}=Bw(),{interactions:n}=QE(),{isAdjustingWidth:o,setIsAdjustingWidth:i}=pI([r]);return{open:e,setOpen:t,handleOpenMenu:e=>{!n.active||CL(e)||o||t(!0)},setIsAdjustingWidth:i}};function mI(e,t){var r,n;const o=null!==(r=null===(n=t.expressionColor)||void 0===n?void 0:n.background)&&void 0!==r?r:e.dimensionValues.background,i=t.isLeftColumn?e.header.background:o,a=i===ag.Transparent?dm.WHITE:i,l=ye(e.grid.border),s=ye(a);return s.isInvalid()||l.isInvalid()||1===l.a?e.grid.border:function(e,t,r){return ye(e.r+(t.r-e.r)*r,e.g+(t.g-e.g)*r,e.b+(t.b-e.b)*r,e.a+(t.a-e.a)*r)}(s,l,l.a).getRGB()}const hI=({cellInfo:e,columnWidth:t,isLastColumn:r,overrideLeftGridWidth:n,setIsAdjustingWidth:o,shouldApplyIndentModeColumnWidth:i,tableWidth:a})=>{var l;const{interactions:s,translator:c}=QE(),{isActive:d}=LL(),{dataModel:p}=Bw(),{styleService:f}=rC(),[,m]=u({});if(!(e.canBeResized&&!!s.active&&!d))return null;const h=mI(f,e);return Yl.jsx(Kx,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:h,updateWidthCallback:t=>{m({}),n&&void 0!==e.colIdx&&n(t,e.colIdx)},confirmWidthCallback:t=>{var r;i?p.applyIndentModeColumnWidth({...t,pixels:Math.min((null!=a?a:0)*Vw,null!==(r=t.pixels)&&void 0!==r?r:0)}):p.applyColumnWidth(t,e)},setIsAdjustingWidth:o,isLeftColumn:e.isLeftColumn,accessibilityRelatedArgs:{translator:c,columnLabel:null!==(l=e.label)&&void 0!==l?l:""},direction:"ltr"})};function gI(e){return uy(e)}const bI=e=>e.scrollTop;function vI(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function yI(e){return mv("MuiPaper",e)}hv("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 xI=["className","component","elevation","square","variant"],SI=$x("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return hr({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&&hr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${yy("#fff",Hx(t.elevation))}, ${yy("#fff",Hx(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}));var EI=t.forwardRef((function(e,t){const r=gI({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=Er(r,xI),u=hr({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Yv({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},yI,o)})(u);return Yl.jsx(SI,hr({as:o,ownerState:u,className:ka(c.root,n),ref:t},s))}));var CI=hv("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const wI=["center","classes","className"];let RI,LI,II,AI,MI=e=>e;const DI=Vi(RI||(RI=MI`
101
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},Oh({exports:{}});const Wh=(e,t=mm.TEXT,r=mm.WHITE)=>{const n=Am(e),o=Am(t),i=Am(r);return n.isInvalid()?t:function(e,t,r){return Pm(e,t)>Pm(e,r)?t:r}(n,i,o).getRGB()},Hh=e=>{const t=e.getStyle("","","dataColors.selected")||mm.SELECTED,r=function(e,t){var r=Am("#FFFFFF"),n=Am(e),o=Am(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;var i=Pm(r,n),a=Pm(o,n),l=i>a||i>4.5;return!l&&a>3?t:l?"#FFFFFF":"#000000"}(t,mm.TEXT);return{background:t,color:r}},Vh=(e,t)=>{const r=Am(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},Yh=e=>!!e&&0===Am(e).a,Uh=e=>{const t=Am(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},Kh=e=>{e.stopPropagation(),e.preventDefault()},Xh=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:null!=n&&n,defaultValue(e,t,o){var i;const a=null!==(i=null==n?void 0:n(e,t,o))&&void 0!==i&&i,l=o.theme.current(),s=r(l,a);return{color:"transparent"===s?"none":s}}}),Jh=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},Zh=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:"Source Sans Pro, sans-serif",l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>Jh(e,!0)))],c=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...qm(n).filter((e=>!s.includes(e))).map((e=>Jh(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),Qh=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],eg=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{var n;const o=t.fontSize,i=null!==(n=t.fontSizes)&&void 0!==n?n:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>Jh(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...Qh.filter((e=>!a.includes(e))).map((e=>Jh(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),tg=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:null!=i?i:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:Zh({ref:`${e}.fontFamily`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontFamily"))&&void 0!==r?r:t.fontFamily},translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:eg({ref:`${e}.fontSize`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontSize"))&&void 0!==r?r:t.fontSize},translator:r}),fontColor:Xh(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=o(t,e,"color"))&&void 0!==r?r:t.color}))}},background:Xh(`${e}.background`,"properties.background",((t,r)=>{var n;const i=r?mm.WHITE:mm.TRANSPARENT;return null!==(n=o(t,e,"backgroundColor"))&&void 0!==n?n:i}),a)}}}}),rg=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:Xh(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=n(t,e,"color"))&&void 0!==r?r:t.color}))}},background:Xh(`${e}.background`,"properties.background",(t=>{var o,i;return null!==(o=null!==(i=n(t,e,"backgroundColor"))&&void 0!==i?i:r)&&void 0!==o?o:"transparent"}))}}}}),ng=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),og="12px",ig="Source Sans Pro, sans-serif",ag="600",lg=15e3,sg=4/3;var ug,cg;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(ug||(ug={})),function(e){e.Solid="solid",e.None="none"}(cg||(cg={}));const dg={display:"flex",justifyContent:"center",alignItems:"center"},pg={borderStyle:"solid"},fg={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},mg={lineHeight:sg,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},hg=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),gg=(e,t)=>e>0?`${e}px ${cg.Solid} ${t}`:cg.None,bg=(e,t,r,n)=>{const o=Number(!t||(null==n?void 0:n.right)),i=Number(!e||(null==n?void 0:n.bottom));return{borderRight:gg(o,r),borderBottom:gg(i,r),borderLeft:cg.None,borderTop:cg.None}},vg=(e,t,r,n,o,i)=>{const a=bg(t,n,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=gg(2,o)),r||(a.borderLeft=gg(1,o))),a},yg=({bottomDivider:e,rightDivider:t,borderColor:r})=>{const n={};return e&&(n.borderBottom=gg(1,r)),t&&(n.borderRight=gg(1,r)),n},xg=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:ng("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?ng("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:Xh("grid.border","properties.border",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.grid)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:ug.DividerLight})),divider:Xh("grid.divider","properties.pivot.divider",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.grid)||void 0===r||null===(r=r.divider)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:ug.DividerDark})),background:Xh("grid.background","properties.background",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.grid)||void 0===r?void 0:r.backgroundColor)&&void 0!==t?t:ug.Transparent}))}}}}),Sg=(e,t,r)=>{var n,o,i,a,l,s;switch(t){case"header":return null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.dimension)||void 0===n||null===(n=n.label)||void 0===n||null===(n=n.name)||void 0===n?void 0:n[r];case"dimensionValues":return null===(o=e.object)||void 0===o||null===(o=o.pivotTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[r];case"measureLabels":return null===(i=e.object)||void 0===i||null===(i=i.pivotTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i[r];case"measureValues":return null===(a=e.object)||void 0===a||null===(a=a.pivotTableV2)||void 0===a||null===(a=a.measure)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[r];case"totalValues":return null===(l=e.object)||void 0===l||null===(l=l.pivotTableV2)||void 0===l||null===(l=l.total)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[r];case"nullValues":return null===(s=e.object)||void 0===s||null===(s=s.pivotTableV2)||void 0===s||null===(s=s.null)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[r];default:return}},Eg=(e,t)=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.PivotTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,defaultValue:[],items:{headerSection:tg({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:Sg}),dimensionValueSection:tg({section:"dimensionValues",translator:e,flags:t,getThemeValue:Sg}),measureValueSection:tg({section:"measureValues",translator:e,flags:t,getThemeValue:Sg}),measureLabelSection:rg({section:"measureLabels",getThemeValue:Sg}),totalValuesSection:rg({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:Sg}),nullValuesSection:rg({section:"nullValues",fallbackBackground:ug.NullValueBackground,getThemeValue:Sg}),gridSection:xg(t)}}]}),Cg=e=>({type:"items",items:{nullValueText:{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"},alwaysFullyExpanded:{ref:"qHyperCubeDef.qAlwaysFullyExpanded",type:"boolean",translation:"properties.pivot.fullyExpanded",defaultValue:!1},...e.isEnabled("CLIENT_IM_5975_INDENT_MODE")&&{indentMode:{ref:"qHyperCubeDef.qIndentMode",type:"boolean",translation:"properties.pivot.indentMode",defaultValue:!1,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}},type:{type:"string",component:"dropdown",ref:"qHyperCubeDef.indentModeColumnWidth.type",translation:"Object.Table.Column.Width",options:[{value:rr.Auto,translation:"Common.Auto"},{value:rr.Pixels,translation:"Object.Table.Column.Pixels"},{value:rr.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:rr.Auto,show:e=>!!e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:tr.PixelsDefault,show:e=>{var t;const r=e.qHyperCubeDef;return r.qIndentMode&&(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.type)===rr.Pixels},change:e=>{var t;const r=e.qHyperCubeDef;void 0!==(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.pixels)&&(r.indentModeColumnWidth.pixels=Math.max(tr.PixelsMin,Math.min(tr.PixelsMax,r.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:tr.PercentageDefault,show:e=>{var t;const r=e.qHyperCubeDef;return r.qIndentMode&&(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.type)===rr.Percentage},change:e=>{var t;const r=e.qHyperCubeDef;void 0!==(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.percentage)&&(r.indentModeColumnWidth.percentage=Math.max(tr.PercentageMin,Math.min(tr.PercentageMaxInIndentMode,r.indentModeColumnWidth.percentage)))}}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(t){const{qIndentMode:r}=t.qHyperCubeDef;return(!r||!e.isEnabled("CLIENT_IM_5975_INDENT_MODE"))&&!!t.qHyperCubeDef.qDimensions.some((e=>{var t;return"TOTAL_EXPR"===(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qTotalMode)}))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>!!e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,r,n){e.qHyperCubeDef.qExpansionState=[],n.$emit("saveProperties",e)}}}}),wg=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[Eg(e,t),Cg(t)]}}}),Rg="auto",Lg={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>{t("integer",e?-1:0)}},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>!!e.qHyperCubeDef.qSortbyYValue}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:Rg,translation:"Object.Table.SortingInSearch",options:[{value:Rg,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function Ig(e){const{translator:t,flags:r}=e;return{type:"items",component:"accordion",items:{data:mr(e),sorting:Lg,addons:qt,settings:wg(t,r)}}}function Mg(e){return{support:{cssScaling:!0,snapshot:!0,export:!0,sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:Ig(e),importProperties:Tt(e),exportProperties:_t}}const Dg=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function Ag(e,t){return y((()=>e),t)}const Pg={},kg=e=>{const t=y((()=>({current:Pg})),[]);return t.current=t.current===Pg?e:t.current,t},Og=()=>{const{viewState:e}=x(),t=kg(new Set),r=void 0!==e,{promise:n,resolve:o}=y((()=>Dg()),[]),i=Ag((e=>{r&&t.current.add(e)}),[t]),a=Ag(function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}((async()=>{await Promise.all(t.current),t.current.clear(),o()}),1e3),[o,t]);return S((async()=>{r&&await n}),[n,r]),y((()=>({viewState:e,isDownloadedAsPDForImage:r,notifyIsDoneRendering:a,waitForPromise:i})),[a,r,e,i])},Tg="#grid",_g=(e,t)=>{const r=null==t?void 0:t.closest(e);return r&&window.getComputedStyle(r).backgroundColor},qg=(e,t,r,n,o)=>{const i=_g(".qv-object .qv-inner-object",r),a=_g(".qv-panel-sheet",r),l=_g(Tg,r),s=null!=l?l:a,u=(e=>{var t,r,n,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(r=l.bgColor)||void 0===r?void 0:r.colorExpression,u=null==l||null===(n=l.bgColor)||void 0===n||null===(n=n.color)||void 0===n?void 0:n.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return Uh(s);if("none"===u)return"transparent";if(void 0===u)return;const c=Am(u);return c.setAlpha(null!==(i=null==l||null===(a=l.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.a),c.getRGBA()})(e),c=null==n?void 0:n(t),d=null==o?void 0:o(t),p=c||i||d,f=Yh(p),m=!Yh(h=f?s:p)&&Wh(h,mm.TEXT,mm.DARK_MODE_TEXT)===Rm(mm.DARK_MODE_TEXT);var h;const g=((e,t,r,n=mm.WHITE)=>e&&!Yh(e)?e:Yh(t)?r&&!Yh(r)?r:n:t)(u,p,s);return{color:p,headerColor:g,isDark:m}},Ng=(e,t,r,n)=>{const o=w(),i=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,n]=E([]);return C((()=>{let r;return e&&(r=new MutationObserver((e=>{n(e)})),r.observe(e,t)),()=>{var e;null===(e=r)||void 0===e||e.disconnect()}}),[e,t]),r})(t.closest(Tg),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return y((()=>({...o,background:qg(e,o,t,r,n)})),[o.name(),t,r,n,e,i])};function Fg(e,t){const r=y((()=>({isLoading:!0})),t),[n,o]=S((async()=>{try{return await e()}finally{r.isLoading=!1}}),t);return[n,r.isLoading,o]}const jg=3;function zg(e,t,r){let n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=r(a),u=r(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?n=i+1:o=i}return null}function Gg({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=jg}={},{estimateWidth:a,measureText:l,estimateLineCount:u}=s((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=qh(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=qh((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=zg(o,t,l)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:s}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:u}}var $g,Bg=F;$g=Bg.createRoot,Bg.hydrateRoot;const Wg="Source Sans Pro, sans-serif";function Hg(e,t){const[r,n]=u(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var Vg={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","zh-CN":"折叠","zh-TW":"收合"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","zh-CN":"展开","zh-TW":"展開"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const Yg=({translator:e})=>(s((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Vg).forEach((t=>{e.add(Vg[t])}))}}(e)}),[e]),e);function Ug(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 Kg=Object.freeze({__proto__:null,default:Ug}),Xg="$$material";function Jg(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 Zg(e){if(t.isValidElement(e)||!Jg(e))return e;const r={};return Object.keys(e).forEach((t=>{r[t]=Zg(e[t])})),r}function Qg(e,r,n={clone:!0}){const o=n.clone?hr({},e):e;return Jg(e)&&Jg(r)&&Object.keys(r).forEach((i=>{t.isValidElement(r[i])?o[i]=r[i]:Jg(r[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Jg(e[i])?o[i]=Qg(e[i],r[i],n):n.clone?o[i]=Jg(r[i])?Zg(r[i]):r[i]:o[i]=r[i]})),o}var eb=Object.freeze({__proto__:null,default:Qg,isPlainObject:Jg});const tb=["values","unit","step"];function rb(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Er(e,tb),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>hr({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return hr({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const nb={borderRadius:4};function ob(e,t){return t?Qg(e,t,{clone:!1}):e}const ib={xs:0,sm:600,md:900,lg:1200,xl:1536},ab={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ib[e]}px)`};function lb(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||ab;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||ab;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||ib).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function sb(e){if("string"!=typeof e)throw new Error(Ug(7));return e.charAt(0).toUpperCase()+e.slice(1)}var ub=Object.freeze({__proto__:null,default:sb});function cb(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function db(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:cb(e,r)||n,t&&(o=t(o,n,e)),o}function pb(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=cb(e.theme,n)||{};return lb(e,i,(e=>{let n=db(a,o,e);return e===n&&"string"==typeof e&&(n=db(a,o,`${t}${"default"===e?"":sb(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const fb={m:"margin",p:"padding"},mb={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},hb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gb=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!hb[e])return[e];e=hb[e]}const[t,r]=e.split(""),n=fb[t],o=mb[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),bb=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],vb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function yb(e,t,r,n){var o;const i=null!=(o=cb(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function xb(e){return yb(e,"spacing",8)}function Sb(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function Eb(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Sb(t,r),e)),{})}(gb(r),n);return lb(e,e[r],o)}function Cb(e,t){const r=xb(e.theme);return Object.keys(e).map((n=>Eb(e,t,n,r))).reduce(ob,{})}function wb(e){return Cb(e,bb)}function Rb(e){return Cb(e,vb)}function Lb(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?ob(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Ib(e){return"number"!=typeof e?e:`${e}px solid`}function Mb(e,t){return pb({prop:e,themeKey:"borders",transform:t})}wb.propTypes={},wb.filterProps=bb,Rb.propTypes={},Rb.filterProps=vb;const Db=Mb("border",Ib),Ab=Mb("borderTop",Ib),Pb=Mb("borderRight",Ib),kb=Mb("borderBottom",Ib),Ob=Mb("borderLeft",Ib),Tb=Mb("borderColor"),_b=Mb("borderTopColor"),qb=Mb("borderRightColor"),Nb=Mb("borderBottomColor"),Fb=Mb("borderLeftColor"),jb=Mb("outline",Ib),zb=Mb("outlineColor"),Gb=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=yb(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Sb(t,e)});return lb(e,e.borderRadius,r)}return null};Gb.propTypes={},Gb.filterProps=["borderRadius"],Lb(Db,Ab,Pb,kb,Ob,Tb,_b,qb,Nb,Fb,Gb,jb,zb);const $b=e=>{if(void 0!==e.gap&&null!==e.gap){const t=yb(e.theme,"spacing",8),r=e=>({gap:Sb(t,e)});return lb(e,e.gap,r)}return null};$b.propTypes={},$b.filterProps=["gap"];const Bb=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=yb(e.theme,"spacing",8),r=e=>({columnGap:Sb(t,e)});return lb(e,e.columnGap,r)}return null};Bb.propTypes={},Bb.filterProps=["columnGap"];const Wb=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=yb(e.theme,"spacing",8),r=e=>({rowGap:Sb(t,e)});return lb(e,e.rowGap,r)}return null};Wb.propTypes={},Wb.filterProps=["rowGap"];function Hb(e,t){return"grey"===t?t:e}Lb($b,Bb,Wb,pb({prop:"gridColumn"}),pb({prop:"gridRow"}),pb({prop:"gridAutoFlow"}),pb({prop:"gridAutoColumns"}),pb({prop:"gridAutoRows"}),pb({prop:"gridTemplateColumns"}),pb({prop:"gridTemplateRows"}),pb({prop:"gridTemplateAreas"}),pb({prop:"gridArea"}));function Vb(e){return e<=1&&0!==e?100*e+"%":e}Lb(pb({prop:"color",themeKey:"palette",transform:Hb}),pb({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Hb}),pb({prop:"backgroundColor",themeKey:"palette",transform:Hb}));const Yb=pb({prop:"width",transform:Vb}),Ub=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||ib[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Vb(t)}};return lb(e,e.maxWidth,t)}return null};Ub.filterProps=["maxWidth"];const Kb=pb({prop:"minWidth",transform:Vb}),Xb=pb({prop:"height",transform:Vb}),Jb=pb({prop:"maxHeight",transform:Vb}),Zb=pb({prop:"minHeight",transform:Vb});pb({prop:"size",cssProperty:"width",transform:Vb}),pb({prop:"size",cssProperty:"height",transform:Vb});Lb(Yb,Ub,Kb,Xb,Jb,Zb,pb({prop:"boxSizing"}));const Qb={border:{themeKey:"borders",transform:Ib},borderTop:{themeKey:"borders",transform:Ib},borderRight:{themeKey:"borders",transform:Ib},borderBottom:{themeKey:"borders",transform:Ib},borderLeft:{themeKey:"borders",transform:Ib},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ib},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Gb},color:{themeKey:"palette",transform:Hb},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Hb},backgroundColor:{themeKey:"palette",transform:Hb},p:{style:Rb},pt:{style:Rb},pr:{style:Rb},pb:{style:Rb},pl:{style:Rb},px:{style:Rb},py:{style:Rb},padding:{style:Rb},paddingTop:{style:Rb},paddingRight:{style:Rb},paddingBottom:{style:Rb},paddingLeft:{style:Rb},paddingX:{style:Rb},paddingY:{style:Rb},paddingInline:{style:Rb},paddingInlineStart:{style:Rb},paddingInlineEnd:{style:Rb},paddingBlock:{style:Rb},paddingBlockStart:{style:Rb},paddingBlockEnd:{style:Rb},m:{style:wb},mt:{style:wb},mr:{style:wb},mb:{style:wb},ml:{style:wb},mx:{style:wb},my:{style:wb},margin:{style:wb},marginTop:{style:wb},marginRight:{style:wb},marginBottom:{style:wb},marginLeft:{style:wb},marginX:{style:wb},marginY:{style:wb},marginInline:{style:wb},marginInlineStart:{style:wb},marginInlineEnd:{style:wb},marginBlock:{style:wb},marginBlockStart:{style:wb},marginBlockEnd:{style:wb},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:$b},rowGap:{style:Wb},columnGap:{style:Bb},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Vb},maxWidth:{style:Ub},minWidth:{transform:Vb},height:{transform:Vb},maxHeight:{transform:Vb},minHeight:{transform:Vb},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ev(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=cb(r,l)||{};if(u)return u(o);return lb(o,t,(t=>{let r=db(c,s,t);return t===r&&"string"==typeof t&&(r=db(c,s,`${e}${"default"===t?"":sb(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=null!=(n=i.unstable_sxConfig)?n:Qb;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=ob(s,e(r,o,i,a));else{const e=lb({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?s=ob(s,e):s[r]=t({sx:o,theme:i})}else s=ob(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const tv=ev();function rv(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}tv.filterProps=["sx"];const nv=["breakpoints","palette","spacing","shape"];function ov(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Er(e,nv),l=rb(r),s=function(e=8){if(e.mui)return e;const t=xb({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=Qg({breakpoints:l,direction:"ltr",components:{},palette:hr({mode:"light"},n),spacing:s,shape:hr({},nb,i)},a);return u.applyStyles=rv,u=t.reduce(((e,t)=>Qg(e,t)),u),u.unstable_sxConfig=hr({},Qb,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return tv({sx:e,theme:this})},u}var iv=Object.freeze({__proto__:null,default:ov,private_createBreakpoints:rb,unstable_applyStyles:rv});function av(e=null){const r=t.useContext(sa);return r&&(n=r,0!==Object.keys(n).length)?r:e;var n}const lv=ov();function sv(e=lv){return av(e)}const uv=["sx"];function cv(e){const{sx:t}=e,r=Er(e,uv),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:Qb;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return Jg(r)?hr({},n,r):n}:hr({},n,t),hr({},o,{sx:i})}var dv=Object.freeze({__proto__:null,default:tv,extendSxProp:cv,unstable_createStyleFunctionSx:ev,unstable_defaultSxConfig:Qb});const pv=e=>e,fv=(()=>{let e=pv;return{configure(t){e=t},generate:t=>e(t),reset(){e=pv}}})(),mv=["className","component"];const hv={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 gv(e,t,r="Mui"){const n=hv[t];return n?`${r}-${n}`:`${fv.generate(e)}-${t}`}function bv(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=gv(e,t,r)})),n}const vv=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function yv(e){const t=`${e}`.match(vv);return t&&t[1]||""}function xv(e,t=""){return e.displayName||e.name||yv(e)||t}function Sv(e,t,r){const n=xv(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var Ev=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return xv(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Ha.ForwardRef:return Sv(e,e.render,"ForwardRef");case Ha.Memo:return Sv(e,e.type,"memo");default:return}}},getFunctionName:yv});function Cv(e,t){const r=hr({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=hr({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=hr({},i),Object.keys(o).forEach((e=>{r[n][e]=Cv(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const wv="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function Rv(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var Lv=Object.freeze({__proto__:null,default:Rv});function Iv(e){if(e.type)return e;if("#"===e.charAt(0))return Iv(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(Ug(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(Ug(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Mv(e,t){return e=Iv(e),t=function(e,t=0,r=1){return Rv(e,t,r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function Dv(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function Av(e){return e&&e.ownerDocument||document}function Pv(e){return Av(e).defaultView||window}function kv(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Ov(e){const r=t.useRef(e);return wv((()=>{r.current=e})),t.useRef(((...e)=>(0,r.current)(...e))).current}function Tv(...e){return t.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{kv(e,t)}))}),e)}const _v={};const qv=[];class Nv{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Nv}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Fv(){const e=function(e,r){const n=t.useRef(_v);return n.current===_v&&(n.current=e(r)),n}(Nv.create).current;return function(e){t.useEffect(e,qv)}(e.disposeEffect),e}let jv=!0,zv=!1;const Gv=new Nv,$v={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 Bv(e){e.metaKey||e.altKey||e.ctrlKey||(jv=!0)}function Wv(){jv=!1}function Hv(){"hidden"===this.visibilityState&&zv&&(jv=!0)}function Vv(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return jv||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!$v[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Yv(){const e=t.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Bv,!0),t.addEventListener("mousedown",Wv,!0),t.addEventListener("pointerdown",Wv,!0),t.addEventListener("touchstart",Wv,!0),t.addEventListener("visibilitychange",Hv,!0))}),[]),r=t.useRef(!1);return{isFocusVisibleRef:r,onFocus:function(e){return!!Vv(e)&&(r.current=!0,!0)},onBlur:function(){return!!r.current&&(zv=!0,Gv.start(100,(()=>{zv=!1})),r.current=!1,!0)},ref:e}}function Uv(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Kv(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}function Xv(e){return"string"==typeof e}function Jv(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function Zv(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}const Qv=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ey(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Er(e,Qv),l=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=nl(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=hr({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=hr({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Jv(hr({},o,n)),l=Zv(n),s=Zv(o),u=t(a),c=nl(null==u?void 0:u.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),d=hr({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=hr({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(hr({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||Xv(e)?t:hr({},t,{ownerState:hr({},t.ownerState,r)})}(r,hr({},s,{ref:Tv(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function ty(e){var r;return parseInt(t.version,10)>=19?(null==e||null==(r=e.props)?void 0:r.ref)||null:(null==e?void 0:e.ref)||null}const ry=t.createContext(null);function ny(){return t.useContext(ry)}var oy="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function iy(e){const{children:r,theme:n}=e,o=ny(),i=t.useMemo((()=>{const e=null===o?n:function(e,t){if("function"==typeof t)return t(e);return hr({},e,t)}(o,n);return null!=e&&(e[oy]=null!==o),e}),[n,o]);return bs.jsx(ry.Provider,{value:i,children:r})}const ay=["value"],ly=t.createContext();function sy(e){let{value:t}=e,r=Er(e,ay);return bs.jsx(ly.Provider,hr({value:null==t||t},r))}const uy=t.createContext(void 0);function cy({value:e,children:t}){return bs.jsx(uy.Provider,{value:e,children:t})}function dy({props:e,name:r}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Cv(o.defaultProps,n):o.styleOverrides||o.variants?n:Cv(o,n)}({props:e,name:r,theme:{components:t.useContext(uy)}})}const py={};function fy(e,r,n,o=!1){return t.useMemo((()=>{const t=e&&r[e]||r;if("function"==typeof n){const i=n(t),a=e?hr({},r,{[e]:i}):i;return o?()=>a:a}return hr({},r,e?{[e]:n}:n)}),[e,r,n,o])}function my(e){const{children:t,theme:r,themeId:n}=e,o=av(py),i=ny()||py,a=fy(n,o,r),l=fy(n,i,r,!0),s="rtl"===a.direction;return bs.jsx(iy,{theme:l,children:bs.jsx(sa.Provider,{value:a,children:bs.jsx(sy,{value:s,children:bs.jsx(cy,{value:null==a?void 0:a.components,children:t})})})})}var hy={},gy={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(gy);var by=gy.exports,vy=B(Kg),yy=B(Lv),xy=by;Object.defineProperty(hy,"__esModule",{value:!0});var Sy=hy.alpha=Ty;hy.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=Dy(e),a=Dy(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Py({type:"rgb",values:l})},hy.colorChannel=void 0;var Ey=hy.darken=_y;hy.decomposeColor=Dy,hy.emphasize=Ny;var Cy=hy.getContrastRatio=function(e,t){const r=Oy(e),n=Oy(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};hy.getLuminance=Oy,hy.hexToRgb=My,hy.hslToRgb=ky;var wy=hy.lighten=qy;hy.private_safeAlpha=function(e,t,r){try{return Ty(e,t)}catch(t){return e}},hy.private_safeColorChannel=void 0,hy.private_safeDarken=function(e,t,r){try{return _y(e,t)}catch(t){return e}},hy.private_safeEmphasize=function(e,t,r){try{return Ny(e,t)}catch(t){return e}},hy.private_safeLighten=function(e,t,r){try{return qy(e,t)}catch(t){return e}},hy.recomposeColor=Py,hy.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Dy(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 Ry=xy(vy),Ly=xy(yy);function Iy(e,t=0,r=1){return(0,Ly.default)(e,t,r)}function My(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Dy(e){if(e.type)return e;if("#"===e.charAt(0))return Dy(My(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,Ry.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,Ry.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const Ay=e=>{const t=Dy(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};hy.colorChannel=Ay;function Py(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function ky(e){e=Dy(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Py({type:l,values:s})}function Oy(e){let t="hsl"===(e=Dy(e)).type||"hsla"===e.type?Dy(ky(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 Ty(e,t){return e=Dy(e),t=Iy(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Py(e)}function _y(e,t){if(e=Dy(e),t=Iy(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Py(e)}function qy(e,t){if(e=Dy(e),t=Iy(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Py(e)}function Ny(e,t=.15){return Oy(e)>.5?_y(e,t):qy(e,t)}hy.private_safeColorChannel=(e,t)=>{try{return Ay(e)}catch(t){return e}};const Fy={black:"#000",white:"#fff"},jy={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"},zy="#f3e5f5",Gy="#ce93d8",$y="#ba68c8",By="#ab47bc",Wy="#9c27b0",Hy="#7b1fa2",Vy="#e57373",Yy="#ef5350",Uy="#f44336",Ky="#d32f2f",Xy="#c62828",Jy="#ffb74d",Zy="#ffa726",Qy="#ff9800",ex="#f57c00",tx="#e65100",rx="#e3f2fd",nx="#90caf9",ox="#42a5f5",ix="#1976d2",ax="#1565c0",lx="#4fc3f7",sx="#29b6f6",ux="#03a9f4",cx="#0288d1",dx="#01579b",px="#81c784",fx="#66bb6a",mx="#4caf50",hx="#388e3c",gx="#2e7d32",bx="#1b5e20",vx=["mode","contrastThreshold","tonalOffset"],yx={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:Fy.white,default:Fy.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}},xx={text:{primary:Fy.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:Fy.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 Sx(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=wy(e.main,o):"dark"===t&&(e.dark=Ey(e.main,i)))}function Ex(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Er(e,vx),i=e.primary||function(e="light"){return"dark"===e?{main:nx,light:rx,dark:ox}:{main:ix,light:ox,dark:ax}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Gy,light:zy,dark:By}:{main:Wy,light:$y,dark:Hy}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Uy,light:Vy,dark:Ky}:{main:Ky,light:Yy,dark:Xy}}(t),s=e.info||function(e="light"){return"dark"===e?{main:sx,light:lx,dark:cx}:{main:cx,light:ux,dark:dx}}(t),u=e.success||function(e="light"){return"dark"===e?{main:fx,light:px,dark:hx}:{main:gx,light:mx,dark:bx}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Zy,light:Jy,dark:ex}:{main:"#ed6c02",light:Qy,dark:tx}}(t);function d(e){return Cy(e,xx.text.primary)>=r?xx.text.primary:yx.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=hr({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Ug(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Ug(12,t?` (${t})`:"",JSON.stringify(e.main)));return Sx(e,"light",o,n),Sx(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:xx,light:yx};return Qg(hr({common:hr({},Fy),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:jy,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Cx=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const wx={textTransform:"uppercase"},Rx='"Roboto", "Helvetica", "Arial", sans-serif';function Lx(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Rx,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Er(r,Cx),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return hr({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===Rx?{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,wx),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,wx),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Qg(hr({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Ix(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Mx=["none",Ix(0,2,1,-1,0,1,1,0,0,1,3,0),Ix(0,3,1,-2,0,2,2,0,0,1,5,0),Ix(0,3,3,-2,0,3,4,0,0,1,8,0),Ix(0,2,4,-1,0,4,5,0,0,1,10,0),Ix(0,3,5,-1,0,5,8,0,0,1,14,0),Ix(0,3,5,-1,0,6,10,0,0,1,18,0),Ix(0,4,5,-2,0,7,10,1,0,2,16,1),Ix(0,5,5,-3,0,8,10,1,0,3,14,2),Ix(0,5,6,-3,0,9,12,1,0,3,16,2),Ix(0,6,6,-3,0,10,14,1,0,4,18,3),Ix(0,6,7,-4,0,11,15,1,0,4,20,3),Ix(0,7,8,-4,0,12,17,2,0,5,22,4),Ix(0,7,8,-4,0,13,19,2,0,5,24,4),Ix(0,7,9,-4,0,14,21,2,0,5,26,4),Ix(0,8,9,-5,0,15,22,2,0,6,28,5),Ix(0,8,10,-5,0,16,24,2,0,6,30,5),Ix(0,8,11,-5,0,17,26,2,0,6,32,5),Ix(0,9,11,-5,0,18,28,2,0,7,34,6),Ix(0,9,12,-6,0,19,29,2,0,7,36,6),Ix(0,10,13,-6,0,20,31,3,0,8,38,7),Ix(0,10,13,-6,0,21,33,3,0,8,40,7),Ix(0,10,14,-6,0,22,35,3,0,8,42,7),Ix(0,11,14,-7,0,23,36,3,0,9,44,8),Ix(0,11,15,-7,0,24,38,3,0,9,46,8)],Dx=["duration","easing","delay"],Ax={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)"},Px={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function kx(e){return`${Math.round(e)}ms`}function Ox(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Tx(e){const t=hr({},Ax,e.easing),r=hr({},Px,e.duration);return hr({getAutoHeightDuration:Ox,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Er(n,Dx),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:kx(o)} ${i} ${"string"==typeof a?a:kx(a)}`)).join(",")}},e,{easing:t,duration:r})}const _x={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},qx=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Nx(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Er(e,qx);if(e.vars)throw new Error(Ug(18));const l=Ex(n),s=ov(e);let u=Qg(s,{mixins:(c=s.breakpoints,d=r,hr({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Mx.slice(),typography:Lx(l,i),transitions:Tx(o),zIndex:hr({},_x)});var c,d;return u=Qg(u,a),u=t.reduce(((e,t)=>Qg(e,t)),u),u.unstable_sxConfig=hr({},Qb,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return tv({sx:e,theme:this})},u}const Fx=Nx();function jx(){const e=sv(Fx);return e[Xg]||e}var zx,Gx={},$x={exports:{}};var Bx,Wx={exports:{}};var Hx=B(wa),Vx=B(eb),Yx=B(ub),Ux=B(Ev),Kx=B(iv),Xx=B(dv),Jx=by;Object.defineProperty(Gx,"__esModule",{value:!0});var Zx=Gx.default=function(e={}){const{themeId:t,defaultTheme:r=cS,rootShouldForwardProp:n=uS,slotShouldForwardProp:o=uS}=e,i=e=>(0,oS.default)((0,Qx.default)({},e,{theme:pS((0,Qx.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,tS.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=fS(dS(s))}=a,p=(0,eS.default)(a,lS),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=uS;"Root"===s||"root"===s?h=n:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,tS.default)(e,(0,Qx.default)({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,rS.isPlainObject)(e)?n=>mS(e,(0,Qx.default)({},n,{theme:pS({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&d&&s.push((e=>{const n=pS((0,Qx.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[l]||!n.components[l].styleOverrides)return null;const o=n.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=mS(r,(0,Qx.default)({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=pS((0,Qx.default)({},e,{defaultTheme:r,themeId:t}));return mS({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},(0,Qx.default)({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};Gx.shouldForwardProp=uS,Gx.systemDefaultTheme=void 0;var Qx=Jx((zx||(zx=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}($x)),$x.exports)),eS=Jx((Bx||(Bx=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(Wx)),Wx.exports)),tS=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=sS(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(Hx),rS=Vx;Jx(Yx),Jx(Ux);var nS=Jx(Kx),oS=Jx(Xx);const iS=["ownerState"],aS=["variants"],lS=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function sS(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(sS=function(e){return e?r:t})(e)}function uS(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const cS=Gx.systemDefaultTheme=(0,nS.default)(),dS=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function pS({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function fS(e){return e?(t,r)=>r[e]:null}function mS(e,t){let{ownerState:r}=t,n=(0,eS.default)(t,iS);const o="function"==typeof e?e((0,Qx.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>mS(e,(0,Qx.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,eS.default)(o,aS);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,Qx.default)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,Qx.default)({ownerState:r},n,r)):e.style))})),t}return o}const hS=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,gS=Zx({themeId:Xg,defaultTheme:Fx,rootShouldForwardProp:hS}),bS=["theme"];function vS(e){let{theme:t}=e,r=Er(e,bS);const n=t[Xg];return bs.jsx(my,hr({},r,{themeId:n?Xg:void 0,theme:n||t}))}const yS=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},xS={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},SS={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},ES=qu("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...xS},"&::-moz-range-track":{...xS},"&::-ms-track":{...xS},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...SS},"&::-moz-range-thumb":{...SS},"&::-ms-thumb":{...SS},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}}))),CS=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:l,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:d,accessibilityRelatedArgs:p,direction:f="ltr"})=>{const m=Yg({translator:p.translator}),h=c({initWidth:e,columnWidth:e,initX:0}),g=n?0:1,b=o&&!d,v={left:"rtl"===f?"0px":b?h.current.columnWidth-g:"100%",right:"rtl"===f?"100%":"0px"},y=t=>{h.current={initWidth:e,columnWidth:e,initX:null!=t?t:h.current.initX}};Hg((()=>{b&&y()}),[e]);const x=e=>{const t=Math.max(e,tr.PixelsMin);h.current.columnWidth=t,a(t)},S=()=>{if(h.current.columnWidth!==h.current.initWidth){const e={type:rr.Pixels,pixels:h.current.columnWidth};l(e)}else null==u||u(!1)},E=e=>{const t="rtl"===f?h.current.initWidth+h.current.initX-e.clientX:h.current.initWidth+e.clientX-h.current.initX;x(t)},C=e=>{Kh(e),document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",C),S()},w=e=>{const t="rtl"===f?h.current.initWidth+-h.current.initX-e.touches[0].clientX:h.current.initWidth+e.touches[0].clientX-h.current.initX;x(t)},R=e=>{Kh(e),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",R),S()},L=!o&&s?e=>{if(e.key===Qt.Left||e.key===Qt.Right){Kh(e);const t=5,r=e.key===Qt.Left?t:-5,n="rtl"===f?r:-r;x(h.current.columnWidth+n)}else e.key===Qt.Space||e.key===Qt.Enter?(Kh(e),s(e),S()):e.key===Qt.Esc&&(Kh(e),s(e),x(h.current.initWidth))}:void 0,I=m.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(p.columnLabel)]);return r.createElement(ES,{style:v,key:t,hoverColor:i,isLastColumn:n,className:er,"data-testid":er,onMouseDown:e=>{Kh(e),document.addEventListener("mousemove",E),document.addEventListener("mouseup",C),null==u||u(!0),y(e.clientX)},onDoubleClick:()=>{l({type:rr.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(Kh(e),document.addEventListener("touchmove",w),document.addEventListener("touchend",R),null==u||u(!0),y(e.touches[0].clientX))},onKeyDown:L,onBlur:s,onFocus:()=>{y()},type:"range",tabIndex:-1,max:tr.PixelsMax,"aria-label":I,"aria-valuemin":tr.PixelsMin,"aria-valuemax":tr.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:f})};function wS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const RS=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){wS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),LS=d(RS);function IS(){return IS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},IS.apply(null,arguments)}const MS=qu(Xd,{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"}))),DS=qu(LS,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),AS=qu(Sf)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),PS=qu(bp)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),kS=qu(Lf)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),OS=qu(Lf,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden ",boxSizing:"border-box !important",background:r?"rgba(0, 0, 0, 0.05)":"transparent"}))),TS=qu("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),_S=qu("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),qS=qu(td)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),NS=qu(Yp,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})));function FS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const jS=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){FS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),zS=d(jS);let GS={};const $S=({autoFocus:e,id:t,onClick:n,itemTitle:o,icon:i,enabled:a,subMenus:l,isSubMenu:s,isActive:d,handleHeadCellMenuKeyDown:f,direction:m,isPagination:h})=>{const[g,b]=u(!1),v=c(null),y=p((e=>{e.stopPropagation(),b(!1)}),[b]);return r.createElement(r.Fragment,null,r.createElement(OS,{ref:l?v: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),GS={}),null!=l&&l.length&&(b(!0),GS[o]=b))},disabled:!a,autoFocus:e,isSubMenu:!!s,isActive:!!d,onKeyDown:f},d?r.createElement(TS,{direction:m,isPagination:h}):null,r.createElement(_S,null,r.createElement(NS,{direction:m,isPagination:h},r.createElement(i,null)),r.createElement(qS,{variant:"body2"},o)),null!=l&&l.length?r.createElement(zS,null):null),null!=l&&l.length?r.createElement(HS,{isSubMenu:!0,open:g,anchorEl:v.current,onClose:y,menuGroups:(x=l,S=GS,x.map((e=>e.map((e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(S).forEach((([,e])=>{e(!1)})),await e(t)}}:{}})))})))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:f,direction:m,isPagination:h}):null);var x,S},BS=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n,direction:o,isPagination:i})=>e.map((e=>[[e.groupHeading&&r.createElement(kS,{key:e.groupHeading,disabled:!0,style:{opacity:1}},e.groupHeading),e.items.map((e=>r.createElement($S,IS({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n,direction:o,isPagination:i}))))].filter(Boolean)])),WS={appear:200,enter:200,exit:100},HS=({anchorEl:e,open:t,onClose:n,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,handleHeadCellMenuKeyDown:s,direction:u,isPagination:c})=>o.length?r.createElement(AS,IS({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,transitionDuration:WS,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"}},a?{anchorOrigin:a}:{},i?{transformOrigin:i}:{},{dir:u}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n,direction:o,isPagination:i})=>e.map(((a,l)=>[BS({menuGroup:a,isSubMenu:t,handleHeadCellMenuKeyDown:n,direction:o,isPagination:i}),l<e.length-1?r.createElement(PS,{"data-testid":"group-divider",variant:"middle"}):void 0])))({itemGroups:o,isSubMenu:l,handleHeadCellMenuKeyDown:s,direction:u,isPagination:c})):null,VS=(e,t)=>e.some((e=>t[e]>0)),YS={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},US=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=u(null),[a,l]=u(YS);return Hg((()=>{e||(l(YS),i(null))}),[e]),f((()=>{if(null==n||!n.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const s=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{var e,u,c;const d=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,r),p=await n.createSessionObject(d),f=await p.getLayout(),{qStateCounts:m}=null!==(e=null===(u=f.qListObject)||void 0===u?void 0:u.qDimensionInfo)&&void 0!==e?e:{};o=null===(c=f.qInfo)||void 0===c?void 0:c.qId,a?s():(i(p),m&&l((e=>({canSelectAll:VS(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:VS(["qSelected"],e),canSelectPossible:VS(["qOption"],e),canSelectAlternative:VS(["qAlternative"],e),canSelectExcluded:VS(["qAlternative","qExcluded"],e)}))(m)))}catch(e){console.error(e)}})(),()=>{a=!0,s()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}};function KS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const XS=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){KS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.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"})),JS=d(XS);function ZS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const QS=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ZS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.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"})),eE=d(QS);function tE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const rE=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){tE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.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"})),nE=d(rE);function oE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const iE=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){oE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.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"})),aE=d(iE);function lE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const sE=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){lE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.createElement("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.454.858v6.484a1 1 0 0 1-.576.906L8.5 14.663V7.17z"})),uE=d(sE);function cE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const dE=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){cE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})),pE=d(dE);function fE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const mE=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){fE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})),hE=d(mE);function gE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const bE=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){gE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.createElement("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})),vE=d(bE);function yE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const xE=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){yE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.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"})),SE=d(xE);function EE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const CE=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){EE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.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"})),wE=d(CE);function RE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const LE=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){RE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.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"})),IE=d(LE);function ME(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const DE=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ME(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.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"})),AE=d(DE);function PE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const kE=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){PE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.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"})),OE=d(kE);function TE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const _E=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){TE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.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"})),qE=d(_E);let NE=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const FE="/qListObjectDef",jE=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[NE.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"A")),n(!1)},icon:JS,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"D")),n(!1)},icon:aE,enabled:l,isActive:!!r&&"D"===i,autoFocus:!a&&l}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:vE,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:uE,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&null!=i&&i.select){const e=[];r[NE.Searching]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:SE,enabled:!0}]}]),r[NE.Selections]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:qE,enabled:!!l,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectAll(FE))},icon:wE,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectPossible(FE))},icon:OE,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectAlternative(FE))},icon:IE,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectExcluded(FE))},icon:AE,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.clearSelections(FE))},icon:eE,enabled:s.canClearSelections}]}]]}]}]),p&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:hE,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:pE,enabled:!0}]}]),e.length>0&&f.push(...e)}return r[NE.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),null==c||c(u)},icon:nE,enabled:!0}]}]),f},zE=({open:e,setOpen:t,anchorRef:n,headerData:o,translator:i,interactions:a,handleHeadCellMenuKeyDown:l,menuAvailabilityFlags:s,shouldShowMenuIcon:u=!0,sortRelatedArgs:c,searchRelatedArgs:d,selectionRelatedArgs:f,adjustHeaderSizeRelatedArgs:m,expandOrCollapseArgs:h,env:g,model:b,direction:v="ltr",isPagination:y})=>{var x;const S=Yg({translator:i}),{qLibraryId:E,fieldId:C,headTextAlign:w}=o,R=null==f?void 0:f.app,{fieldInstance:L,selectionActionsEnabledStatus:I}=US({open:e,headerData:o,app:R,qStateName:null==f?void 0:f.qStateName});let M=null;if(g.flags.isEnabled("CLIENT_IM_7107_TABLE_MENU_CYCLIC_DIM")&&b&&"setActiveField"in b&&void 0!==o.dimensionInfoIndex){const e=o.dimensionInfoIndex;M=async t=>{try{await b.setActiveField("/qHyperCubeDef",e,t)}catch(e){console.error(e)}}}const D=p((()=>{const e=E?{qLibraryId:E,type:"dimension"}:C;if(null!=d&&d.embed){const{embed:t,listboxRef:r}=d;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===v?"right":"left"},sortCriteria:d.sortCriteria,stateName:null==f?void 0:f.qStateName,direction:v})}}),[E,C,d,null==f?void 0:f.qStateName,v]),A=p((e=>{e.stopPropagation(),t(!1)}),[t]);return a.active?r.createElement(MS,{rightAligned:"right"===w,shouldShowMenuIcon:u,className:"nebula-table-utils-head-menu-wrapper"},u?r.createElement(DS,{height:Xt,className:Jt,"data-testid":Jt,isInteractionsActive:null!==(x=a.active)&&void 0!==x&&x},r.createElement(LS,null)):null,r.createElement(HS,{open:e,anchorEl:n.current,onClose:A,menuGroups:jE({headerData:o,translator:S,menuAvailabilityFlags:s,setOpen:t,...c,embedListbox:D,interactions:a,fieldInstance:L,selectionActionsEnabledStatus:I,anchorRef:n,setFocusOnColumnAdjuster:null==m?void 0:m.setFocusOnColumnAdjuster,setActiveFieldCallback:M,expandOrCollapseArgs:h}),handleHeadCellMenuKeyDown:l,direction:v,isPagination:y})):null},GE=e=>e.isDark?{background:e.color,borderColor:mm.DARK_MODE_BORDER,color:mm.DARK_MODE_TEXT,disabledColor:mm.DARK_MODE_DISABLED,iconColor:mm.DARK_MODE_TEXT}:{background:e.color,borderColor:mm.BORDER_MEDIUM,color:mm.TEXT,disabledColor:mm.DISABLED},$E=qu(Xd,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`}))),BE=qu(am,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),WE=qu(ap,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)}))),HE=qu(td)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),VE=({children:e,footerContainer:t,interactions:n,theme:o,paginationNeeded:i=!0})=>{const a=s((()=>GE(o.background)),[o]);if(!n.active)return null;const l=i?r.createElement($E,{footerStyle:a},e):null;return t?F.createPortal(e,t):l},YE=m({}),UE=()=>n(YE),KE=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:o,footerContainer:i,isSelectionMode:a,handleChangePage:l,totalRowCount:u,totalColumnCount:c,totalPages:d,keyboard:p,translator:f,theme:m,interactions:h,rect:g,layout:b})=>{const v=(e=>!e.enabled||e.active)(p)?0:-1,y=s((()=>GE(m.background)),[m]),x=i?i.getBoundingClientRect().width:g.width,S=Yg({translator:f}),E=s((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:o,footerContainer:i,isSelectionMode:a,handleChangePage:l,totalRowCount:u,totalColumnCount:c,totalPages:d,keyboard:p,translator:S,theme:m,interactions:h,rect:g,layout:b,footerStyle:y,tabIndex:v,width:x})),[t,n,o,i,a,l,u,c,d,p,S,m,h,g,b,y,v,x]);return r.createElement(YE.Provider,{value:E},e)};let XE=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),JE=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 ZE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const QE=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ZE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),eC=d(QE);function tC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const rC=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){tC(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),nC=d(rC);function oC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const iC=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){oC(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),aC=d(iC),lC={FirstPage:nC,PreviousPage:eC,NextPage:zS,LastPage:aC,FirstPageRTL:aC,PreviousPageRTL:zS,NextPageRTL:eC,LastPageRTL:nC},sC=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=UE(),u=r.concat("rtl"===n?"RTL":""),c=lC[u];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:s,onClick:e?void 0:()=>{i(t)}},IconComponent:c}},uC=()=>{const{pageInfo:e,width:t}=UE(),n=0===e.page,{IconComponent:o,styledProps:i}=sC({type:XE.FirstPage,disabledCondition:n,pageNumber:0});return t<=JE.FirstPage?null:r.createElement(WE,i,r.createElement(o,{height:Xt}))},cC=(e,t,r=!1)=>{r&&e.key===Qt.Tab&&!e.shiftKey&&(Kh(e),((e,t,r)=>{var n,o,i,a;const l=null!==(n=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==n?n:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,r)})(e.target,t,!1))},dC=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:o,width:i}=UE(),a=e.page>=n-1,{IconComponent:l,styledProps:s}=sC({type:XE.LastPage,disabledCondition:a,pageNumber:n-1}),u=t.enabled?e=>{cC(e,t,o)}:void 0;return i<=JE.LastPage?null:r.createElement(WE,IS({},s,{onKeyDown:u}),r.createElement(l,{height:Xt}))},pC=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:o,width:i}=UE(),a=e.page>=n-1,{IconComponent:l,styledProps:s}=sC({type:XE.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(i>JE.FirstPage&&i>JE.LastPage)&&t.enabled?e=>{cC(e,t,o)}:void 0;return r.createElement(WE,IS({},s,{onKeyDown:u}),r.createElement(l,{height:Xt}))},fC=()=>{const{pageInfo:e}=UE(),t=0===e.page,{IconComponent:n,styledProps:o}=sC({type:XE.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return r.createElement(WE,o,r.createElement(n,{height:Xt}))},mC=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:o}=UE(),{page:i,rowsPerPage:a}=n;if(t<=JE.DisplayedRowsLabel)return null;const l=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,o)}`,o.toString()]);return r.createElement(HE,{variant:"caption"},l)},hC=({name:e,value:t,options:n,handleChange:o})=>{const{layout:i,footerStyle:a,translator:l,tabIndex:s}=UE(),u=i.qInfo.qId,c=l.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return r.createElement(r.Fragment,null,r.createElement(HE,{variant:"caption",id:p},c,":"),r.createElement(BE,{footerStyle:a,size:"small",native:!0,value:t,onChange:o,inputProps:f},n))},gC=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:o,width:i,handleChangeRowsPerPage:a}=UE();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&i>JE.RowsPerPage&&o<=100)||void 0===t.rowsPerPageOptions)return null;const l=r.createElement(r.Fragment,null,t.rowsPerPageOptions.map((e=>r.createElement("option",{key:e,value:e},e))));return r.createElement(hC,{name:"RowsPerPage",value:t.rowsPerPage,options:l,handleChange:e=>{null==a||a(+e.target.value)}})},bC=1e3,vC="…",yC=({totalPages:e,page:t})=>{const n=Math.min(e,bC),o=n<e&&t>500,i=o?Math.min(500+t,e):n,a=o?Math.max(0,i-bC):0,l=Array.from(Array(n).keys()).map((e=>{const t=e+a;return r.createElement("option",{key:t,value:t},t+1)}));return a>0&&l.unshift(r.createElement("option",{key:"startMoreOptions",value:vC,disabled:!0},vC)),i<e-1&&l.push(r.createElement("option",{key:"endMoreOptions",value:vC,disabled:!0},vC)),r.createElement(r.Fragment,null,l)},xC=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:o}=UE(),{page:i}=e;if(t<=JE.SelectPage)return null;const a=r.createElement(yC,{totalPages:n,page:i});return r.createElement(hC,{name:"SelectPage",value:i,options:a,handleChange:e=>{o(+e.target.value)}})};var SC=h((e=>r.createElement(KE,e,r.createElement(gC,null),r.createElement(xC,null),r.createElement(mC,null),r.createElement(uC,null),r.createElement(fC,null),r.createElement(pC,null),r.createElement(dC,null))));const EC=e=>r.createElement(VE,e,r.createElement(SC,e)),CC=m({}),wC=()=>n(CC),RC=({rect:e,pageInfo:t,qPivotDataPages:r,updatePageInfo:n,children:o})=>{const i=s((()=>({rect:e,pageInfo:t,qPivotDataPages:r,updatePageInfo:n})),[e,t,r,n]);return bs.jsx(CC.Provider,{value:i,children:o})},LC=m({}),IC=()=>n(LC),MC=({app:e,model:t,theme:r,embed:n,keyboard:o,translator:i,interactions:a,env:l,children:u})=>{const c=s((()=>({model:t,app:e,interactions:a,embed:n,theme:r,keyboard:o,env:l,translator:i})),[e,a,t,n,r,o,l,i]);return bs.jsx(LC.Provider,{value:c,children:u})},DC=m({}),AC=()=>n(DC),PC=({children:e,...t})=>bs.jsx(DC.Provider,{value:t,children:e}),kC=()=>{const{text:e,fontFamily:t,fontSize:r,justifyContent:n,alignItems:o,height:i}=(()=>{var e;const{theme:t,translator:r}=IC(),{layoutService:n}=AC(),o=null!==(e=t.getStyle("","","fontFamily"))&&void 0!==e?e:ig;return n.hasData?n.hasLimitedData?{text:r.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:r.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})();return void 0===e?null:bs.jsx("div",{style:{display:"flex",justifyContent:n,alignItems:o,width:"100%",height:i},children:bs.jsx("span",{style:{...mg,fontFamily:t,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:e})})},OC="/qHyperCubeDef",TC=-1,_C="PSEUDO-DIM",qC=[];for(let e=0;e<256;++e)qC.push((e+256).toString(16).slice(1));let NC;const FC=new Uint8Array(16);function jC(){if(!NC){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");NC=crypto.getRandomValues.bind(crypto)}return NC(FC)}var zC={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function GC(e,t,r){if(zC.randomUUID&&!e)return zC.randomUUID();const n=(e=e||{}).random||(e.rng||jC)();return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return(qC[e[t+0]]+qC[e[t+1]]+qC[e[t+2]]+qC[e[t+3]]+"-"+qC[e[t+4]]+qC[e[t+5]]+"-"+qC[e[t+6]]+qC[e[t+7]]+"-"+qC[e[t+8]]+qC[e[t+9]]+"-"+qC[e[t+10]]+qC[e[t+11]]+qC[e[t+12]]+qC[e[t+13]]+qC[e[t+14]]+qC[e[t+15]]).toLowerCase()}(n)}const $C=()=>{var e,t,r;return null!==(e=null===(t=crypto)||void 0===t||null===(r=t.randomUUID)||void 0===r?void 0:r.call(t))&&void 0!==e?e:GC()},BC=e=>e===TC?_C:(({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:$C()})(e),WC=({layoutService:e,visibleLeftDimensionInfos:t,cell:r,colIdx:n})=>{r&&(r.canBeResized=!0,r.colIdx=r.colIdx||n,r.dimensionInfoIndex===TC?r.columnWidthLocation=Vt.Measures:r.isLeftDimension?r.columnWidthLocation=Vt.Dimension:t.at(-1)===TC?r.columnWidthLocation=Vt.Measures:e.hasPseudoDimOnLeft&&(r.columnWidthLocation=Vt.Pivot))},HC=(e,t,r,n)=>{var o;const i=BC(r),a=e.getDimensionInfoIndex(r),l=e.isLeftDimension(a);return r===TC?{id:i,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,isCyclic:!1,groupDimensionPos:0,groupDimensionLabels:[],headTextAlign:"left",dimensionInfoIndex:a,canBeResized:!1,isLeftDimension:l,isLastDimension:n,columnWidthLocation:Vt.Measures,isPivot:!0,qEffectiveDimensionName:void 0}:{id:i,colIdx:0,label:r.qFallbackTitle,qReverseSort:r.qReverseSort,sortDirection:r.qSortIndicator&&"N"!==r.qSortIndicator?r.qSortIndicator:"A",qLibraryId:r.qLibraryId,fieldId:r.qGroupFieldDefs[r.qGroupPos],isLocked:null!==(o=r.qLocked)&&void 0!==o&&o,columnWidth:r.columnWidth,qApprMaxGlyphCount:r.qApprMaxGlyphCount,isDim:!0,isCyclic:r.qGrouping===ir.Cyclic,groupDimensionPos:r.qGroupPos,groupDimensionLabels:r.qGroupFallbackTitles,headTextAlign:"left",dimensionInfoIndex:a,canBeResized:!1,isLeftDimension:l,isLastDimension:n,columnWidthLocation:Vt.Dimension,isPivot:!0,isSortedByFirstMeasure:t.isSortedByFirstMeasure,qEffectiveDimensionName:r.qEffectiveDimensionName}},VC=({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n})=>{let o=n;var i;r.length>0&&(o=(i=n).at(-1)===TC?i.slice(0,-1):i);const a=o.length+(r.length?1:0),l=Math.max(1,r.length),s=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(a,l);return r.forEach(((r,n,o)=>{const i=n===o.length-1;s[a-1][n]=HC(e,t,r,i)})),o.forEach(((r,n,o)=>{const i=n===o.length-1;s[n][l-1]=HC(e,t,r,i)})),s},YC=(e,t,r,n)=>{var o,i;const a=((e,t,r,n)=>{let o;var i;return o=0===r.length||r.includes(TC)?VC({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r}):(e=>e[0].map(((t,r)=>e.map((e=>e[r])))))(VC({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n})),e.isIndentModeEnabled&&o[o.length-1].length>1&&(o[o.length-1]=[o.at(-1),...new Array(o[0]?o[0].length-1:0).fill(null)]),o.length&&(null===(i=o.at(-1))||void 0===i||i.forEach(((t,r)=>{if(Array.isArray(t)){const r=t;for(let t=0;t<r.length;t++)WC({layoutService:e,visibleLeftDimensionInfos:n,cell:r[t],colIdx:t})}else WC({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})}))),o})(e,t,r,n);return{data:a,size:{x:null!==(o=null===(i=a[0])||void 0===i?void 0:i.length)&&void 0!==o?o:0,y:a.length}}};function UC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function KC(e,t,r){return t=QC(t),function(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)}(e,tw()?Reflect.construct(t,r||[],QC(e).constructor):t.apply(e,r))}function XC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ow(n.key),n)}}function ZC(e,t,r){return t&&JC(e.prototype,t),r&&JC(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function QC(e){return QC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},QC(e)}function ew(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&&rw(e,t)}function tw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tw=function(){return!!e})()}function rw(e,t){return rw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rw(e,t)}function nw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return UC(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?UC(e,t):void 0}}(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 ow(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}function iw(e){return iw="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},iw(e)}var aw={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var r,n=e.indexOf("="),o="",i=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),i=!0),t.push(function(e,t,r){return{key:lw(e),value:lw(t),useEqualSign:r}}(r,o,i))}})),t}};function lw(e){try{return decodeURIComponent(e)}catch(t){return e}}function sw(e){if(!(this instanceof sw))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return aw.fromSearchString(t.search)}}})}function uw(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2B/gi,"+").replace(/%2C/gi,",").replace(/%3B/gi,";")}sw.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},sw.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=uw((t=e[n]).key),t.value?r+="=".concat(uw(t.value)):r+=t.useEqualSign?"=":"";return r};var cw,dw=function(){return ZC((function e(t){XC(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}),[{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}}])}(),pw=function(){return ZC((function e(){XC(this,e)}),[{key:"decode",value:function(e){for(var t,r="",n=new dw(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}])}(),fw=function(e){return e>=0&&e<=1114111},mw=function(e){return e.match(/[\s]/)},hw=function(e){function t(){return XC(this,t),KC(this,t,arguments)}return ew(t,e),ZC(t,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,r=0;r<5&&(null!=(n=e.next())&&!mw(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return fw(a)?String.fromCharCode(a):"�"}}])}(pw),gw=function(){function e(t,r){XC(this,e),this._key=t,this._value=r}return ZC(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}}])}(),bw=function(){function e(){XC(this,e)}return ZC(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,r,n){var o,i;if(t.length===r)return i=this._value,this.setValue(n),i;var a=t.charAt(r);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return gw.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return gw.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||gw.newInstanceIfNeeded(e,t,this._value)}}])}(),vw=function(){return ZC((function e(){XC(this,e),this.clear()}),[{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 bw);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}])}(),yw=function(){var e,t,r,n=[],o=[],i=new vw;for(e in n["&quot"]="34",n["&amp"]="38",n["&lt"]="60",n["&gt"]="62",n["&nbsp"]="160",n["&iexcl"]="161",n["&cent"]="162",n["&pound"]="163",n["&curren"]="164",n["&yen"]="165",n["&brvbar"]="166",n["&sect"]="167",n["&uml"]="168",n["&copy"]="169",n["&ordf"]="170",n["&laquo"]="171",n["&not"]="172",n["&shy"]="173",n["&reg"]="174",n["&macr"]="175",n["&deg"]="176",n["&plusmn"]="177",n["&sup2"]="178",n["&sup3"]="179",n["&acute"]="180",n["&micro"]="181",n["&para"]="182",n["&middot"]="183",n["&cedil"]="184",n["&sup1"]="185",n["&ordm"]="186",n["&raquo"]="187",n["&frac14"]="188",n["&frac12"]="189",n["&frac34"]="190",n["&iquest"]="191",n["&Agrave"]="192",n["&Aacute"]="193",n["&Acirc"]="194",n["&Atilde"]="195",n["&Auml"]="196",n["&Aring"]="197",n["&AElig"]="198",n["&Ccedil"]="199",n["&Egrave"]="200",n["&Eacute"]="201",n["&Ecirc"]="202",n["&Euml"]="203",n["&Igrave"]="204",n["&Iacute"]="205",n["&Icirc"]="206",n["&Iuml"]="207",n["&ETH"]="208",n["&Ntilde"]="209",n["&Ograve"]="210",n["&Oacute"]="211",n["&Ocirc"]="212",n["&Otilde"]="213",n["&Ouml"]="214",n["&times"]="215",n["&Oslash"]="216",n["&Ugrave"]="217",n["&Uacute"]="218",n["&Ucirc"]="219",n["&Uuml"]="220",n["&Yacute"]="221",n["&THORN"]="222",n["&szlig"]="223",n["&agrave"]="224",n["&aacute"]="225",n["&acirc"]="226",n["&atilde"]="227",n["&auml"]="228",n["&aring"]="229",n["&aelig"]="230",n["&ccedil"]="231",n["&egrave"]="232",n["&eacute"]="233",n["&ecirc"]="234",n["&euml"]="235",n["&igrave"]="236",n["&iacute"]="237",n["&icirc"]="238",n["&iuml"]="239",n["&eth"]="240",n["&ntilde"]="241",n["&ograve"]="242",n["&oacute"]="243",n["&ocirc"]="244",n["&otilde"]="245",n["&ouml"]="246",n["&divide"]="247",n["&oslash"]="248",n["&ugrave"]="249",n["&uacute"]="250",n["&ucirc"]="251",n["&uuml"]="252",n["&yacute"]="253",n["&thorn"]="254",n["&yuml"]="255",n["&OElig"]="338",n["&oelig"]="339",n["&Scaron"]="352",n["&scaron"]="353",n["&Yuml"]="376",n["&fnof"]="402",n["&circ"]="710",n["&tilde"]="732",n["&Alpha"]="913",n["&Beta"]="914",n["&Gamma"]="915",n["&Delta"]="916",n["&Epsilon"]="917",n["&Zeta"]="918",n["&Eta"]="919",n["&Theta"]="920",n["&Iota"]="921",n["&Kappa"]="922",n["&Lambda"]="923",n["&Mu"]="924",n["&Nu"]="925",n["&Xi"]="926",n["&Omicron"]="927",n["&Pi"]="928",n["&Rho"]="929",n["&Sigma"]="931",n["&Tau"]="932",n["&Upsilon"]="933",n["&Phi"]="934",n["&Chi"]="935",n["&Psi"]="936",n["&Omega"]="937",n["&alpha"]="945",n["&beta"]="946",n["&gamma"]="947",n["&delta"]="948",n["&epsilon"]="949",n["&zeta"]="950",n["&eta"]="951",n["&theta"]="952",n["&iota"]="953",n["&kappa"]="954",n["&lambda"]="955",n["&mu"]="956",n["&nu"]="957",n["&xi"]="958",n["&omicron"]="959",n["&pi"]="960",n["&rho"]="961",n["&sigmaf"]="962",n["&sigma"]="963",n["&tau"]="964",n["&upsilon"]="965",n["&phi"]="966",n["&chi"]="967",n["&psi"]="968",n["&omega"]="969",n["&thetasym"]="977",n["&upsih"]="978",n["&piv"]="982",n["&ensp"]="8194",n["&emsp"]="8195",n["&thinsp"]="8201",n["&zwnj"]="8204",n["&zwj"]="8205",n["&lrm"]="8206",n["&rlm"]="8207",n["&ndash"]="8211",n["&mdash"]="8212",n["&lsquo"]="8216",n["&rsquo"]="8217",n["&sbquo"]="8218",n["&ldquo"]="8220",n["&rdquo"]="8221",n["&bdquo"]="8222",n["&dagger"]="8224",n["&Dagger"]="8225",n["&bull"]="8226",n["&hellip"]="8230",n["&permil"]="8240",n["&prime"]="8242",n["&Prime"]="8243",n["&lsaquo"]="8249",n["&rsaquo"]="8250",n["&oline"]="8254",n["&frasl"]="8260",n["&euro"]="8364",n["&image"]="8365",n["&weierp"]="8472",n["&real"]="8476",n["&trade"]="8482",n["&alefsym"]="8501",n["&larr"]="8592",n["&uarr"]="8593",n["&rarr"]="8594",n["&darr"]="8595",n["&harr"]="8596",n["&crarr"]="8629",n["&lArr"]="8656",n["&uArr"]="8657",n["&rArr"]="8658",n["&dArr"]="8659",n["&hArr"]="8660",n["&forall"]="8704",n["&part"]="8706",n["&exist"]="8707",n["&empty"]="8709",n["&nabla"]="8711",n["&isin"]="8712",n["&notin"]="8713",n["&ni"]="8715",n["&prod"]="8719",n["&sum"]="8721",n["&minus"]="8722",n["&lowast"]="8727",n["&radic"]="8730",n["&prop"]="8733",n["&infin"]="8734",n["&ang"]="8736",n["&and"]="8743",n["&or"]="8744",n["&cap"]="8745",n["&cup"]="8746",n["&int"]="8747",n["&there4"]="8756",n["&sim"]="8764",n["&cong"]="8773",n["&asymp"]="8776",n["&ne"]="8800",n["&equiv"]="8801",n["&le"]="8804",n["&ge"]="8805",n["&sub"]="8834",n["&sup"]="8835",n["&nsub"]="8836",n["&sube"]="8838",n["&supe"]="8839",n["&oplus"]="8853",n["&otimes"]="8855",n["&perp"]="8869",n["&sdot"]="8901",n["&lceil"]="8968",n["&rceil"]="8969",n["&lfloor"]="8970",n["&rfloor"]="8971",n["&lang"]="9001",n["&rang"]="9002",n["&loz"]="9674",n["&spades"]="9824",n["&clubs"]="9827",n["&hearts"]="9829",n["&diams"]="9830",n)"function"!=typeof n[e]&&n.hasOwnProperty(e)&&(o[n[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(r=o[t].toLowerCase().substr(1),i.put(r,String.fromCharCode(t)));return i}(),xw=function(e){function t(){return XC(this,t),KC(this,t,arguments)}return ew(t,e),ZC(t,[{key:"decodeCharacter",value:function(e){var t;e.mark();var r=e.next();if(null==r||"&"!==r)return e.reset(),null;var n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(null!=(t=this._getNumericEntity(e)))return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,r,n,o="";for(t=Math.min(e.remainder().length,yw.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=yw.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,16);return!Number.isNaN(+n)&&fw(n)?String.fromCharCode(n):null}},{key:"_parseNumber",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,10);return!Number.isNaN(+n)&&fw(n)?String.fromCharCode(n):null}}])}(pw),Sw=function(e){function t(){return XC(this,t),KC(this,t,arguments)}return ew(t,e),ZC(t,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",r=0;r<2;r++)null!=(n=e.nextHex())&&(t+=n);return 2===t.length&&(o=parseInt(t,16),fw(o))?String.fromCharCode(o):(e.reset(),null)}}])}(pw),Ew=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(cw=document.createElement("div"));var Cw=Array.prototype.indexOf,ww=[",",".","_"," "],Rw=[",",".","-","_"," "],Lw={width:["%"],height:["%"]},Iw={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},Mw={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":Iw.image,"background-color":Iw.color,"border-color":Iw.color,"border-image":Iw.image,color:Iw.color,icon:Iw.image,"list-style-image":Iw.image,"outline-color":Iw.color},Dw={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function Aw(e,t,r){var n;if(t){if(Cw)return Cw.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function Pw(e){if(null==e)return"";var t,r=document.createTextNode(e);return cw.appendChild(r),t=cw.innerHTML,cw.removeChild(r),t}function kw(e,t,r){var n,o,i,a,l,s,u,c,d;if(e=Tw(e).toLowerCase(),t=Tw(t),Aw(e,Dw.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<Dw.attr_val;i++)if(t.toLowerCase().match(Dw.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=Lw[e])||(n=Rw),o="",!r){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=l}o+='="'}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&Aw(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function Ow(e,t,r){var n,o,i,a,l,s,u,c,d,p;if(e=Tw(e).toLowerCase(),t=Tw(t),Aw(e,Dw.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<Dw.css_val.length;n++)if(t.toLowerCase().indexOf(Dw.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=Mw[e])||(o=Iw.default),i="",!r){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=l}i+=": "}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&Aw(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function Tw(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var l=[new xw,new Sw,new hw];!a;){n=r;for(var s=0;s<l.length;s++)(i=l[s].decode(r))!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}for(var _w=[],qw=0;qw<255;qw++)_w[qw]=qw>=48&&qw<=57||qw>=65&&qw<=90||qw>=97&&qw<=122?null:qw.toString(16);var Nw=function(e){return Pw(e.unsafe)},Fw=function(e){var t,r=[],n=[],o={},i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=Ow(t,r[t],!0),i+=Ow(t,r[t],!0),o[t]=n[t]);return e.map?o:i},jw=function(e){var t=[],r=[],n={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(r[i]=kw(i,t[i],!0),o+=kw(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function zw(e,t){throw new Error(t)}var Gw={canonicalize:Tw,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===iw(arguments[0])?function(){for(var e,t,r,n=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(n===(r=e[t]))continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?Nw(e):"css"===e.context?(null!=e.map&&"object"!==iw(e.map)&&zw(this,"Invalid parameter type"),Fw(e)):"attr"===e.context?(null!=e.map&&"object"!==iw(e.map)&&zw(this,"Invalid parameter type"),jw(e)):void zw(this,"Invalid parameter type")},encodeForAttr:kw,encodeForAttr2:function(e){return kw("nonsens",e,!0)},encodeForCSS:Ow,encodeForHref:function(e){Tw(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new sw(e),r=sw.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+sw.encodeSearchParams(n)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var r,n,o,i,a,l;for(t||(t=ww),l="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),Aw(o,t)>=0||null==_w[i]?l+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),l+="\\x".concat(a).concat(n.toUpperCase())):(a="0000".substr(n.length),l+="\\u".concat(a).concat(n.toUpperCase())));return l},encodeForHTML:Pw,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=Tw(t).toLowerCase():zw(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':""},isSafeDataURL:function(e,t){var r=null!=t?t:{},n=r.maxByteSizeSvg,o=void 0===n?5e5:n,i=r.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,r=nw(null!==(t=Ew.exec(e.trim()))&&void 0!==t?t:[],4),n=r[1];return{encoding:r[2],data:r[3],mimeType:null==n?void 0:n.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,r){var n={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(r)],n).size}catch(e){return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch(e){return!1}}(e))return!1;var t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;var r=function(e){for(var t=e,r="";t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");var n=r.lastIndexOf("/");-1!==n&&(r=r.slice(0,n))}else if("/.."===t){t="/";var o=r.lastIndexOf("/");-1!==o&&(r=r.slice(0,o))}else if("."===t||".."===t)t="";else{var i=t.match(/^\/?[^/]*/),a=i?i[0]:"";t=t.slice(a.length),r+=a}return r}(t);return""!==r&&"/"!==r&&r}};const $w=(e,t)=>{var r;return null===(r=t.qAttrExps)||void 0===r||null===(r=r.qValues)||void 0===r?void 0:r[e]},Bw=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"}}},Ww=({text:e,url:t,imageSize:r,imagePosition:n})=>n&&t&&!t.toLowerCase().includes("javascript:")&&Gw.isSafeDataURL(t)?{type:Nt.Image,url:t,text:e,imageSize:r,resolvedImagePosition:Bw(n)}:{type:Nt.Text,url:void 0,text:e},Hw=(e,t,r,n)=>{if(!e.qMiniChart||null==t||!t.miniChart||!r)return{type:Nt.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{var n,o;const i="global"===(null===(n=t.yAxis)||void 0===n?void 0:n.scale),a="zeroCenter"===(null===(o=t.yAxis)||void 0===o?void 0:o.position),l=i?r.qYMin:e.qMiniChart.qMin,s=i?r.qYMax:e.qMiniChart.qMax;if(a){const e=Math.max(Math.abs(l),Math.abs(s));return{minY:-e,maxY:e}}return(e=>{var t,r;return"zeroBaseline"===(null===(t=e.yAxis)||void 0===t?void 0:t.position)||"bars"===e.type&&"auto"===(null===(r=e.yAxis)||void 0===r?void 0:r.position)})(t)?{minY:Math.min(0,l),maxY:Math.max(0,s)}:{minY:l,maxY:s}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:Nt.MiniChart,text:n,miniChart:a}},Vw=(e,t,r)=>{var n;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(n=o.qValues)||void 0===n?void 0:n[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==r?void 0:r.urlPosition)===Ft.Attribute||null==r?void 0:r.urlLabel},Yw=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:Nt.Link,url:Gw.encodeForHref(r),text:t,labelStructure:e}}catch(r){return{type:Nt.Text,url:void 0,text:t,labelStructure:e}}},Uw=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:l=e=>e.qText})=>{var s,u,c,d,p,f;const m=jt(t),h=l(e);return m!==Nt.Image||!n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(s=n.anything.sense)&&void 0!==s&&null!==(u=s.isUnsupportedFeature)&&void 0!==u&&u.call(s,"tableImages")?m===Nt.Link?((e,t,r,n,o)=>{const{urlPosition:i}=null!=t?t:{};if(i===Ft.Attribute){var a;const i=Vw(null!==(a=r.url)&&void 0!==a?a:-1,e,t);return Yw({labelStructure:n,text:o||i||"",url:i})}if(i===Ft.Dimension){var l,s;const i=Vw(null!==(l=r.urlLabel)&&void 0!==l?l:-1,e,t)||o;return n&&(n.maskedValue=i),Yw({text:i,labelStructure:n,url:null!==(s=null==n?void 0:n.originalValue)&&void 0!==s?s:o})}return{type:Nt.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,h):m!==Nt.Indicator||!n.flags.isEnabled("CLIENT_IM_6696_INDICATORS")||null!==(c=n.anything.sense)&&void 0!==c&&null!==(d=c.isUnsupportedFeature)&&void 0!==d&&d.call(c,"tableIndicators")?m!==Nt.MiniChart||!n.flags.isEnabled("CLIENT_IM_7110_TABLE_MINI_CHART")||null!==(p=n.anything.sense)&&void 0!==p&&null!==(f=p.isUnsupportedFeature)&&void 0!==f&&f.call(p,"qMiniChartDef")?{type:Nt.Text,url:void 0,text:h,labelStructure:a}:Hw(e,t,i,h):((e,t,r)=>{const{indicator:n}=null!=e?e:{};return{type:Nt.Indicator,url:void 0,text:r,indicator:{applySegmentColors:null==n?void 0:n.applySegmentColors,position:null==n?void 0:n.position,showTextValues:null==n?void 0:n.showTextValues},indicatorConditionalColoring:t}})(t,o,h):((e,t,r,n)=>{const{imageSize:o,imagePosition:i,imageSetting:a,imageLabel:l}=null!=t?t:{};if("url"===a){var s,u;const t=null===(s=$w(null!==(u=r.imageUrl)&&void 0!==u?u:-1,e))||void 0===s?void 0:s.qText;return Ww({text:n,url:t,imageSize:o,imagePosition:i})}if("label"===a){var c,d,p;const t=n;if(-1===r.imageLabel)return Ww({text:l||t||"",url:t,imageSize:o,imagePosition:i});const a=null!==(c=null===(d=$w(null!==(p=r.imageLabel)&&void 0!==p?p:-1,e))||void 0===d?void 0:d.qText)&&void 0!==c?c:n;return Ww({text:a,url:t,imageSize:o,imagePosition:i})}return{type:Nt.Text,url:void 0,text:n}})(e,t,r,h)},Kw=(e,t)=>{var r,n,o,i;const a=t.qAttrExps,l=null==a||null===(r=a.qValues)||void 0===r||null===(r=r[null!==(n=null==e?void 0:e.cellForegroundColor)&&void 0!==n?n:-1])||void 0===r?void 0:r.qText,s=null==a||null===(o=a.qValues)||void 0===o||null===(o=o[null!==(i=null==e?void 0:e.cellBackgroundColor)&&void 0!==i?i:-1])||void 0===o?void 0:o.qText,u=s?Uh(s):null,c=l?Uh(l):null,d=((e,t)=>e||!t?null:Wh(t))(c,u);return{color:null!=d?d:c,background:u}},Xw=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:Xw(e,t)),e),Jw=(e,t,r,n,o,i)=>{const a=o?i.rowsPerPage-r:lg-n;let l=e.qUp+e.qDown;if(o&&0===r){const r=(t+e.qUp)%i.rowsPerPage;l=e.qDown+r}return Math.min(a,Xw(l,e))},Zw=(e,t,r)=>{if(e!==TC){if(t){const t=jt(e.representation)===Nt.Link;return null!=r&&r.isLinksSupported&&t?e.representation:{type:Nt.Text}}return e.representation}},Qw=({node:e,parent:t,root:r,x:n,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentModeFeatures:d,indentLevel:p,labelStructure:f,env:m,pageInfo:h})=>{const g=(!c||!u)&&"P"===e.qType;let b=e.qText;if(u&&c&&f){const{originalValue:e,delimeter:t,suffix:r}=f;b=`${e} ${!r||!e&&r?"":t} ${r}`.trim()}const v={id:$C(),ref:e,x:n,y:o,pageX:n,pageY:i,mainAxisPageCoord:u?i:n,isLeftColumn:u,parent:t,root:r,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:Jw(e,o,i,n,u,h),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:"T"===e.qType||!(null==t||!t.isTotal),isEmpty:"E"===e.qType||-4===e.qElemNo,isNull:"U"===e.qType,isPseudoDimension:g,expressionColor:Kw(s,e),selectionCellType:u?"L":"T",dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:g?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:Uw({cell:{...e,qText:b},representationProperties:Zw(l,c,d),attrExprInfoIndex:s,env:m,labelStructure:f}),...void 0!==p&&{indentLevel:p}};return t&&(t.children[v.mainAxisPageCoord-t.mainAxisPageCoord]=v),v},eR=(e,t,r,n,o,i,a,l)=>{const{isIndentModeEnabled:s,indentModeFeatures:u}=o;if(!t.length)return e;let c=0;return function t(d,p,f,m=0,h=-1){e[m]||(e[m]={}),s&&h++;const g=o.leftDimensionInfoIndexes.indexOf(TC);f.forEach(((f,b)=>{var v,y;const x={originalValue:null!==(v=f.qText)&&void 0!==v?v:"",maskedValue:"",delimeter:"-",suffix:""};c+=0===b?0:1;const S=r.qTop-n.page*n.rowsPerPage,E=Math.max(0,S+c-f.qUp),C=r.qTop+c-f.qUp;var w,R;if(s&&(o.hasPseudoDimOnLeft&&h<=g))if(x.originalValue=null!==(w=f.qText)&&void 0!==w?w:"",x.maskedValue=null!==(R=f.qText)&&void 0!==R?R:"","N"===f.qType||"U"===f.qType||"T"===f.qType)h<g&&(x.suffix=o.visibleMeasureInfo[0].qFallbackTitle);else if("P"===f.qType){var L,I,M,D,A,P,k,O;x.originalValue=null!==(L=null===(I=p||d)||void 0===I||null===(I=I.representation.labelStructure)||void 0===I?void 0:I.originalValue)&&void 0!==L?L:"",x.maskedValue=null!==(M=null===(D=p||d)||void 0===D||null===(D=D.representation.labelStructure)||void 0===D?void 0:D.originalValue)&&void 0!==M?M:"",x.suffix=null!==(A=f.qText)&&void 0!==A?A:"";const e=f.qSubNodes;f={...null===(P=p||d)||void 0===P?void 0:P.ref,...f.qText?{qText:f.qText}:{},qSubNodes:e},h=null!==(k=null===(O=p||d)||void 0===O?void 0:O.indentLevel)&&void 0!==k?k:0}let T=m;s&&(T=g>=1&&h>=g?h+1:h,0===h&&0===g&&0===f.qSubNodes.length&&(T=0));const _=null===(y=e.at(m))||void 0===y?void 0:y[E],q=s&&void 0===(null==_?void 0:_.ref.qText)||!_?Qw({node:f,parent:p,root:d,x:T,y:C,pageY:E,layoutService:o,dimensionInfo:i[T],attrExprInfoIndex:a[T],isLeftColumn:!0,...s&&{isIndentModeEnabled:s,indentModeFeatures:u,indentLevel:h},env:l,pageInfo:n,labelStructure:x}):e[m][E];if(e[m][E]=q,f.qSubNodes.length){const e=s?0:m+1;t(d||q,q,f.qSubNodes,e,h)}}))}(null,null,t,0,-1),e},tR=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,r,n)=>{const o=n.at(r+1);e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},rR=(e,t)=>{const r=e[0],n=r?Object.values(r):[],o=null!=t&&t.isIndentModeEnabled&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,i=null==r?void 0:r[o],a=n.at(-1);return null!=i&&i.isTotal?i.isLeafNode?i.mainAxisPageCoord:i.mainAxisPageCoord+i.leafCount-1:null!=a&&a.isTotal?a.mainAxisPageCoord-1:-1},nR=({prevData:e,nextDataPage:t,pageInfo:r,layoutService:n,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i,env:a})=>{const{qLeft:l,qArea:s}=t;if(!l.length)return e;const u=eR(e.grid,l,s,r,n,o,i,a);tR(u,r.rowsOnCurrentPage);const c=rR(u,n);return{...e,grid:u,columnCount:u.length,totalDividerIndex:c}},oR=({qArea:e,prevData:t,pivotValuePoints:r,pageInfo:n})=>{const o=[...t];return r.forEach(((t,r)=>{t.forEach(((t,i)=>{var a;const l=e.qTop-n.page*n.rowsPerPage+r,s=e.qLeft+i;Array.isArray(o[l])||(o[l]=[]);const u="U"===t.qType;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:$C(),ref:t,isNull:u}}))})),o},iR=({prevData:e,dataPage:t,pageInfo:r})=>{const{qData:n,qArea:o}=t;return null!=n&&n.length?oR({qArea:o,prevData:e,pivotValuePoints:n,pageInfo:r}):e},aR=(e,t,r,n,o,i,a,l,s)=>{const{isIndentModeEnabled:u,indentModeFeatures:c}=n;if(!t.length)return e;let d=0;!function t(a,p,f,m=0){e[m]||(e[m]={}),f.forEach(((f,h)=>{var g;d+=0===h?0:1;const b=r.qLeft+d-f.qUp,v=null!==(g=e[m][b])&&void 0!==g?g:Qw({node:f,parent:p,root:a,x:b,y:m,pageY:m,layoutService:n,dimensionInfo:o[m],attrExprInfoIndex:i[m],isLeftColumn:!1,...u&&{isIndentModeEnabled:u,indentModeFeatures:c},env:l,pageInfo:s});e[m][b]=v,f.qSubNodes.length&&t(a||v,v,f.qSubNodes,m+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},lR=({prevData:e,nextDataPage:t,layoutService:r,visibleTopDimensionInfo:n,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:l})=>{const{qTop:s,qArea:u}=t;if(!s.length)return e;const c=aR(e.grid,s,u,r,n,o,i,a,l);tR(c,r.size.x);const d=rR(c);return{...e,grid:c,rowCount:c.length,totalDividerIndex:d}},sR=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),uR=(e,t)=>{const{env:r}=IC(),{layoutService:n,effectivePropertiesService:o}=AC(),{qPivotDataPages:i,pageInfo:a}=wC(),[l,c]=u(null),d=((e,t,r)=>s((()=>({left:e.map(sR),top:t.map(sR),measures:r.map(sR)})),[r,e,t]))(e,t,n.visibleMeasureInfo),f=s((()=>YC(n,o,t,e)),[n,o,t,e]),m=p((()=>i.slice(1).reduce(((e,t)=>iR({prevData:e,dataPage:t,pageInfo:a})),((e,t)=>{const{qData:r,qArea:n}=e;return oR({qArea:n,prevData:[],pivotValuePoints:r,pageInfo:t})})(i[0],a))),[i,a]),h=p((()=>i.slice(1).reduce(((e,o)=>lR({prevData:e,nextDataPage:o,layoutService:n,visibleTopDimensionInfo:t,attrExprInfoIndexes:d.top,headerRows:f.size.y,env:r,pageInfo:a})),((e,t,r,n,o,i,a)=>{const{qArea:l,qTop:s}=e,u=aR([],s,l,t,r,n,o,i,a);tR(u,t.size.x);const c=rR(u);return{grid:u,rowCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(i[0],n,t,d.top,f.size.y,r,a))),[i,n,t,d.top,f.size.y,r,a]),g=p((()=>i.slice(1).reduce(((t,o)=>nR({prevData:t,nextDataPage:o,pageInfo:a,layoutService:n,visibleLeftDimensionInfo:e,attrExprInfoIndexes:d.left,env:r})),((e,t,r,n,o,i)=>{const{qArea:a,qLeft:l}=e,s=eR([],l,a,r,t,n,o,i);tR(s,r.rowsOnCurrentPage);const u=rR(s,t);return{grid:s,columnCount:s.length,layoutSize:t.size,totalDividerIndex:u}})(i[0],n,a,e,d.left,r))),[i,n,a,e,d,r]),[b,v]=u((()=>m())),[y,x]=u((()=>h())),[S,E]=u((()=>g()));Hg((()=>{v(m())}),[m]),Hg((()=>{x(h())}),[h]),Hg((()=>{E(g())}),[g]),Hg((()=>{l&&l.forEach((o=>{v((e=>iR({prevData:e,dataPage:o,pageInfo:a}))),x((e=>lR({prevData:e,nextDataPage:o,layoutService:n,visibleTopDimensionInfo:t,attrExprInfoIndexes:d.top,headerRows:f.size.y,env:r,pageInfo:a}))),E((t=>nR({prevData:t,nextDataPage:o,pageInfo:a,layoutService:n,visibleLeftDimensionInfo:e,attrExprInfoIndexes:d.left,env:r})))}))}),[l]);const C=p((e=>{c(e)}),[]);return{headersData:f,measureData:b,topDimensionData:y,leftDimensionData:S,attrExprInfoIndexes:d,nextPageHandler:C}},cR=Math.sqrt(1e4),dR=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/tr.PixelsMin)}),pR=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],r=Math.ceil(e.qWidth/cR),n=Math.ceil(e.qHeight/cR);for(let o=0;o<r;o++)for(let r=0;r<n;r++)t.push({qLeft:e.qLeft+o*cR,qTop:e.qTop+r*cR,qWidth:Math.min(cR,e.qWidth-o*cR),qHeight:Math.min(cR,e.qHeight-r*cR)});return t};function fR({nextPageHandler:e}){const{model:t}=IC(),{pageInfo:r}=wC(),{layoutService:n}=AC(),o=(e=>{const t=c(e);return t.current=e,t})(r.page),i=t,a=p((async(e,t)=>{await(null==i?void 0:i.collapseLeft(OC,e,t,!1))}),[i]),l=p((async(e,t)=>{await(null==i?void 0:i.collapseTop(OC,e,t,!1))}),[i]),u=p((async(e,t)=>{await(null==i?void 0:i.expandLeft(OC,e,t,!1))}),[i]),d=p((async(e,t)=>{await(null==i?void 0:i.expandTop(OC,e,t,!1))}),[i]),f=p((async t=>{if(null!=i&&i.getHyperCubePivotData&&0!==t.length)try{const n=await i.getHyperCubePivotData(OC,t.reduce(((e,t)=>[...e,...pR(t)]),[]));o.current===r.page&&e(n)}catch(e){console.error(e)}}),[i,e,r,o]),m=p(((e,{dimensionInfoIndex:r,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=n.layout.qHyperCube;let c=[];switch(a){case Vt.Dimension:c=[{qPath:`${OC}/qDimensions/${r}/qDef/columnWidth`,oldValue:s[r].columnWidth}];break;case Vt.Measures:if(o)c=l.map(((e,t)=>({qPath:`${OC}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=n.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${OC}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case Vt.Pivot:c=[{qPath:`${OC}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((t=>{const{qPath:r,oldValue:n}=t;return{qPath:r,qOp:n?"Replace":"Add",qValue:JSON.stringify({...n,...e})}}));null==t||t.applyPatches(d,!0)}),[t,n]),h=p((async e=>{await(null==i?void 0:i.applyPatches([{qPath:`${OC}/indentModeColumnWidth`,qOp:n.layout.qHyperCube.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...n.indentModeColumnWidth,...e})}],!0))}),[i,n]);return s((()=>({collapseLeft:a,collapseTop:l,expandLeft:u,expandTop:d,applyColumnWidth:m,applyIndentModeColumnWidth:h,fetchPages:f})),[a,l,u,d,m,h,f])}const mR=(e,t,r)=>(n,o)=>{if("P"===n)return TC;const i=t[r+o];return e[i]},hR=e=>{const t=[],r=(e,n=0)=>{e.slice(0,1).forEach((e=>{t[n]=e.qType,e.qSubNodes.length&&r(e.qSubNodes,n+1)}))};return r(e),t},gR=m({}),bR=()=>n(gR),vR=({children:e})=>{const{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r}=(()=>{const{layoutService:{layout:{qHyperCube:{qNoOfLeftDims:e,qEffectiveInterColumnSortOrder:t,qDimensionInfo:r}}}}=AC(),{qPivotDataPages:n}=wC();return s((()=>{var o,i,a,l;const s=hR(null!==(o=null===(i=n[0])||void 0===i?void 0:i.qLeft)&&void 0!==o?o:[]),u=hR(null!==(a=null===(l=n[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(mR(r,t,0)),visibleTopDimensionInfo:u.map(mR(r,t,e))}}),[r,t,e,n])})(),{headersData:n,measureData:o,topDimensionData:i,leftDimensionData:a,attrExprInfoIndexes:l,nextPageHandler:u}=uR(t,r),c=fR({nextPageHandler:u}),d=s((()=>({gridSectionsData:{headersData:n,topDimensionData:i,leftDimensionData:a,measureData:o},visibleDimensionsInfo:{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r},attrExprInfoIndexes:l,dataModel:c})),[t,r,n,o,i,a,l,c]);return bs.jsx(gR.Provider,{value:d,children:e})},yR=18,xR=.75,SR=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===Nt.Image},ER=e=>void 0===e?ag:e,CR=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,wR=e=>CR(e,tr.PixelsDefault),RR=(e,t)=>CR(e,tr.PercentageDefault)*t/100,LR=(e,t,r)=>{switch(null==t?void 0:t.type){case rr.Pixels:return wR(t.pixels);case rr.Percentage:return RR(t.percentage,e);case rr.FitToContent:case rr.Auto:default:return r}},IR=({headers:e,layoutService:t,effectivePropertiesService:r,estimateWidthForDimensionValue:n,shouldConsiderCombinatedLength:o,measureTextForHeader:i,longestMeasureValuePossible:a})=>e.reduce(((e,l,s)=>{const{layout:{qHyperCube:{qNoOfLeftDims:u}}}=t,{id:c,colIdx:d,qApprMaxGlyphCount:p,isLeftDimension:f}=l;if(!f)return e+0;if(c===_C)return e+0;const m=n(p),h=!r.qAlwaysFullyExpanded&&d<u-1?21:0;let g=0;if(o&&i&&a){g=i("-")+a}return Math.max(e,24*s+yR+h+m+g)}),0),MR=(e,t,r)=>e.reduce(((e,n)=>{const o=(r?0:1)*yR;return Math.max(e,o+t(n.qFallbackTitle))}),0),DR=(e,t,r,n)=>{const o=100*e/t,i=n*xR*(o/100),a=r*(o/100);return Math.min(a,i)},AR=(e,t,r,n)=>n*(r/100)*(100*e/t/100),PR=(e,t)=>e.some((e=>e>=t*xR)),kR=({layoutService:e,effectivePropertiesService:t,headersData:r,columnWidths:n,tableWidth:o,widthOverride:i,measureTextForHeader:a,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:s,translator:u})=>{let c=[];const d=o*xR,p=r.data[r.data.length-1][0],f=Math.min(d,n.at(-1)),m=Math.min(d,IR({headers:p,layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:l})),h=Math.min(d,MR(e.visibleMeasureInfo,a));let g=0;const b=p.findIndex((e=>e.id===_C)),v=(({layoutService:e,measureTextForHeader:t,translator:r,headersData:n})=>{const{type:o}=e.indentModeColumnWidth;return o===rr.Auto&&n.size.y<=1?t(r.get("SNPivotTable.IndentMode.Rows"))+8+yR+16:24})({layoutService:e,measureTextForHeader:a,translator:u,headersData:r});if(e.hasPseudoDimOnLeft)if(0===b){const e=Math.max(f,m,h);c=[Math.max(v,e-f),f]}else{const r=Math.min(d,MR(e.visibleMeasureInfo,s,!0));g=Math.min(d,IR({headers:p.slice(0,b),layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:l,shouldConsiderCombinatedLength:!0,measureTextForHeader:a,longestMeasureValuePossible:r}));const n=Math.max(f,m,g);c=[Math.max(v,n-f),f]}else c=[Math.max(v,m-f),f];const y=Math.min(d,c.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:x}=e;i&&i<=d&&(x.type=rr.Pixels,x.pixels=i);return[rr.Pixels,rr.Percentage].includes(x.type)||PR(c,o)?((e,t,r,n)=>{let o=e[0],i=e[1],a=[];const l=e.reduce(((e,t)=>e+t),0),{type:s,pixels:u,percentage:c}=t,d=PR(e,r);s===rr.Auto&&d&&(o>i?o-=i:i-=o),s===rr.Pixels&&u&&(o=DR(e[0],l,u,r),i=DR(e[1],l,u,r)),s===rr.Percentage&&c&&(o=AR(e[0],l,c,r),i=AR(e[1],l,c,r));let p=0;i<=n&&(p=o-5,p>0&&(o-=p,i+=p)),p=i-n,p>0&&(o+=p,i-=p),a=[o,i];const f=a.reduce(((e,t)=>e+t),0);return{leftGridColumnWidths:a,leftGridWidth:f,leftGridFullWidth:f}})(c,x,o,f):{leftGridWidth:y,leftGridColumnWidths:c,leftGridFullWidth:y}};function OR({tableWidth:e}){const t=e*xR,{styleService:r,layoutService:n,effectivePropertiesService:o}=AC(),{translator:i}=IC(),{gridSectionsData:{headersData:a}}=bR(),{measureText:l}=Gg(r.header),{estimateWidth:s,measureText:c}=Gg({...r.dimensionValues,fontWeight:ER(r.dimensionValues.fontWeight)}),{measureText:d}=Gg({...r.dimensionValues,...r.measureLabels}),f=p(((r,u)=>{const{layout:{qHyperCube:{qNoOfLeftDims:p,topHeadersColumnWidth:f}},visibleMeasureInfo:m,isIndentModeEnabled:h,hasPseudoDimOnLeft:g}=n,b=(t=0)=>m.reduce(((r,{qFallbackTitle:n,columnWidth:o})=>{const i=d(n)+yR,a=Math.max(i,t);return Math.max(r,h?a:LR(e,o,a))}),0),v=e=>a.data.reduce(((t,r)=>{const n=r[e];if(!n)return t;if(n.id===_C)return t;const o=(e=>{const{label:t,isLocked:r}=e,n=r?20:0;return yR+l(t)+20+n})(n);return Math.max(o,t)}),0);let y=0,x=a.data.at(-1);h&&a.size.x>1&&x&&x[0]&&(x=x[0]);const S=x.map(((i,l)=>{let c=yR;if(h&&1!==a.size.x||!r||void 0===u||u!==i.colIdx){let t;i.columnWidthLocation===Vt.Pivot?t=h?void 0:f:i.columnWidthLocation===Vt.Dimension&&({columnWidth:t}=i);let r=0;if(i.isLeftDimension)if(i.id===_C)r=b();else{const e=v(l),t=((e,t)=>{const{qApprMaxGlyphCount:r,isLeftDimension:i,dimensionInfoIndex:a}=e,l=n.getDimensionInfo(a);if(SR(l))return tr.PixelsDefault;const u=!o.qAlwaysFullyExpanded&&i&&t<p-1?21:0;return yR+s(r)+u})(i,l);r=Math.max(e,t),h&&!g&&l+1===p&&i.columnWidthLocation===Vt.Dimension&&a.size.x>1&&(r=e)}else r=v(l),i.columnWidthLocation===Vt.Measures&&(r=b(r));h&&1===a.size.x&&(t=n.indentModeColumnWidth),c=h&&!g&&a.size.x>1?r:LR(e,t,r)}else c=h?Math.min(t,r):r;return y+=c,c}));return h&&a.size.x>1?kR({layoutService:n,effectivePropertiesService:o,headersData:a,columnWidths:S,tableWidth:e,widthOverride:r,measureTextForHeader:l,estimateWidthForDimensionValue:s,measureTextWidthForMeasuresCombinedWithDimensions:c,translator:i}):{leftGridWidth:Math.min(t,y),leftGridColumnWidths:S,leftGridFullWidth:y}}),[e,a,n,t,l,d,s,c,i,o]),[m,h]=u(f);Hg((()=>{h(f())}),[f]);const g=p(((e,t)=>{h(f(e,t))}),[f]);return{...m,overrideLeftGridWidth:g}}function TR({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:r}){const{styleService:n,layoutService:o}=AC(),{visibleDimensionsInfo:{visibleTopDimensionInfo:i}}=bR(),{layout:{qHyperCube:{qNoOfLeftDims:a,qEffectiveInterColumnSortOrder:l}},size:u,visibleMeasureInfo:c}=o,{estimateWidth:d,measureText:f}=Gg(n.measureValues),{estimateWidth:m}=Gg({...n.dimensionValues,fontWeight:ER(n.dimensionValues.fontWeight)}),h=e-r-1,g=i.at(-1),b=g===TC,v=l.length-a>i.length?21:0,y=s((()=>{const e=b?c:[g],t=u.x/e.length,r=[],n=[];let o=h;const i=(e,n)=>{r[e]=Math.min(tr.PixelsMax,Math.max(tr.PixelsMin,n)),o-=r[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:r,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:s}=e;switch(r){case rr.Pixels:i(t,wR(o));break;case rr.Percentage:i(t,RR(a,h));break;case rr.FitToContent:i(t,((e,t,r)=>r?tr.PixelsDefault:yR+(b?Math.max(d(e),f(t)):Math.max(Math.max(...c.map((e=>d(e.qApprMaxGlyphCount)))),m(e)+v)))(l,s,SR(e)));break;case rr.Auto:default:n.push(t)}}else n.push(t)})),n.length){const e=n.length*t,i=o/e;n.forEach((e=>{r[e]=Math.max(tr.AutoMinPivot,i)}))}return r}),[b,c,g,u.x,h,d,f,m,v]),x=s((()=>{if(b){return c.reduce(((e,t,r)=>e+y[r]),0)/c.length}return y[0]}),[b,y,c]),S=parseFloat((t/o.size.x).toFixed(12)),E=p((e=>(b&&void 0!==e?y[o.getMeasureInfoIndexFromCellIndex(e,!0)]:x)-S),[b,y,o,x,S]),C=u.x*x;return{rightGridFullWidth:C,rightGridWidth:Math.min(C,h),getRightGridColumnWidth:E}}const _R=`scrollable-container--${Ut.TopGrid}`,qR=`scrollable-container--${Ut.LeftGrid}`,NR=`scrollable-container--${Ut.DataGrid}`,FR=e=>e&&e instanceof HTMLDivElement?{width:e.offsetWidth-e.clientWidth,height:e.offsetHeight-e.clientHeight}:{width:0,height:0},jR=(e,t)=>e>t?Kt.Forward:e<t?Kt.Backward:Kt.None,zR=()=>{const{layoutService:e}=AC(),t=c(null),r=c(null),n=c(null),o=c(null),i=c([]),a=c([]),l=c(null),{scrollbarsDimensions:{verticalScrollbarWidth:s,horizontalScrollbarHeight:d},resetHorizontalScrollbarHeight:m}=(({topGridWrapperRef:e,leftGridWrapperRef:t,dataGridWrapperRef:r})=>{const[n,o]=u(0),[i,a]=u(0);return g((()=>{(e.current||r.current)&&o(Math.max(FR(e.current).width,FR(r.current).width))})),g((()=>{(t.current||r.current)&&a(Math.max(FR(t.current).height,FR(r.current).height))})),{scrollbarsDimensions:{verticalScrollbarWidth:n,horizontalScrollbarHeight:i},resetHorizontalScrollbarHeight:()=>{a(0)}}})({topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o});(({gridSectionsWrapperRefs:{headerGridWrapperRef:e,topGridWrapperRef:t,leftGridWrapperRef:r,dataGridWrapperRef:n},gridRefs:{topGridRef:o,leftGridRef:i,dataGridRef:a}})=>{const{pageInfo:l}=wC(),{downloadService:s,viewService:u,layoutService:c}=AC(),d=p((()=>{var o,i,a,l;const s={left:0,top:0};null===(o=e.current)||void 0===o||o.scrollTo(s),null===(i=t.current)||void 0===i||i.scrollTo(s),null===(a=r.current)||void 0===a||a.scrollTo(s),null===(l=n.current)||void 0===l||l.scrollTo(s)}),[e,t,r,n]);g((()=>{d()}),[l.page,d]),g((()=>{c.triggerdByExpandOrCollapse||d()}),[c,d]),g((()=>{if(c.triggerdByExpandOrCollapse){var e,t,r,l,s,u,d;const c=null!==(e=null===(t=n.current)||void 0===t?void 0:t.scrollLeft)&&void 0!==e?e:0,p=null!==(r=null===(l=n.current)||void 0===l?void 0:l.scrollTop)&&void 0!==r?r:0;null===(s=i.current)||void 0===s||s.forEach((e=>{null==e||e.scrollTo(p)})),null===(u=o.current)||void 0===u||u.forEach((e=>{null==e||e.scrollTo(c)})),null===(d=a.current)||void 0===d||d.scrollTo({scrollTop:p,scrollLeft:c})}}),[c,n,a,i,o]),g((()=>{(s.isDownloadedAsPDForImage||c.isSnapshot)&&n.current&&r.current&&t.current&&(n.current.scrollTop=u.scrollTop,n.current.scrollLeft=u.scrollLeft,r.current.scrollLeft=u.leftGridScrollLeft,t.current.scrollTop=u.topGridScrollTop)}),[u,s,c,n,r,t])})({gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:l}});const{trackScrollDirection:h,scrollDirectionRefs:{verticalScrollDirection:b,horizontalScrollDirection:v}}=(()=>{const e=c(Kt.None),t=c(Kt.None),r=c({prevScrollTop:0,prevScrollLeft:0});return{trackScrollDirection:p((n=>{if(n instanceof WheelEvent&&(e.current=jR(n.deltaY,0),t.current=jR(n.deltaX,0)),n instanceof Event&&!(n instanceof WheelEvent)){const o=n.target;e.current=jR(o.scrollTop,r.current.prevScrollTop),r.current.prevScrollTop=o.scrollTop,t.current=jR(o.scrollLeft,r.current.prevScrollLeft),r.current.prevScrollLeft=o.scrollLeft}}),[e,t,r]),scrollDirectionRefs:{verticalScrollDirection:e,horizontalScrollDirection:t}}})(),y=(()=>{const{viewService:e}=AC();return p((t=>{const r=t.target,n=t.currentTarget,o=r.dataset.key;o===qR&&(e.leftGridScrollLeft=n.scrollLeft),o===NR&&(e.scrollLeft=n.scrollLeft),o===_R&&(e.topGridScrollTop=n.scrollTop),o!==qR&&o!==NR||(e.scrollTop=n.scrollTop)}),[e])})(),x={gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:l},getWrapperElements:p((()=>({headerGridWrapperElement:t.current,topGridWrapperElement:r.current,leftGridWrapperElement:n.current,dataGridWrapperElement:o.current})),[t,r,n,o]),updateViewService:y,trackScrollDirection:h,isSnapshotMode:e.isSnapshot};return(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:o,trackScrollDirection:i,isSnapshotMode:a})=>{f((()=>{const{headerGridWrapperElement:o,topGridWrapperElement:l,leftGridWrapperElement:s,dataGridWrapperElement:u}=n(),c=e=>{o.scrollLeft+=e.deltaX,o.scrollTop+=e.deltaY,s.scrollLeft=o.scrollLeft,l.scrollTop=o.scrollTop,i(e)},d=e=>{var n,a;s.scrollTop+=e.deltaY,null===(n=t.current)||void 0===n||n.forEach((e=>{null==e||e.scrollTo(s.scrollTop)})),o.scrollLeft+=e.deltaX,s.scrollLeft=o.scrollLeft,u.scrollTop=s.scrollTop,null===(a=r.current)||void 0===a||a.scrollTo({scrollTop:s.scrollTop}),i(e)},p=t=>{var n,a;l.scrollLeft+=t.deltaX,null===(n=e.current)||void 0===n||n.forEach((e=>{null==e||e.scrollTo(l.scrollLeft)})),o.scrollTop+=t.deltaY,l.scrollTop=o.scrollTop,u.scrollLeft=l.scrollLeft,null===(a=r.current)||void 0===a||a.scrollTo({scrollLeft:l.scrollLeft}),i(t)},f=n=>{var o,a,c;u.scrollLeft+=n.deltaX,u.scrollTop+=n.deltaY,null===(o=r.current)||void 0===o||o.scrollTo({scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}),l.scrollLeft=u.scrollLeft,null===(a=e.current)||void 0===a||a.forEach((e=>{null==e||e.scrollTo(u.scrollLeft)})),s.scrollTop=u.scrollTop,null===(c=t.current)||void 0===c||c.forEach((e=>{null==e||e.scrollTo(u.scrollTop)})),i(n)};return o.addEventListener("wheel",c),s.addEventListener("wheel",d),l.addEventListener("wheel",p),u.addEventListener("wheel",f),a&&setTimeout((()=>{o.removeEventListener("wheel",c),s.removeEventListener("wheel",d),l.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}),0),()=>{o.removeEventListener("wheel",c),s.removeEventListener("wheel",d),l.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}}),[i,o,a,e,t,r,n])})(x),(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:o,trackScrollDirection:i,isSnapshotMode:a})=>{f((()=>{const{headerGridWrapperElement:l,topGridWrapperElement:s,leftGridWrapperElement:u,dataGridWrapperElement:c}=n(),d=e=>{const t=e.target;l.scrollLeft=t.scrollLeft,i(e),null==o||o(e)},p=e=>{const t=e.target;l.scrollTop=t.scrollTop,i(e),null==o||o(e)},f=n=>{var a,l,d;const p=n.target;null===(a=r.current)||void 0===a||a.scrollTo({scrollLeft:p.scrollLeft,scrollTop:p.scrollTop}),s.scrollLeft=c.scrollLeft,null===(l=e.current)||void 0===l||l.forEach((e=>{null==e||e.scrollTo(p.scrollLeft)})),u.scrollTop=c.scrollTop,null===(d=t.current)||void 0===d||d.forEach((e=>{null==e||e.scrollTo(p.scrollTop)})),i(n),null==o||o(n)};return u.addEventListener("scroll",d),s.addEventListener("scroll",p),c.addEventListener("scroll",f),a&&setTimeout((()=>{u.removeEventListener("scroll",d),s.removeEventListener("scroll",p),c.removeEventListener("scroll",f)}),0),()=>{u.removeEventListener("scroll",d),s.removeEventListener("scroll",p),c.removeEventListener("scroll",f)}}),[i,o,a,e,t,r,n])})(x),{gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:l},scrollDirectionRefs:{verticalScrollDirection:b,horizontalScrollDirection:v},scrollbarsDimensions:{verticalScrollbarWidth:s,horizontalScrollbarHeight:d,resetHorizontalScrollbarHeight:m}}},GR=()=>{const{layoutService:e}=AC(),{rect:t,pageInfo:r}=wC();return s((()=>{let{height:n}=t;return e.hasLimitedData&&(n-=22),r.shouldShowPagination&&(n-=41),{...t,height:n}}),[t,e,r.shouldShowPagination])},$R=({children:e,style:t})=>bs.jsx("div",{"data-testid":"fullSize",style:t,children:e}),BR=({children:e,style:t})=>bs.jsx("div",{"data-section-id":"GRID",style:{display:"grid",...t},children:e}),WR=e=>e&&`scrollable-container--${e}`,HR=({children:e,style:t,origin:r},n)=>{const{interactions:o}=IC(),i=o.active?t:{overflow:"hidden"};return bs.jsx("div",{"data-testid":"scrollable","data-key":WR(r),style:i,ref:n,children:e})};var VR=r.forwardRef(HR);const YR=({children:e,style:t})=>bs.jsx("div",{"data-testid":"sticky",style:{position:"sticky",top:0,left:0,...t},children:e});var UR=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function KR(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],o=t[r],!(n===o||UR(n)&&UR(o)))return!1;var n,o;return!0}function XR(e,t){var r;void 0===t&&(t=KR);var n,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var JR="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function ZR(e){cancelAnimationFrame(e.id)}function QR(e,t){var r=JR();var n={id:requestAnimationFrame((function o(){JR()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var eL=-1;function tL(e){if(void 0===e&&(e=!1),-1===eL||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),eL=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return eL}var rL=null;function nL(e){if(void 0===e&&(e=!1),null===rL||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?rL="positive-descending":(t.scrollLeft=1,rL=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),rL}return rL}var oL=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function iL(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,i=e.getColumnStopIndexForStartIndex,a=e.getColumnWidth,l=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,u=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,d=e.getRowHeight,p=e.getRowOffset,f=e.getRowStartIndexForOffset,m=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,g=e.shouldResetStyleCacheOnItemSizeChange,v=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=h(n.props,Rr(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Rr(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=XR((function(e,t,r,o,i,a,l,s){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),n._callOnScroll=void 0,n._callOnScroll=XR((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,i=n.props,l=i.columnWidth,s=i.direction,u=i.rowHeight,c=n._getItemStyleCache(g&&l,g&&s,g&&u),f=e+":"+t;if(c.hasOwnProperty(f))o=c[f];else{var m=r(n.props,t,n._instanceProps),h="rtl"===s;c[f]=o={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:p(n.props,e,n._instanceProps),height:d(n.props,e,n._instanceProps),width:a(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=XR((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(nL()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&ZR(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=QR(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}wr(t,e),t.getDerivedStateFromProps=function(e,t){return aL(e,t),v(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,a=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=tL();void 0!==n&&(n=Math.max(0,Math.min(n,a-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=l(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?u(this.props,n,r,h,this._instanceProps,x):h,scrollTop:void 0!==o?c(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(nL()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&ZR(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,i=e.direction,a=e.height,u=e.innerRef,c=e.innerElementType,d=e.innerTagName,p=e.itemData,f=e.itemKey,m=void 0===f?oL:f,h=e.outerElementType,g=e.outerTagName,b=e.rowCount,v=e.style,y=e.useIsScrolling,x=e.width,S=this.state.isScrolling,E=this._getHorizontalRangeToRender(),C=E[0],w=E[1],R=this._getVerticalRangeToRender(),L=R[0],I=R[1],M=[];if(n>0&&b)for(var D=L;D<=I;D++)for(var A=C;A<=w;A++)M.push(o(t,{columnIndex:A,data:p,isScrolling:y?S:void 0,key:m({columnIndex:A,data:p,rowIndex:D}),rowIndex:D,style:this._getItemStyle(D,A)}));var P=l(this.props,this._instanceProps),k=s(this.props,this._instanceProps);return o(h||g||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:hr({position:"relative",height:a,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},v)},o(c||d||"div",{children:M,ref:u,style:{height:P,pointerEvents:S?"none":void 0,width:k}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof n){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,o=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=r||o||a||1;if(0===t||0===l)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),m=i(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=f(this.props,u,this._instanceProps),p=m(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,p+g)),d,p]},t}(b),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var aL=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},lL=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},sL=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},uL=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},cL=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?dL(e,t,r,i,0,n):pL(e,t,r,Math.max(0,i),n)},dL=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),l=uL(e,t,a,r).offset;if(l===i)return a;l<i?o=a+1:l>i&&(n=a-1)}return o>0?o-1:0},pL=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&uL(e,t,n,r).offset<o;)n+=a,a*=2;return dL(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},fL=function(e,t,r,n,o,i,a){var l="column"===e?t.width:t.height,s=uL(e,t,r,i),u="column"===e?sL(t,i):lL(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===n&&(n=o>=d-l&&o<=c+l?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},mL=iL({getColumnOffset:function(e,t,r){return uL("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return cL("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=uL("column",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=uL("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:lL,getEstimatedTotalWidth:sL,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return fL("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return fL("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return uL("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return cL("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=uL("row",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=uL("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),hL=function(e,t){return e};function gL(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,l=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,u=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=u(n.props,Rr(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Rr(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=XR((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=XR((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,o=n.props,a=o.direction,l=o.itemSize,s=o.layout,u=n._getItemStyleCache(c&&l,c&&s,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=r(n.props,e,n._instanceProps),p=i(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?d:0;u[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=XR((function(e,t,r){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(nL()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&ZR(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=QR(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}wr(t,e),t.getDerivedStateFromProps=function(e,t){return bL(e,t),d(e),null};var p=t.prototype;return p.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)},p.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,i=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?tL():0:s.scrollHeight>s.clientHeight?tL():0}this.scrollTo(a(this.props,e,t,i,this._instanceProps,l))},p.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},p.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(nL()){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()},p.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&ZR(this._resetIsScrollingTimeoutId)},p.render=function(){var e=this.props,t=e.children,r=e.className,i=e.direction,a=e.height,l=e.innerRef,s=e.innerElementType,u=e.innerTagName,c=e.itemCount,d=e.itemData,p=e.itemKey,f=void 0===p?hL:p,m=e.layout,h=e.outerElementType,g=e.outerTagName,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S="horizontal"===i||"horizontal"===m,E=S?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),w=C[0],R=C[1],L=[];if(c>0)for(var I=w;I<=R;I++)L.push(o(t,{data:d,key:f(I,d),index:I,isScrolling:v?x:void 0,style:this._getItemStyle(I)}));var M=n(this.props,this._instanceProps);return o(h||g||"div",{className:r,onScroll:E,ref:this._outerRefSetter,style:hr({position:"relative",height:a,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},b)},o(s||u||"div",{children:L,ref:l,style:{height:S?"100%":M,pointerEvents:x?"none":void 0,width:S?M:"100%"}}))},p._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},p._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,a=n.scrollOffset;if(0===t)return[0,0,0,0];var u=l(this.props,a,this._instanceProps),c=s(this.props,u,a,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(b),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var bL=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},vL=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=n(s);o[s]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},yL=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=vL(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},xL=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&vL(e,r,t).offset<n;)r+=i,i*=2;return yL(e,t,Math.min(r,o-1),Math.floor(r/2),n)},SL=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},EL=gL({getItemOffset:function(e,t,r){return vL(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:SL,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=vL(e,t,o),p=SL(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=m-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return n>=m&&n<=f?n:n<m?m:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?yL(e,t,o,0,r):xL(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=vL(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=vL(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function CL(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var wL=["style"],RL=["style"];function LL(e,t){var r=e.style,n=Er(e,wL),o=t.style,i=Er(t,RL);return!CL(r,o)&&!CL(n,i)}const IL=10,ML=(e,t)=>e.current===Kt.Backward?t:0,DL=(e,t,r,n)=>{for(let o=r;o<r+n;o++){const r=e.at(o);if(void 0===r||void 0===r.at(t))return!0}return!1},AL=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,PL=({pageInfo:e,measureData:t,pageTop:r,qHeight:n,startLeft:o,endLeft:i})=>{const a=[],l=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(DL(t,e,r,n)){const t=a[a.length-1],o={qLeft:e,qTop:r+l,qWidth:1,qHeight:n};void 0!==t&&AL(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},kL=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=n,u=r.current===Kt.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return PL({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},OL=({pageInfo:e,measureData:t,scrollDirection:r,layoutService:n,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:l,qHeight:s}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=e.size.x,s=ML(r,IL),u=Math.max(n-s,0);return{startLeft:u,endLeft:u+Math.min(i+IL,l-u),pageTop:o,qHeight:a}})(n,o,r),u=PL({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...kL({pageInfo:e,measureData:t,scrollDirection:r,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:n.size.x})]:u},TL=(e,t,r,n)=>{const o=e[r];if(void 0===o)return!0;for(let e=t;e<t+n;e++){if(void 0===o[e])return!0}return!1},_L=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,qL=({startTop:e,endTop:t,qLeft:r,qWidth:n,measureData:o,pageInfo:i})=>{const a=[],l=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(TL(o,r,i,n)){const e=a.at(-1),t={qLeft:r,qTop:i+l,qWidth:n,qHeight:1};void 0!==e&&_L(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},NL=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:l}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=ML(r,IL),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+IL,e.rowsOnCurrentPage-s),qLeft:n,qWidth:i}})(e,n,r),s=qL({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const n=r.current===Kt.Backward?Math.max(0,o-25):i,u=Math.min(n+25,e.rowsOnCurrentPage),c=qL({startTop:n,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},FL=async(e,t,r,n,o,i,a,l)=>{const{gridColumnStartIndex:s,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==Kt.None&&(p=NL({pageInfo:n,measureData:r,scrollDirection:i,viewService:o})),a.current!==Kt.None&&(f=OL({pageInfo:n,measureData:r,scrollDirection:a,layoutService:t,viewService:o})),i.current===Kt.None&&a.current===Kt.None&&(p=qL({measureData:r,pageInfo:n,qLeft:s,qWidth:c,startTop:u,endTop:u+d}));const m=e.fetchPages([...p,...f]);l.isDownloadedAsPDForImage&&l.waitForPromise(m)},jL=function(e){var t,r,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];r=l;var u=Date.now()-i,c=function(){i=Date.now(),n=0,e.apply(t,r)};n||(u>=o?c():n=setTimeout(c,o-u))}}(FL,100),zL=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}(FL,75),GL=(e,t,r=!1)=>void 0!==e&&(e.isLeafNode||r&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),$L=({style:e,index:t,isLastRow:r,isLastColumn:n,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{styleService:{grid:{border:l,divider:s}}}=AC();return bs.jsx("div",{style:{...e,...fg,...bg(r,n,l,o),...yg({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},BL=({children:e,verticalAlign:t,width:r,right:n})=>bs.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",overflow:"hidden",flexDirection:"row",alignItems:t,width:r,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:n,alignSelf:t},children:e}),WL=e=>{const{type:t,imageSize:r}=e;return t!==Nt.Image||"fill"!==r&&"fitWidth"!==r?"fit-content":"100%"};function HL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const VL=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){HL(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})),YL=d(VL);function UL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const KL=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){UL(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})),XL=d(KL),JL=e=>{var t;return!(null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t||!t.includes(er))},ZL=(e,t)=>{switch(t.type){case"clearSelections":return{engineSelectedCells:null,activeSelection:null,selectedField:null};case"mouseup":return{...e,activeSelection:null,engineSelectedCells:t.payload.engineSelectedCells};case"mousedown":return{...e,activeSelection:t.payload.activeSelection,selectedField:t.payload.selectedField};case"mouseover":{if(!e.activeSelection)return e;const{index:r}=t.payload,n=Math.min(r,e.activeSelection.startIndex),o=Math.max(r,e.activeSelection.endIndex);if(n===e.activeSelection.startIndex&&o===e.activeSelection.endIndex)return e;const i={...e.activeSelection,startIndex:n,endIndex:o};return i.clientSelectedCells=(e=>{const{getCellFromIndex:t,startIndex:r,endIndex:n,clientSelectedCells:o}=e,i=new Map(o);for(let e=r;e<=n;e++){const r=t(e);"N"===(null==r?void 0:r.ref.qType)&&i.set(r.ref.qElemNo,r)}return i})(i),{...e,activeSelection:i}}default:return e}};const QL=m({createMouseDownHandler:()=>()=>{},createMouseOverHandler:()=>()=>{},isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),eI=()=>n(QL),tI=({children:e,selections:t})=>{const r=function(e){var t,r,n;const{env:o}=IC(),{updatePageInfo:i}=wC(),a=e.isActive(),[l,u]=v(ZL,{engineSelectedCells:null,selectedField:null,activeSelection:null});f((()=>{const t=()=>{u({type:"clearSelections"})},r=()=>{t(),i({page:0})};return e.on("deactivated",t),e.on("canceled",t),e.on("confirmed",r),e.on("cleared",t),()=>{e.removeListener("deactivated",t),e.removeListener("canceled",t),e.removeListener("confirmed",r),e.removeListener("cleared",t)}}),[e,i]);const c=p((async()=>{var t,r,n;if(!l.activeSelection)return;1===l.activeSelection.clientSelectedCells.size&&(r=l.engineSelectedCells,(n=l.activeSelection).clientSelectedCells.forEach(((e,t)=>{null!=r&&r.has(t)&&(n.clientSelectedCells.delete(t),r.delete(t))})));const o=new Map([...null!==(t=l.engineSelectedCells)&&void 0!==t?t:new Map,...l.activeSelection.clientSelectedCells]);try{u({type:"mouseup",payload:{engineSelectedCells:o}}),await e.select({method:"selectPivotCells",params:[OC,Array.from(o,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]})}catch(e){console.error(e),u({type:"mouseup",payload:{engineSelectedCells:l.engineSelectedCells}})}}),[l,e]);f((()=>{if(l.activeSelection)return document.addEventListener("mouseup",c),()=>{document.removeEventListener("mouseup",c)}}),[c,l.activeSelection]);const d=p(((e,t)=>r=>{const n=t(e);JL(r)||(e=>{var t;return null!==(null===(t=e.target)||void 0===t?void 0:t.closest("[data-prevent-selection]"))})(r)||(e=>{var t;return"A"===(null===(t=e.target)||void 0===t?void 0:t.tagName)})(r)||!(e=>1===e.buttons)(r)||!n||u({type:"mousedown",payload:{activeSelection:{startIndex:e,endIndex:e,getCellFromIndex:t,clientSelectedCells:(new Map).set(n.ref.qElemNo,n)},selectedField:{selectionCellType:n.selectionCellType,index:"L"===n.selectionCellType?n.x:n.y}}})}),[]),m=p((t=>o.flags.isEnabled("CLIENT_IM_6223_PIVOT_RANGE_SELECTION")?async()=>{l.activeSelection&&(e.isActive()||await e.begin([OC]),u({type:"mouseover",payload:{index:t}}))}:void 0),[l.activeSelection,e,o]),h=p((e=>{var t,r;return!(!(null!==(t=l.engineSelectedCells)&&void 0!==t&&t.size||null!==(r=l.activeSelection)&&void 0!==r&&r.clientSelectedCells.size)||!l.selectedField||e.selectionCellType===l.selectedField.selectionCellType&&("L"===e.selectionCellType?l.selectedField.index===e.x:l.selectedField.index===e.y))}),[null===(t=l.activeSelection)||void 0===t?void 0:t.clientSelectedCells.size,null===(r=l.engineSelectedCells)||void 0===r?void 0:r.size,l.selectedField]),g=p((e=>{var t,r;return!h(e)&&((null===(t=l.engineSelectedCells)||void 0===t?void 0:t.has(e.ref.qElemNo))||!(null===(r=l.activeSelection)||void 0===r||!r.clientSelectedCells.has(e.ref.qElemNo)))}),[h,null===(n=l.activeSelection)||void 0===n?void 0:n.clientSelectedCells,l.engineSelectedCells]);return s((()=>({isSelected:g,isActive:a,isLocked:h,createMouseDownHandler:d,createMouseOverHandler:m})),[g,a,h,d,m])}(t);return bs.jsx(QL.Provider,{value:r,children:e})};var rI;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(rI||(rI={}));const nI={brighter:.5,darker:.3,opacity:.03},oI=(e,{cell:t,styleService:r})=>{if(e===rI.Background||e===rI.Color){const r=t.expressionColor[e];if(r)return r}return t.isNull?r.nullValues[e]:t.isPseudoDimension?r.measureLabels[e]:t.isTotal?r.totalValues[e]:r.dimensionValues[e]},iI=({styleService:e,isCellSelected:t,cell:r,isCellLocked:n})=>{if(t)return e.selectedColors.background;const o=oI(rI.Background,{cell:r,styleService:e});return!n||!o||r.isPseudoDimension||r.isEmpty||r.isNull||r.isTotal?oI(rI.Background,{cell:r,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${Vh(i=o,nI)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},aI=({cell:e,styleService:t,isCellSelected:r})=>r?t.selectedColors.color:oI(rI.Color,{cell:e,styleService:t}),lI=({cell:e,styleService:t})=>{const{qCanCollapse:r,qCanExpand:n}=e.ref,o=oI(rI.FontWeight,{cell:e,styleService:t});return void 0===o&&(n||r)?ag:o},sI=({cell:e,styleService:t})=>oI(rI.FontStyle,{cell:e,styleService:t}),uI=({cell:e,styleService:t})=>oI(rI.TextDecoration,{cell:e,styleService:t}),cI=e=>e?"pointer":"default",dI=({expandOrCollapse:e,cell:t})=>r=>{null==e||e(t.y,t.x),r.stopPropagation()},pI=(e,t)=>{if(!e.isLeftColumn||e.representation.type===Nt.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},fI=({cell:e,isLeftColumn:t,isCellSelected:r})=>{const{styleService:n}=AC(),{interactions:o}=IC(),{isActive:i}=eI(),{dataModel:a}=bR();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!o.active||i||!a,s=aI({cell:e,styleService:n,isCellSelected:r}),u=i?.4:1,c=e.ref.qCanExpand?XL:YL;let d;return d=e.ref.qCanExpand?t?a.expandLeft:a.expandTop:t?a.collapseLeft:a.collapseTop,bs.jsx(c,{opacity:u,color:s,"data-prevent-selection":!l||void 0,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",...pI(e,n)},onClick:l?void 0:dI({cell:e,expandOrCollapse:d})})},mI=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},hI=e=>{switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},gI=({representation:e,styleService:t,canExpandOrCollapse:r,leafCount:n,isLeftColumn:o})=>{const i=`calc(100% - ${r?21:0}px)`,a=o?t.contentCellHeight:t.headerCellHeight,l=o&&void 0!==n?a*Math.max(n,1):a;switch(e.imageSize){case"originalSize":return{maxWidth:i,maxHeight:l};case"fitWidth":return{width:i,maxHeight:l};case"fitHeight":return{height:l,maxWidth:i};case"fill":return{height:l,width:i};default:return{width:i,height:a}}},bI=(e,t)=>{if("alwaysFit"===e)switch(null==t?void 0:t.vertical){case"flex-start":return"center top";case"flex-end":return"center bottom";default:return"center center"}},vI=e=>{if("alwaysFit"===e)return"contain"},yI=({representation:e,styleService:t,textStyle:r,canExpandOrCollapse:n,leafCount:o,isLeftColumn:i})=>{const{imageRef:a,onLoad:l}=(()=>{const{downloadService:e}=AC(),t=c(null),{promise:r,resolve:n}=s((()=>Dg()),[]);return f((()=>{var o;return e.isDownloadedAsPDForImage&&(e.waitForPromise(r),null!==(o=t.current)&&void 0!==o&&o.complete&&n()),()=>{n()}}),[t,e,r,n]),{onLoad:p((()=>{n()}),[n]),imageRef:t}})(),{url:u,text:d,imageSize:m,resolvedImagePosition:h}=e,{overflow:g,...b}=r;return bs.jsx("div",{"data-key":"image-container",style:{display:"flex",flexDirection:"column",justifyContent:null==h?void 0:h.vertical,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...gI({representation:e,styleService:t,canExpandOrCollapse:n,leafCount:o,isLeftColumn:i})},children:bs.jsx("img",{src:u,alt:d,style:{width:hI(m),height:mI(m),objectFit:vI(m),objectPosition:bI(m,h),...b},onLoad:l,ref:a})})},xI=(e,t)=>{if(null!=e&&e.auto)return t;switch(null==e?void 0:e.align){case"center":return"center";case"left":return"flex-start";case"right":return"flex-end";default:return t}},SI={display:"flex",flexDirection:"row",alignItems:"center"},EI={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},CI=(e,t,r,n)=>t?{...EI,...e.nullValues}:r?{...SI,color:e.totalValues.color,background:null!=n?n:e.totalValues.background}:{...SI,color:e.measureValues.color,background:null!=n?n:e.measureValues.background},wI=(e,t,r,n,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...mg,...!r&&hg(e.grid.lineClamp),...t&&{color:t},fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.nullValues;return{...l,fontWeight:t,fontStyle:r,textDecoration:n}}if(n){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.totalValues;return{...l,fontWeight:t,fontStyle:r,textDecoration:n}}const{fontWeight:s,fontStyle:u,textDecoration:c}=e.measureValues;return{...l,fontWeight:void 0===s?ag:s,fontStyle:u,textDecoration:c}},RI=(e,t,r,n)=>{const{textAlign:o}=t,i=n?"flex-end":"center";var a,l;return e.isNull||r.type!==Nt.Image?xI(o,i):null!==(a=null===(l=r.resolvedImagePosition)||void 0===l?void 0:l.horizontal)&&void 0!==a?a:"center"},LI=({cell:e,representation:t,color:r,isNumeric:n,isTotalValueCell:o})=>{const{layoutService:i,styleService:a}=AC(),l=e.isNull?i.getNullValueText():t.text,s=wI(a,r,n,o,e.isNull);return t.type!==Nt.Image||e.isNull?bs.jsx("span",{style:{padding:4,...s},children:l}):bs.jsx(yI,{representation:t,styleService:a,textStyle:s,isLeftColumn:!0})},II=(e,t)=>{var r,n;return null!==(r=null==e||null===(n=e[t])||void 0===n?void 0:n.visibleMeasureInfoIndex)&&void 0!==r?r:0},MI="flex-start",DI=(e,t)=>{return e.isNull?MI:t.type===Nt.Image&&"fill"!==t.imageSize?null===(r=t.resolvedImagePosition)||void 0===r?void 0:r.vertical:MI;var r},AI=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o;const{env:i}=IC(),{pageInfo:a}=wC(),{styleService:l,layoutService:s}=AC(),{attrExprInfoIndexes:u,gridSectionsData:{measureData:c,leftDimensionData:d,topDimensionData:f},visibleDimensionsInfo:{visibleLeftDimensionInfo:m,visibleTopDimensionInfo:h}}=bR(),g=(()=>{const{layoutService:{isIndentModeEnabled:e}}=AC(),{gridSectionsData:{leftDimensionData:t,topDimensionData:r},visibleDimensionsInfo:{visibleLeftDimensionInfo:n,visibleTopDimensionInfo:o}}=bR(),i=n.length,a=o.length;return p(((n,o)=>{var l,s;return!!(null!==(l=r.grid.at(a-1))&&void 0!==l&&null!==(l=l[n])&&void 0!==l&&l.isTotal||null!==(s=t.grid.at(e?0:i-1))&&void 0!==s&&null!==(s=s[o])&&void 0!==s&&s.isTotal)}),[r,t,i,a,e])})(),b=(()=>{const{gridSectionsData:{topDimensionData:e},visibleDimensionsInfo:{visibleTopDimensionInfo:t}}=bR(),r=t.length;return p((t=>{var n;const o=null===(n=e.grid.at(r-1))||void 0===n?void 0:n[t];return GL(o,e.totalDividerIndex)}),[e,r])})(),v=(()=>{const{layoutService:{isIndentModeEnabled:e}}=AC(),{gridSectionsData:{leftDimensionData:t},visibleDimensionsInfo:{visibleLeftDimensionInfo:r}}=bR(),n=r.length;return p((r=>{var o;const i=e?0:n-1,a=null===(o=t.grid.at(i))||void 0===o?void 0:o[r];return GL(a,t.totalDividerIndex,e)}),[t,e,n])})(),{showLastBorder:y}=n,x=f.grid.at(h.length-1),S=d.grid.at(m.length-1),{background:E}=l.measureValues,C=null===(o=c[t])||void 0===o?void 0:o[e],w=t===a.rowsOnCurrentPage-1,R=e===s.size.x-1;if(!C)return bs.jsx($L,{style:{...r,background:E},isLastRow:w,isLastColumn:R,showLastBorder:y,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const L=s.hasPseudoDimOnLeft?II(S,t):II(x,e),I=s.visibleMeasureInfo[L],M=Uw({cell:C.ref,representationProperties:s.isIndentModeEnabled?{type:Nt.Text}:I.representation,attrExprInfoIndex:u.measures[L],env:i}),D=!C.isNull&&g(e,t),A=C.isNull?s.getNullValueText():M.text,P=!C.isNull||!Number.isNaN(+A),k=Kw(u.measures[L],C.ref),O={...CI(l,C.isNull,D,k.background),...bg(w,R,l.grid.border,y),...yg({bottomDivider:v(t),rightDivider:b(e),borderColor:l.grid.divider}),...fg,padding:"0px 4px",display:"flex",justifyContent:RI(C,I,M,P)};return bs.jsx("div",{className:Zt,title:A,style:{...O,...r},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:bs.jsx(BL,{width:WL(M),verticalAlign:DI(C,M),children:bs.jsx(LI,{cell:C,representation:M,isNumeric:P,isTotalValueCell:D,color:k.color})})})};var PI=r.memo(AI,LL);const kI=(e,t)=>{var r,n;return null!==(r=null===(n=t.list[e])||void 0===n?void 0:n.id)&&void 0!==r?r:e.toString()},OI=({columnIndex:e,rowIndex:t,data:r})=>{var n,o;return null!==(n=null===(o=r.grid[t])||void 0===o||null===(o=o[e])||void 0===o?void 0:o.id)&&void 0!==n?n:`${t}-${e}`},TI={...pg,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},_I=({dataGridRef:e,height:t,rowHightCallback:r,width:n,showLastBorder:o,getRightGridColumnWidth:i,verticalScrollDirection:a,horizontalScrollDirection:l})=>{const{pageInfo:s}=wC(),{layoutService:u,styleService:{grid:{divider:c},contentCellHeight:d}}=AC(),{dataModel:f,gridSectionsData:{measureData:m}}=bR(),h={...TI,borderColor:c,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},b=(({verticalScrollDirection:e,horizontalScrollDirection:t})=>{const{pageInfo:r}=wC(),{downloadService:n,viewService:o,layoutService:i}=AC(),{dataModel:a,gridSectionsData:{leftDimensionData:l,topDimensionData:s,measureData:u}}=bR(),c=l.columnCount,d=s.rowCount;return p((async({overscanColumnStartIndex:l,overscanColumnStopIndex:s,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{o.gridColumnStartIndex=l,o.gridRowStartIndex=p,o.gridWidth=s-l+1,o.gridHeight=f-p+1;const m=o.gridWidth+c+(t.current===Kt.None?0:IL),h=o.gridHeight+d+(e.current===Kt.None?0:IL);let g=jL;h*m>1500&&(g=zL),g(a,i,u,r,o,e,t,n)}),[o,i,a,u,e,t,r,c,d,n])})({verticalScrollDirection:a,horizontalScrollDirection:l});return Hg((()=>{e.current&&e.current.resetAfterColumnIndex(0,!1)}),[e,f,m]),g((()=>{e.current&&e.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[n,t,e,d]),0===u.size.x?null:bs.jsx(mL,{"data-section-id":"DATA_GRID",ref:e,style:h,columnCount:u.size.x,columnWidth:i,height:t,rowCount:s.rowsOnCurrentPage,rowHeight:r,width:n,itemData:{showLastBorder:o,grid:m},onItemsRendered:b,estimatedRowHeight:r(),estimatedColumnWidth:i(),itemKey:OI,children:PI})};var qI=h(_I);function NI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const FI=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){NI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.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"}),r.createElement("use",{fillRule:"evenodd"})),jI=d(FI),zI=e=>{const[t,r]=u(!1);return Hg((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}},GI=()=>{const[e,t]=u(!1),{dataModel:r}=bR(),{interactions:n}=IC(),{isAdjustingWidth:o,setIsAdjustingWidth:i}=zI([r]);return{open:e,setOpen:t,handleOpenMenu:e=>{!n.active||JL(e)||o||t(!0)},setIsAdjustingWidth:i}};function $I(e,t){var r,n;const o=null!==(r=null===(n=t.expressionColor)||void 0===n?void 0:n.background)&&void 0!==r?r:e.dimensionValues.background,i=t.isLeftColumn?e.header.background:o,a=i===ug.Transparent?mm.WHITE:i,l=ye(e.grid.border),s=ye(a);return s.isInvalid()||l.isInvalid()||1===l.a?e.grid.border:function(e,t,r){return ye(e.r+(t.r-e.r)*r,e.g+(t.g-e.g)*r,e.b+(t.b-e.b)*r,e.a+(t.a-e.a)*r)}(s,l,l.a).getRGB()}const BI=({cellInfo:e,columnWidth:t,isLastColumn:r,overrideLeftGridWidth:n,setIsAdjustingWidth:o,shouldApplyIndentModeColumnWidth:i,tableWidth:a})=>{var l;const{interactions:s,translator:c}=IC(),{isActive:d}=eI(),{dataModel:p}=bR(),{styleService:f}=AC(),[,m]=u({});if(!(e.canBeResized&&!!s.active&&!d))return null;const h=$I(f,e);return bs.jsx(CS,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:h,updateWidthCallback:t=>{m({}),n&&void 0!==e.colIdx&&n(t,e.colIdx)},confirmWidthCallback:t=>{var r;i?p.applyIndentModeColumnWidth({...t,pixels:Math.min((null!=a?a:0)*xR,null!==(r=t.pixels)&&void 0!==r?r:0)}):p.applyColumnWidth(t,e)},setIsAdjustingWidth:o,isLeftColumn:e.isLeftColumn,accessibilityRelatedArgs:{translator:c,columnLabel:null!==(l=e.label)&&void 0!==l?l:""},direction:"ltr"})};function WI(e){return dy(e)}const HI=e=>e.scrollTop;function VI(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function YI(e){return gv("MuiPaper",e)}bv("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 UI=["className","component","elevation","square","variant"],KI=gS("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return hr({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&&hr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Sy("#fff",yS(t.elevation))}, ${Sy("#fff",yS(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),XI=t.forwardRef((function(e,t){const r=WI({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=Er(r,UI),u=hr({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Kv({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},YI,o)})(u);return bs.jsx(KI,hr({as:o,ownerState:u,className:nl(c.root,n),ref:t},s))}));const JI=bv("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ZI=["center","classes","className"];let QI,eM,tM,rM,nM=e=>e;const oM=va(QI||(QI=nM`
102
102
  0% {
103
103
  transform: scale(0);
104
104
  opacity: 0.1;
@@ -108,7 +108,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.le
108
108
  transform: scale(1);
109
109
  opacity: 0.3;
110
110
  }
111
- `)),PI=Vi(LI||(LI=MI`
111
+ `)),iM=va(eM||(eM=nM`
112
112
  0% {
113
113
  opacity: 1;
114
114
  }
@@ -116,7 +116,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.le
116
116
  100% {
117
117
  opacity: 0;
118
118
  }
119
- `)),kI=Vi(II||(II=MI`
119
+ `)),aM=va(tM||(tM=nM`
120
120
  0% {
121
121
  transform: scale(1);
122
122
  }
@@ -128,7 +128,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.le
128
128
  100% {
129
129
  transform: scale(1);
130
130
  }
131
- `)),OI=$x("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),TI=$x((function(e){const{className:r,classes:n,pulsate:o=!1,rippleX:i,rippleY:a,rippleSize:l,in:s,onExited:u,timeout:c}=e,[d,p]=t.useState(!1),f=ka(r,n.ripple,n.rippleVisible,o&&n.ripplePulsate),m={width:l,height:l,top:-l/2+a,left:-l/2+i},h=ka(n.child,d&&n.childLeaving,o&&n.childPulsate);return s||d||p(!0),t.useEffect((()=>{if(!s&&null!=u){const e=setTimeout(u,c);return()=>{clearTimeout(e)}}}),[u,s,c]),Yl.jsx("span",{className:f,style:m,children:Yl.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(AI||(AI=MI`
131
+ `)),lM=gS("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),sM=gS((function(e){const{className:r,classes:n,pulsate:o=!1,rippleX:i,rippleY:a,rippleSize:l,in:s,onExited:u,timeout:c}=e,[d,p]=t.useState(!1),f=nl(r,n.ripple,n.rippleVisible,o&&n.ripplePulsate),m={width:l,height:l,top:-l/2+a,left:-l/2+i},h=nl(n.child,d&&n.childLeaving,o&&n.childPulsate);return s||d||p(!0),t.useEffect((()=>{if(!s&&null!=u){const e=setTimeout(u,c);return()=>{clearTimeout(e)}}}),[u,s,c]),bs.jsx("span",{className:f,style:m,children:bs.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(rM||(rM=nM`
132
132
  opacity: 0;
133
133
  position: absolute;
134
134
 
@@ -171,4 +171,4 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.le
171
171
  animation-iteration-count: infinite;
172
172
  animation-delay: 200ms;
173
173
  }
174
- `),CI.rippleVisible,DI,550,(({theme:e})=>e.transitions.easing.easeInOut),CI.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),CI.child,CI.childLeaving,PI,550,(({theme:e})=>e.transitions.easing.easeInOut),CI.childPulsate,kI,(({theme:e})=>e.transitions.easing.easeInOut));var _I=t.forwardRef((function(e,r){const n=gI({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,l=Er(n,wI),[s,u]=t.useState([]),c=t.useRef(0),d=t.useRef(null);t.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[s]);const p=t.useRef(!1),f=qv(),m=t.useRef(null),h=t.useRef(null),g=t.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:a}=e;u((e=>[...e,Yl.jsx(TI,{classes:{ripple:ka(i.ripple,CI.ripple),rippleVisible:ka(i.rippleVisible,CI.rippleVisible),ripplePulsate:ka(i.ripplePulsate,CI.ripplePulsate),child:ka(i.child,CI.child),childLeaving:ka(i.childLeaving,CI.childLeaving),childPulsate:ka(i.childPulsate,CI.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},c.current)])),c.current+=1,d.current=a}),[i]),b=t.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:n=!1,center:i=o||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const l=a?null:h.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:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)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===m.current&&(m.current=()=>{g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})},f.start(80,(()=>{m.current&&(m.current(),m.current=null)}))):g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})}),[o,g,f]),v=t.useCallback((()=>{b({},{pulsate:!0})}),[b]),y=t.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&m.current)return m.current(),m.current=null,void f.start(0,(()=>{y(e,t)}));m.current=null,u((e=>e.length>0?e.slice(1):e)),d.current=t}),[f]);return t.useImperativeHandle(r,(()=>({pulsate:v,start:b,stop:y})),[v,b,y]),Yl.jsx(OI,hr({className:ka(CI.root,i.root,a),ref:h},l,{children:Yl.jsx(ec,{component:null,exit:!0,children:s})}))}));function qI(e){return mv("MuiButtonBase",e)}var NI=hv("MuiButtonBase",["root","disabled","focusVisible"]);const FI=["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"],jI=$x("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"},[`&.${NI.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),zI=t.forwardRef((function(e,r){const n=gI({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:m,onClick:h,onContextMenu:g,onDragLeave:b,onFocus:v,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:I,tabIndex:A=0,TouchRippleProps:M,touchRippleRef:D,type:P}=n,k=Er(n,FI),O=t.useRef(null),T=t.useRef(null),_=kv(T,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=Hv(),[z,G]=t.useState(!1);u&&z&&G(!1),t.useImperativeHandle(o,(()=>({focusVisible:()=>{G(!0),O.current.focus()}})),[]);const[$,B]=t.useState(!1);t.useEffect((()=>{B(!0)}),[]);const W=$&&!c&&!u;function H(e,t,r=d){return Pv((n=>{t&&t(n);return!r&&T.current&&T.current[e](n),!0}))}t.useEffect((()=>{z&&p&&!c&&$&&T.current.pulsate()}),[c,p,z,$]);const V=H("start",E),Y=H("stop",g),U=H("stop",b),K=H("stop",w),X=H("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=H("start",I),Z=H("stop",R),Q=H("stop",L),ee=H("stop",(e=>{F(e),!1===q.current&&G(!1),m&&m(e)}),!1),te=Pv((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&(G(!0),y&&y(e)),v&&v(e)})),re=()=>{const e=O.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=t.useRef(!1),oe=Pv((e=>{p&&!ne.current&&z&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!u&&(e.preventDefault(),h&&h(e))})),ie=Pv((e=>{p&&" "===e.key&&T.current&&z&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(k.href||k.to)&&(ae=f);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=u):(k.href||k.to||(le.role="button"),u&&(le["aria-disabled"]=u));const se=kv(r,j,O),ue=hr({},n,{centerRipple:i,component:s,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:A,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Yv({root:["root",t&&"disabled",r&&"focusVisible"]},qI,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Yl.jsxs(jI,hr({as:ae,className:ka(ce.root,l),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:U,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:u?-1:A,type:P},le,k,{children:[a,W?Yl.jsx(_I,hr({ref:_,center:i},M)):null]}))}));var GI=zI;function $I(e){return mv("MuiTypography",e)}hv("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const BI=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],WI=$x("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${ib(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>hr({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}))),HI={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},VI={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},YI=t.forwardRef((function(e,t){const r=gI({props:e,name:"MuiTypography"}),n=(e=>VI[e]||e)(r.color),o=sv(hr({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=HI}=o,f=Er(o,BI),m=hr({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||HI[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Yv({root:["root",i,"inherit"!==e.align&&`align${ib(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},$I,a)})(m);return Yl.jsx(WI,hr({as:h,ref:t,ownerState:m,className:ka(g.root,a)},f))}));var UI=YI;var KI=t.forwardRef((function(e,r){const{children:n,container:o,disablePortal:i=!1}=e,[a,l]=t.useState(null),s=kv(t.isValidElement(n)?Qv(n):null,r);if(Ev((()=>{i||l(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,i]),Ev((()=>{if(a&&!i)return Dv(r,a),()=>{Dv(r,null)}}),[r,a,i]),i){if(t.isValidElement(n)){const e={ref:s};return t.cloneElement(n,e)}return Yl.jsx(t.Fragment,{children:n})}return Yl.jsx(t.Fragment,{children:a?j.createPortal(n,a):a})}));const XI=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],JI={entering:{opacity:1},entered:{opacity:1}},ZI=t.forwardRef((function(e,r){const n=dx(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:s,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:m,onExiting:h,style:g,timeout:b=o,TransitionComponent:v=Uu}=e,y=Er(e,XI),x=t.useRef(null),S=kv(x,Qv(l),r),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=E(p),w=E(((e,t)=>{bI(e);const r=vI({style:g,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),R=E(d),L=E(h),I=E((e=>{const t=vI({style:g,timeout:b,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),A=E(m);return Yl.jsx(v,hr({appear:a,in:u,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:I,onExited:A,onExiting:L,addEndListener:e=>{i&&i(x.current,e)},timeout:b},y,{children:(e,r)=>t.cloneElement(l,hr({style:hr({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},JI[e],g,l.props.style),ref:S},r))}))}));var QI=ZI;function eA(e){return mv("MuiBackdrop",e)}hv("MuiBackdrop",["root","invisible"]);const tA=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],rA=$x("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>hr({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"}))),nA=t.forwardRef((function(e,t){var r,n,o;const i=gI({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=QI,transitionDuration:g}=i,b=Er(i,tA),v=hr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Yv({root:["root",r&&"invisible"]},eA,t)})(v),x=null!=(r=f.root)?r:c.root;return Yl.jsx(h,hr({in:p,timeout:g},b,{children:Yl.jsx(rA,hr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:s,className:ka(y.root,l,null==x?void 0:x.className),ownerState:hr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var oA=nA;var iA=hv("MuiBox",["root"]);const aA=ux(),lA=function(e={}){const{themeId:r,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:i}=e,a=Xi("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Qb);return t.forwardRef((function(e,t){const l=av(n),s=sv(e),{className:u,component:c="div"}=s,d=Er(s,pv);return Yl.jsx(a,hr({as:c,ref:t,className:ka(u,i?i(o):o),theme:r&&l[r]||l},d))}))}({themeId:Yg,defaultTheme:aA,defaultClassName:iA.root,generateClassName:dv.generate});var sA=lA;function uA(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function cA(e){return parseInt(Mv(e).getComputedStyle(e).paddingRight,10)||0}function dA(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&uA(e,o)}))}function pA(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function fA(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Av(e);return t.body===e?Mv(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Vv(Av(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${cA(n)+e}px`;const t=Av(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${cA(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Av(n).body;else{const t=n.parentElement,r=Mv(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const mA=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function hA(e){const t=[],r=[];return Array.from(e.querySelectorAll(mA)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function gA(){return!0}function bA(e){const{children:r,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:a=hA,isEnabled:l=gA,open:s}=e,u=t.useRef(!1),c=t.useRef(null),d=t.useRef(null),p=t.useRef(null),f=t.useRef(null),m=t.useRef(!1),h=t.useRef(null),g=kv(Qv(r),h),b=t.useRef(null);t.useEffect((()=>{s&&h.current&&(m.current=!n)}),[n,s]),t.useEffect((()=>{if(!s||!h.current)return;const e=Av(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),m.current&&h.current.focus()),()=>{i||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[s]),t.useEffect((()=>{if(!s||!h.current)return;const e=Av(h.current),t=t=>{b.current=t,!o&&l()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!l()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!m.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=a(h.current)),r.length>0){var n,i;const e=Boolean((null==(n=b.current)?void 0:n.shiftKey)&&"Tab"===(null==(i=b.current)?void 0:i.key)),t=r[0],o=r[r.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const n=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[n,o,i,l,s,a]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0};return Yl.jsxs(t.Fragment,{children:[Yl.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),t.cloneElement(r,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0,f.current=e.target;const t=r.props.onFocus;t&&t(e)}}),Yl.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const vA=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&uA(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);dA(t,e.mount,e.modalRef,n,!0);const o=pA(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=pA(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=fA(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=pA(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&uA(e.modalRef,t),dA(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&uA(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function yA(e){const{container:r,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:i=vA,closeAfterTransition:a=!1,onTransitionEnter:l,onTransitionExited:s,children:u,onClose:c,open:d,rootRef:p}=e,f=t.useRef({}),m=t.useRef(null),h=t.useRef(null),g=kv(h,p),[b,v]=t.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)},C=Pv((()=>{const e=function(e){return"function"==typeof e?e():e}(r)||Av(m.current).body;i.add(S(),e),h.current&&E()})),w=t.useCallback((()=>i.isTopModal(S())),[i]),R=Pv((e=>{m.current=e,e&&(d&&w()?E():h.current&&uA(h.current,x))})),L=t.useCallback((()=>{i.remove(S(),x)}),[x,i]);t.useEffect((()=>()=>{L()}),[L]),t.useEffect((()=>{d?C():y&&a||L()}),[d,L,y,a,C]);const I=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},A=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Kv(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=hr({},r,t);return hr({role:"presentation"},n,{onKeyDown:I(n),ref:g})},getBackdropProps:(e={})=>hr({"aria-hidden":!0},e,{onClick:A(e),open:d}),getTransitionProps:()=>({onEnter:Iv((()=>{v(!1),l&&l()}),null==u?void 0:u.props.onEnter),onExited:Iv((()=>{v(!0),s&&s(),a&&L()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:R,isTopModal:w,exited:b,hasTransition:y}}function xA(e){return mv("MuiModal",e)}hv("MuiModal",["root","hidden","backdrop"]);const SA=["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"],EA=$x("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>hr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),CA=$x(oA,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),wA=t.forwardRef((function(e,r){var n,o,i,a,l,s;const u=gI({name:"MuiModal",props:e}),{BackdropComponent:c=CA,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:m,container:h,component:g,components:b={},componentsProps:v={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:I,open:A,slotProps:M,slots:D}=u,P=Er(u,SA),k=hr({},u,{closeAfterTransition:f,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:O,getBackdropProps:T,getTransitionProps:_,portalRef:q,isTopModal:N,exited:F,hasTransition:j}=yA(hr({},k,{rootRef:r})),z=hr({},k,{exited:F}),G=(e=>{const{open:t,exited:r,classes:n}=e;return Yv({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},xA,n)})(z),$={};if(void 0===m.props.tabIndex&&($.tabIndex="-1"),j){const{onEnter:e,onExited:t}=_();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(o=null==D?void 0:D.root)?o:b.Root)?n:EA,W=null!=(i=null!=(a=null==D?void 0:D.backdrop)?a:b.Backdrop)?i:c,H=null!=(l=null==M?void 0:M.root)?l:v.root,V=null!=(s=null==M?void 0:M.backdrop)?s:v.backdrop,Y=Zv({elementType:B,externalSlotProps:H,externalForwardedProps:P,getSlotProps:O,additionalProps:{ref:r,as:g},ownerState:z,className:ka(p,null==H?void 0:H.className,null==G?void 0:G.root,!z.open&&z.exited&&(null==G?void 0:G.hidden))}),U=Zv({elementType:W,externalSlotProps:V,additionalProps:d,getSlotProps:e=>T(hr({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:ka(null==V?void 0:V.className,null==d?void 0:d.className,null==G?void 0:G.backdrop),ownerState:z});return L||A||j&&!F?Yl.jsx(KI,{ref:q,container:h,disablePortal:E,children:Yl.jsxs(B,hr({},Y,{children:[!R&&c?Yl.jsx(W,hr({},U)):null,Yl.jsx(bA,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:N,open:A,children:t.cloneElement(m,$)})]}))}):null}));var RA=wA;var LA=hv("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const IA=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function AA(e){return`scale(${e}, ${e**2})`}const MA={entering:{opacity:1,transform:AA(1)},entered:{opacity:1,transform:"none"}},DA="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),PA=t.forwardRef((function(e,r){const{addEndListener:n,appear:o=!0,children:i,easing:a,in:l,onEnter:s,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:m,timeout:h="auto",TransitionComponent:g=Uu}=e,b=Er(e,IA),v=qv(),y=t.useRef(),x=dx(),S=t.useRef(null),E=kv(S,Qv(i),r),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},w=C(c),R=C(((e,t)=>{bI(e);const{duration:r,delay:n,easing:o}=vI({style:m,timeout:h,easing:a},{mode:"enter"});let i;"auto"===h?(i=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=i):i=r,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:n}),x.transitions.create("transform",{duration:DA?i:.666*i,delay:n,easing:o})].join(","),s&&s(e,t)})),L=C(u),I=C(f),A=C((e=>{const{duration:t,delay:r,easing:n}=vI({style:m,timeout:h,easing:a},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:DA?o:.666*o,delay:DA?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=AA(.75),d&&d(e)})),M=C(p);return Yl.jsx(g,hr({appear:o,in:l,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:A,onExited:M,onExiting:I,addEndListener:e=>{"auto"===h&&v.start(y.current||0,e),n&&n(S.current,e)},timeout:"auto"===h?null:h},b,{children:(e,r)=>t.cloneElement(i,hr({style:hr({opacity:0,transform:AA(.75),visibility:"exited"!==e||l?void 0:"hidden"},MA[e],m,i.props.style),ref:E},r))}))}));PA.muiSupportAuto=!0;var kA=PA;function OA(e){return mv("MuiLink",e)}var TA=hv("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const _A={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var qA=({theme:e,ownerState:t})=>{const r=(e=>_A[e]||e)(t.color),n=lb(e,`palette.${r}`,!1)||t.color,o=lb(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:yy(n,.4)};const NA=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],FA=$x(UI,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${ib(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>hr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&hr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:qA({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"},[`&.${TA.focusVisible}`]:{outline:"auto"}}))),jA=t.forwardRef((function(e,r){const n=gI({props:e,name:"MuiLink"}),{className:o,color:i="primary",component:a="a",onBlur:l,onFocus:s,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:p}=n,f=Er(n,NA),{isFocusVisibleRef:m,onBlur:h,onFocus:g,ref:b}=Hv(),[v,y]=t.useState(!1),x=kv(r,b),S=hr({},n,{color:i,component:a,focusVisible:v,underline:c,variant:d}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return Yv({root:["root",`underline${ib(o)}`,"button"===r&&"button",n&&"focusVisible"]},OA,t)})(S);return Yl.jsx(FA,hr({color:i,className:ka(E.root,o),classes:u,component:a,onBlur:e=>{h(e),!1===m.current&&y(!1),l&&l(e)},onFocus:e=>{g(e),!0===m.current&&y(!0),s&&s(e)},ref:x,ownerState:S,variant:d,sx:[...Object.keys(_A).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},f))}));var zA=jA;var GA=t.createContext({});function $A(e){return mv("MuiList",e)}hv("MuiList",["root","padding","dense","subheader"]);const BA=["children","className","component","dense","disablePadding","subheader"],WA=$x("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>hr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var HA=t.forwardRef((function(e,r){const n=gI({props:e,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:l=!1,disablePadding:s=!1,subheader:u}=n,c=Er(n,BA),d=t.useMemo((()=>({dense:l})),[l]),p=hr({},n,{component:a,dense:l,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Yv({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},$A,t)})(p);return Yl.jsx(GA.Provider,{value:d,children:Yl.jsxs(WA,hr({as:a,className:ka(f.root,i),ref:r,ownerState:p},c,{children:[u,o]}))})}));var VA=hv("MuiListItemIcon",["root","alignItemsFlexStart"]);var YA=hv("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const UA=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function KA(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function XA(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function JA(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function ZA(e,t,r,n,o,i){let a=!1,l=o(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&JA(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}var QA=t.forwardRef((function(e,r){const{actions:n,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:s=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,p=Er(e,UA),f=t.useRef(null),m=t.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ev((()=>{o&&f.current.focus()}),[o]),t.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&r){const r=`${Vv(Av(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}})),[]);const h=kv(f,r);let g=-1;t.Children.forEach(a,((e,r)=>{t.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=r),g===r&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===r&&(g+=1,g>=a.length&&(g=-1))}));const b=t.Children.map(a,((e,r)=>{if(r===g){const r={};return i&&(r.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(r.tabIndex=0),t.cloneElement(e,r)}return e}));return Yl.jsx(HA,hr({role:"menu",ref:h,className:l,onKeyDown:e=>{const t=f.current,r=e.key,n=Av(t).activeElement;if("ArrowDown"===r)e.preventDefault(),ZA(t,n,u,s,KA);else if("ArrowUp"===r)e.preventDefault(),ZA(t,n,u,s,XA);else if("Home"===r)e.preventDefault(),ZA(t,null,u,s,KA);else if("End"===r)e.preventDefault(),ZA(t,null,u,s,XA);else if(1===r.length){const o=m.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=n&&!o.repeating&&JA(n,o);o.previousKeyMatched&&(l||ZA(t,n,!1,s,KA,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:o?0:-1},p,{children:b}))}));function eM(e){return mv("MuiPopover",e)}hv("MuiPopover",["root","paper"]);const tM=["onEntering"],rM=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],nM=["slotProps"];function oM(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function iM(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function aM(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function lM(e){return"function"==typeof e?e():e}const sM=$x(RA,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),uM=$x(EI,{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 cM=t.forwardRef((function(e,r){var n,o,i;const a=gI({props:e,name:"MuiPopover"}),{action:l,anchorEl:s,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:f,container:m,elevation:h=8,marginThreshold:g=16,open:b,PaperProps:v={},slots:y,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=kA,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=a,L=Er(a.TransitionProps,tM),I=Er(a,rM),A=null!=(n=null==x?void 0:x.paper)?n:v,M=t.useRef(),D=kv(M,A.ref),P=hr({},a,{anchorOrigin:u,anchorReference:d,elevation:h,marginThreshold:g,externalPaperSlotProps:A,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),k=(e=>{const{classes:t}=e;return Yv({root:["root"],paper:["paper"]},eM,t)})(P),O=t.useCallback((()=>{if("anchorPosition"===d)return c;const e=lM(s),t=(e&&1===e.nodeType?e:Av(M.current).body).getBoundingClientRect();return{top:t.top+oM(t,u.vertical),left:t.left+iM(t,u.horizontal)}}),[s,u.horizontal,u.vertical,c,d]),T=t.useCallback((e=>({vertical:oM(e,S.vertical),horizontal:iM(e,S.horizontal)})),[S.horizontal,S.vertical]),_=t.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=T(t);if("none"===d)return{top:null,left:null,transformOrigin:aM(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=Mv(lM(s)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,r.vertical+=e}else if(null!==g&&a>c){const e=a-c;o-=e,r.vertical+=e}if(null!==g&&i<g){const e=i-g;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:aM(r)}}),[s,d,O,T,g]),[q,N]=t.useState(b),F=t.useCallback((()=>{const e=M.current;if(!e)return;const t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[_]);t.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[s,R,F]);t.useEffect((()=>{b&&F()})),t.useImperativeHandle(l,(()=>b?{updatePosition:()=>{F()}}:null),[b,F]),t.useEffect((()=>{if(!b)return;const e=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}((()=>{F()})),t=Mv(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,b,F]);let j=C;"auto"!==C||E.muiSupportAuto||(j=void 0);const z=m||(s?Av(lM(s)).body:void 0),G=null!=(o=null==y?void 0:y.root)?o:sM,$=null!=(i=null==y?void 0:y.paper)?i:uM,B=Zv({elementType:$,externalSlotProps:hr({},A,{style:q?A.style:hr({},A.style,{opacity:0})}),additionalProps:{elevation:h,ref:D},ownerState:P,className:ka(k.paper,null==A?void 0:A.className)}),W=Zv({elementType:G,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:I,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:z,open:b},ownerState:P,className:ka(k.root,f)}),{slotProps:H}=W,V=Er(W,nM);return Yl.jsx(G,hr({},V,!Uv(G)&&{slotProps:H,disableScrollLock:R},{children:Yl.jsx(E,hr({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:j},L,{children:Yl.jsx($,hr({},B,{children:p}))}))}))}));function dM(e){return mv("MuiMenu",e)}hv("MuiMenu",["root","paper","list"]);const pM=["onEntering"],fM=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],mM={vertical:"top",horizontal:"right"},hM={vertical:"top",horizontal:"left"},gM=$x(cM,{shouldForwardProp:e=>Gx(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),bM=$x(uM,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),vM=$x(QA,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var yM=t.forwardRef((function(e,r){var n,o;const i=gI({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:s,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:f={},PopoverClasses:m,transitionDuration:h="auto",TransitionProps:{onEntering:g}={},variant:b="selectedMenu",slots:v={},slotProps:y={}}=i,x=Er(i.TransitionProps,pM),S=Er(i,fM),E=(()=>{const e=t.useContext(iy);return null!=e&&e})(),C=hr({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:h,TransitionProps:x,variant:b}),w=(e=>{const{classes:t}=e;return Yv({root:["root"],paper:["paper"],list:["list"]},dM,t)})(C),R=a&&!u&&p,L=t.useRef(null);let I=-1;t.Children.map(l,((e,r)=>{t.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===I)&&(I=r))}));const A=null!=(n=v.paper)?n:bM,M=null!=(o=y.paper)?o:f,D=Zv({elementType:v.root,externalSlotProps:y.root,ownerState:C,className:[w.root,s]}),P=Zv({elementType:A,externalSlotProps:M,ownerState:C,className:w.paper});return Yl.jsx(gM,hr({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?mM:hM,slots:{paper:A,root:v.root},slotProps:{root:D,paper:P},open:p,ref:r,transitionDuration:h,TransitionProps:hr({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,{direction:E?"rtl":"ltr"}),g&&g(e,t)}},x),ownerState:C},S,{classes:m,children:Yl.jsx(vM,hr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:L,autoFocus:a&&(-1===I||u),autoFocusItem:R,variant:b},c,{className:ka(w.list,c.className),children:l}))}))}));function xM(e){return mv("MuiMenuItem",e)}var SM=hv("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const EM=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],CM=$x(GI,{shouldForwardProp:e=>Gx(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>hr({},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"}},[`&.${SM.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yy(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${SM.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yy(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${SM.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:yy(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})`:yy(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${SM.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${SM.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${LA.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${LA.inset}`]:{marginLeft:52},[`& .${YA.root}`]:{marginTop:0,marginBottom:0},[`& .${YA.inset}`]:{paddingLeft:36},[`& .${VA.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&hr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${VA.root} svg`]:{fontSize:"1.25rem"}}))));var wM=t.forwardRef((function(e,r){const n=gI({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:d,className:p}=n,f=Er(n,EM),m=t.useContext(GA),h=t.useMemo((()=>({dense:a||m.dense||!1,disableGutters:s})),[m.dense,a,s]),g=t.useRef(null);Ev((()=>{o&&g.current&&g.current.focus()}),[o]);const b=hr({},n,{dense:h.dense,divider:l,disableGutters:s}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return hr({},a,Yv({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},xM,a))})(n),y=kv(g,r);let x;return n.disabled||(x=void 0!==d?d:-1),Yl.jsx(GA.Provider,{value:h,children:Yl.jsx(CM,hr({ref:y,role:c,tabIndex:x,component:i,focusVisibleClassName:ka(v.focusVisible,u),className:ka(v.root,p)},f,{ownerState:b,classes:v}))})}));const RM=$x(sA,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:r,shouldShowMenuIcon:n,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:n?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?r:t}}))),LM=$x("div")({position:"absolute",left:0,bottom:0}),IM=$x("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...sg,justifyContent:null!=e?e:sg.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),AM=$x("div")((()=>({...sg}))),MM=$x("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:r,fontStyle:n,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:r,fontSize:e,fontFamily:t,fontStyle:n,textDecoration:o}))),DM=$x(yM)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),PM=$x(wM,{shouldForwardProp:e=>!["isActive"].includes(e)})((({theme:e,isActive:t})=>({width:220,maxHeight:32,borderRadius:e.spacing(.5),margin:e.spacing(.25,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between",position:"relative",overflow:"hidden ",boxSizing:"border-box",background:t?"rgba(0, 0, 0, 0.05)":"transparent","&:hover":{".indent-mode-dropdown-more":{opacity:1}}}))),kM=$x("span")({textOverflow:"ellipsis",overflow:"hidden"}),OM=$x("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:20,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"})));var TM;!function(e){e.Expand="Expand",e.Collapse="Collapse"}(TM||(TM={}));const _M=(e,t)=>({qExcludeList:t===TM.Expand,qPos:{qDimName:e,qElemNo:[]}}),qM=`${iC}/qExpansionState`,NM=({model:e,qExpansionState:t,qEffectiveDimensionName:r,action:n})=>async()=>{const o=(({qEffectiveDimensionName:e,oldExpansionState:t,action:r})=>{const n=null==t?void 0:t.findIndex((t=>{var r;return(null===(r=t.qPos)||void 0===r?void 0:r.qDimName)===e}));return{expansionData:_M(e,r),index:n}})({qEffectiveDimensionName:r,oldExpansionState:t,action:n});await(async({model:e,newExpansionState:t,errorMsg:r})=>{const{index:n,expansionData:o}=t;try{let t,r=qM,i="Add";void 0===n?t=JSON.stringify([o]):-1===n?(r=`${qM}/-`,t=JSON.stringify(o)):(r=`${qM}/${n}`,i="Replace",t=JSON.stringify(o)),await e.applyPatches([{qPath:r,qOp:i,qValue:t}],!0)}catch(e){console.error(r,e)}})({model:e,newExpansionState:o,errorMsg:`Failed to ${n} dimension`})},FM=({model:e,effectivePropertiesService:t,cell:r,env:n})=>{if(!n.flags.isEnabled("CLIENT_IM_6273_EXPAND_OR_COLLAPSE_DIM")||void 0===r.qEffectiveDimensionName)return;const o={model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r.qEffectiveDimensionName};return{expandCallback:NM({...o,action:TM.Expand}),collapseCallback:NM({...o,action:TM.Collapse})}},jM={[uE.Sorting]:!0,[uE.Selections]:!0,[uE.Searching]:!0},zM=({cell:e,style:t,isFirstColumn:r,isLastColumn:n,isLastRow:o,changeSortOrder:i,iconsVisibilityStatus:a,columnWidth:l,overrideLeftGridWidth:s,shouldApplyIndentModeColumnWidth:u,tableWidth:d})=>{var p;const f=c(null),{styleService:m,layoutService:h,effectivePropertiesService:g}=rC(),{app:b,interactions:v,embed:y,translator:x,env:S,model:E}=QE(),{fontSize:C,fontFamily:w,fontStyle:R,fontWeight:L,textDecoration:I,color:A,background:M,hoverBackground:D,activeBackground:P}=m.header,k=c(null),{shouldShowLockIcon:O,shouldShowMenuIcon:T}=a,{open:_,setOpen:q,handleOpenMenu:N,setIsAdjustingWidth:F}=fI(),j={sortFromMenu:async(t,r)=>{t.stopPropagation(),await i(e,r)}},z={embed:y,listboxRef:f,sortCriteria:h.searchSortFromDimension&&e.isDim?g.getSortCriteriaForDimension(e.dimensionInfoIndex):void 0},G={app:b,qStateName:h.layout.qStateName},{labelTextAlign:$}=null!==(p=h.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==p?p:{},B=VL($,"flex-start");return Yl.jsxs(RM,{className:Zt,title:e.label,interactions:v,background:_?P:M,hoverBackground:D,shouldShowMenuIcon:T,isDimension:e.isDim,style:{...t,...cg,...hg(e,o,r,n,m.grid.border),color:A},"data-testid":"title-cell",onClick:N,children:[Yl.jsxs(IM,{children:[O?Yl.jsx(AM,{children:Yl.jsx(dI,{height:12})}):null,Yl.jsx(MM,{fontFamily:w,fontSize:C,fontStyle:R,fontWeight:L,textDecoration:I,justifyContent:B,children:Yl.jsx("span",{style:dg,children:e.label})})]}),e.isDim?Yl.jsxs(Yl.Fragment,{children:[Yl.jsx(pE,{headerData:e,translator:x,anchorRef:k,open:_,setOpen:q,interactions:v,menuAvailabilityFlags:jM,sortRelatedArgs:j,searchRelatedArgs:z,selectionRelatedArgs:G,expandOrCollapseArgs:FM({model:E,effectivePropertiesService:g,cell:e,env:S}),shouldShowMenuIcon:T,env:S,model:E&&"setActiveField"in E?E:void 0}),Yl.jsx(LM,{ref:f}),Yl.jsx(LM,{ref:k})]}):null,Yl.jsx(hI,{cellInfo:{...e,isLeftColumn:!0},columnWidth:l,isLastColumn:n,overrideLeftGridWidth:s,setIsAdjustingWidth:F,shouldApplyIndentModeColumnWidth:u,tableWidth:d})]})},GM=({rowSpan:e,columnSpan:t})=>{const{styleService:r}=rC();return e>0&&t>0?Yl.jsx("div",{style:{...ug,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"0px 1px 0px 0px",borderColor:r.grid.border,background:r.grid.background},"data-testid":"empty-header-cell"}):null};function $M(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const BM=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){$M(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})),WM=d(BM);function HM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const VM=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){HM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),r.createElement("use",{fillRule:"evenodd"})),YM=d(VM),UM=({tableWidth:e,leftGridWidth:t,overrideLeftGridWidth:r})=>{const{styleService:n}=rC(),{interactions:o,translator:i}=QE(),{isActive:a}=LL(),{dataModel:l}=Bw(),{setIsAdjustingWidth:s}=pI([l]);if(!(!!o.active&&!a))return null;const u=mI(n,{isLeftColumn:!0});return Yl.jsx(Kx,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:u,columnWidth:t,updateWidthCallback:t=>{r(Math.min(t,e*Vw))},confirmWidthCallback:n=>{var o;if(n.type===rr.FitToContent)return void l.applyIndentModeColumnWidth({type:rr.Auto});const i=Math.min(null!==(o=n.pixels)&&void 0!==o?o:t,e*Vw);r(i),l.applyIndentModeColumnWidth({type:rr.Pixels,pixels:i})},setIsAdjustingWidth:s,accessibilityRelatedArgs:{translator:i,columnLabel:i.get("SNPivotTable.IndentMode.Rows")},direction:"ltr"})};function KM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const XM=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){KM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.createElement("path",{d:"M3 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})),JM=d(XM),ZM=({cell:e,changeSortOrder:t})=>{const r=c(null),n=c(null),{app:o,interactions:i,embed:a,translator:l,env:s,model:u}=QE(),{layoutService:d,effectivePropertiesService:p}=rC(),{open:f,setOpen:m,handleOpenMenu:h}=fI();return Yl.jsxs(PM,{onClick:h,isActive:f,children:[Yl.jsx(kM,{children:e.label}),Yl.jsxs(OM,{className:"indent-mode-dropdown-more",visible:f,children:[Yl.jsx(JM,{}),e.isDim?Yl.jsxs(Yl.Fragment,{children:[Yl.jsx(pE,{headerData:e,translator:l,anchorRef:r,open:f,setOpen:m,interactions:i,menuAvailabilityFlags:jM,sortRelatedArgs:{sortFromMenu:async(r,n)=>{r.stopPropagation(),await t(e,n)}},searchRelatedArgs:{embed:a,listboxRef:n},selectionRelatedArgs:{app:o,qStateName:d.layout.qStateName},expandOrCollapseArgs:FM({model:u,effectivePropertiesService:p,cell:e,env:s}),shouldShowMenuIcon:!1,env:s,model:u&&"setActiveField"in u?u:void 0}),Yl.jsx(LM,{ref:n}),Yl.jsx(LM,{ref:r})]}):null]})]})},QM=({idx:e,menu:t,menuItems:r,isOnlyOneRow:n})=>{var o,i;const a=(null===(o=r.at(-1))||void 0===o?void 0:o.id)===lC,l=e+1<r.length&&(null===(i=r[e+1])||void 0===i?void 0:i.id)===lC;return!(n&&a&&l)&&((null==t?void 0:t.id)!==lC&&e<r.length-1)},eD=({menuItems:e,changeSortOrder:t,overrideLeftGridWidth:r,leftGridWidth:n,tableWidth:o})=>{const{styleService:i}=rC(),{interactions:a,translator:l}=QE(),{dataModel:s,gridSectionsData:{headersData:d}}=Bw(),[p,f]=u(!1),m=c(null),{headerCellHeight:h}=i,{color:g,background:b,hoverBackground:v,activeBackground:y,fontFamily:x,fontSize:S,fontStyle:E,fontWeight:C,textDecoration:w}=i.header,{isAdjustingWidth:R}=pI([s]),L=e=>{e.stopPropagation()},I={height:h,gridColumn:`1 / span ${d.size.x}`,gridRow:d.size.y,zIndex:d.size.x-0};return Yl.jsxs(RM,{isDimension:!0,background:p?y:b,interactions:a,hoverBackground:v,style:{...I,...cg,color:g},onClick:e=>{!a.active||CL(e)||R||f(!p)},"data-testid":"indentModeHeaderCellWrapper",children:[Yl.jsxs(IM,{justifyContent:"flex-start",children:[Yl.jsx(MM,{fontFamily:x,fontSize:S,fontStyle:E,fontWeight:C,textDecoration:w,justifyContent:"flex-start",children:Yl.jsx("span",{style:dg,children:l.get("SNPivotTable.IndentMode.Rows")})}),p?Yl.jsx(YM,{}):Yl.jsx(WM,{}),Yl.jsx(LM,{ref:m})]}),Yl.jsx(DM,{open:p,anchorEl:m.current,children:e.map(((r,n)=>[r&&r.id!==lC&&Yl.jsx("li",{role:"presentation",onClick:L,onKeyDown:L,children:Yl.jsx(ZM,{cell:r,changeSortOrder:t})}),QM({idx:n,menu:r,menuItems:e,isOnlyOneRow:1===d.size.y})&&Yl.jsx(nS,{"data-testid":"group-divider",variant:"middle"})]))}),Yl.jsx(UM,{tableWidth:o,leftGridWidth:n,overrideLeftGridWidth:r})]})},tD={display:"grid",width:"fit-content"},rD=({tableWidth:e,leftGridWidth:t,columnWidths:r,rowHight:n,changeSortOrder:o,getHeaderCellsIconsVisibilityStatus:i,height:a,overrideLeftGridWidth:l})=>{const{layoutService:s}=rC(),{gridSectionsData:{headersData:u}}=Bw();return Yl.jsxs("div",{"data-testid":"HEADER_GRID",style:{...tD,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:u.data.map((()=>`${n}px`)).join(" "),height:a},children:[u.size.y>1&&Yl.jsx(GM,{columnSpan:u.size.x-1,rowSpan:u.size.y-1}),u.data.map(((a,c)=>{let d=[];if(s.isIndentModeEnabled&&u.size.x>1&&c+1===u.size.y){const r=u.data.at(-1);return d.push(Yl.jsx(eD,{menuItems:r[0],changeSortOrder:o,overrideLeftGridWidth:l,leftGridWidth:t,tableWidth:e},r[0][0].id)),d}return d=a.reduce(((t,a,d)=>{if(a){const p=i(d,a.isLocked,a.label),f=s.isIndentModeEnabled&&1===u.size.x;t.push(Yl.jsx(zM,{style:{width:r[d],height:n,gridColumn:s.isIndentModeEnabled&&u.size.x>1?2:d+1,gridRow:c+1,zIndex:u.size.x-d},isLastRow:c===u.size.y-1,isFirstColumn:0===d,isLastColumn:d===u.size.x-1,changeSortOrder:o,cell:a,iconsVisibilityStatus:p,columnWidth:r[d],overrideLeftGridWidth:l,shouldApplyIndentModeColumnWidth:f,tableWidth:e},a.id))}return t}),[]),d}))]})};var nD=h(rD);const oD=(e,t,r,n)=>{const{layoutService:o}=rC();g((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,r,n,o])},iD=(e,t)=>{$g((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},aD=(e,t)=>{const{isLast:r,list:n,listValues:o}=t;return r?n[e]:o[e]},lD=(e,t,r)=>{var n;const o=r?"flex-start":"center";var i,a;if(e.representation.type===Nt.Image)return null!==(i=null===(a=e.representation.resolvedImagePosition)||void 0===a?void 0:a.horizontal)&&void 0!==i?i:o;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){var l;const{labelTextAlign:r}=null!==(l=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==l?l:{};return VL(r,o)}const{textAlign:s}=null!==(n=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==n?n:{};return VL(s,o)},sD=()=>{},uD=({children:e,text:t,reactWindowStyle:r,cell:n,data:o,showTotalCellDivider:i,isLastRow:a,isLastColumn:l,isLeftColumn:s,isCellSelected:u,isAdjustingWidth:c,index:d})=>{var p;const{styleService:f,layoutService:m}=rC(),{interactions:h}=QE(),{isLocked:g,createMouseDownHandler:b,createMouseOverHandler:v}=LL(),{showLastBorder:y}=o,x=g(n)||n.isLockedByDimension,S=!(x||!h.active||!h.select||n.isEmpty||n.isNull||n.isPseudoDimension||n.isTotal||c),E=S?b(d,(e=>aD(e,o))):void 0,C=S?v(d):void 0;return Yl.jsx("div",{className:Zt,title:h.passive?t:void 0,style:{...r,...mg(a,l,f.grid.border,y),...gg({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:f.grid.divider}),...cg,padding:"0px 4px",cursor:qL(S),background:PL({styleService:f,isCellSelected:u,cell:n,isCellLocked:x}),zIndex:s?void 0:m.size.x-n.x,justifyContent:lD(n,m,s),display:"flex",...m.isIndentModeEnabled&&s&&{paddingLeft:Math.max(4,24*(null!==(p=n.indentLevel)&&void 0!==p?p:0))}},"aria-hidden":"true",onMouseDown:E,onMouseOver:C,onKeyUp:sD,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":n.x,"data-page-x":n.pageX,"data-y":n.y,"data-page-y":n.pageY,"data-cell-type":n.ref.qType,"data-dimension-info-index":n.dimensionInfoIndex,children:e})},cD=e=>{e.stopPropagation()},dD=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:cD,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}}),pD=({href:e,text:t,interactions:n,color:o})=>r.createElement(Dp,dD({href:e,text:t,interactions:n,color:o}),t),fD=G();fD.use(z),fD.renderer.prio(["canvas"]);const mD=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`,hD=({href:e,text:t,labelStructure:r,interactions:n,color:o})=>Yl.jsxs("span",{children:[Yl.jsx(zA,{...dD({href:e,text:t,interactions:n,color:o}),children:null!=r&&r.maskedValue?r.maskedValue:null==r?void 0:r.originalValue}),!!r&&mD(r)]}),gD=({children:e,textStyle:t})=>Yl.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),bD=({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n})=>{const{isActive:o}=LL(),{interactions:i}=QE();let a=n?(e=>{const{representation:{text:t,labelStructure:r}}=e;if(!r||!r.originalValue)return t;const{originalValue:n,maskedValue:o,suffix:i,delimeter:a}=r;return`${0!==o.length?o:n} ${i?a:""} ${i}`.trim()})(e):e.representation.text;if(e.isEmpty)return null;const l=(({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n})=>({...dg,...pg(n?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:kL({cell:e,styleService:t,isCellSelected:r}),fontWeight:OL({cell:e,styleService:t}),fontStyle:TL({cell:e,styleService:t}),textDecoration:_L({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n});if(e.representation.type===Nt.Image&&!e.isTotal)return Yl.jsx(HL,{representation:e.representation,isLeftColumn:n,styleService:t,textStyle:l,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand});if(e.representation.type===Nt.Link&&!o&&!e.isTotal){const t=n&&e.representation.labelStructure?hD:pD;a=Yl.jsx(t,{text:e.representation.text,labelStructure:e.representation.labelStructure,href:e.representation.url,interactions:i,color:e.expressionColor.color})}return Yl.jsx(gD,{textStyle:l,children:a})},vD=e=>{const t=e.isLeftColumn?"flex-start":"center";var r;return e.representation.type!==Nt.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(r=e.representation.resolvedImagePosition)||void 0===r?void 0:r.vertical},yD=({index:e,style:t,data:r})=>{const{styleService:n,layoutService:o}=rC(),{isSelected:i}=LL(),{isLeftColumn:a=!1,showLastBorder:l,itemCount:s,isLast:u,totalDividerIndex:c}=r,{isAdjustingWidth:d,setIsAdjustingWidth:p}=pI([r]),f=aD(e,r),m=a?e===s-1:u,h=a?u:e===s-1,g=fL(f,c,o.isIndentModeEnabled);if(void 0===f){const{background:r}=n.dimensionValues;return Yl.jsx(mL,{style:{...t,background:r},index:e,isLastRow:m,isLastColumn:h,showLastBorder:l,isLeftColumn:a,showTotalCellDivider:g})}const b=i(f);return Yl.jsxs(uD,{text:f.representation.text,reactWindowStyle:t,isLeftColumn:a,isLastRow:m,isLastColumn:h,isCellSelected:b,showTotalCellDivider:g,cell:f,data:r,isAdjustingWidth:d,index:e,children:[Yl.jsxs(hL,{verticalAlign:vD(f),width:gL(f.representation),right:f.isLeftColumn?void 0:4,children:[Yl.jsx(jL,{isLeftColumn:a,isCellSelected:b,cell:f}),Yl.jsx(bD,{isLeftColumn:a,isCellSelected:b,cell:f,styleService:n})]}),Yl.jsx(hI,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?Vt.Measures:Vt.Dimension},columnWidth:t.width,isLastColumn:h,setIsAdjustingWidth:p})]})};var xD=r.memo(yD,ZR);const SD=({list:e,listValues:t,isLastRow:r,getRightGridColumnWidth:n})=>o=>{var i;const a=r?e[o]:t.at(o);return a&&0===o&&a.x>0?(a.leafCount+a.x+a.distanceToNextCell)*n():!r&&a?(a.leafCount+a.distanceToNextCell)*n():n(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o)},ED=(e,t,r,n)=>{const o=Object.values(e);let i,a=o.length;return n&&(a=r,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},CD=(e,t)=>r=>{e.current&&(e.current[t]=r)},wD={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...ug},RD={overflow:"hidden",willChange:"auto",flexShrink:0},LD=({leftGridRef:e,width:t,height:r,columnWidths:n,showLastBorder:o})=>{const{pageInfo:i}=XE(),{layoutService:a,styleService:{contentCellHeight:l,grid:{divider:s}}}=rC(),{qSize:u}=a.layout.qHyperCube,{gridSectionsData:{leftDimensionData:c},visibleDimensionsInfo:{visibleLeftDimensionInfo:d}}=Bw();iD(e,c),oD(e,t,r,l);const p=i.rowsOnCurrentPage*l,f={...wD,borderColor:s,width:n.reduce(((e,t)=>e+t),0)};return Yl.jsx("div",{style:f,"data-section-id":"LEFT_GRID",children:c.grid.map(((t,s)=>{const f=s===c.columnCount-1,m=hC(d[s]),{itemCount:h,estimatedItemSize:g,listValues:b}=ED(t,p,i.rowsOnCurrentPage,f),v=a.isIndentModeEnabled?()=>l:((e,t,r,n,o)=>i=>{const a=n?e[i]:t.at(i);if(a&&0===i&&a.pageY>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*r;if(a&&a.leafCount>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*r}return r})(t,b,l,f,u.qcy);return Yl.jsx(UR,{ref:CD(e,s),style:{...RD,flexGrow:f?1:0},height:r,width:n[s],itemCount:h,itemSize:v,layout:"vertical",itemData:{list:t,isLeftColumn:!0,isLast:f,itemCount:h,showLastBorder:o,listValues:b,totalDividerIndex:c.totalDividerIndex},itemKey:oI,estimatedItemSize:g,children:xD},m)}))})};var ID=h(LD);const AD={overflow:"hidden",willChange:"auto"},MD={...ug,borderWidth:"0px 0px 0px 1px"},DD=({topGridRef:e,rowHightCallback:t,width:r,height:n,showLastBorder:o,getRightGridColumnWidth:i})=>{const{layoutService:a,styleService:{grid:{divider:l},headerCellHeight:s}}=rC(),{gridSectionsData:{headersData:u,topDimensionData:c}}=Bw(),d={...MD,borderColor:l,height:n};iD(e,c),oD(e,r,n,s);const p=a.size.x*i();return 0===c.rowCount?Yl.jsx("div",{style:{width:r,height:n,...MD}}):Yl.jsx("div",{style:d,"data-section-id":"TOP_GRID",children:c.grid.map(((n,l)=>{const s=l===c.rowCount-1,{itemCount:d,estimatedItemSize:f,listValues:m}=ED(n,p,a.size.x,s),h=(({layoutService:e,headersData:t,topRowIndex:r})=>{var n;const o=t.data.at(r),i=t.size.x-1,a=e.isIndentModeEnabled&&t.size.x>1&&r+1===t.size.y?null===(n=o[0][i])||void 0===n?void 0:n.dimensionInfoIndex:null==o?void 0:o[i].dimensionInfoIndex;return void 0!==a?e.getDimensionInfo(a):void 0})({layoutService:a,headersData:u,topRowIndex:l}),g=h?hC(h):`empty ${l}`;return Yl.jsx(UR,{ref:CD(e,l),style:AD,height:t(),width:r,itemCount:d,itemSize:SD({list:n,listValues:m,isLastRow:s,getRightGridColumnWidth:i}),layout:"horizontal",itemData:{list:n,isLast:s,itemCount:d,showLastBorder:o,listValues:m,totalDividerIndex:c.totalDividerIndex},itemKey:oI,estimatedItemSize:f,children:xD},g)}))})};var PD=h(DD);const kD=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=rC(),r=fR(),n=(()=>{const{model:e}=QE(),t=p((async(t,r)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:n,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(r===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!n).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(),{gridSectionsWrapperRefs:{headerGridWrapperRef:o,topGridWrapperRef:i,leftGridWrapperRef:a,dataGridWrapperRef:l},gridRefs:{topGridRef:s,leftGridRef:u,dataGridRef:c},scrollDirectionRefs:{verticalScrollDirection:d,horizontalScrollDirection:m},scrollbarsDimensions:{verticalScrollbarWidth:h,horizontalScrollbarHeight:g,resetHorizontalScrollbarHeight:b}}=pR(),{leftGridWidth:v,leftGridFullWidth:y,leftGridColumnWidths:x,rightGridFullWidth:S,showLastRightBorder:E,getRightGridColumnWidth:C,getHeaderCellsIconsVisibilityStatus:w,overrideLeftGridWidth:R}=function({tableWidth:e,verticalScrollbarWidth:t,resetHorizontalScrollbarHeight:r}){const{layoutService:n,styleService:o}=rC(),{gridSectionsData:{headersData:i}}=Bw(),{measureText:a}=Fg(o.header),l=iR({tableWidth:e}),s=aR({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:l.leftGridWidth}),u=l.leftGridWidth+s.rightGridFullWidth+1<e,c=p(((e,t,r="")=>{let o=e;n.isIndentModeEnabled&&(o=1,1===i.size.x&&(o=0));const s=l.leftGridColumnWidths[o];let u=!1,c=!1,d=a(r)+Hw;return t&&d+20<=s&&(c=!0,d+=20),d+20<=s&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:c}}),[l.leftGridColumnWidths,a,n.isIndentModeEnabled,i.size.x]);return f((()=>{const e=l.leftGridWidth===l.leftGridFullWidth,t=s.rightGridWidth===s.rightGridFullWidth;e&&t&&r()}),[r,l.leftGridWidth,l.leftGridFullWidth,s.rightGridWidth,s.rightGridFullWidth]),{...l,...s,showLastRightBorder:u,getHeaderCellsIconsVisibilityStatus:c}}({tableWidth:r.width,verticalScrollbarWidth:h,resetHorizontalScrollbarHeight:b}),{gridScaffoldDimensions:L,headerGridDims:I,topGridDims:A,leftGridDims:M,dataGridDims:D,metadata:{everyThingFitsInTableRectHeight:P,scrollbarsVisibilityStatus:k}}=(({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:r,leftGridOriginalWidth:n,rightGridOriginalWidth:o},scrollBarsDimensions:{verticalScrollbarWidth:i,horizontalScrollbarHeight:a}})=>{const l=fR(),{pageInfo:s}=XE(),{gridSectionsData:{headersData:u,topDimensionData:c}}=Bw(),d=Math.min(l.height*Vw,Math.max(l.height*Vw-25,l.height-t-a)),p=l.width*Vw,f=s.rowsOnCurrentPage*t,m=Math.max(u.size.y,c.rowCount,1),h=e*m,g=e*m,b=Math.min(p,r),v=l.width-p,y=Math.max(v,l.width-b),x=Math.min(d,h,g),{availableHeight:S,everyThingFitsInTableRectHeight:E,everyThingFitsInTableRectWidth:C}=((e,t,r)=>{const n=t+1+r+i<=l.width,o=e+1+f+a,s=o-l.height<a||o<=l.height;return{availableHeight:s?o:l.height,everyThingFitsInTableRectHeight:s,everyThingFitsInTableRectWidth:n}})(x,b,y),w=S-d,R=Math.max(w,S-x),L=Math.min(R,f),I=Math.min(R,f),A=h+1+f,{visibilityStatus:M,metadata:{hasLeftGridOverflowX:D,hasDataGridOverflowX:P}}=(e=>{const{gridScaffold:{X_AXIS:{leftSectionWidth:t,rightSectionWidth:r},Y_AXIS:{topSectionHeight:n,bottomSectionHeight:o}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:i,rightSectionFullWidth:a},Y_AXIS:{topSectionFullHeight:l,bottomSectionFullHeight:s}}}=e,u=l>n,c=i>t,d=a>r,p=s>o;return{visibilityStatus:{topGrid:{overflowX:"hidden",overflowY:u?"scroll":"hidden"},leftGrid:{overflowX:c?"scroll":"hidden",overflowY:"hidden"},dataGrid:{overflowX:d?"scroll":"hidden",overflowY:p?"scroll":"hidden"}},metadata:{hasTopGridOverflowY:u,hasLeftGridOverflowX:c,hasDataGridOverflowX:d,hasDataGridOverflowY:p}}})({gridScaffold:{X_AXIS:{leftSectionWidth:b,rightSectionWidth:y},Y_AXIS:{topSectionHeight:x,bottomSectionHeight:R}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:n,rightSectionFullWidth:o},Y_AXIS:{topSectionFullHeight:g,bottomSectionFullHeight:A-g}}});return{gridScaffoldDimensions:{width:l.width,height:l.height,gridTemplateColumns:`${b}px ${y}px`,gridTemplateRows:`${x}px ${R}px`},headerGridDims:{width:-1,height:x},topGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:g},stickyWrapper:{width:y-1-i,height:-1},self:{width:Math.min(o,y)-(C?1:0)-i,height:g}},leftGridDims:{fullSizeWrapper:{width:b,height:A-g+(!D&&P?a:0)},stickyWrapper:{width:b,height:R-1-a},self:{width:b,height:Math.max(t,L-(E?0:a-1))}},dataGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:A-g+(!P&&D?a:0)},stickyWrapper:{width:y-1-i,height:R-1-a},self:{width:Math.min(o,y)-(C?1:0)-i,height:Math.max(t,I-(E?0:a-1))}},metadata:{everyThingFitsInTableRectHeight:E,scrollbarsVisibilityStatus:M}}})({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:v,leftGridOriginalWidth:y,rightGridOriginalWidth:S},scrollBarsDimensions:{verticalScrollbarWidth:h,horizontalScrollbarHeight:g}}),O=p((()=>e),[e]),T=p((()=>t),[t]);return(()=>{const{downloadService:e}=rC();f((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),Yl.jsxs(hR,{style:L,children:[Yl.jsx("div",{style:{overflow:"hidden"},ref:o,children:Yl.jsx(nD,{tableWidth:r.width,leftGridWidth:v,columnWidths:x,getHeaderCellsIconsVisibilityStatus:w,rowHight:e,height:I.height,changeSortOrder:n,overrideLeftGridWidth:R})}),Yl.jsx(vR,{style:k.topGrid,origin:Ut.TopGrid,ref:i,children:Yl.jsx(mR,{style:A.fullSizeWrapper,children:Yl.jsx(yR,{style:A.stickyWrapper,children:Yl.jsx(PD,{topGridRef:s,rowHightCallback:O,...A.self,showLastBorder:{right:E,bottom:!1},getRightGridColumnWidth:C})})})}),Yl.jsx(vR,{style:k.leftGrid,origin:Ut.LeftGrid,ref:a,children:Yl.jsx(mR,{style:M.fullSizeWrapper,children:Yl.jsx(yR,{style:M.stickyWrapper,children:Yl.jsx(ID,{leftGridRef:u,...M.self,columnWidths:x,showLastBorder:{right:!1,bottom:P}})})})}),Yl.jsx(vR,{style:k.dataGrid,origin:Ut.DataGrid,ref:l,children:Yl.jsx(mR,{style:D.fullSizeWrapper,children:Yl.jsx(yR,{style:D.stickyWrapper,children:Yl.jsx(sI,{dataGridRef:c,rowHightCallback:T,...D.self,showLastBorder:{right:E,bottom:P},getRightGridColumnWidth:C,verticalScrollDirection:d,horizontalScrollDirection:m})})})})]})},OD=()=>{const{keyboard:e,theme:t,interactions:r,translator:n}=QE(),{pageInfo:o,updatePageInfo:i,rect:a}=XE(),{layoutService:l}=rC(),{layout:s,hasData:u}=l;return Yl.jsxs(Yl.Fragment,{children:[u?Yl.jsx(kD,{}):null,Yl.jsx(oC,{}),Yl.jsx(UE,{paginationNeeded:o.shouldShowPagination,handleChangePage:e=>{i({page:e})},pageInfo:o,totalRowCount:o.totalRowCount,totalColumnCount:0,totalPages:o.totalPages,keyboard:e,translator:n,theme:t,interactions:r,rect:a,layout:s})]})},TD={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",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",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)"},_D=12,qD=14,ND=16,FD=24,jD=3,zD=300,GD=400,$D=600,BD=700,WD={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Sr(TD.GREYSCALE_0,.05),Sr(TD.GREEN_PALE,.5),Sr(TD.BLUE_PALE,.5),Sr(TD.GREEN_PALE,.5),Sr(TD.BLUE_PALE,.5),Sr(TD.GREEN_PALE,.5),Sr(TD.BLUE_PALE,.5);var HD;function VD(){return VD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},VD.apply(null,arguments)}Sr(TD.GREEN_PALE,.5),Sr(TD.BLUE_PALE,.5),Sr(TD.GREEN_PALE,.5),Sr(TD.BLUE_PALE,.5);var YD,UD=function(e){return t.createElement("svg",VD({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),HD||(HD=t.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function KD(){return KD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},KD.apply(null,arguments)}var XD=function(e){return t.createElement("svg",KD({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),YD||(YD=t.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 JD({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Yl.jsx("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})}function ZD(e={}){return Yl.jsx(JD,{...e,children:Yl.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Yl.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Yl.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function QD(e={}){return Yl.jsx(JD,{...e,children:Yl.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yl.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Yl.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Yl.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function eP(e={}){return Yl.jsx(JD,{fontSize:"medium",...e,children:Yl.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yl.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Yl.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function tP(e={}){return Yl.jsx(JD,{fontSize:"medium",...e,children:Yl.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Yl.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Yl.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function rP({className:e}){return Yl.jsx(JD,{fontSize:"small",className:e,children:Yl.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Yl.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Yl.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Yl.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Yl.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Yl.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function nP(e={}){return Yl.jsx(JD,{...e,children:Yl.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yl.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Yl.jsx("rect",{stroke:TD.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}Yl.jsx(XD,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Yl.jsx(UD,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Yl.jsx(eP,{}),Yl.jsx(tP,{}),Yl.jsx((function(e={}){return Yl.jsx(JD,{...e,children:Yl.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yl.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Yl.jsx("rect",{stroke:"#000000",fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}),{}),Yl.jsx(ZD,{}),Yl.jsx(QD,{}),Yl.jsx(UD,{style:{color:TD.TEXT_PRIMARY},"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16});const oP={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:jD,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var iP=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:TD.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:TD.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Yl.jsx(UD,{"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 ${TD.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:TD.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${TD.MISC_FOCUS_BORDER}`,borderRadius:jD,backgroundColor:TD.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 ${TD.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:TD.WHITE,color:TD.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:jD},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${TD.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:TD.GREYSCALE_0_15,backgroundColor:TD.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:TD.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${TD.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:TD.GREEN_PALE},"&:active":{backgroundColor:TD.GREEN_DARK},"&.Mui-focusVisible":{borderColor:TD.GREEN_PALE,boxShadow:`0 0 0 3px ${Lv(TD.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:TD.BLUE_PALE},"&:active":{backgroundColor:TD.BLUE_DARK},"&.Mui-focusVisible":{borderColor:TD.BLUE_PALE,boxShadow:`0 0 0 3px ${Lv(TD.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:jD,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:TD.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${TD.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:TD.GREYSCALE_0_15,backgroundColor:TD.GREYSCALE_100_60,"&:active":{backgroundColor:TD.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:TD.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${TD.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:TD.PURPLE,"&.Mui-focusVisible":{borderColor:TD.PURPLE,boxShadow:`0 0 0 3px ${Lv(TD.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:TD.GREEN,"&.Mui-focusVisible":{borderColor:TD.GREEN,boxShadow:`0 0 0 3px ${Lv(TD.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:TD.BLUE,"&.Mui-focusVisible":{borderColor:TD.BLUE,boxShadow:`0 0 0 3px ${Lv(TD.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:TD.ORANGE,"&.Mui-focusVisible":{borderColor:TD.ORANGE,boxShadow:`0 0 0 3px ${Lv(TD.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:TD.RED,"&.Mui-focusVisible":{borderColor:TD.RED,boxShadow:`0 0 0 3px ${Lv(TD.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:TD.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:TD.PURPLE_PALE},"&:active":{backgroundColor:TD.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:TD.PURPLE_PALE,boxShadow:`0 0 0 3px ${Lv(TD.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:TD.GREEN_PALE},"&:active":{backgroundColor:TD.GREEN_DARK},"&.Mui-focusVisible":{borderColor:TD.GREEN_PALE,boxShadow:`0 0 0 3px ${Lv(TD.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:TD.BLUE_PALE},"&:active":{backgroundColor:TD.BLUE_DARK},"&.Mui-focusVisible":{borderColor:TD.BLUE_PALE,boxShadow:`0 0 0 3px ${Lv(TD.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:TD.ORANGE_PALE},"&:active":{backgroundColor:TD.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:TD.ORANGE_PALE,boxShadow:`0 0 0 3px ${Lv(TD.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:TD.RED_PALE},"&:active":{backgroundColor:TD.RED_DARK},"&.Mui-focusVisible":{borderColor:TD.RED_PALE,boxShadow:`0 0 0 3px ${Lv(TD.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:TD.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:TD.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:jD,boxShadow:`inset 0 0 0 2px ${TD.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Yl.jsx(XD,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:_D,borderRadius:jD,color:TD.TEXT_PRIMARY,backgroundColor:TD.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:TD.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${TD.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:TD.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:TD.GREYSCALE_0_05,color:TD.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:TD.GREEN,borderColor:TD.GREEN},"&.MuiChip-outlinedInfo":{color:TD.BLUE,borderColor:TD.BLUE},"&.MuiChip-outlinedWarning":{color:TD.ORANGE,borderColor:TD.ORANGE},"&.MuiChip-outlinedError":{color:TD.RED,borderColor:TD.RED}},outlined:{border:`solid 1px ${TD.GREYSCALE_0_15}`,backgroundColor:TD.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:jD,boxShadow:"none",backgroundColor:TD.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:TD.GREEN,borderColor:TD.GREEN},outlinedSecondary:{color:TD.BLUE,borderColor:TD.BLUE},label:{fontFamily:WD.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Yl.jsx(XD,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Yl.jsx(UD,{"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:jD},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:jD,fontSize:qD,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:TD.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${TD.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:TD.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:TD.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:TD.GREYSCALE_0_05}}},popupIndicator:{borderRadius:jD,border:`solid 1px ${TD.GREYSCALE_0_15}`,color:TD.GREYSCALE_0_60,marginRight:0,width:FD,height:FD},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${TD.GREYSCALE_0_15}`},clearIndicator:{borderRadius:jD,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:TD.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:qD}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:_D,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:TD.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:TD.GREYSCALE_25,fontSize:_D,fontFamily:WD.FONT_FAMILY,fontWeight:$D,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:TD.TEXT_PRIMARY},"&.Mui-error":{color:TD.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:TD.TEXT_SECONDARY,content:"'(optional)'",fontWeight:GD,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:TD.TEXT_SECONDARY,content:"'(required)'",fontWeight:GD,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:qD,lineHeight:"16px",backgroundColor:TD.WHITE,borderRadius:jD,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${TD.GREYSCALE_0_05}`,borderColor:TD.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${TD.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${TD.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${TD.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${TD.RED}`,boxShadow:`0px 0px 0px 1px ${TD.RED}, inset 0 2px 0 0 ${TD.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${TD.GREYSCALE_0_10}`,borderColor:TD.GREYSCALE_0_10,backgroundColor:TD.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:TD.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:TD.GREYSCALE_0_15,borderRadius:jD,boxShadow:`inset 0 2px 0 0 ${TD.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Yl.jsx(UD,{...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:TD.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:TD.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:TD.GREYSCALE_0_03},"&:active":{backgroundColor:TD.GREYSCALE_0_10},"&:focus":{backgroundColor:TD.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${TD.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${TD.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:TD.GREYSCALE_0_30,"&:hover":{backgroundColor:TD.GREYSCALE_0_0,borderColor:TD.GREYSCALE_0_15},"& ~svg":{color:TD.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${TD.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:jD}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:TD.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${TD.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:TD.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:qD,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:_D,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:_D,fontWeight:$D,color:TD.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:$D}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${TD.GREYSCALE_0_15}, 0px 0px 0px 1px ${TD.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Yl.jsx(eP,{}),checkedIcon:Yl.jsx(tP,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:TD.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${TD.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:TD.GREEN_PALE,boxShadow:`0 0 0 3px ${Lv(TD.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:TD.BLUE_PALE,boxShadow:`0 0 0 3px ${Lv(TD.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:TD.GREYSCALE_0_20}},"&.Mui-disabled":{fill:TD.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Yl.jsx(nP,{}),checkedIcon:Yl.jsx(ZD,{}),indeterminateIcon:Yl.jsx(QD,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:jD,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:TD.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:TD.GREYSCALE_0_55,color:TD.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:TD.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:TD.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:TD.GREYSCALE_0_55,"&:hover":{color:TD.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:TD.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:TD.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:qD,color:TD.TEXT_PRIMARY,lineHeight:"16px",fontWeight:$D},secondary:{fontSize:_D,color:TD.GREYSCALE_45,fontWeight:GD,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:qD,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:qD,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:TD.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:_D,borderBottom:`solid 1px ${TD.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:qD,color:TD.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:TD.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:TD.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:TD.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:TD.RED}}},"&.Mui-focusVisible":{backgroundColor:TD.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:TD.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:TD.GREEN,height:"24px","&.Mui-disabled":{color:TD.GREYSCALE_0_15}},rail:{backgroundColor:TD.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${TD.GREYSCALE_0_05}`,borderRadius:jD,boxShadow:`inset 0px 0px 0px 1px ${TD.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${TD.GREYSCALE_0_05}`,borderRadius:jD},thumb:{height:"16px",width:"16px",borderRadius:jD,backgroundColor:TD.WHITE,boxShadow:`0px 1px 2px 0px ${TD.GREYSCALE_0_15}, 0px 0px 0px 1px ${TD.GREYSCALE_0_05}`,"&:hover":{borderRadius:jD,boxShadow:`0 2px 4px 0 ${TD.GREYSCALE_0_30}, 0 0 0 1px ${TD.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${TD.GREYSCALE_0_15}, 0 0 0 1px ${TD.GREYSCALE_0_06}, 0 0 0 2px ${TD.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${TD.GREYSCALE_0_15}, 0 0 0 1px ${TD.GREYSCALE_0_06}, 0 0 0 2px ${TD.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:TD.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:TD.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:TD.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:TD.GREYSCALE_0_15},markLabel:{color:TD.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:TD.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:TD.WHITE,color:TD.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:TD.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:TD.GREEN_PALE,boxShadow:`0 0 0 3px ${Lv(TD.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:TD.BLUE_PALE,boxShadow:`0 0 0 3px ${Lv(TD.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:TD.GREYSCALE_0_15,borderRadius:jD},thumb:{height:"16px",width:"16px",borderRadius:jD,backgroundColor:TD.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:qD,fontWeight:$D,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${TD.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${TD.MISC_FOCUS_BORDER}`,backgroundColor:TD.GREYSCALE_0_03,borderRadius:jD},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:TD.GREYSCALE_25,"&.Mui-selected":{color:TD.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:qD,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:jD,"&:hover":{backgroundColor:TD.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 ${TD.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${TD.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:jD,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:TD.GREYSCALE_0_05},"&:hover":{backgroundColor:TD.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${TD.GREYSCALE_85}`,borderRight:`1px solid ${TD.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:$D,backgroundColor:TD.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:TD.GREYSCALE_98,borderBottom:`1px solid ${TD.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${TD.GREYSCALE_85}`,borderTop:`1px solid ${TD.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:TD.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:TD.GREYSCALE_0_05,"&:hover":{backgroundColor:TD.GREYSCALE_0_03}},"&&:hover":{backgroundColor:TD.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Yl.jsx(rP,{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 ${TD.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:qD,borderRadius:jD,padding:"7px 16px",border:`1px solid ${TD.GREYSCALE_0_15}`,backgroundColor:TD.GREYSCALE_100_60,color:TD.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:TD.GREYSCALE_0_10,border:`1px solid ${TD.GREYSCALE_0_30}`},"&:hover":{backgroundColor:TD.GREYSCALE_0_03,border:`1px solid ${TD.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:TD.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${TD.MISC_FOCUS_BORDER}`,border:`1px solid ${TD.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:TD.GREYSCALE_25,backgroundColor:TD.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:TD.GREYSCALE_0_10,border:`1px solid ${TD.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:_D,height:24,width:24,padding:7},sizeLarge:{fontSize:ND,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:qD,borderRadius:jD}}},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:TD.GREYSCALE_20},tooltip:{backgroundColor:TD.GREYSCALE_20,fontSize:_D,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...oP}:{}}))(t);const aP=e=>({mode:"light",primary:{ultraLight:TD.GREEN_ULTRA_LIGHT,light:TD.GREEN_PALE,main:TD.GREEN,dark:TD.GREEN_DARK,extraDark:TD.GREEN_EXTRA_DARK,contrastText:TD.WHITE},secondary:{ultraLight:TD.BLUE_ULTRA_LIGHT,light:TD.BLUE_PALE,main:TD.BLUE,dark:TD.BLUE_DARK,extraDark:TD.BLUE_EXTRA_DARK,contrastText:TD.WHITE},error:{ultraLight:TD.RED_ULTRA_LIGHT,light:TD.RED_PALE,main:TD.RED,dark:TD.RED_DARK,extraDark:TD.RED_EXTRA_DARK,contrastText:TD.WHITE},warning:{ultraLight:TD.ORANGE_ULTRA_LIGHT,light:TD.ORANGE_PALE,main:TD.ORANGE,dark:TD.ORANGE_DARK,extraDark:TD.ORANGE_EXTRA_DARK,contrastText:TD.WHITE},success:{ultraLight:TD.GREEN_ULTRA_LIGHT,light:TD.GREEN_PALE,main:TD.GREEN,dark:TD.GREEN_DARK,extraDark:TD.GREEN_EXTRA_DARK,contrastText:TD.WHITE},info:{ultraLight:TD.BLUE_ULTRA_LIGHT,light:TD.BLUE_PALE,main:TD.BLUE,dark:TD.BLUE_DARK,extraDark:TD.BLUE_EXTRA_DARK,contrastText:TD.WHITE},text:{primary:TD.TEXT_PRIMARY,secondary:TD.TEXT_SECONDARY,disabled:TD.GREYSCALE_0_30},action:{hover:TD.GREYSCALE_0_03,hoverOpacity:.03,selected:TD.GREYSCALE_0_05,selectedOpacity:.05,focus:TD.MISC_FOCUS_BORDER},amethyst:{ultraLight:TD.WHITE,main:TD.PURPLE,light:TD.PURPLE_PALE,dark:TD.PURPLE_DARK,extraDark:TD.GREYSCALE_0_0,contrastText:TD.WHITE},background:{paper:TD.WHITE,default:TD.GREYSCALE_95},divider:TD.GREYSCALE_0_15}),lP=(e="light",t=!1)=>((e,t=!1)=>({components:iP(0,t),palette:aP(),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:qD,fontWeightLight:zD,fontWeightRegular:GD,fontWeightMedium:$D,fontWeightBold:BD,htmlFontSize:qD,fontFamily:WD.FONT_FAMILY,button:{fontWeight:$D,fontSize:qD,textTransform:"none"},body1:{fontSize:ND,lineHeight:"24px"},body2:{fontSize:qD,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:FD,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:ND,fontWeight:$D,lineHeight:"16px"},h6:{fontSize:qD,fontWeight:$D,lineHeight:"16px"},caption:{color:TD.TEXT_SECONDARY},subtitle1:{fontSize:qD,color:TD.TEXT_SECONDARY},subtitle2:{fontSize:_D,color:TD.TEXT_SECONDARY}},shape:{borderRadius:jD}}))(0,t);const sP=(e,{selections:t,baseObjects:n,coreServices:o,nebulaObjects:i})=>{const a=function(e){var t;const r=lP();return null!=r&&null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),ux({...r,direction:e})}("ltr");e.render(Yl.jsx(r.StrictMode,{children:Yl.jsx(Wx,{theme:a,children:Yl.jsx(eC,{...i,children:Yl.jsx(JE,{...n,children:Yl.jsx(IL,{selections:t,children:Yl.jsx(nC,{...o,children:Yl.jsx(Ww,{children:Yl.jsx(OD,{})})})})})})})}))};var uP,cP,dP,pP;!function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.Border="border",e.Divider="divider"}(uP||(uP={})),function(e){e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2"}(cP||(cP={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(dP||(dP={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(pP||(pP={}));const fP=e=>e?`${parseInt(e,10)}px`:void 0,mP=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?ag.Transparent:r}},hP=(e,t)=>+(parseInt(e,10)*ig*t+8).toFixed(2),gP=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?ng:"normal",bP=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",vP=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",yP=document.createElement("textarea");function xP(e){yP.value=e,document.body.appendChild(yP),yP.select(),yP.setSelectionRange(0,yP.value.length),document.execCommand("copy"),document.body.removeChild(yP)}yP.style.position="absolute",yP.style.left="-9999px",yP.setAttribute("readonly","");function SP(e){null==R||R(((t,r)=>{const n=r.target,o=null==n?void 0:n.closest(`.${Zt}`);null!=o&&o.title&&t.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{(e=>{var t;const r=e.title;r&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(r).catch((()=>{xP(r)})):xP(r))})(o)}}),null==e||e.forEach((e=>{e(t,r,o)}))}))}const EP=({model:e,env:t,layoutService:r,effectivePropertiesService:n,translator:o})=>Ig(((i,a,l)=>{if(!e||n.qAlwaysFullyExpanded||!t.flags.isEnabled("CLIENT_IM_6273_EXPAND_OR_COLLAPSE_DIM"))return;const s=e,u=i.addItem({translation:"Object.PivotTable.ContextMenu.ExpandCollapse",tid:"expand-collapse-group"}),{qEffectiveDimensionName:c,label:d}=((e,t)=>{const r=((e,t)=>{const r=null==e?void 0:e.getAttribute("data-dimension-info-index");if("string"==typeof r)return t.getDimensionInfo(+r)})(e,t);return"object"==typeof r?{qEffectiveDimensionName:r.qEffectiveDimensionName,label:r.qFallbackTitle}:{qEffectiveDimensionName:void 0,label:void 0}})(l,r);u.addItem((e=>({icon:"lui-icon lui-icon--plus",translation:"Object.PivotTable.ContextMenu.ExpandAll",tid:"expand-all",select:async()=>{try{await e.expandTop(iC,0,0,!0),await e.expandLeft(iC,0,0,!0)}catch(e){console.error("Failed to expand all",e)}}}))(s)),"string"==typeof c&&u.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:r,label:n,translator:o})=>({icon:"lui-icon lui-icon--plus",translation:o.get("SNPivotTable.ContextMenu.ExpandDimension",[null!=n?n:""]),tid:"expand-dimension",select:NM({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:TM.Expand})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:c,label:d,translator:o})),u.addItem((e=>({icon:"lui-icon lui-icon--minus",translation:"Object.PivotTable.ContextMenu.CollapseAll",tid:"collapse-all",select:async()=>{try{await e.collapseTop(iC,0,0,!0),await e.collapseLeft(iC,0,0,!0)}catch(e){console.error("Failed to collapse all",e)}}}))(s)),"string"==typeof c&&u.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:r,label:n,translator:o})=>({icon:"lui-icon lui-icon--minus",translation:o.get("SNPivotTable.ContextMenu.CollapseDimension",[null!=n?n:""]),tid:"collapse-dimension",select:NM({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:TM.Collapse})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:c,label:d,translator:o}))}),[e,r,n]),CP=(e,t)=>y((()=>(({layout:e,flags:t})=>{var r,n,o,i;const{qHyperCube:a,nullValueRepresentation:l,snapshotData:s}=e,{qNoOfLeftDims:u,qEffectiveInterColumnSortOrder:c,qMeasureInfo:d,qDimensionInfo:p}=a,f=!!s,m=null!==(r=null==s||null===(n=s.content)||void 0===n?void 0:n.rowsPerPage)&&void 0!==r?r:15e3,h={x:Math.min(e.qHyperCube.qSize.qcx,og),y:Math.min(e.qHyperCube.qSize.qcy,m)},g=c.slice(0,u),b=e=>g.some((t=>t===e)),v=b(aC),y=new Map(c.map((e=>{var t;return[null!==(t=p[e])&&void 0!==t?t:aC,e]}))),x=d.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return{layout:e,getNullValueText:()=>{var e;return null!==(e=null==l?void 0:l.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(v)return 0;const r=e%x.length;return t?r:d.findIndex((e=>e===x[r]))},getDimensionInfo:e=>e===aC?void 0:p.at(e),getDimensionInfoIndex:e=>{var t;return null!==(t=y.get(e))&&void 0!==t?t:-1},size:h,isSnapshot:f,hasLimitedData:!f&&h.x<e.qHyperCube.qSize.qcx,hasData:h.x>0&&h.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,hasPseudoDimOnLeft:v,leftDimensionInfoIndexes:g,isLeftDimension:b,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:x,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),indentModeFeatures:{isLinksSupported:t.isEnabled("CLIENT_IM_5975_INDENT_MODE_LINKS")},indentModeColumnWidth:null!==(o=e.qHyperCube.indentModeColumnWidth)&&void 0!==o?o:{type:rr.Auto,pixels:tr.PixelsDefault,percentage:tr.PercentageDefault},searchSortFromDimension:"inherit"===(null===(i=e.search)||void 0===i?void 0:i.sorting)}})({layout:e,flags:t})),[e,t]),wP=({model:e,layoutService:t,viewService:r,pageInfo:n,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=Mg(e);return t.current=e,t})(Nw(o));return _g((async()=>{const{qHyperCube:t}=i,{maxNumberOfVisibleRows:o,maxNumberOfVisibleColumns:u}=s.current;var c,d;if(a)return null!==(c=null===(d=i.snapshotData)||void 0===d||null===(d=d.content)||void 0===d?void 0:d.qPivotDataPages)&&void 0!==c?c:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,r,n)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=n||t.gridRowStartIndex+t.gridHeight>=r))(l,r,o,u)||((e,t,r,n)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(n,l.qcx)||c<Math.min(r,l.qcy)})(i,n,o,u))){const t=((e,t,r,n,o,i)=>{const a=n.page*n.rowsPerPage,l=Math.min(a+n.rowsPerPage,r.qcy),s=Math.min(og,r.qcx);if(r.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,r=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),r>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:c,qWidth:Math.min(s-u,i),qHeight:Math.min(l-c,o)}})(l,r,i.qHyperCube.qSize,n,o,u);return t?e.getHyperCubePivotData(iC,Fw(t)):[]}return t.qPivotDataPages}),[i,a,e,r,n.page,n.rowsPerPage,s,l])},RP=({rowsPerPage:e,totalRowCount:t,page:r})=>Math.min(e,t-r*e),LP=(e,t,r=15e3)=>({rowsPerPage:r,totalPages:Math.max(1,Math.ceil(e/r)),totalRowCount:e,rowsOnCurrentPage:RP({rowsPerPage:r,totalRowCount:e,page:t})}),IP=15,AP=({layoutService:e,viewService:t,rect:r,model:n,pageInfo:o})=>{var i;return L((async e=>{const i=e;if(!i.snapshotData||!n||i.snapshotData.content)return i;if("getHyperCubePivotData"in n){const{scrollTop:e,scrollLeft:a,leftGridScrollLeft:l,topGridScrollTop:s}=t,u=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,l=t.page*t.rowsPerPage,s=Math.max(n-IP,0),u=Math.max(l+o-IP,l,0),c=og-s,d=l+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=Nw(r);return{qLeft:s,qTop:u,qWidth:Math.min(c,e+30),qHeight:Math.min(d,t+30)}}return{qLeft:s,qTop:u,qWidth:Math.min(c,i+30),qHeight:Math.min(d,a+30)}})(t,o,r),c=Fw(u),d={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};i.snapshotData.content={qPivotDataPages:await n.getHyperCubePivotData(iC,[d,...c]),scrollTop:e,scrollLeft:a,leftGridScrollLeft:l,topGridScrollTop:s,page:o.page,rowsPerPage:o.rowsPerPage},i.snapshotData.object.size.w=r.width,i.snapshotData.object.size.h=r.height}return i})),I((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,topGridScrollTop:e.topGridScrollTop,renderPage:t.page}))(t,o)})),[t]),null!==(i=e.layout.snapshotData)&&void 0!==i&&i.content?{left:r.left,top:r.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:r};var MP={SNPivotTable_ContextMenu_CollapseDimension:{id:"SNPivotTable.ContextMenu.CollapseDimension",locale:{"de-DE":"{0} reduzieren","en-US":"Collapse {0}","es-ES":"Contraer {0}","fr-FR":"Réduire {0}","it-IT":"Comprimi {0}","ja-JP":"{0} を折りたたむ","ko-KR":"{0} 축소","nl-NL":"{0} samenvouwen","pl-PL":"Zwiń {0}","pt-BR":"Recolher {0}","ru-RU":"Свернуть {0}","sv-SE":"Dölj {0}","tr-TR":"{0} öğelerini daralt","zh-CN":"折叠 {0}","zh-TW":"收合 {0}"}},SNPivotTable_ContextMenu_ExpandDimension:{id:"SNPivotTable.ContextMenu.ExpandDimension",locale:{"de-DE":"{0} erweitern","en-US":"Expand {0}","es-ES":"Expandir {0}","fr-FR":"Développer {0}","it-IT":"Espandi {0}","ja-JP":"{0} を展開","ko-KR":"{0} 확장","nl-NL":"{0} uitvouwen","pl-PL":"Rozwiń {0}","pt-BR":"Expandir {0}","ru-RU":"Развернуть {0}","sv-SE":"Visa {0}","tr-TR":"{0} öğelerini genişlet","zh-CN":"展开 {0}","zh-TW":"展開 {0}"}},SNPivotTable_IndentMode_Rows:{id:"SNPivotTable.IndentMode.Rows",locale:{"de-DE":"Zeilen","en-US":"Rows","es-ES":"Filas","fr-FR":"Lignes","it-IT":"Righe","ja-JP":"行","ko-KR":"행","nl-NL":"Rijen","pl-PL":"Wiersze","pt-BR":"Linhas","ru-RU":"Строки","sv-SE":"Rader","tr-TR":"Satırlar","zh-CN":"行","zh-TW":"列"}},SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const DP=()=>{const e=A(),t=e.language();return y((()=>{!function(e){const t="SNPivotTable_LimitedData";e.get(t)===t&&Object.keys(MP).forEach((t=>{e.add(MP[t])}))}(e)}),[e]),{translator:e,language:t}},PP=e=>{const{flags:t}=e,r=M(),n=(e=>{const t=y((()=>jg(e)),[e]);return C((()=>()=>{t.unmount()}),[t]),t})(r),o=D(),i=P(),a=k(),l=O(),s=T(),u=_(),c=Dg(),d=((e,t)=>{const[r]=_g((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return{...await e.getEffectiveProperties()}}),[e,t]);return y((()=>{var e,t;const n=void 0!==(null==r?void 0:r.qHyperCubeDef.qSortbyYValue)&&1===Math.abs(r.qHyperCubeDef.qSortbyYValue),o=null!==(e=null==r?void 0:r.qHyperCubeDef.qDimensions.map((e=>e.qDef.qSortCriterias)))&&void 0!==e?e:[];return{qAlwaysFullyExpanded:null!==(t=null==r?void 0:r.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==t&&t,qExpansionState:null==r?void 0:r.qHyperCubeDef.qExpansionState,isSortedByFirstMeasure:n,getSortCriteriaForDimension:e=>o[e]}}),[r])})(i,o),p=CP(o,t),f=q(),m=Tg(o,r),{translator:h,language:g}=DP(),{pageInfo:b,updatePageInfo:v}=((e,t)=>{const{size:r,layout:{qHyperCube:{qSize:n}}}=e,o=t.isDownloadedAsPDForImage||e.isSnapshot,i=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(e),[a,l]=E((()=>{const a=((e,t)=>{var r,n,o,i;return t.isDownloadedAsPDForImage?null!==(r=null===(n=t.viewState)||void 0===n?void 0:n.renderPage)&&void 0!==r?r:0:e.isSnapshot&&null!==(o=null===(i=e.layout.snapshotData)||void 0===i||null===(i=i.content)||void 0===i?void 0:i.page)&&void 0!==o?o:0})(e,t);return{page:a,shouldShowPagination:n.qcy>r.y&&!o,...LP(n.qcy,a,i)}})),s=e.layout.qHyperCube.qSize.qcy;return C((()=>{l((t=>({...t,...LP(s,t.page,i),shouldShowPagination:s>e.size.y&&!o})))}),[s,e.size.y,l,o,i]),C((()=>{const{page:e,totalPages:t}=a;if(e+1>t){const e=t-1,r=RP({...a,page:e});l({...a,page:e,rowsOnCurrentPage:r})}}),[a]),{pageInfo:a,updatePageInfo:e=>{l({...a,...e,rowsOnCurrentPage:RP({...a,...e})})}}})(p,c),x=((e,t,r)=>y((()=>((e,t)=>{var r,n,o,i,a,l,s,u;if(e.isDownloadedAsPDForImage){var c,d,p,f;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(c=null==t?void 0:t.scrollTop)&&void 0!==c?c:0,scrollLeft:null!==(d=null==t?void 0:t.scrollLeft)&&void 0!==d?d:0,leftGridScrollLeft:null!==(p=null==t?void 0:t.leftGridScrollLeft)&&void 0!==p?p:0,topGridScrollTop:null!==(f=null==t?void 0:t.topGridScrollTop)&&void 0!==f?f:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(r=null==t||null===(n=t.content)||void 0===n?void 0:n.scrollTop)&&void 0!==r?r:0,scrollLeft:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.leftGridScrollLeft)&&void 0!==a?a:0,topGridScrollTop:null!==(s=null==t||null===(u=t.content)||void 0===u?void 0:u.topGridScrollTop)&&void 0!==s?s:0}})(r,t.snapshotData)),[r,e.page,t.snapshotData]))(b,o,c),S=AP({rect:N(),layoutService:p,viewService:x,model:i,pageInfo:b}),[w,R]=wP({model:i,layoutService:p,viewService:x,pageInfo:b,rect:S}),L=y((()=>((e,t,r)=>{var n,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,L,I,A,M,D,P,k,O,T,_,q,N,F,j,z,G,$,B,W,H,V,Y,U,K;const X=null===(n=t.layout.components)||void 0===n?void 0:n.find((e=>"theme"===e.key)),J=null==X?void 0:X.header,Z=null==X?void 0:X.dimensionValues,Q=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,re=null==X?void 0:X.nullValues,ne=null==X?void 0:X.grid,oe=(t,r,n)=>e.getStyle(t,r,n),ie=+(null!==(o=null!==(i=null==ne?void 0:ne[uP.LineClamp])&&void 0!==i?i:oe(cP.Grid,dP.Grid,pP.LineClamp))&&void 0!==o?o:1),ae=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==ne?void 0:ne[uP.ColumnLineClamp])&&void 0!==l?l:oe(cP.Grid,dP.Grid,pP.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=mP(e,null==J?void 0:J[uP.Background]))&&void 0!==u?u:oe(cP.Dimension,dP.LabelName,pP.BackgroundColor))&&void 0!==s?s:ag.Transparent,se={header:{fontSize:null!==(c=null!==(d=fP(null==J?void 0:J[uP.FontSize]))&&void 0!==d?d:oe(cP.Dimension,dP.LabelName,pP.FontSize))&&void 0!==c?c:tg,fontFamily:null!==(p=null!==(f=null==J?void 0:J[uP.FontFamily])&&void 0!==f?f:oe(cP.Dimension,dP.LabelName,pP.FontFamily))&&void 0!==p?p:rg,fontWeight:gP(null==J?void 0:J[uP.FontStyle],ng),fontStyle:bP(null==J?void 0:J[uP.FontStyle]),textDecoration:vP(null==J?void 0:J[uP.FontStyle]),color:null!==(m=null!==(h=mP(e,null==J?void 0:J[uP.FontColor]))&&void 0!==h?h:oe(cP.Dimension,dP.LabelName,pP.FontColor))&&void 0!==m?m:dm.TEXT,background:le,hoverBackground:Bh(le,nr),activeBackground:Bh(le,or)},dimensionValues:{fontSize:null!==(g=null!==(b=fP(null==Z?void 0:Z[uP.FontSize]))&&void 0!==b?b:oe(cP.Dimension,dP.LabelValue,pP.FontSize))&&void 0!==g?g:tg,fontFamily:null!==(v=null!==(y=null==Z?void 0:Z[uP.FontFamily])&&void 0!==y?y:oe(cP.Dimension,dP.LabelValue,pP.FontFamily))&&void 0!==v?v:rg,fontWeight:gP(null==Z?void 0:Z[uP.FontStyle],void 0),fontStyle:bP(null==Z?void 0:Z[uP.FontStyle]),textDecoration:vP(null==Z?void 0:Z[uP.FontStyle]),color:null!==(x=null!==(S=mP(e,null==Z?void 0:Z[uP.FontColor]))&&void 0!==S?S:oe(cP.Dimension,dP.LabelValue,pP.FontColor))&&void 0!==x?x:dm.TEXT,background:null!==(E=null!==(C=mP(e,null==Z?void 0:Z[uP.Background]))&&void 0!==C?C:oe(cP.Dimension,dP.LabelValue,pP.BackgroundColor))&&void 0!==E?E:ag.Transparent},measureValues:{fontSize:null!==(w=null!==(R=fP(null==Q?void 0:Q[uP.FontSize]))&&void 0!==R?R:oe(cP.Measure,dP.LabelValue,pP.FontSize))&&void 0!==w?w:tg,fontFamily:null!==(L=null!==(I=null==Q?void 0:Q[uP.FontFamily])&&void 0!==I?I:oe(cP.Measure,dP.LabelValue,pP.FontFamily))&&void 0!==L?L:rg,fontWeight:gP(null==Q?void 0:Q[uP.FontStyle],"normal"),fontStyle:bP(null==Q?void 0:Q[uP.FontStyle]),textDecoration:vP(null==Q?void 0:Q[uP.FontStyle]),color:null!==(A=null!==(M=mP(e,null==Q?void 0:Q[uP.FontColor]))&&void 0!==M?M:oe(cP.Measure,dP.LabelValue,pP.FontColor))&&void 0!==A?A:ag.FontSecondary,background:null!==(D=null!==(P=mP(e,null==Q?void 0:Q[uP.Background]))&&void 0!==P?P:oe(cP.Measure,dP.LabelValue,pP.BackgroundColor))&&void 0!==D?D:ag.Transparent},measureLabels:{fontWeight:gP(null==ee?void 0:ee[uP.FontStyle],"normal"),fontStyle:bP(null==ee?void 0:ee[uP.FontStyle]),textDecoration:vP(null==ee?void 0:ee[uP.FontStyle]),color:null!==(k=null!==(O=mP(e,null==ee?void 0:ee[uP.FontColor]))&&void 0!==O?O:oe(cP.Measure,dP.LabelName,pP.FontColor))&&void 0!==k?k:ag.FontSecondary,background:null!==(T=null!==(_=mP(e,null==ee?void 0:ee[uP.Background]))&&void 0!==_?_:oe(cP.Measure,dP.LabelName,pP.BackgroundColor))&&void 0!==T?T:ag.Transparent},totalValues:{fontWeight:gP(null==te?void 0:te[uP.FontStyle],ng),fontStyle:bP(null==te?void 0:te[uP.FontStyle]),textDecoration:vP(null==te?void 0:te[uP.FontStyle]),color:null!==(q=null!==(N=mP(e,null==te?void 0:te[uP.FontColor]))&&void 0!==N?N:oe(cP.Total,dP.LabelValue,pP.FontColor))&&void 0!==q?q:dm.TEXT,background:null!==(F=null!==(j=mP(e,null==te?void 0:te[uP.Background]))&&void 0!==j?j:oe(cP.Total,dP.LabelValue,pP.BackgroundColor))&&void 0!==F?F:ag.Transparent},nullValues:{fontWeight:gP(null==re?void 0:re[uP.FontStyle],"normal"),fontStyle:bP(null==re?void 0:re[uP.FontStyle]),textDecoration:vP(null==re?void 0:re[uP.FontStyle]),color:null!==(z=null!==(G=mP(e,null==re?void 0:re[uP.FontColor]))&&void 0!==G?G:oe(cP.Null,dP.LabelValue,pP.FontColor))&&void 0!==z?z:dm.TEXT,background:null!==($=null!==(B=mP(e,null==re?void 0:re[uP.Background]))&&void 0!==B?B:oe(cP.Null,dP.LabelValue,pP.BackgroundColor))&&void 0!==$?$:ag.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(W=null!==(H=mP(e,null==ne?void 0:ne[uP.Border]))&&void 0!==H?H:oe(cP.Grid,dP.Grid,pP.BorderColor))&&void 0!==W?W:ag.DividerLight,divider:null!==(V=null!==(Y=mP(e,null==ne?void 0:ne[uP.Divider]))&&void 0!==Y?Y:oe(cP.Grid,dP.Divider,pP.BorderColor))&&void 0!==V?V:ag.DividerDark,background:null!==(U=null!==(K=mP(e,null==ne?void 0:ne[uP.Background]))&&void 0!==K?K:oe(cP.Grid,dP.Grid,pP.BackgroundColor))&&void 0!==U?U:ag.Transparent},selectedColors:$h(e)};return se.headerCellHeight=Math.max(hP(se.header.fontSize,ae),hP(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(hP(se.measureValues.fontSize,ie),hP(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=hP(se.dimensionValues.fontSize,1),se})(m,p,t)),[m,p,t]),I=((e,t,r)=>{const[,n,o]=_g((async()=>{var t;const n=Om(r.flags),o=e.getStyle("","","fontFamily"),i=e.getStyle("object","label.name","fontFamily"),a=e.getStyle("object","label.value","fontFamily"),l=null!==(t=e.getStyle("","","fontFamilies"))&&void 0!==t?t:[];return Promise.all([...n,...l,o,i,a,Gg].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,r]);return o?(console.warn("Failed to load fonts:",o),!0):!n})(m,o,e);SP([EP({model:i,env:e,layoutService:p,effectivePropertiesService:d,translator:h})]),C((()=>{!R&&i&&!!w&&I&&sP(n,{selections:f,baseObjects:{rect:S,pageInfo:b,qPivotDataPages:w,updatePageInfo:v},nebulaObjects:{env:e,app:a,model:i,embed:l,theme:m,keyboard:s,translator:h,interactions:u},coreServices:{styleService:L,viewService:x,layoutService:p,downloadService:c,effectivePropertiesService:d}})}),[i,a,S,u,f,x,p,c,R,w,L,n,I,h,g,b,v,d,l,s,m,e])},kP={version:"4.2.0",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]},OP=()=>({...kP,qHyperCubeDef:{...kP.qHyperCubeDef,qIndentMode:!1}})}}}));
174
+ `),JI.rippleVisible,oM,550,(({theme:e})=>e.transitions.easing.easeInOut),JI.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),JI.child,JI.childLeaving,iM,550,(({theme:e})=>e.transitions.easing.easeInOut),JI.childPulsate,aM,(({theme:e})=>e.transitions.easing.easeInOut)),uM=t.forwardRef((function(e,r){const n=WI({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,l=Er(n,ZI),[s,u]=t.useState([]),c=t.useRef(0),d=t.useRef(null);t.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[s]);const p=t.useRef(!1),f=Fv(),m=t.useRef(null),h=t.useRef(null),g=t.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:a}=e;u((e=>[...e,bs.jsx(sM,{classes:{ripple:nl(i.ripple,JI.ripple),rippleVisible:nl(i.rippleVisible,JI.rippleVisible),ripplePulsate:nl(i.ripplePulsate,JI.ripplePulsate),child:nl(i.child,JI.child),childLeaving:nl(i.childLeaving,JI.childLeaving),childPulsate:nl(i.childPulsate,JI.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},c.current)])),c.current+=1,d.current=a}),[i]),b=t.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:n=!1,center:i=o||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const l=a?null:h.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:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)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===m.current&&(m.current=()=>{g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})},f.start(80,(()=>{m.current&&(m.current(),m.current=null)}))):g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})}),[o,g,f]),v=t.useCallback((()=>{b({},{pulsate:!0})}),[b]),y=t.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&m.current)return m.current(),m.current=null,void f.start(0,(()=>{y(e,t)}));m.current=null,u((e=>e.length>0?e.slice(1):e)),d.current=t}),[f]);return t.useImperativeHandle(r,(()=>({pulsate:v,start:b,stop:y})),[v,b,y]),bs.jsx(lM,hr({className:nl(JI.root,i.root,a),ref:h},l,{children:bs.jsx(xc,{component:null,exit:!0,children:s})}))}));function cM(e){return gv("MuiButtonBase",e)}const dM=bv("MuiButtonBase",["root","disabled","focusVisible"]),pM=["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"],fM=gS("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"},[`&.${dM.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),mM=t.forwardRef((function(e,r){const n=WI({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:m,onClick:h,onContextMenu:g,onDragLeave:b,onFocus:v,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:I,tabIndex:M=0,TouchRippleProps:D,touchRippleRef:A,type:P}=n,k=Er(n,pM),O=t.useRef(null),T=t.useRef(null),_=Tv(T,A),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=Yv(),[z,G]=t.useState(!1);u&&z&&G(!1),t.useImperativeHandle(o,(()=>({focusVisible:()=>{G(!0),O.current.focus()}})),[]);const[$,B]=t.useState(!1);t.useEffect((()=>{B(!0)}),[]);const W=$&&!c&&!u;function H(e,t,r=d){return Ov((n=>{t&&t(n);return!r&&T.current&&T.current[e](n),!0}))}t.useEffect((()=>{z&&p&&!c&&$&&T.current.pulsate()}),[c,p,z,$]);const V=H("start",E),Y=H("stop",g),U=H("stop",b),K=H("stop",w),X=H("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=H("start",I),Z=H("stop",R),Q=H("stop",L),ee=H("stop",(e=>{F(e),!1===q.current&&G(!1),m&&m(e)}),!1),te=Ov((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&(G(!0),y&&y(e)),v&&v(e)})),re=()=>{const e=O.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=t.useRef(!1),oe=Ov((e=>{p&&!ne.current&&z&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!u&&(e.preventDefault(),h&&h(e))})),ie=Ov((e=>{p&&" "===e.key&&T.current&&z&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(k.href||k.to)&&(ae=f);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=u):(k.href||k.to||(le.role="button"),u&&(le["aria-disabled"]=u));const se=Tv(r,j,O),ue=hr({},n,{centerRipple:i,component:s,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:M,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Kv({root:["root",t&&"disabled",r&&"focusVisible"]},cM,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return bs.jsxs(fM,hr({as:ae,className:nl(ce.root,l),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:U,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:u?-1:M,type:P},le,k,{children:[a,W?bs.jsx(uM,hr({ref:_,center:i},D)):null]}))}));function hM(e){return gv("MuiTypography",e)}bv("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const gM=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],bM=gS("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${sb(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>hr({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}))),vM={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},yM={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},xM=t.forwardRef((function(e,t){const r=WI({props:e,name:"MuiTypography"}),n=(e=>yM[e]||e)(r.color),o=cv(hr({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=vM}=o,f=Er(o,gM),m=hr({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||vM[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Kv({root:["root",i,"inherit"!==e.align&&`align${sb(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},hM,a)})(m);return bs.jsx(bM,hr({as:h,ref:t,ownerState:m,className:nl(g.root,a)},f))}));const SM=t.forwardRef((function(e,r){const{children:n,container:o,disablePortal:i=!1}=e,[a,l]=t.useState(null),s=Tv(t.isValidElement(n)?ty(n):null,r);if(wv((()=>{i||l(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,i]),wv((()=>{if(a&&!i)return kv(r,a),()=>{kv(r,null)}}),[r,a,i]),i){if(t.isValidElement(n)){const e={ref:s};return t.cloneElement(n,e)}return bs.jsx(t.Fragment,{children:n})}return bs.jsx(t.Fragment,{children:a?j.createPortal(n,a):a})})),EM=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],CM={entering:{opacity:1},entered:{opacity:1}},wM=t.forwardRef((function(e,r){const n=jx(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:s,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:m,onExiting:h,style:g,timeout:b=o,TransitionComponent:v=mc}=e,y=Er(e,EM),x=t.useRef(null),S=Tv(x,ty(l),r),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=E(p),w=E(((e,t)=>{HI(e);const r=VI({style:g,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),R=E(d),L=E(h),I=E((e=>{const t=VI({style:g,timeout:b,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),M=E(m);return bs.jsx(v,hr({appear:a,in:u,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:I,onExited:M,onExiting:L,addEndListener:e=>{i&&i(x.current,e)},timeout:b},y,{children:(e,r)=>t.cloneElement(l,hr({style:hr({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},CM[e],g,l.props.style),ref:S},r))}))}));function RM(e){return gv("MuiBackdrop",e)}bv("MuiBackdrop",["root","invisible"]);const LM=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],IM=gS("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>hr({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"}))),MM=t.forwardRef((function(e,t){var r,n,o;const i=WI({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=wM,transitionDuration:g}=i,b=Er(i,LM),v=hr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Kv({root:["root",r&&"invisible"]},RM,t)})(v),x=null!=(r=f.root)?r:c.root;return bs.jsx(h,hr({in:p,timeout:g},b,{children:bs.jsx(IM,hr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:s,className:nl(y.root,l,null==x?void 0:x.className),ownerState:hr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),DM=bv("MuiBox",["root"]),AM=Nx(),PM=function(e={}){const{themeId:r,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:i}=e,a=Sa("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(tv);return t.forwardRef((function(e,t){const l=sv(n),s=cv(e),{className:u,component:c="div"}=s,d=Er(s,mv);return bs.jsx(a,hr({as:c,ref:t,className:nl(u,i?i(o):o),theme:r&&l[r]||l},d))}))}({themeId:Xg,defaultTheme:AM,defaultClassName:DM.root,generateClassName:fv.generate});function kM(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function OM(e){return parseInt(Pv(e).getComputedStyle(e).paddingRight,10)||0}function TM(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&kM(e,o)}))}function _M(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function qM(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Av(e);return t.body===e?Pv(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Uv(Av(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${OM(n)+e}px`;const t=Av(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${OM(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Av(n).body;else{const t=n.parentElement,r=Pv(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const NM=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function FM(e){const t=[],r=[];return Array.from(e.querySelectorAll(NM)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function jM(){return!0}function zM(e){const{children:r,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:a=FM,isEnabled:l=jM,open:s}=e,u=t.useRef(!1),c=t.useRef(null),d=t.useRef(null),p=t.useRef(null),f=t.useRef(null),m=t.useRef(!1),h=t.useRef(null),g=Tv(ty(r),h),b=t.useRef(null);t.useEffect((()=>{s&&h.current&&(m.current=!n)}),[n,s]),t.useEffect((()=>{if(!s||!h.current)return;const e=Av(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),m.current&&h.current.focus()),()=>{i||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[s]),t.useEffect((()=>{if(!s||!h.current)return;const e=Av(h.current),t=t=>{b.current=t,!o&&l()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!l()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!m.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=a(h.current)),r.length>0){var n,i;const e=Boolean((null==(n=b.current)?void 0:n.shiftKey)&&"Tab"===(null==(i=b.current)?void 0:i.key)),t=r[0],o=r[r.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const n=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[n,o,i,l,s,a]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0};return bs.jsxs(t.Fragment,{children:[bs.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),t.cloneElement(r,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0,f.current=e.target;const t=r.props.onFocus;t&&t(e)}}),bs.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const GM=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&kM(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);TM(t,e.mount,e.modalRef,n,!0);const o=_M(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=_M(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=qM(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=_M(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&kM(e.modalRef,t),TM(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&kM(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function $M(e){const{container:r,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:i=GM,closeAfterTransition:a=!1,onTransitionEnter:l,onTransitionExited:s,children:u,onClose:c,open:d,rootRef:p}=e,f=t.useRef({}),m=t.useRef(null),h=t.useRef(null),g=Tv(h,p),[b,v]=t.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)},C=Ov((()=>{const e=function(e){return"function"==typeof e?e():e}(r)||Av(m.current).body;i.add(S(),e),h.current&&E()})),w=t.useCallback((()=>i.isTopModal(S())),[i]),R=Ov((e=>{m.current=e,e&&(d&&w()?E():h.current&&kM(h.current,x))})),L=t.useCallback((()=>{i.remove(S(),x)}),[x,i]);t.useEffect((()=>()=>{L()}),[L]),t.useEffect((()=>{d?C():y&&a||L()}),[d,L,y,a,C]);const I=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},M=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Jv(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=hr({},r,t);return hr({role:"presentation"},n,{onKeyDown:I(n),ref:g})},getBackdropProps:(e={})=>hr({"aria-hidden":!0},e,{onClick:M(e),open:d}),getTransitionProps:()=>({onEnter:Dv((()=>{v(!1),l&&l()}),null==u?void 0:u.props.onEnter),onExited:Dv((()=>{v(!0),s&&s(),a&&L()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:R,isTopModal:w,exited:b,hasTransition:y}}function BM(e){return gv("MuiModal",e)}bv("MuiModal",["root","hidden","backdrop"]);const WM=["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"],HM=gS("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>hr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),VM=gS(MM,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),YM=t.forwardRef((function(e,r){var n,o,i,a,l,s;const u=WI({name:"MuiModal",props:e}),{BackdropComponent:c=VM,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:m,container:h,component:g,components:b={},componentsProps:v={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:I,open:M,slotProps:D,slots:A}=u,P=Er(u,WM),k=hr({},u,{closeAfterTransition:f,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:O,getBackdropProps:T,getTransitionProps:_,portalRef:q,isTopModal:N,exited:F,hasTransition:j}=$M(hr({},k,{rootRef:r})),z=hr({},k,{exited:F}),G=(e=>{const{open:t,exited:r,classes:n}=e;return Kv({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},BM,n)})(z),$={};if(void 0===m.props.tabIndex&&($.tabIndex="-1"),j){const{onEnter:e,onExited:t}=_();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(o=null==A?void 0:A.root)?o:b.Root)?n:HM,W=null!=(i=null!=(a=null==A?void 0:A.backdrop)?a:b.Backdrop)?i:c,H=null!=(l=null==D?void 0:D.root)?l:v.root,V=null!=(s=null==D?void 0:D.backdrop)?s:v.backdrop,Y=ey({elementType:B,externalSlotProps:H,externalForwardedProps:P,getSlotProps:O,additionalProps:{ref:r,as:g},ownerState:z,className:nl(p,null==H?void 0:H.className,null==G?void 0:G.root,!z.open&&z.exited&&(null==G?void 0:G.hidden))}),U=ey({elementType:W,externalSlotProps:V,additionalProps:d,getSlotProps:e=>T(hr({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:nl(null==V?void 0:V.className,null==d?void 0:d.className,null==G?void 0:G.backdrop),ownerState:z});return L||M||j&&!F?bs.jsx(SM,{ref:q,container:h,disablePortal:E,children:bs.jsxs(B,hr({},Y,{children:[!R&&c?bs.jsx(W,hr({},U)):null,bs.jsx(zM,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:N,open:M,children:t.cloneElement(m,$)})]}))}):null})),UM=bv("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),KM=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function XM(e){return`scale(${e}, ${e**2})`}const JM={entering:{opacity:1,transform:XM(1)},entered:{opacity:1,transform:"none"}},ZM="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),QM=t.forwardRef((function(e,r){const{addEndListener:n,appear:o=!0,children:i,easing:a,in:l,onEnter:s,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:m,timeout:h="auto",TransitionComponent:g=mc}=e,b=Er(e,KM),v=Fv(),y=t.useRef(),x=jx(),S=t.useRef(null),E=Tv(S,ty(i),r),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},w=C(c),R=C(((e,t)=>{HI(e);const{duration:r,delay:n,easing:o}=VI({style:m,timeout:h,easing:a},{mode:"enter"});let i;"auto"===h?(i=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=i):i=r,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:n}),x.transitions.create("transform",{duration:ZM?i:.666*i,delay:n,easing:o})].join(","),s&&s(e,t)})),L=C(u),I=C(f),M=C((e=>{const{duration:t,delay:r,easing:n}=VI({style:m,timeout:h,easing:a},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:ZM?o:.666*o,delay:ZM?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=XM(.75),d&&d(e)})),D=C(p);return bs.jsx(g,hr({appear:o,in:l,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:M,onExited:D,onExiting:I,addEndListener:e=>{"auto"===h&&v.start(y.current||0,e),n&&n(S.current,e)},timeout:"auto"===h?null:h},b,{children:(e,r)=>t.cloneElement(i,hr({style:hr({opacity:0,transform:XM(.75),visibility:"exited"!==e||l?void 0:"hidden"},JM[e],m,i.props.style),ref:E},r))}))}));function eD(e){return gv("MuiLink",e)}QM.muiSupportAuto=!0;const tD=bv("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),rD={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},nD=({theme:e,ownerState:t})=>{const r=(e=>rD[e]||e)(t.color),n=cb(e,`palette.${r}`,!1)||t.color,o=cb(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Sy(n,.4)},oD=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],iD=gS(xM,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${sb(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>hr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&hr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:nD({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"},[`&.${tD.focusVisible}`]:{outline:"auto"}}))),aD=t.forwardRef((function(e,r){const n=WI({props:e,name:"MuiLink"}),{className:o,color:i="primary",component:a="a",onBlur:l,onFocus:s,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:p}=n,f=Er(n,oD),{isFocusVisibleRef:m,onBlur:h,onFocus:g,ref:b}=Yv(),[v,y]=t.useState(!1),x=Tv(r,b),S=hr({},n,{color:i,component:a,focusVisible:v,underline:c,variant:d}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return Kv({root:["root",`underline${sb(o)}`,"button"===r&&"button",n&&"focusVisible"]},eD,t)})(S);return bs.jsx(iD,hr({color:i,className:nl(E.root,o),classes:u,component:a,onBlur:e=>{h(e),!1===m.current&&y(!1),l&&l(e)},onFocus:e=>{g(e),!0===m.current&&y(!0),s&&s(e)},ref:x,ownerState:S,variant:d,sx:[...Object.keys(rD).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},f))})),lD=t.createContext({});function sD(e){return gv("MuiList",e)}bv("MuiList",["root","padding","dense","subheader"]);const uD=["children","className","component","dense","disablePadding","subheader"],cD=gS("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>hr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),dD=t.forwardRef((function(e,r){const n=WI({props:e,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:l=!1,disablePadding:s=!1,subheader:u}=n,c=Er(n,uD),d=t.useMemo((()=>({dense:l})),[l]),p=hr({},n,{component:a,dense:l,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Kv({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},sD,t)})(p);return bs.jsx(lD.Provider,{value:d,children:bs.jsxs(cD,hr({as:a,className:nl(f.root,i),ref:r,ownerState:p},c,{children:[u,o]}))})})),pD=bv("MuiListItemIcon",["root","alignItemsFlexStart"]),fD=bv("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),mD=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function hD(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function gD(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function bD(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function vD(e,t,r,n,o,i){let a=!1,l=o(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&bD(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}const yD=t.forwardRef((function(e,r){const{actions:n,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:s=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,p=Er(e,mD),f=t.useRef(null),m=t.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});wv((()=>{o&&f.current.focus()}),[o]),t.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&r){const r=`${Uv(Av(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}})),[]);const h=Tv(f,r);let g=-1;t.Children.forEach(a,((e,r)=>{t.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=r),g===r&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===r&&(g+=1,g>=a.length&&(g=-1))}));const b=t.Children.map(a,((e,r)=>{if(r===g){const r={};return i&&(r.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(r.tabIndex=0),t.cloneElement(e,r)}return e}));return bs.jsx(dD,hr({role:"menu",ref:h,className:l,onKeyDown:e=>{const t=f.current,r=e.key,n=Av(t).activeElement;if("ArrowDown"===r)e.preventDefault(),vD(t,n,u,s,hD);else if("ArrowUp"===r)e.preventDefault(),vD(t,n,u,s,gD);else if("Home"===r)e.preventDefault(),vD(t,null,u,s,hD);else if("End"===r)e.preventDefault(),vD(t,null,u,s,gD);else if(1===r.length){const o=m.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=n&&!o.repeating&&bD(n,o);o.previousKeyMatched&&(l||vD(t,n,!1,s,hD,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:o?0:-1},p,{children:b}))}));function xD(e){return gv("MuiPopover",e)}bv("MuiPopover",["root","paper"]);const SD=["onEntering"],ED=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],CD=["slotProps"];function wD(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function RD(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function LD(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function ID(e){return"function"==typeof e?e():e}const MD=gS(YM,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),DD=gS(XI,{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}),AD=t.forwardRef((function(e,r){var n,o,i;const a=WI({props:e,name:"MuiPopover"}),{action:l,anchorEl:s,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:f,container:m,elevation:h=8,marginThreshold:g=16,open:b,PaperProps:v={},slots:y,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=QM,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=a,L=Er(a.TransitionProps,SD),I=Er(a,ED),M=null!=(n=null==x?void 0:x.paper)?n:v,D=t.useRef(),A=Tv(D,M.ref),P=hr({},a,{anchorOrigin:u,anchorReference:d,elevation:h,marginThreshold:g,externalPaperSlotProps:M,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),k=(e=>{const{classes:t}=e;return Kv({root:["root"],paper:["paper"]},xD,t)})(P),O=t.useCallback((()=>{if("anchorPosition"===d)return c;const e=ID(s),t=(e&&1===e.nodeType?e:Av(D.current).body).getBoundingClientRect();return{top:t.top+wD(t,u.vertical),left:t.left+RD(t,u.horizontal)}}),[s,u.horizontal,u.vertical,c,d]),T=t.useCallback((e=>({vertical:wD(e,S.vertical),horizontal:RD(e,S.horizontal)})),[S.horizontal,S.vertical]),_=t.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=T(t);if("none"===d)return{top:null,left:null,transformOrigin:LD(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=Pv(ID(s)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,r.vertical+=e}else if(null!==g&&a>c){const e=a-c;o-=e,r.vertical+=e}if(null!==g&&i<g){const e=i-g;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:LD(r)}}),[s,d,O,T,g]),[q,N]=t.useState(b),F=t.useCallback((()=>{const e=D.current;if(!e)return;const t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[_]);t.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[s,R,F]);t.useEffect((()=>{b&&F()})),t.useImperativeHandle(l,(()=>b?{updatePosition:()=>{F()}}:null),[b,F]),t.useEffect((()=>{if(!b)return;const e=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}((()=>{F()})),t=Pv(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,b,F]);let j=C;"auto"!==C||E.muiSupportAuto||(j=void 0);const z=m||(s?Av(ID(s)).body:void 0),G=null!=(o=null==y?void 0:y.root)?o:MD,$=null!=(i=null==y?void 0:y.paper)?i:DD,B=ey({elementType:$,externalSlotProps:hr({},M,{style:q?M.style:hr({},M.style,{opacity:0})}),additionalProps:{elevation:h,ref:A},ownerState:P,className:nl(k.paper,null==M?void 0:M.className)}),W=ey({elementType:G,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:I,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:z,open:b},ownerState:P,className:nl(k.root,f)}),{slotProps:H}=W,V=Er(W,CD);return bs.jsx(G,hr({},V,!Xv(G)&&{slotProps:H,disableScrollLock:R},{children:bs.jsx(E,hr({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:j},L,{children:bs.jsx($,hr({},B,{children:p}))}))}))}));function PD(e){return gv("MuiMenu",e)}bv("MuiMenu",["root","paper","list"]);const kD=["onEntering"],OD=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],TD={vertical:"top",horizontal:"right"},_D={vertical:"top",horizontal:"left"},qD=gS(AD,{shouldForwardProp:e=>hS(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ND=gS(DD,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),FD=gS(yD,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),jD=t.forwardRef((function(e,r){var n,o;const i=WI({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:s,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:f={},PopoverClasses:m,transitionDuration:h="auto",TransitionProps:{onEntering:g}={},variant:b="selectedMenu",slots:v={},slotProps:y={}}=i,x=Er(i.TransitionProps,kD),S=Er(i,OD),E=(()=>{const e=t.useContext(ly);return null!=e&&e})(),C=hr({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:h,TransitionProps:x,variant:b}),w=(e=>{const{classes:t}=e;return Kv({root:["root"],paper:["paper"],list:["list"]},PD,t)})(C),R=a&&!u&&p,L=t.useRef(null);let I=-1;t.Children.map(l,((e,r)=>{t.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===I)&&(I=r))}));const M=null!=(n=v.paper)?n:ND,D=null!=(o=y.paper)?o:f,A=ey({elementType:v.root,externalSlotProps:y.root,ownerState:C,className:[w.root,s]}),P=ey({elementType:M,externalSlotProps:D,ownerState:C,className:w.paper});return bs.jsx(qD,hr({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?TD:_D,slots:{paper:M,root:v.root},slotProps:{root:A,paper:P},open:p,ref:r,transitionDuration:h,TransitionProps:hr({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,{direction:E?"rtl":"ltr"}),g&&g(e,t)}},x),ownerState:C},S,{classes:m,children:bs.jsx(FD,hr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:L,autoFocus:a&&(-1===I||u),autoFocusItem:R,variant:b},c,{className:nl(w.list,c.className),children:l}))}))}));function zD(e){return gv("MuiMenuItem",e)}const GD=bv("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),$D=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],BD=gS(mM,{shouldForwardProp:e=>hS(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>hr({},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"}},[`&.${GD.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Sy(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${GD.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Sy(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${GD.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Sy(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})`:Sy(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${GD.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${GD.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${UM.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${UM.inset}`]:{marginLeft:52},[`& .${fD.root}`]:{marginTop:0,marginBottom:0},[`& .${fD.inset}`]:{paddingLeft:36},[`& .${pD.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&hr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${pD.root} svg`]:{fontSize:"1.25rem"}})))),WD=t.forwardRef((function(e,r){const n=WI({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:d,className:p}=n,f=Er(n,$D),m=t.useContext(lD),h=t.useMemo((()=>({dense:a||m.dense||!1,disableGutters:s})),[m.dense,a,s]),g=t.useRef(null);wv((()=>{o&&g.current&&g.current.focus()}),[o]);const b=hr({},n,{dense:h.dense,divider:l,disableGutters:s}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return hr({},a,Kv({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},zD,a))})(n),y=Tv(g,r);let x;return n.disabled||(x=void 0!==d?d:-1),bs.jsx(lD.Provider,{value:h,children:bs.jsx(BD,hr({ref:y,role:c,tabIndex:x,component:i,focusVisibleClassName:nl(v.focusVisible,u),className:nl(v.root,p)},f,{ownerState:b,classes:v}))})})),HD=gS(PM,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:r,shouldShowMenuIcon:n,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:n?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?r:t}}))),VD=gS("div")({position:"absolute",left:0,bottom:0}),YD=gS("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...dg,justifyContent:null!=e?e:dg.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),UD=gS("div")((()=>({...dg}))),KD=gS("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:r,fontStyle:n,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:r,fontSize:e,fontFamily:t,fontStyle:n,textDecoration:o}))),XD=gS(jD)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),JD=gS(WD,{shouldForwardProp:e=>!["isActive"].includes(e)})((({theme:e,isActive:t})=>({width:220,maxHeight:32,borderRadius:e.spacing(.5),margin:e.spacing(.25,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between",position:"relative",overflow:"hidden ",boxSizing:"border-box",background:t?"rgba(0, 0, 0, 0.05)":"transparent","&:hover":{".indent-mode-dropdown-more":{opacity:1}}}))),ZD=gS("span")({textOverflow:"ellipsis",overflow:"hidden"}),QD=gS("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:20,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"})));var eA;!function(e){e.Expand="Expand",e.Collapse="Collapse"}(eA||(eA={}));const tA=(e,t)=>({qExcludeList:t===eA.Expand,qPos:{qDimName:e,qElemNo:[]}}),rA=`${OC}/qExpansionState`,nA=({model:e,qExpansionState:t,qEffectiveDimensionName:r,action:n})=>async()=>{const o=(({qEffectiveDimensionName:e,oldExpansionState:t,action:r})=>{const n=null==t?void 0:t.findIndex((t=>{var r;return(null===(r=t.qPos)||void 0===r?void 0:r.qDimName)===e}));return{expansionData:tA(e,r),index:n}})({qEffectiveDimensionName:r,oldExpansionState:t,action:n});await(async({model:e,newExpansionState:t,errorMsg:r})=>{const{index:n,expansionData:o}=t;try{let t,r=rA,i="Add";void 0===n?t=JSON.stringify([o]):-1===n?(r=`${rA}/-`,t=JSON.stringify(o)):(r=`${rA}/${n}`,i="Replace",t=JSON.stringify(o)),await e.applyPatches([{qPath:r,qOp:i,qValue:t}],!0)}catch(e){console.error(r,e)}})({model:e,newExpansionState:o,errorMsg:`Failed to ${n} dimension`})},oA=({model:e,effectivePropertiesService:t,cell:r,env:n})=>{if(!n.flags.isEnabled("CLIENT_IM_6273_EXPAND_OR_COLLAPSE_DIM")||void 0===r.qEffectiveDimensionName)return;const o={model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r.qEffectiveDimensionName};return{expandCallback:nA({...o,action:eA.Expand}),collapseCallback:nA({...o,action:eA.Collapse})}},iA={[NE.Sorting]:!0,[NE.Selections]:!0,[NE.Searching]:!0},aA=({cell:e,style:t,isFirstColumn:r,isLastColumn:n,isLastRow:o,changeSortOrder:i,iconsVisibilityStatus:a,columnWidth:l,overrideLeftGridWidth:s,shouldApplyIndentModeColumnWidth:u,tableWidth:d})=>{var p;const f=c(null),{styleService:m,layoutService:h,effectivePropertiesService:g}=AC(),{app:b,interactions:v,embed:y,translator:x,env:S,model:E}=IC(),{fontSize:C,fontFamily:w,fontStyle:R,fontWeight:L,textDecoration:I,color:M,background:D,hoverBackground:A,activeBackground:P}=m.header,k=c(null),{shouldShowLockIcon:O,shouldShowMenuIcon:T}=a,{open:_,setOpen:q,handleOpenMenu:N,setIsAdjustingWidth:F}=GI(),j={sortFromMenu:async(t,r)=>{t.stopPropagation(),await i(e,r)}},z={embed:y,listboxRef:f,sortCriteria:h.searchSortFromDimension&&e.isDim?g.getSortCriteriaForDimension(e.dimensionInfoIndex):void 0},G={app:b,qStateName:h.layout.qStateName},{labelTextAlign:$}=null!==(p=h.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==p?p:{},B=xI($,"flex-start");return bs.jsxs(HD,{className:Zt,title:e.label,interactions:v,background:_?P:D,hoverBackground:A,shouldShowMenuIcon:T,isDimension:e.isDim,style:{...t,...fg,...vg(e,o,r,n,m.grid.border),color:M},"data-testid":"title-cell",onClick:N,children:[bs.jsxs(YD,{children:[O?bs.jsx(UD,{children:bs.jsx(jI,{height:12})}):null,bs.jsx(KD,{fontFamily:w,fontSize:C,fontStyle:R,fontWeight:L,textDecoration:I,justifyContent:B,children:bs.jsx("span",{style:mg,children:e.label})})]}),e.isDim?bs.jsxs(bs.Fragment,{children:[bs.jsx(zE,{headerData:e,translator:x,anchorRef:k,open:_,setOpen:q,interactions:v,menuAvailabilityFlags:iA,sortRelatedArgs:j,searchRelatedArgs:z,selectionRelatedArgs:G,expandOrCollapseArgs:oA({model:E,effectivePropertiesService:g,cell:e,env:S}),shouldShowMenuIcon:T,env:S,model:E&&"setActiveField"in E?E:void 0}),bs.jsx(VD,{ref:f}),bs.jsx(VD,{ref:k})]}):null,bs.jsx(BI,{cellInfo:{...e,isLeftColumn:!0},columnWidth:l,isLastColumn:n,overrideLeftGridWidth:s,setIsAdjustingWidth:F,shouldApplyIndentModeColumnWidth:u,tableWidth:d})]})},lA=({rowSpan:e,columnSpan:t})=>{const{styleService:r}=AC();return e>0&&t>0?bs.jsx("div",{style:{...pg,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"0px 1px 0px 0px",borderColor:r.grid.border,background:r.grid.background},"data-testid":"empty-header-cell"}):null};function sA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const uA=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){sA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})),cA=d(uA);function dA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const pA=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){dA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),r.createElement("use",{fillRule:"evenodd"})),fA=d(pA),mA=({tableWidth:e,leftGridWidth:t,overrideLeftGridWidth:r})=>{const{styleService:n}=AC(),{interactions:o,translator:i}=IC(),{isActive:a}=eI(),{dataModel:l}=bR(),{setIsAdjustingWidth:s}=zI([l]);if(!(!!o.active&&!a))return null;const u=$I(n,{isLeftColumn:!0});return bs.jsx(CS,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:u,columnWidth:t,updateWidthCallback:t=>{r(Math.min(t,e*xR))},confirmWidthCallback:n=>{var o;if(n.type===rr.FitToContent)return void l.applyIndentModeColumnWidth({type:rr.Auto});const i=Math.min(null!==(o=n.pixels)&&void 0!==o?o:t,e*xR);r(i),l.applyIndentModeColumnWidth({type:rr.Pixels,pixels:i})},setIsAdjustingWidth:s,accessibilityRelatedArgs:{translator:i,columnLabel:i.get("SNPivotTable.IndentMode.Rows")},direction:"ltr"})};function hA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const gA=(e,t)=>r.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){hA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),r.createElement("path",{d:"M3 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})),bA=d(gA),vA=({cell:e,changeSortOrder:t})=>{const r=c(null),n=c(null),{app:o,interactions:i,embed:a,translator:l,env:s,model:u}=IC(),{layoutService:d,effectivePropertiesService:p}=AC(),{open:f,setOpen:m,handleOpenMenu:h}=GI();return bs.jsxs(JD,{onClick:h,isActive:f,children:[bs.jsx(ZD,{children:e.label}),bs.jsxs(QD,{className:"indent-mode-dropdown-more",visible:f,children:[bs.jsx(bA,{}),e.isDim?bs.jsxs(bs.Fragment,{children:[bs.jsx(zE,{headerData:e,translator:l,anchorRef:r,open:f,setOpen:m,interactions:i,menuAvailabilityFlags:iA,sortRelatedArgs:{sortFromMenu:async(r,n)=>{r.stopPropagation(),await t(e,n)}},searchRelatedArgs:{embed:a,listboxRef:n},selectionRelatedArgs:{app:o,qStateName:d.layout.qStateName},expandOrCollapseArgs:oA({model:u,effectivePropertiesService:p,cell:e,env:s}),shouldShowMenuIcon:!1,env:s,model:u&&"setActiveField"in u?u:void 0}),bs.jsx(VD,{ref:n}),bs.jsx(VD,{ref:r})]}):null]})]})},yA=({idx:e,menu:t,menuItems:r,isOnlyOneRow:n})=>{var o,i;const a=(null===(o=r.at(-1))||void 0===o?void 0:o.id)===_C,l=e+1<r.length&&(null===(i=r[e+1])||void 0===i?void 0:i.id)===_C;return!(n&&a&&l)&&((null==t?void 0:t.id)!==_C&&e<r.length-1)},xA=({menuItems:e,changeSortOrder:t,overrideLeftGridWidth:r,leftGridWidth:n,tableWidth:o})=>{const{styleService:i}=AC(),{interactions:a,translator:l}=IC(),{dataModel:s,gridSectionsData:{headersData:d}}=bR(),[p,f]=u(!1),m=c(null),{headerCellHeight:h}=i,{color:g,background:b,hoverBackground:v,activeBackground:y,fontFamily:x,fontSize:S,fontStyle:E,fontWeight:C,textDecoration:w}=i.header,{isAdjustingWidth:R}=zI([s]),L=e=>{e.stopPropagation()},I={height:h,gridColumn:`1 / span ${d.size.x}`,gridRow:d.size.y,zIndex:d.size.x-0};return bs.jsxs(HD,{isDimension:!0,background:p?y:b,interactions:a,hoverBackground:v,style:{...I,...fg,color:g},onClick:e=>{!a.active||JL(e)||R||f(!p)},"data-testid":"indentModeHeaderCellWrapper",children:[bs.jsxs(YD,{justifyContent:"flex-start",children:[bs.jsx(KD,{fontFamily:x,fontSize:S,fontStyle:E,fontWeight:C,textDecoration:w,justifyContent:"flex-start",children:bs.jsx("span",{style:mg,children:l.get("SNPivotTable.IndentMode.Rows")})}),p?bs.jsx(fA,{}):bs.jsx(cA,{}),bs.jsx(VD,{ref:m})]}),bs.jsx(XD,{open:p,anchorEl:m.current,children:e.map(((r,n)=>[r&&r.id!==_C&&bs.jsx("li",{role:"presentation",onClick:L,onKeyDown:L,children:bs.jsx(vA,{cell:r,changeSortOrder:t})}),yA({idx:n,menu:r,menuItems:e,isOnlyOneRow:1===d.size.y})&&bs.jsx(PS,{"data-testid":"group-divider",variant:"middle"})]))}),bs.jsx(mA,{tableWidth:o,leftGridWidth:n,overrideLeftGridWidth:r})]})},SA={display:"grid",width:"fit-content"},EA=({tableWidth:e,leftGridWidth:t,columnWidths:r,rowHight:n,changeSortOrder:o,getHeaderCellsIconsVisibilityStatus:i,height:a,overrideLeftGridWidth:l})=>{const{layoutService:s}=AC(),{gridSectionsData:{headersData:u}}=bR();return bs.jsxs("div",{"data-testid":"HEADER_GRID",style:{...SA,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:u.data.map((()=>`${n}px`)).join(" "),height:a},children:[u.size.y>1&&bs.jsx(lA,{columnSpan:u.size.x-1,rowSpan:u.size.y-1}),u.data.map(((a,c)=>{let d=[];if(s.isIndentModeEnabled&&u.size.x>1&&c+1===u.size.y){const r=u.data.at(-1);return d.push(bs.jsx(xA,{menuItems:r[0],changeSortOrder:o,overrideLeftGridWidth:l,leftGridWidth:t,tableWidth:e},r[0][0].id)),d}return d=a.reduce(((t,a,d)=>{if(a){const p=i(d,a.isLocked,a.label),f=s.isIndentModeEnabled&&1===u.size.x;t.push(bs.jsx(aA,{style:{width:r[d],height:n,gridColumn:s.isIndentModeEnabled&&u.size.x>1?2:d+1,gridRow:c+1,zIndex:u.size.x-d},isLastRow:c===u.size.y-1,isFirstColumn:0===d,isLastColumn:d===u.size.x-1,changeSortOrder:o,cell:a,iconsVisibilityStatus:p,columnWidth:r[d],overrideLeftGridWidth:l,shouldApplyIndentModeColumnWidth:f,tableWidth:e},a.id))}return t}),[]),d}))]})};var CA=h(EA);const wA=(e,t,r,n)=>{const{layoutService:o}=AC();g((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,r,n,o])},RA=(e,t)=>{Hg((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},LA=(e,t)=>{const{isLast:r,list:n,listValues:o}=t;return r?n[e]:o[e]},IA=(e,t,r)=>{var n;const o=r?"flex-start":"center";var i,a;if(e.representation.type===Nt.Image)return null!==(i=null===(a=e.representation.resolvedImagePosition)||void 0===a?void 0:a.horizontal)&&void 0!==i?i:o;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){var l;const{labelTextAlign:r}=null!==(l=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==l?l:{};return xI(r,o)}const{textAlign:s}=null!==(n=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==n?n:{};return xI(s,o)},MA=()=>{},DA=({children:e,text:t,reactWindowStyle:r,cell:n,data:o,showTotalCellDivider:i,isLastRow:a,isLastColumn:l,isLeftColumn:s,isCellSelected:u,isAdjustingWidth:c,index:d})=>{var p;const{styleService:f,layoutService:m}=AC(),{interactions:h}=IC(),{isLocked:g,createMouseDownHandler:b,createMouseOverHandler:v}=eI(),{showLastBorder:y}=o,x=g(n)||n.isLockedByDimension,S=!(x||!h.active||!h.select||n.isEmpty||n.isNull||n.isPseudoDimension||n.isTotal||c),E=S?b(d,(e=>LA(e,o))):void 0,C=S?v(d):void 0;return bs.jsx("div",{className:Zt,title:h.passive?t:void 0,style:{...r,...bg(a,l,f.grid.border,y),...yg({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:f.grid.divider}),...fg,padding:"0px 4px",cursor:cI(S),background:iI({styleService:f,isCellSelected:u,cell:n,isCellLocked:x}),zIndex:s?void 0:m.size.x-n.x,justifyContent:IA(n,m,s),display:"flex",...m.isIndentModeEnabled&&s&&{paddingLeft:Math.max(4,24*(null!==(p=n.indentLevel)&&void 0!==p?p:0))}},"aria-hidden":"true",onMouseDown:E,onMouseOver:C,onKeyUp:MA,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":n.x,"data-page-x":n.pageX,"data-y":n.y,"data-page-y":n.pageY,"data-cell-type":n.ref.qType,"data-dimension-info-index":n.dimensionInfoIndex,children:e})},AA=e=>{e.stopPropagation()},PA=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:AA,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}}),kA=({href:e,text:t,interactions:n,color:o})=>r.createElement(Np,PA({href:e,text:t,interactions:n,color:o}),t),OA=G();OA.use(z),OA.renderer.prio(["canvas"]);const TA=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`,_A=({href:e,text:t,labelStructure:r,interactions:n,color:o})=>bs.jsxs("span",{children:[bs.jsx(aD,{...PA({href:e,text:t,interactions:n,color:o}),children:null!=r&&r.maskedValue?r.maskedValue:null==r?void 0:r.originalValue}),!!r&&TA(r)]}),qA=({children:e,textStyle:t})=>bs.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),NA=({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n})=>{const{isActive:o}=eI(),{interactions:i}=IC();let a=n?(e=>{const{representation:{text:t,labelStructure:r}}=e;if(!r||!r.originalValue)return t;const{originalValue:n,maskedValue:o,suffix:i,delimeter:a}=r;return`${0!==o.length?o:n} ${i?a:""} ${i}`.trim()})(e):e.representation.text;if(e.isEmpty)return null;const l=(({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n})=>({...mg,...hg(n?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:aI({cell:e,styleService:t,isCellSelected:r}),fontWeight:lI({cell:e,styleService:t}),fontStyle:sI({cell:e,styleService:t}),textDecoration:uI({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n});if(e.representation.type===Nt.Image&&!e.isTotal)return bs.jsx(yI,{representation:e.representation,isLeftColumn:n,styleService:t,textStyle:l,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand});if(e.representation.type===Nt.Link&&!o&&!e.isTotal){const t=n&&e.representation.labelStructure?_A:kA;a=bs.jsx(t,{text:e.representation.text,labelStructure:e.representation.labelStructure,href:e.representation.url,interactions:i,color:e.expressionColor.color})}return bs.jsx(qA,{textStyle:l,children:a})},FA=e=>{const t=e.isLeftColumn?"flex-start":"center";var r;return e.representation.type!==Nt.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(r=e.representation.resolvedImagePosition)||void 0===r?void 0:r.vertical},jA=({index:e,style:t,data:r})=>{const{styleService:n,layoutService:o}=AC(),{isSelected:i}=eI(),{isLeftColumn:a=!1,showLastBorder:l,itemCount:s,isLast:u,totalDividerIndex:c}=r,{isAdjustingWidth:d,setIsAdjustingWidth:p}=zI([r]),f=LA(e,r),m=a?e===s-1:u,h=a?u:e===s-1,g=GL(f,c,o.isIndentModeEnabled);if(void 0===f){const{background:r}=n.dimensionValues;return bs.jsx($L,{style:{...t,background:r},index:e,isLastRow:m,isLastColumn:h,showLastBorder:l,isLeftColumn:a,showTotalCellDivider:g})}const b=i(f);return bs.jsxs(DA,{text:f.representation.text,reactWindowStyle:t,isLeftColumn:a,isLastRow:m,isLastColumn:h,isCellSelected:b,showTotalCellDivider:g,cell:f,data:r,isAdjustingWidth:d,index:e,children:[bs.jsxs(BL,{verticalAlign:FA(f),width:WL(f.representation),right:f.isLeftColumn?void 0:4,children:[bs.jsx(fI,{isLeftColumn:a,isCellSelected:b,cell:f}),bs.jsx(NA,{isLeftColumn:a,isCellSelected:b,cell:f,styleService:n})]}),bs.jsx(BI,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?Vt.Measures:Vt.Dimension},columnWidth:t.width,isLastColumn:h,setIsAdjustingWidth:p})]})};var zA=r.memo(jA,LL);const GA=({list:e,listValues:t,isLastRow:r,getRightGridColumnWidth:n})=>o=>{var i;const a=r?e[o]:t.at(o);return a&&0===o&&a.x>0?(a.leafCount+a.x+a.distanceToNextCell)*n():!r&&a?(a.leafCount+a.distanceToNextCell)*n():n(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o)},$A=(e,t,r,n)=>{const o=Object.values(e);let i,a=o.length;return n&&(a=r,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},BA=(e,t)=>r=>{e.current&&(e.current[t]=r)},WA={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...pg},HA={overflow:"hidden",willChange:"auto",flexShrink:0},VA=({leftGridRef:e,width:t,height:r,columnWidths:n,showLastBorder:o})=>{const{pageInfo:i}=wC(),{layoutService:a,styleService:{contentCellHeight:l,grid:{divider:s}}}=AC(),{qSize:u}=a.layout.qHyperCube,{gridSectionsData:{leftDimensionData:c},visibleDimensionsInfo:{visibleLeftDimensionInfo:d}}=bR();RA(e,c),wA(e,t,r,l);const p=i.rowsOnCurrentPage*l,f={...WA,borderColor:s,width:n.reduce(((e,t)=>e+t),0)};return bs.jsx("div",{style:f,"data-section-id":"LEFT_GRID",children:c.grid.map(((t,s)=>{const f=s===c.columnCount-1,m=BC(d[s]),{itemCount:h,estimatedItemSize:g,listValues:b}=$A(t,p,i.rowsOnCurrentPage,f),v=a.isIndentModeEnabled?()=>l:((e,t,r,n,o)=>i=>{const a=n?e[i]:t.at(i);if(a&&0===i&&a.pageY>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*r;if(a&&a.leafCount>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*r}return r})(t,b,l,f,u.qcy);return bs.jsx(EL,{ref:BA(e,s),style:{...HA,flexGrow:f?1:0},height:r,width:n[s],itemCount:h,itemSize:v,layout:"vertical",itemData:{list:t,isLeftColumn:!0,isLast:f,itemCount:h,showLastBorder:o,listValues:b,totalDividerIndex:c.totalDividerIndex},itemKey:kI,estimatedItemSize:g,children:zA},m)}))})};var YA=h(VA);const UA={overflow:"hidden",willChange:"auto"},KA={...pg,borderWidth:"0px 0px 0px 1px"},XA=({topGridRef:e,rowHightCallback:t,width:r,height:n,showLastBorder:o,getRightGridColumnWidth:i})=>{const{layoutService:a,styleService:{grid:{divider:l},headerCellHeight:s}}=AC(),{gridSectionsData:{headersData:u,topDimensionData:c}}=bR(),d={...KA,borderColor:l,height:n};RA(e,c),wA(e,r,n,s);const p=a.size.x*i();return 0===c.rowCount?bs.jsx("div",{style:{width:r,height:n,...KA}}):bs.jsx("div",{style:d,"data-section-id":"TOP_GRID",children:c.grid.map(((n,l)=>{const s=l===c.rowCount-1,{itemCount:d,estimatedItemSize:f,listValues:m}=$A(n,p,a.size.x,s),h=(({layoutService:e,headersData:t,topRowIndex:r})=>{var n;const o=t.data.at(r),i=t.size.x-1,a=e.isIndentModeEnabled&&t.size.x>1&&r+1===t.size.y?null===(n=o[0][i])||void 0===n?void 0:n.dimensionInfoIndex:null==o?void 0:o[i].dimensionInfoIndex;return void 0!==a?e.getDimensionInfo(a):void 0})({layoutService:a,headersData:u,topRowIndex:l}),g=h?BC(h):`empty ${l}`;return bs.jsx(EL,{ref:BA(e,l),style:UA,height:t(),width:r,itemCount:d,itemSize:GA({list:n,listValues:m,isLastRow:s,getRightGridColumnWidth:i}),layout:"horizontal",itemData:{list:n,isLast:s,itemCount:d,showLastBorder:o,listValues:m,totalDividerIndex:c.totalDividerIndex},itemKey:kI,estimatedItemSize:f,children:zA},g)}))})};var JA=h(XA);const ZA=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=AC(),r=GR(),n=(()=>{const{model:e}=IC(),t=p((async(t,r)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:n,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(r===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!n).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(),{gridSectionsWrapperRefs:{headerGridWrapperRef:o,topGridWrapperRef:i,leftGridWrapperRef:a,dataGridWrapperRef:l},gridRefs:{topGridRef:s,leftGridRef:u,dataGridRef:c},scrollDirectionRefs:{verticalScrollDirection:d,horizontalScrollDirection:m},scrollbarsDimensions:{verticalScrollbarWidth:h,horizontalScrollbarHeight:g,resetHorizontalScrollbarHeight:b}}=zR(),{leftGridWidth:v,leftGridFullWidth:y,leftGridColumnWidths:x,rightGridFullWidth:S,showLastRightBorder:E,getRightGridColumnWidth:C,getHeaderCellsIconsVisibilityStatus:w,overrideLeftGridWidth:R}=function({tableWidth:e,verticalScrollbarWidth:t,resetHorizontalScrollbarHeight:r}){const{layoutService:n,styleService:o}=AC(),{gridSectionsData:{headersData:i}}=bR(),{measureText:a}=Gg(o.header),l=OR({tableWidth:e}),s=TR({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:l.leftGridWidth}),u=l.leftGridWidth+s.rightGridFullWidth+1<e,c=p(((e,t,r="")=>{let o=e;n.isIndentModeEnabled&&(o=1,1===i.size.x&&(o=0));const s=l.leftGridColumnWidths[o];let u=!1,c=!1,d=a(r)+yR;return t&&d+20<=s&&(c=!0,d+=20),d+20<=s&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:c}}),[l.leftGridColumnWidths,a,n.isIndentModeEnabled,i.size.x]);return f((()=>{const e=l.leftGridWidth===l.leftGridFullWidth,t=s.rightGridWidth===s.rightGridFullWidth;e&&t&&r()}),[r,l.leftGridWidth,l.leftGridFullWidth,s.rightGridWidth,s.rightGridFullWidth]),{...l,...s,showLastRightBorder:u,getHeaderCellsIconsVisibilityStatus:c}}({tableWidth:r.width,verticalScrollbarWidth:h,resetHorizontalScrollbarHeight:b}),{gridScaffoldDimensions:L,headerGridDims:I,topGridDims:M,leftGridDims:D,dataGridDims:A,metadata:{everyThingFitsInTableRectHeight:P,scrollbarsVisibilityStatus:k}}=(({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:r,leftGridOriginalWidth:n,rightGridOriginalWidth:o},scrollBarsDimensions:{verticalScrollbarWidth:i,horizontalScrollbarHeight:a}})=>{const l=GR(),{pageInfo:s}=wC(),{gridSectionsData:{headersData:u,topDimensionData:c}}=bR(),d=Math.min(l.height*xR,Math.max(l.height*xR-25,l.height-t-a)),p=l.width*xR,f=s.rowsOnCurrentPage*t,m=Math.max(u.size.y,c.rowCount,1),h=e*m,g=e*m,b=Math.min(p,r),v=l.width-p,y=Math.max(v,l.width-b),x=Math.min(d,h,g),{availableHeight:S,everyThingFitsInTableRectHeight:E,everyThingFitsInTableRectWidth:C}=((e,t,r)=>{const n=t+1+r+i<=l.width,o=e+1+f+a,s=o-l.height<a||o<=l.height;return{availableHeight:s?o:l.height,everyThingFitsInTableRectHeight:s,everyThingFitsInTableRectWidth:n}})(x,b,y),w=S-d,R=Math.max(w,S-x),L=Math.min(R,f),I=Math.min(R,f),M=h+1+f,{visibilityStatus:D,metadata:{hasLeftGridOverflowX:A,hasDataGridOverflowX:P}}=(e=>{const{gridScaffold:{X_AXIS:{leftSectionWidth:t,rightSectionWidth:r},Y_AXIS:{topSectionHeight:n,bottomSectionHeight:o}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:i,rightSectionFullWidth:a},Y_AXIS:{topSectionFullHeight:l,bottomSectionFullHeight:s}}}=e,u=l>n,c=i>t,d=a>r,p=s>o;return{visibilityStatus:{topGrid:{overflowX:"hidden",overflowY:u?"scroll":"hidden"},leftGrid:{overflowX:c?"scroll":"hidden",overflowY:"hidden"},dataGrid:{overflowX:d?"scroll":"hidden",overflowY:p?"scroll":"hidden"}},metadata:{hasTopGridOverflowY:u,hasLeftGridOverflowX:c,hasDataGridOverflowX:d,hasDataGridOverflowY:p}}})({gridScaffold:{X_AXIS:{leftSectionWidth:b,rightSectionWidth:y},Y_AXIS:{topSectionHeight:x,bottomSectionHeight:R}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:n,rightSectionFullWidth:o},Y_AXIS:{topSectionFullHeight:g,bottomSectionFullHeight:M-g}}});return{gridScaffoldDimensions:{width:l.width,height:l.height,gridTemplateColumns:`${b}px ${y}px`,gridTemplateRows:`${x}px ${R}px`},headerGridDims:{width:-1,height:x},topGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:g},stickyWrapper:{width:y-1-i,height:-1},self:{width:Math.min(o,y)-(C?1:0)-i,height:g}},leftGridDims:{fullSizeWrapper:{width:b,height:M-g+(!A&&P?a:0)},stickyWrapper:{width:b,height:R-1-a},self:{width:b,height:Math.max(t,L-(E?0:a-1))}},dataGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:M-g+(!P&&A?a:0)},stickyWrapper:{width:y-1-i,height:R-1-a},self:{width:Math.min(o,y)-(C?1:0)-i,height:Math.max(t,I-(E?0:a-1))}},metadata:{everyThingFitsInTableRectHeight:E,scrollbarsVisibilityStatus:D}}})({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:v,leftGridOriginalWidth:y,rightGridOriginalWidth:S},scrollBarsDimensions:{verticalScrollbarWidth:h,horizontalScrollbarHeight:g}}),O=p((()=>e),[e]),T=p((()=>t),[t]);return(()=>{const{downloadService:e}=AC();f((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),bs.jsxs(BR,{style:L,children:[bs.jsx("div",{style:{overflow:"hidden"},ref:o,children:bs.jsx(CA,{tableWidth:r.width,leftGridWidth:v,columnWidths:x,getHeaderCellsIconsVisibilityStatus:w,rowHight:e,height:I.height,changeSortOrder:n,overrideLeftGridWidth:R})}),bs.jsx(VR,{style:k.topGrid,origin:Ut.TopGrid,ref:i,children:bs.jsx($R,{style:M.fullSizeWrapper,children:bs.jsx(YR,{style:M.stickyWrapper,children:bs.jsx(JA,{topGridRef:s,rowHightCallback:O,...M.self,showLastBorder:{right:E,bottom:!1},getRightGridColumnWidth:C})})})}),bs.jsx(VR,{style:k.leftGrid,origin:Ut.LeftGrid,ref:a,children:bs.jsx($R,{style:D.fullSizeWrapper,children:bs.jsx(YR,{style:D.stickyWrapper,children:bs.jsx(YA,{leftGridRef:u,...D.self,columnWidths:x,showLastBorder:{right:!1,bottom:P}})})})}),bs.jsx(VR,{style:k.dataGrid,origin:Ut.DataGrid,ref:l,children:bs.jsx($R,{style:A.fullSizeWrapper,children:bs.jsx(YR,{style:A.stickyWrapper,children:bs.jsx(qI,{dataGridRef:c,rowHightCallback:T,...A.self,showLastBorder:{right:E,bottom:P},getRightGridColumnWidth:C,verticalScrollDirection:d,horizontalScrollDirection:m})})})})]})},QA=()=>{const{keyboard:e,theme:t,interactions:r,translator:n}=IC(),{pageInfo:o,updatePageInfo:i,rect:a}=wC(),{layoutService:l}=AC(),{layout:s,hasData:u}=l;return bs.jsxs(bs.Fragment,{children:[u?bs.jsx(ZA,{}):null,bs.jsx(kC,{}),bs.jsx(EC,{paginationNeeded:o.shouldShowPagination,handleChangePage:e=>{i({page:e})},pageInfo:o,totalRowCount:o.totalRowCount,totalColumnCount:0,totalPages:o.totalPages,keyboard:e,translator:n,theme:t,interactions:r,rect:a,layout:s})]})},eP={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",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",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)"},tP=12,rP=14,nP=16,oP=24,iP=3,aP=300,lP=400,sP=600,uP=700,cP={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Sr(eP.GREYSCALE_0,.05),Sr(eP.GREEN_PALE,.5),Sr(eP.BLUE_PALE,.5),Sr(eP.GREEN_PALE,.5),Sr(eP.BLUE_PALE,.5),Sr(eP.GREEN_PALE,.5),Sr(eP.BLUE_PALE,.5);var dP;function pP(){return pP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pP.apply(null,arguments)}Sr(eP.GREEN_PALE,.5),Sr(eP.BLUE_PALE,.5),Sr(eP.GREEN_PALE,.5),Sr(eP.BLUE_PALE,.5);var fP,mP=function(e){return t.createElement("svg",pP({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),dP||(dP=t.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function hP(){return hP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hP.apply(null,arguments)}var gP=function(e){return t.createElement("svg",hP({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),fP||(fP=t.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 bP({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return bs.jsx("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})}function vP(e={}){return bs.jsx(bP,{...e,children:bs.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[bs.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),bs.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function yP(e={}){return bs.jsx(bP,{...e,children:bs.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:bs.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[bs.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),bs.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function xP(e={}){return bs.jsx(bP,{fontSize:"medium",...e,children:bs.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:bs.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:bs.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function SP(e={}){return bs.jsx(bP,{fontSize:"medium",...e,children:bs.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[bs.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),bs.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function EP({className:e}){return bs.jsx(bP,{fontSize:"small",className:e,children:bs.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:bs.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:bs.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:bs.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[bs.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),bs.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function CP(e={}){return bs.jsx(bP,{...e,children:bs.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:bs.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:bs.jsx("rect",{stroke:eP.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}bs.jsx(gP,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),bs.jsx(mP,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),bs.jsx(xP,{}),bs.jsx(SP,{}),bs.jsx((function(e={}){return bs.jsx(bP,{...e,children:bs.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:bs.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:bs.jsx("rect",{stroke:"#000000",fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}),{}),bs.jsx(vP,{}),bs.jsx(yP,{}),bs.jsx(mP,{style:{color:eP.TEXT_PRIMARY},"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16});const wP={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:iP,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var RP=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:eP.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:eP.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:bs.jsx(mP,{"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 ${eP.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:eP.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${eP.MISC_FOCUS_BORDER}`,borderRadius:iP,backgroundColor:eP.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 ${eP.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:eP.WHITE,color:eP.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:iP},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${eP.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:eP.GREYSCALE_0_15,backgroundColor:eP.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:eP.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${eP.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:eP.GREEN_PALE},"&:active":{backgroundColor:eP.GREEN_DARK},"&.Mui-focusVisible":{borderColor:eP.GREEN_PALE,boxShadow:`0 0 0 3px ${Mv(eP.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:eP.BLUE_PALE},"&:active":{backgroundColor:eP.BLUE_DARK},"&.Mui-focusVisible":{borderColor:eP.BLUE_PALE,boxShadow:`0 0 0 3px ${Mv(eP.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:iP,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:eP.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${eP.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:eP.GREYSCALE_0_15,backgroundColor:eP.GREYSCALE_100_60,"&:active":{backgroundColor:eP.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:eP.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${eP.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:eP.PURPLE,"&.Mui-focusVisible":{borderColor:eP.PURPLE,boxShadow:`0 0 0 3px ${Mv(eP.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:eP.GREEN,"&.Mui-focusVisible":{borderColor:eP.GREEN,boxShadow:`0 0 0 3px ${Mv(eP.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:eP.BLUE,"&.Mui-focusVisible":{borderColor:eP.BLUE,boxShadow:`0 0 0 3px ${Mv(eP.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:eP.ORANGE,"&.Mui-focusVisible":{borderColor:eP.ORANGE,boxShadow:`0 0 0 3px ${Mv(eP.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:eP.RED,"&.Mui-focusVisible":{borderColor:eP.RED,boxShadow:`0 0 0 3px ${Mv(eP.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:eP.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:eP.PURPLE_PALE},"&:active":{backgroundColor:eP.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:eP.PURPLE_PALE,boxShadow:`0 0 0 3px ${Mv(eP.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:eP.GREEN_PALE},"&:active":{backgroundColor:eP.GREEN_DARK},"&.Mui-focusVisible":{borderColor:eP.GREEN_PALE,boxShadow:`0 0 0 3px ${Mv(eP.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:eP.BLUE_PALE},"&:active":{backgroundColor:eP.BLUE_DARK},"&.Mui-focusVisible":{borderColor:eP.BLUE_PALE,boxShadow:`0 0 0 3px ${Mv(eP.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:eP.ORANGE_PALE},"&:active":{backgroundColor:eP.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:eP.ORANGE_PALE,boxShadow:`0 0 0 3px ${Mv(eP.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:eP.RED_PALE},"&:active":{backgroundColor:eP.RED_DARK},"&.Mui-focusVisible":{borderColor:eP.RED_PALE,boxShadow:`0 0 0 3px ${Mv(eP.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:eP.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:eP.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:iP,boxShadow:`inset 0 0 0 2px ${eP.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:bs.jsx(gP,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:tP,borderRadius:iP,color:eP.TEXT_PRIMARY,backgroundColor:eP.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:eP.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${eP.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:eP.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:eP.GREYSCALE_0_05,color:eP.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:eP.GREEN,borderColor:eP.GREEN},"&.MuiChip-outlinedInfo":{color:eP.BLUE,borderColor:eP.BLUE},"&.MuiChip-outlinedWarning":{color:eP.ORANGE,borderColor:eP.ORANGE},"&.MuiChip-outlinedError":{color:eP.RED,borderColor:eP.RED}},outlined:{border:`solid 1px ${eP.GREYSCALE_0_15}`,backgroundColor:eP.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:iP,boxShadow:"none",backgroundColor:eP.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:eP.GREEN,borderColor:eP.GREEN},outlinedSecondary:{color:eP.BLUE,borderColor:eP.BLUE},label:{fontFamily:cP.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:bs.jsx(gP,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:bs.jsx(mP,{"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:iP},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:iP,fontSize:rP,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:eP.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${eP.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:eP.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:eP.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:eP.GREYSCALE_0_05}}},popupIndicator:{borderRadius:iP,border:`solid 1px ${eP.GREYSCALE_0_15}`,color:eP.GREYSCALE_0_60,marginRight:0,width:oP,height:oP},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${eP.GREYSCALE_0_15}`},clearIndicator:{borderRadius:iP,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:eP.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:rP}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:tP,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:eP.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:eP.GREYSCALE_25,fontSize:tP,fontFamily:cP.FONT_FAMILY,fontWeight:sP,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:eP.TEXT_PRIMARY},"&.Mui-error":{color:eP.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:eP.TEXT_SECONDARY,content:"'(optional)'",fontWeight:lP,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:eP.TEXT_SECONDARY,content:"'(required)'",fontWeight:lP,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:rP,lineHeight:"16px",backgroundColor:eP.WHITE,borderRadius:iP,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${eP.GREYSCALE_0_05}`,borderColor:eP.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${eP.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${eP.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${eP.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${eP.RED}`,boxShadow:`0px 0px 0px 1px ${eP.RED}, inset 0 2px 0 0 ${eP.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${eP.GREYSCALE_0_10}`,borderColor:eP.GREYSCALE_0_10,backgroundColor:eP.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:eP.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:eP.GREYSCALE_0_15,borderRadius:iP,boxShadow:`inset 0 2px 0 0 ${eP.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>bs.jsx(mP,{...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:eP.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:eP.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:eP.GREYSCALE_0_03},"&:active":{backgroundColor:eP.GREYSCALE_0_10},"&:focus":{backgroundColor:eP.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${eP.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${eP.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:eP.GREYSCALE_0_30,"&:hover":{backgroundColor:eP.GREYSCALE_0_0,borderColor:eP.GREYSCALE_0_15},"& ~svg":{color:eP.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${eP.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:iP}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:eP.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${eP.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:eP.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:rP,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:tP,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:tP,fontWeight:sP,color:eP.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:sP}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${eP.GREYSCALE_0_15}, 0px 0px 0px 1px ${eP.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:bs.jsx(xP,{}),checkedIcon:bs.jsx(SP,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:eP.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${eP.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:eP.GREEN_PALE,boxShadow:`0 0 0 3px ${Mv(eP.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:eP.BLUE_PALE,boxShadow:`0 0 0 3px ${Mv(eP.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:eP.GREYSCALE_0_20}},"&.Mui-disabled":{fill:eP.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:bs.jsx(CP,{}),checkedIcon:bs.jsx(vP,{}),indeterminateIcon:bs.jsx(yP,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:iP,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:eP.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:eP.GREYSCALE_0_55,color:eP.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:eP.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:eP.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:eP.GREYSCALE_0_55,"&:hover":{color:eP.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:eP.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:eP.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:rP,color:eP.TEXT_PRIMARY,lineHeight:"16px",fontWeight:sP},secondary:{fontSize:tP,color:eP.GREYSCALE_45,fontWeight:lP,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:rP,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:rP,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:eP.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:tP,borderBottom:`solid 1px ${eP.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:rP,color:eP.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:eP.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:eP.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:eP.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:eP.RED}}},"&.Mui-focusVisible":{backgroundColor:eP.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:eP.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:eP.GREEN,height:"24px","&.Mui-disabled":{color:eP.GREYSCALE_0_15}},rail:{backgroundColor:eP.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${eP.GREYSCALE_0_05}`,borderRadius:iP,boxShadow:`inset 0px 0px 0px 1px ${eP.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${eP.GREYSCALE_0_05}`,borderRadius:iP},thumb:{height:"16px",width:"16px",borderRadius:iP,backgroundColor:eP.WHITE,boxShadow:`0px 1px 2px 0px ${eP.GREYSCALE_0_15}, 0px 0px 0px 1px ${eP.GREYSCALE_0_05}`,"&:hover":{borderRadius:iP,boxShadow:`0 2px 4px 0 ${eP.GREYSCALE_0_30}, 0 0 0 1px ${eP.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${eP.GREYSCALE_0_15}, 0 0 0 1px ${eP.GREYSCALE_0_06}, 0 0 0 2px ${eP.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${eP.GREYSCALE_0_15}, 0 0 0 1px ${eP.GREYSCALE_0_06}, 0 0 0 2px ${eP.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:eP.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:eP.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:eP.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:eP.GREYSCALE_0_15},markLabel:{color:eP.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:eP.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:eP.WHITE,color:eP.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:eP.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:eP.GREEN_PALE,boxShadow:`0 0 0 3px ${Mv(eP.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:eP.BLUE_PALE,boxShadow:`0 0 0 3px ${Mv(eP.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:eP.GREYSCALE_0_15,borderRadius:iP},thumb:{height:"16px",width:"16px",borderRadius:iP,backgroundColor:eP.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:rP,fontWeight:sP,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${eP.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${eP.MISC_FOCUS_BORDER}`,backgroundColor:eP.GREYSCALE_0_03,borderRadius:iP},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:eP.GREYSCALE_25,"&.Mui-selected":{color:eP.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:rP,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:iP,"&:hover":{backgroundColor:eP.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 ${eP.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${eP.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:iP,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:eP.GREYSCALE_0_05},"&:hover":{backgroundColor:eP.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${eP.GREYSCALE_85}`,borderRight:`1px solid ${eP.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:sP,backgroundColor:eP.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:eP.GREYSCALE_98,borderBottom:`1px solid ${eP.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${eP.GREYSCALE_85}`,borderTop:`1px solid ${eP.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:eP.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:eP.GREYSCALE_0_05,"&:hover":{backgroundColor:eP.GREYSCALE_0_03}},"&&:hover":{backgroundColor:eP.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>bs.jsx(EP,{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 ${eP.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:rP,borderRadius:iP,padding:"7px 16px",border:`1px solid ${eP.GREYSCALE_0_15}`,backgroundColor:eP.GREYSCALE_100_60,color:eP.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:eP.GREYSCALE_0_10,border:`1px solid ${eP.GREYSCALE_0_30}`},"&:hover":{backgroundColor:eP.GREYSCALE_0_03,border:`1px solid ${eP.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:eP.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${eP.MISC_FOCUS_BORDER}`,border:`1px solid ${eP.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:eP.GREYSCALE_25,backgroundColor:eP.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:eP.GREYSCALE_0_10,border:`1px solid ${eP.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:tP,height:24,width:24,padding:7},sizeLarge:{fontSize:nP,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:rP,borderRadius:iP}}},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:eP.GREYSCALE_20},tooltip:{backgroundColor:eP.GREYSCALE_20,fontSize:tP,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...wP}:{}}))(t);const LP=e=>({mode:"light",primary:{ultraLight:eP.GREEN_ULTRA_LIGHT,light:eP.GREEN_PALE,main:eP.GREEN,dark:eP.GREEN_DARK,extraDark:eP.GREEN_EXTRA_DARK,contrastText:eP.WHITE},secondary:{ultraLight:eP.BLUE_ULTRA_LIGHT,light:eP.BLUE_PALE,main:eP.BLUE,dark:eP.BLUE_DARK,extraDark:eP.BLUE_EXTRA_DARK,contrastText:eP.WHITE},error:{ultraLight:eP.RED_ULTRA_LIGHT,light:eP.RED_PALE,main:eP.RED,dark:eP.RED_DARK,extraDark:eP.RED_EXTRA_DARK,contrastText:eP.WHITE},warning:{ultraLight:eP.ORANGE_ULTRA_LIGHT,light:eP.ORANGE_PALE,main:eP.ORANGE,dark:eP.ORANGE_DARK,extraDark:eP.ORANGE_EXTRA_DARK,contrastText:eP.WHITE},success:{ultraLight:eP.GREEN_ULTRA_LIGHT,light:eP.GREEN_PALE,main:eP.GREEN,dark:eP.GREEN_DARK,extraDark:eP.GREEN_EXTRA_DARK,contrastText:eP.WHITE},info:{ultraLight:eP.BLUE_ULTRA_LIGHT,light:eP.BLUE_PALE,main:eP.BLUE,dark:eP.BLUE_DARK,extraDark:eP.BLUE_EXTRA_DARK,contrastText:eP.WHITE},text:{primary:eP.TEXT_PRIMARY,secondary:eP.TEXT_SECONDARY,disabled:eP.GREYSCALE_0_30},action:{hover:eP.GREYSCALE_0_03,hoverOpacity:.03,selected:eP.GREYSCALE_0_05,selectedOpacity:.05,focus:eP.MISC_FOCUS_BORDER},amethyst:{ultraLight:eP.WHITE,main:eP.PURPLE,light:eP.PURPLE_PALE,dark:eP.PURPLE_DARK,extraDark:eP.GREYSCALE_0_0,contrastText:eP.WHITE},background:{paper:eP.WHITE,default:eP.GREYSCALE_95},divider:eP.GREYSCALE_0_15}),IP=(e="light",t=!1)=>((e,t=!1)=>({components:RP(0,t),palette:LP(),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:rP,fontWeightLight:aP,fontWeightRegular:lP,fontWeightMedium:sP,fontWeightBold:uP,htmlFontSize:rP,fontFamily:cP.FONT_FAMILY,button:{fontWeight:sP,fontSize:rP,textTransform:"none"},body1:{fontSize:nP,lineHeight:"24px"},body2:{fontSize:rP,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:oP,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:nP,fontWeight:sP,lineHeight:"16px"},h6:{fontSize:rP,fontWeight:sP,lineHeight:"16px"},caption:{color:eP.TEXT_SECONDARY},subtitle1:{fontSize:rP,color:eP.TEXT_SECONDARY},subtitle2:{fontSize:tP,color:eP.TEXT_SECONDARY}},shape:{borderRadius:iP}}))(0,t);const MP=(e,{selections:t,baseObjects:n,coreServices:o,nebulaObjects:i})=>{const a=function(e){var t;const r=IP();return null!=r&&null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),Nx({...r,direction:e})}("ltr");e.render(bs.jsx(r.StrictMode,{children:bs.jsx(vS,{theme:a,children:bs.jsx(MC,{...i,children:bs.jsx(RC,{...n,children:bs.jsx(tI,{selections:t,children:bs.jsx(PC,{...o,children:bs.jsx(vR,{children:bs.jsx(QA,{})})})})})})})}))};var DP,AP,PP,kP;!function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.Border="border",e.Divider="divider"}(DP||(DP={})),function(e){e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2"}(AP||(AP={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(PP||(PP={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(kP||(kP={}));const OP=e=>e?`${parseInt(e,10)}px`:void 0,TP=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?ug.Transparent:r}},_P=(e,t)=>+(parseInt(e,10)*sg*t+8).toFixed(2),qP=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?ag:"normal",NP=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",FP=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",jP=document.createElement("textarea");function zP(e){jP.value=e,document.body.appendChild(jP),jP.select(),jP.setSelectionRange(0,jP.value.length),document.execCommand("copy"),document.body.removeChild(jP)}jP.style.position="absolute",jP.style.left="-9999px",jP.setAttribute("readonly","");function GP(e){null==R||R(((t,r)=>{const n=r.target,o=null==n?void 0:n.closest(`.${Zt}`);null!=o&&o.title&&t.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{(e=>{var t;const r=e.title;r&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(r).catch((()=>{zP(r)})):zP(r))})(o)}}),null==e||e.forEach((e=>{e(t,r,o)}))}))}const $P=({model:e,env:t,layoutService:r,effectivePropertiesService:n,translator:o})=>Ag(((i,a,l)=>{if(!e||n.qAlwaysFullyExpanded||!t.flags.isEnabled("CLIENT_IM_6273_EXPAND_OR_COLLAPSE_DIM"))return;const s=e,u=i.addItem({translation:"Object.PivotTable.ContextMenu.ExpandCollapse",tid:"expand-collapse-group"}),{qEffectiveDimensionName:c,label:d}=((e,t)=>{const r=((e,t)=>{const r=null==e?void 0:e.getAttribute("data-dimension-info-index");if("string"==typeof r)return t.getDimensionInfo(+r)})(e,t);return"object"==typeof r?{qEffectiveDimensionName:r.qEffectiveDimensionName,label:r.qFallbackTitle}:{qEffectiveDimensionName:void 0,label:void 0}})(l,r);u.addItem((e=>({icon:"lui-icon lui-icon--plus",translation:"Object.PivotTable.ContextMenu.ExpandAll",tid:"expand-all",select:async()=>{try{await e.expandTop(OC,0,0,!0),await e.expandLeft(OC,0,0,!0)}catch(e){console.error("Failed to expand all",e)}}}))(s)),"string"==typeof c&&u.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:r,label:n,translator:o})=>({icon:"lui-icon lui-icon--plus",translation:o.get("SNPivotTable.ContextMenu.ExpandDimension",[null!=n?n:""]),tid:"expand-dimension",select:nA({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:eA.Expand})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:c,label:d,translator:o})),u.addItem((e=>({icon:"lui-icon lui-icon--minus",translation:"Object.PivotTable.ContextMenu.CollapseAll",tid:"collapse-all",select:async()=>{try{await e.collapseTop(OC,0,0,!0),await e.collapseLeft(OC,0,0,!0)}catch(e){console.error("Failed to collapse all",e)}}}))(s)),"string"==typeof c&&u.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:r,label:n,translator:o})=>({icon:"lui-icon lui-icon--minus",translation:o.get("SNPivotTable.ContextMenu.CollapseDimension",[null!=n?n:""]),tid:"collapse-dimension",select:nA({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:eA.Collapse})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:c,label:d,translator:o}))}),[e,r,n]),BP=(e,t)=>y((()=>(({layout:e,flags:t})=>{var r,n,o,i;const{qHyperCube:a,nullValueRepresentation:l,snapshotData:s}=e,{qNoOfLeftDims:u,qEffectiveInterColumnSortOrder:c,qMeasureInfo:d,qDimensionInfo:p}=a,f=!!s,m=null!==(r=null==s||null===(n=s.content)||void 0===n?void 0:n.rowsPerPage)&&void 0!==r?r:15e3,h={x:Math.min(e.qHyperCube.qSize.qcx,lg),y:Math.min(e.qHyperCube.qSize.qcy,m)},g=c.slice(0,u),b=e=>g.some((t=>t===e)),v=b(TC),y=new Map(c.map((e=>{var t;return[null!==(t=p[e])&&void 0!==t?t:TC,e]}))),x=d.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return{layout:e,getNullValueText:()=>{var e;return null!==(e=null==l?void 0:l.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(v)return 0;const r=e%x.length;return t?r:d.findIndex((e=>e===x[r]))},getDimensionInfo:e=>e===TC?void 0:p.at(e),getDimensionInfoIndex:e=>{var t;return null!==(t=y.get(e))&&void 0!==t?t:-1},size:h,isSnapshot:f,hasLimitedData:!f&&h.x<e.qHyperCube.qSize.qcx,hasData:h.x>0&&h.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,hasPseudoDimOnLeft:v,leftDimensionInfoIndexes:g,isLeftDimension:b,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:x,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),indentModeFeatures:{isLinksSupported:t.isEnabled("CLIENT_IM_5975_INDENT_MODE_LINKS")},indentModeColumnWidth:null!==(o=e.qHyperCube.indentModeColumnWidth)&&void 0!==o?o:{type:rr.Auto,pixels:tr.PixelsDefault,percentage:tr.PercentageDefault},searchSortFromDimension:"inherit"===(null===(i=e.search)||void 0===i?void 0:i.sorting)}})({layout:e,flags:t})),[e,t]),WP=({model:e,layoutService:t,viewService:r,pageInfo:n,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=kg(e);return t.current=e,t})(dR(o));return Fg((async()=>{const{qHyperCube:t}=i,{maxNumberOfVisibleRows:o,maxNumberOfVisibleColumns:u}=s.current;var c,d;if(a)return null!==(c=null===(d=i.snapshotData)||void 0===d||null===(d=d.content)||void 0===d?void 0:d.qPivotDataPages)&&void 0!==c?c:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,r,n)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=n||t.gridRowStartIndex+t.gridHeight>=r))(l,r,o,u)||((e,t,r,n)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(n,l.qcx)||c<Math.min(r,l.qcy)})(i,n,o,u))){const t=((e,t,r,n,o,i)=>{const a=n.page*n.rowsPerPage,l=Math.min(a+n.rowsPerPage,r.qcy),s=Math.min(lg,r.qcx);if(r.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,r=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),r>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:c,qWidth:Math.min(s-u,i),qHeight:Math.min(l-c,o)}})(l,r,i.qHyperCube.qSize,n,o,u);return t?e.getHyperCubePivotData(OC,pR(t)):[]}return t.qPivotDataPages}),[i,a,e,r,n.page,n.rowsPerPage,s,l])},HP=({rowsPerPage:e,totalRowCount:t,page:r})=>Math.min(e,t-r*e),VP=(e,t,r=15e3)=>({rowsPerPage:r,totalPages:Math.max(1,Math.ceil(e/r)),totalRowCount:e,rowsOnCurrentPage:HP({rowsPerPage:r,totalRowCount:e,page:t})}),YP=15,UP=({layoutService:e,viewService:t,rect:r,model:n,pageInfo:o})=>{var i;return L((async e=>{const i=e;if(!i.snapshotData||!n||i.snapshotData.content)return i;if("getHyperCubePivotData"in n){const{scrollTop:e,scrollLeft:a,leftGridScrollLeft:l,topGridScrollTop:s}=t,u=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,l=t.page*t.rowsPerPage,s=Math.max(n-YP,0),u=Math.max(l+o-YP,l,0),c=lg-s,d=l+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=dR(r);return{qLeft:s,qTop:u,qWidth:Math.min(c,e+30),qHeight:Math.min(d,t+30)}}return{qLeft:s,qTop:u,qWidth:Math.min(c,i+30),qHeight:Math.min(d,a+30)}})(t,o,r),c=pR(u),d={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};i.snapshotData.content={qPivotDataPages:await n.getHyperCubePivotData(OC,[d,...c]),scrollTop:e,scrollLeft:a,leftGridScrollLeft:l,topGridScrollTop:s,page:o.page,rowsPerPage:o.rowsPerPage},i.snapshotData.object.size.w=r.width,i.snapshotData.object.size.h=r.height}return i})),I((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,topGridScrollTop:e.topGridScrollTop,renderPage:t.page}))(t,o)})),[t]),null!==(i=e.layout.snapshotData)&&void 0!==i&&i.content?{left:r.left,top:r.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:r};var KP={SNPivotTable_ContextMenu_CollapseDimension:{id:"SNPivotTable.ContextMenu.CollapseDimension",locale:{"de-DE":"{0} reduzieren","en-US":"Collapse {0}","es-ES":"Contraer {0}","fr-FR":"Réduire {0}","it-IT":"Comprimi {0}","ja-JP":"{0} を折りたたむ","ko-KR":"{0} 축소","nl-NL":"{0} samenvouwen","pl-PL":"Zwiń {0}","pt-BR":"Recolher {0}","ru-RU":"Свернуть {0}","sv-SE":"Dölj {0}","tr-TR":"{0} öğelerini daralt","zh-CN":"折叠 {0}","zh-TW":"收合 {0}"}},SNPivotTable_ContextMenu_ExpandDimension:{id:"SNPivotTable.ContextMenu.ExpandDimension",locale:{"de-DE":"{0} erweitern","en-US":"Expand {0}","es-ES":"Expandir {0}","fr-FR":"Développer {0}","it-IT":"Espandi {0}","ja-JP":"{0} を展開","ko-KR":"{0} 확장","nl-NL":"{0} uitvouwen","pl-PL":"Rozwiń {0}","pt-BR":"Expandir {0}","ru-RU":"Развернуть {0}","sv-SE":"Visa {0}","tr-TR":"{0} öğelerini genişlet","zh-CN":"展开 {0}","zh-TW":"展開 {0}"}},SNPivotTable_IndentMode_Rows:{id:"SNPivotTable.IndentMode.Rows",locale:{"de-DE":"Zeilen","en-US":"Rows","es-ES":"Filas","fr-FR":"Lignes","it-IT":"Righe","ja-JP":"行","ko-KR":"행","nl-NL":"Rijen","pl-PL":"Wiersze","pt-BR":"Linhas","ru-RU":"Строки","sv-SE":"Rader","tr-TR":"Satırlar","zh-CN":"行","zh-TW":"列"}},SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const XP=()=>{const e=M(),t=e.language();return y((()=>{!function(e){const t="SNPivotTable_LimitedData";e.get(t)===t&&Object.keys(KP).forEach((t=>{e.add(KP[t])}))}(e)}),[e]),{translator:e,language:t}},JP=e=>{const{flags:t}=e,r=D(),n=(e=>{const t=y((()=>$g(e)),[e]);return C((()=>()=>{t.unmount()}),[t]),t})(r),o=A(),i=P(),a=k(),l=O(),s=T(),u=_(),c=Og(),d=((e,t)=>{const[r]=Fg((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return{...await e.getEffectiveProperties()}}),[e,t]);return y((()=>{var e,t;const n=void 0!==(null==r?void 0:r.qHyperCubeDef.qSortbyYValue)&&1===Math.abs(r.qHyperCubeDef.qSortbyYValue),o=null!==(e=null==r?void 0:r.qHyperCubeDef.qDimensions.map((e=>e.qDef.qSortCriterias)))&&void 0!==e?e:[];return{qAlwaysFullyExpanded:null!==(t=null==r?void 0:r.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==t&&t,qExpansionState:null==r?void 0:r.qHyperCubeDef.qExpansionState,isSortedByFirstMeasure:n,getSortCriteriaForDimension:e=>o[e]}}),[r])})(i,o),p=BP(o,t),f=q(),m=Ng(o,r),{translator:h,language:g}=XP(),{pageInfo:b,updatePageInfo:v}=((e,t)=>{const{size:r,layout:{qHyperCube:{qSize:n}}}=e,o=t.isDownloadedAsPDForImage||e.isSnapshot,i=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(e),[a,l]=E((()=>{const a=((e,t)=>{var r,n,o,i;return t.isDownloadedAsPDForImage?null!==(r=null===(n=t.viewState)||void 0===n?void 0:n.renderPage)&&void 0!==r?r:0:e.isSnapshot&&null!==(o=null===(i=e.layout.snapshotData)||void 0===i||null===(i=i.content)||void 0===i?void 0:i.page)&&void 0!==o?o:0})(e,t);return{page:a,shouldShowPagination:n.qcy>r.y&&!o,...VP(n.qcy,a,i)}})),s=e.layout.qHyperCube.qSize.qcy;return C((()=>{l((t=>({...t,...VP(s,t.page,i),shouldShowPagination:s>e.size.y&&!o})))}),[s,e.size.y,l,o,i]),C((()=>{const{page:e,totalPages:t}=a;if(e+1>t){const e=t-1,r=HP({...a,page:e});l({...a,page:e,rowsOnCurrentPage:r})}}),[a]),{pageInfo:a,updatePageInfo:e=>{l({...a,...e,rowsOnCurrentPage:HP({...a,...e})})}}})(p,c),x=((e,t,r)=>y((()=>((e,t)=>{var r,n,o,i,a,l,s,u;if(e.isDownloadedAsPDForImage){var c,d,p,f;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(c=null==t?void 0:t.scrollTop)&&void 0!==c?c:0,scrollLeft:null!==(d=null==t?void 0:t.scrollLeft)&&void 0!==d?d:0,leftGridScrollLeft:null!==(p=null==t?void 0:t.leftGridScrollLeft)&&void 0!==p?p:0,topGridScrollTop:null!==(f=null==t?void 0:t.topGridScrollTop)&&void 0!==f?f:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(r=null==t||null===(n=t.content)||void 0===n?void 0:n.scrollTop)&&void 0!==r?r:0,scrollLeft:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.leftGridScrollLeft)&&void 0!==a?a:0,topGridScrollTop:null!==(s=null==t||null===(u=t.content)||void 0===u?void 0:u.topGridScrollTop)&&void 0!==s?s:0}})(r,t.snapshotData)),[r,e.page,t.snapshotData]))(b,o,c),S=UP({rect:N(),layoutService:p,viewService:x,model:i,pageInfo:b}),[w,R]=WP({model:i,layoutService:p,viewService:x,pageInfo:b,rect:S}),L=y((()=>((e,t,r)=>{var n,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,L,I,M,D,A,P,k,O,T,_,q,N,F,j,z,G,$,B,W,H,V,Y,U,K;const X=null===(n=t.layout.components)||void 0===n?void 0:n.find((e=>"theme"===e.key)),J=null==X?void 0:X.header,Z=null==X?void 0:X.dimensionValues,Q=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,re=null==X?void 0:X.nullValues,ne=null==X?void 0:X.grid,oe=(t,r,n)=>e.getStyle(t,r,n),ie=+(null!==(o=null!==(i=null==ne?void 0:ne[DP.LineClamp])&&void 0!==i?i:oe(AP.Grid,PP.Grid,kP.LineClamp))&&void 0!==o?o:1),ae=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==ne?void 0:ne[DP.ColumnLineClamp])&&void 0!==l?l:oe(AP.Grid,PP.Grid,kP.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=TP(e,null==J?void 0:J[DP.Background]))&&void 0!==u?u:oe(AP.Dimension,PP.LabelName,kP.BackgroundColor))&&void 0!==s?s:ug.Transparent,se={header:{fontSize:null!==(c=null!==(d=OP(null==J?void 0:J[DP.FontSize]))&&void 0!==d?d:oe(AP.Dimension,PP.LabelName,kP.FontSize))&&void 0!==c?c:og,fontFamily:null!==(p=null!==(f=null==J?void 0:J[DP.FontFamily])&&void 0!==f?f:oe(AP.Dimension,PP.LabelName,kP.FontFamily))&&void 0!==p?p:ig,fontWeight:qP(null==J?void 0:J[DP.FontStyle],ag),fontStyle:NP(null==J?void 0:J[DP.FontStyle]),textDecoration:FP(null==J?void 0:J[DP.FontStyle]),color:null!==(m=null!==(h=TP(e,null==J?void 0:J[DP.FontColor]))&&void 0!==h?h:oe(AP.Dimension,PP.LabelName,kP.FontColor))&&void 0!==m?m:mm.TEXT,background:le,hoverBackground:Vh(le,nr),activeBackground:Vh(le,or)},dimensionValues:{fontSize:null!==(g=null!==(b=OP(null==Z?void 0:Z[DP.FontSize]))&&void 0!==b?b:oe(AP.Dimension,PP.LabelValue,kP.FontSize))&&void 0!==g?g:og,fontFamily:null!==(v=null!==(y=null==Z?void 0:Z[DP.FontFamily])&&void 0!==y?y:oe(AP.Dimension,PP.LabelValue,kP.FontFamily))&&void 0!==v?v:ig,fontWeight:qP(null==Z?void 0:Z[DP.FontStyle],void 0),fontStyle:NP(null==Z?void 0:Z[DP.FontStyle]),textDecoration:FP(null==Z?void 0:Z[DP.FontStyle]),color:null!==(x=null!==(S=TP(e,null==Z?void 0:Z[DP.FontColor]))&&void 0!==S?S:oe(AP.Dimension,PP.LabelValue,kP.FontColor))&&void 0!==x?x:mm.TEXT,background:null!==(E=null!==(C=TP(e,null==Z?void 0:Z[DP.Background]))&&void 0!==C?C:oe(AP.Dimension,PP.LabelValue,kP.BackgroundColor))&&void 0!==E?E:ug.Transparent},measureValues:{fontSize:null!==(w=null!==(R=OP(null==Q?void 0:Q[DP.FontSize]))&&void 0!==R?R:oe(AP.Measure,PP.LabelValue,kP.FontSize))&&void 0!==w?w:og,fontFamily:null!==(L=null!==(I=null==Q?void 0:Q[DP.FontFamily])&&void 0!==I?I:oe(AP.Measure,PP.LabelValue,kP.FontFamily))&&void 0!==L?L:ig,fontWeight:qP(null==Q?void 0:Q[DP.FontStyle],"normal"),fontStyle:NP(null==Q?void 0:Q[DP.FontStyle]),textDecoration:FP(null==Q?void 0:Q[DP.FontStyle]),color:null!==(M=null!==(D=TP(e,null==Q?void 0:Q[DP.FontColor]))&&void 0!==D?D:oe(AP.Measure,PP.LabelValue,kP.FontColor))&&void 0!==M?M:ug.FontSecondary,background:null!==(A=null!==(P=TP(e,null==Q?void 0:Q[DP.Background]))&&void 0!==P?P:oe(AP.Measure,PP.LabelValue,kP.BackgroundColor))&&void 0!==A?A:ug.Transparent},measureLabels:{fontWeight:qP(null==ee?void 0:ee[DP.FontStyle],"normal"),fontStyle:NP(null==ee?void 0:ee[DP.FontStyle]),textDecoration:FP(null==ee?void 0:ee[DP.FontStyle]),color:null!==(k=null!==(O=TP(e,null==ee?void 0:ee[DP.FontColor]))&&void 0!==O?O:oe(AP.Measure,PP.LabelName,kP.FontColor))&&void 0!==k?k:ug.FontSecondary,background:null!==(T=null!==(_=TP(e,null==ee?void 0:ee[DP.Background]))&&void 0!==_?_:oe(AP.Measure,PP.LabelName,kP.BackgroundColor))&&void 0!==T?T:ug.Transparent},totalValues:{fontWeight:qP(null==te?void 0:te[DP.FontStyle],ag),fontStyle:NP(null==te?void 0:te[DP.FontStyle]),textDecoration:FP(null==te?void 0:te[DP.FontStyle]),color:null!==(q=null!==(N=TP(e,null==te?void 0:te[DP.FontColor]))&&void 0!==N?N:oe(AP.Total,PP.LabelValue,kP.FontColor))&&void 0!==q?q:mm.TEXT,background:null!==(F=null!==(j=TP(e,null==te?void 0:te[DP.Background]))&&void 0!==j?j:oe(AP.Total,PP.LabelValue,kP.BackgroundColor))&&void 0!==F?F:ug.Transparent},nullValues:{fontWeight:qP(null==re?void 0:re[DP.FontStyle],"normal"),fontStyle:NP(null==re?void 0:re[DP.FontStyle]),textDecoration:FP(null==re?void 0:re[DP.FontStyle]),color:null!==(z=null!==(G=TP(e,null==re?void 0:re[DP.FontColor]))&&void 0!==G?G:oe(AP.Null,PP.LabelValue,kP.FontColor))&&void 0!==z?z:mm.TEXT,background:null!==($=null!==(B=TP(e,null==re?void 0:re[DP.Background]))&&void 0!==B?B:oe(AP.Null,PP.LabelValue,kP.BackgroundColor))&&void 0!==$?$:ug.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(W=null!==(H=TP(e,null==ne?void 0:ne[DP.Border]))&&void 0!==H?H:oe(AP.Grid,PP.Grid,kP.BorderColor))&&void 0!==W?W:ug.DividerLight,divider:null!==(V=null!==(Y=TP(e,null==ne?void 0:ne[DP.Divider]))&&void 0!==Y?Y:oe(AP.Grid,PP.Divider,kP.BorderColor))&&void 0!==V?V:ug.DividerDark,background:null!==(U=null!==(K=TP(e,null==ne?void 0:ne[DP.Background]))&&void 0!==K?K:oe(AP.Grid,PP.Grid,kP.BackgroundColor))&&void 0!==U?U:ug.Transparent},selectedColors:Hh(e)};return se.headerCellHeight=Math.max(_P(se.header.fontSize,ae),_P(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(_P(se.measureValues.fontSize,ie),_P(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=_P(se.dimensionValues.fontSize,1),se})(m,p,t)),[m,p,t]),I=((e,t,r)=>{const[,n,o]=Fg((async()=>{var t;const n=qm(r.flags),o=e.getStyle("","","fontFamily"),i=e.getStyle("object","label.name","fontFamily"),a=e.getStyle("object","label.value","fontFamily"),l=null!==(t=e.getStyle("","","fontFamilies"))&&void 0!==t?t:[];return Promise.all([...n,...l,o,i,a,Wg].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,r]);return o?(console.warn("Failed to load fonts:",o),!0):!n})(m,o,e);GP([$P({model:i,env:e,layoutService:p,effectivePropertiesService:d,translator:h})]),C((()=>{!R&&i&&!!w&&I&&MP(n,{selections:f,baseObjects:{rect:S,pageInfo:b,qPivotDataPages:w,updatePageInfo:v},nebulaObjects:{env:e,app:a,model:i,embed:l,theme:m,keyboard:s,translator:h,interactions:u},coreServices:{styleService:L,viewService:x,layoutService:p,downloadService:c,effectivePropertiesService:d}})}),[i,a,S,u,f,x,p,c,R,w,L,n,I,h,g,b,v,d,l,s,m,e])},ZP={version:"4.3.0",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]},QP=()=>({...ZP,qHyperCubeDef:{...ZP.qHyperCubeDef,qIndentMode:!1}})}}}));