@nebula.js/sn-pivot-table 3.7.1 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sn-pivot-table.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-pivot-table v3.
|
|
2
|
+
* @nebula.js/sn-pivot-table v3.8.0
|
|
3
3
|
* Copyright (c) 2024 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@nebula.js/stardust")):"function"==typeof define&&define.amd?define(["@nebula.js/stardust"],t):(e="undefined"!=typeof globalThis?globalThis:e||self)["sn-pivot-table"]=t(e.stardust)}(this,(function(e){"use strict";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var o={exports:{}};!function(e,t){self,e.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{r.r(o),r.d(o,{default:()=>Pe});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function v(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function b(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(v("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(v("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=b(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=m(0),h=m(1),g=b(d,f),v=b(p,h);return"".concat(a,"({1<").concat(g,",").concat(v,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function 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={},k=Array.isArray;function I(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function _(e){return void 0===e}function M(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function P(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=_(e[n||t])?i:e[t],e=e[n||t]}})),e}function A(e,t){var n=!0;if(I(e)&&I(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){A(e[r],t[r])||(n=!1)})),n);if(k(e)&&k(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!A(e[r],t[r]))return!1;return!0}return e===t}L.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);A(i,a)||M(t,o)||(_(a)?r.push({op:"add",path:l,value:i}):I(i)&&I(a)?r=r.concat(L.generate(a,i,l)):k(i)&&k(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&_(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(A(t,o))return r;if(!_(t[0])&&_(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(L.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){_(t[o])&&!M(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},L.apply=function(e,t){t.forEach((function(t){var n,r,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(k(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(k(a)&&k(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)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(I(a)&&I(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!M(n,e)&&delete n[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=P(e,t.from);k(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(k(o)?o.splice(+i,1):delete o[i])}))},L.clone=function(e){return R({},e)},L.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},L.updateObject=function(e,t){Object.keys(e).length?L.apply(e,L.generate(e,t)):R(e,t)};const D=L,T=function(e,n,r){if(!e)return Promise.resolve();var o=D.generate(n,r);return t()(!0,n,r),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var O="accumulation";function N(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===O)return n[r]}function q(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===O)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(q(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(q(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(q(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(q(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=N(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=N(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(O))return!1;var i=N(t,e);return i&&!i.disabled}};return n}};var j="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function B(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var H={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),m=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var v=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var b=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(v,b,y);v=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return v},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var G="timeSeriesDecomposition";function V(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===G)return n[r]}function U(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===G)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=V(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var n=V(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(G))return!1;var i=V(t,e);return i&&!i.disabled}};return n}};var X="difference";function Q(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function J(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Z={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Z).forEach((function(t){void 0===e[t]&&(e[t]=Z[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(J(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(J(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(J(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=Q(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t,n){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,n){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t,n){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ve="qDef.qDef",be="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",ke={initBase:function(e,t){(t||ke.isValid(e))&&(n(e,be,i(e,ve)),n(e,xe,i(e,ye)),n(e,Ce,i(e,Se)),n(e,we,i(e,Ee)))},restoreBase:function(e){ke.isValid(e)&&(n(e,ve,i(e,be)),n(e,ye,i(e,xe)),n(e,Se,i(e,Ce)),n(e,Ee,i(e,we)),i(e,Re)&&i(e,Le)&&n(e,Re,i(e,Le)),delete e.qDef.base)},isValid:function(e){var t=i(e,be),n=i(e,xe);return void 0!==t||void 0!==n}};const Ie=ke;function _e(e){return _e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_e(e)}var Me={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Pe={modifiers:Me,apply:De,applyModifiers:Te,cleanUpMeasure:Oe,destroy:function(e){e&&Ae[e.id]&&Ae[e.id].masterItemSubscriber&&(Ae[e.id].masterItemSubscriber&&Ae[e.id].masterItemSubscriber.unsubscribe(),delete Ae[e.id])},hasActiveModifiers:Ne,getActiveModifier:qe,initBase:Ie.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Me[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Me[e]&&Me[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Ue({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Je({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Fe};var Ae={};function De(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Ae[n.id]=Ae[n.id]||{isFirstTime:!0};var u=Ae[n.id].isFirstTime;if(Ae[n.id].isFirstTime=!1,r&&"object"===_e(r))return Te({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Ae[n.id].lastReloadTime;if(Ae[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return m||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ue({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);Be(r);var o=Ze(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return m&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===_e(e)&&!e.disabled){if(n++,"object"!==_e(Me[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=Me[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Te({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===_e(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Ze(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return ze(r).forEach((function(e){return Oe(e)})),Qe({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function Te(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?t()(!0,{},o):o),Be(o);var p=Ze(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=ze(r)),!n.length)return Promise.resolve();if(!Ne({measures:n,properties:r}))return n.forEach((function(e){return Oe(e)})),Promise.resolve();var s=a?void 0:Ze(r);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ue({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Ie.isValid(n)||Ie.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===_e(e)&&!e.disabled){if(l++,"object"!==_e(Me[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)");Me[e.type].initModifier(e,n);var s=n.qLibraryId||c&&c.qLibraryId;s?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Me[r.type].generateExpression({expression:l,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:s,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Me[r.type].updateModifier&&Me[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:Me[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||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")}(n)}}))}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),He(n)):Oe(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Qe({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function Oe(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===_e(e)&&!e.disabled&&!Me[e.type]}))}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function Ne(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:je(e),properties:n,layout:r})}))}function qe(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Me[r.type]&&!r.disabled)return r}}function Fe(e){var t=qe(e);return!t||Me[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){ze(e).forEach((function(e){return function(e){var n=qe(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function He(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===_e(t)&&(t.disabled||!Me[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ge(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,n=e.properties,r=e.layout;return!Ge(t)&&Ue({modifiers:je(t),properties:n,layout:r})}function Ue(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==_e(e)||e.disabled||!Me[e.type])&&(void 0===o[e.type]&&(o[e.type]=Me[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Qe(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):T(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Je(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===_e(e)&&!e.disabled&&Me[e.type]&&Me[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Ze(e){var t=ze(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ue({modifiers:r,properties:e})){var i=Ge(t);i&&n.push(i),o=o||Je({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Ae[t.id].masterItemSubscriber=Ae[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return De({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Ae[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),o=Math.floor(n/62);return o>0?t(o)+r:r}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(r,{default:()=>Be});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var l=r[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c};var p=n(645),f=n.n(p);const m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var l,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,s(r.qMeasures));var a,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},v=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},b=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!i.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(r=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(r)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=a}var S=n(229),E=n.n(S);function C(e,t){var n=E()(!0,{},t,e);return i.getValue(n,"qOtherTotalSpec.qOtherCounted")||i.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(n,"qOtherTotalSpec.qOtherLimit")||i.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function w(e,t){return E()(!0,{},t,e)}function R(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var L=Math.pow(2,53)-1;function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const _=function(e,t,n){var r="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(n,"qInfo.qType");i.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},M=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},P=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},A=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}}},D=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},T=function(e){var t,n=e.exportFormat,r=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=n.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<r?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},O=function(e){var t,n=e.exportFormat,r=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=n.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<r?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},N=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,o=t.data[0],i=r.dimensions||{max:0},a=r.measures||{max:0},l=R(a.max,o.dimensions.length,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}},q=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(n.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?i.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},n,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return k(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 k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},B=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return I(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},H=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){i.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const G={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,n||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,v({exportFormat:o,properties:a}),n&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),b({exportFormat:o,properties:a}),r||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:r,hypercubePath:u}),v=i.getValue(r,u||"").qHyperCubeDef,b=i.getValue(g,u||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?A():w,L=s.defaultMeasure,k=void 0===L?D():L;b.qDimensions.length=0,b.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:b}),T({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:b,defaultDimension:R}),O({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:b,defaultMeasure:k}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),q({exportFormat:t,newHyperCubeDef:b}),M("qMaxStackedCells",v,b),M("qNoOfLeftDims",v,b),P("qInitialDataFetch",v,b,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),P("qMode",v,b,"S"),P("qReductionMode",v,b,"N"),P("qSortbyYValue",v,b),P("qIndentMode",v,b),P("qShowTotalsAbove",v,b),_(g,t,r),h.qProperty=g;var I=i.getValue(c||{},"support.modifiers");return H({measures:b.qMeasures,modifierTypes:I}),p&&W(h.qProperty,"storedFilters"),"S"===b.qMode&&m&&W(h.qProperty,"dynamicScript"),h}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,n,r){t=t||[];var o=c(e,r,n),i=c(t,r,n);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!V[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,o){n=n||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][n],l=t.length;if(U(a,t,r,o),Y(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},Q={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}}},J={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Z={scatterplot:J,"sn-scatter-plot":J,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(r,o);var s=r[r.length-1];if(s){var u=n?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,o?t.qDef=r.key:(t.qExpression=r.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:f,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p})}n?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,n,r){var o,i,a,l={};switch(e){case"dimension":n.qLibraryId?(l.type="dimension",l.name=n.qLibraryId,l.id=n.qLibraryId):(l.type="field",t?(l.name=n.label||n.qDef,l.id=n.qDef):(l.name=n.qDef.qFieldDefs[0],l.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(n,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),i&&(l.expression=i)):(l.type="expression",t?(l.name=n.label||n.qExpression,l.id=n.qExpression):(l.name=n.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var o=n?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(ne(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:n||l,key:n||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}r||(i.auto=!1,i.mode=a)}function le(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var o=oe("dimension",!1,n[r.activeDimensionIndex]);o.activeDimensionIndex=r.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=i.getValue(t,"visualization"),o=n.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===l}(n,e,t)?0:n.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Z[t]||Q).colorModeOptions||Q.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},de=function(e,t){var n,r=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(n={auto:o,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?le(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==l&&!o.length)}({auto:o,colorMode:r,dimensions:a,measures:l,properties:e})?function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qMeasures"),[]),r=i.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var o=oe("measure",!1,n[r.activeMeasureIndex],!0);o.activeMeasureIndex=r.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||r[0])),!!l}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=i.getValue(e,"color.mode"),r=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&o.length<2&&i.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=i.getValue(n,"qHyperCubeDef.qMeasures",[]),o=i.getValue(n,"color.mode","");return!t&&"byExpression"===o&&r.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n},ve={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=G.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=G.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),v=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:v,properties:d})&&me(d):he(d),v&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var be=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(n,"unsupportedAutoMinMax")||E()(n.measureAxis,t.measureAxis):W(n,"supportedAutoMinMax")||E()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,o=n.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),be.includes(r)&&t[o].type[r]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,n.properties.measureAxes[t[0].axis])):E()(l,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},Ee={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=ve.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=ve.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function we(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(n,r,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(n,r,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}var Le="qHyperCubeDef.qMeasures",ke="conditionalColoring",Ie="measures",_e="qDef.conditionalColoring";const Me={quarantine:function(e){we({properties:e,arrayPath:Le,quarantineName:ke,arrayName:Ie,itemPath:_e})},unquarantine:function(e){Re({properties:e,arrayPath:Le,itemPath:_e,arrayName:Ie,quarantineName:ke})}};var Pe="qHyperCubeDef.qMeasures",Ae="measures",De="qHyperCubeDef.qDimensions",Te="dimensions",Oe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",qe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",ze="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){we({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Ae,itemPath:ze}),we({properties:e,arrayPath:De,quarantineName:je,arrayName:Te,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Ae,itemPath:ze}),Re({properties:e,arrayPath:De,quarantineName:je,arrayName:Te,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ne,itemPath:ze}),we({properties:e,arrayPath:qe,quarantineName:je,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:qe,quarantineName:je,arrayName:Fe,itemPath:ze})}},Be={hypercube:G,colorChart:ve,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:Me,conditionalShow:$e}})(),r.default})()}(o);var i=n(o.exports);const a="qHyperCubeDef.qDimensions",l="dimensions",s="qDef.representation",u="tableRepresentation",c=e=>{i.unquarantineArrayProp({properties:e,arrayPath:a,itemPath:s,arrayName:l,quarantineName:u})},d=e=>{i.quarantineArrayProp({properties:e,arrayPath:a,itemPath:s,arrayName:l,quarantineName:u})};var p=["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"],f=["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 m(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?f:p}var h=Object.prototype.hasOwnProperty,g=Object.prototype.toString,v=Object.defineProperty,b=Object.getOwnPropertyDescriptor,y=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===g.call(e)},x=function(e){if(!e||"[object Object]"!==g.call(e))return!1;var t,n=h.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&h.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||h.call(e,t)},S=function(e,t){v&&"__proto__"===t.name?v(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},E=function(e,t){if("__proto__"===t){if(!h.call(e,t))return;if(b)return b(e,t).value}return e[t]};function C(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function w(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function R(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=E(l,n),l!==(o=E(t,n))&&(c&&o&&(x(o)||(i=y(o)))?(i?(i=!1,a=r&&y(r)?r:[]):a=r&&x(r)?r:{},S(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&S(l,{name:n,newValue:o}));return l}));var L=1/.7,k="\\s*([+-]?\\d+)\\s*",I="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",_="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",M=/^#([0-9a-f]{3,8})$/,P=new RegExp(`^rgb\\(${k},${k},${k}\\)$`),A=new RegExp(`^rgb\\(${_},${_},${_}\\)$`),D=new RegExp(`^rgba\\(${k},${k},${k},${I}\\)$`),T=new RegExp(`^rgba\\(${_},${_},${_},${I}\\)$`),O=new RegExp(`^hsl\\(${I},${_},${_}\\)$`),N=new RegExp(`^hsla\\(${I},${_},${_},${I}\\)$`),q={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 F(){return this.rgb().formatHex()}function z(){return this.rgb().formatRgb()}function j(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=M.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?$(t):3===n?new G(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?B(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?B(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=P.exec(e))?new G(t[1],t[2],t[3],1):(t=A.exec(e))?new G(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=D.exec(e))?B(t[1],t[2],t[3],t[4]):(t=T.exec(e))?B(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=O.exec(e))?Q(t[1],t[2]/100,t[3]/100,1):(t=N.exec(e))?Q(t[1],t[2]/100,t[3]/100,t[4]):q.hasOwnProperty(e)?$(q[e]):"transparent"===e?new G(NaN,NaN,NaN,0):null}function $(e){return new G(e>>16&255,e>>8&255,255&e,1)}function B(e,t,n,r){return r<=0&&(e=t=n=NaN),new G(e,t,n,r)}function H(e){return e instanceof R||(e=j(e)),e?new G((e=e.rgb()).r,e.g,e.b,e.opacity):new G}function W(e,t,n,r){return 1===arguments.length?H(e):new G(e,t,n,null==r?1:r)}function G(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function V(){return`#${X(this.r)}${X(this.g)}${X(this.b)}`}function U(){const e=Y(this.opacity);return`${1===e?"rgb(":"rgba("}${K(this.r)}, ${K(this.g)}, ${K(this.b)}${1===e?")":`, ${e})`}`}function Y(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function K(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function X(e){return((e=K(e))<16?"0":"")+e.toString(16)}function Q(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Z(e,t,n,r)}function J(e){if(e instanceof Z)return new Z(e.h,e.s,e.l,e.opacity);if(e instanceof R||(e=j(e)),!e)return new Z;if(e instanceof Z)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Z(a,l,s,e.opacity)}function Z(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ee(e){return(e=(e||0)%360)<0?e+360:e}function te(e){return Math.max(0,Math.min(1,e||0))}function ne(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}C(R,j,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:F,formatHex:F,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return J(this).formatHsl()},formatRgb:z,toString:z}),C(G,W,w(R,{brighter(e){return e=null==e?L:Math.pow(L,e),new G(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new G(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new G(K(this.r),K(this.g),K(this.b),Y(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:V,formatHex:V,formatHex8:function(){return`#${X(this.r)}${X(this.g)}${X(this.b)}${X(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:U,toString:U})),C(Z,(function(e,t,n,r){return 1===arguments.length?J(e):new Z(e,t,n,null==r?1:r)}),w(R,{brighter(e){return e=null==e?L:Math.pow(L,e),new Z(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Z(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new G(ne(e>=240?e-240:e+120,o,r),ne(e,o,r),ne(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Z(ee(this.h),te(this.s),te(this.l),Y(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=Y(this.opacity);return`${1===e?"hsl(":"hsla("}${ee(this.h)}, ${100*te(this.s)}%, ${100*te(this.l)}%${1===e?")":`, ${e})`}`}}));const re=Math.PI/180,oe=180/Math.PI,ie=4/29,ae=6/29,le=3*ae*ae;function se(e){if(e instanceof ue)return new ue(e.l,e.a,e.b,e.opacity);if(e instanceof me)return he(e);e instanceof G||(e=H(e));var t,n,r=fe(e.r),o=fe(e.g),i=fe(e.b),a=ce((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=ce((.4360747*r+.3850649*o+.1430804*i)/.96422),n=ce((.0139322*r+.0971045*o+.7141733*i)/.82521)),new ue(116*a-16,500*(t-a),200*(a-n),e.opacity)}function ue(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function ce(e){return e>.008856451679035631?Math.pow(e,1/3):e/le+ie}function de(e){return e>ae?e*e*e:le*(e-ie)}function pe(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function fe(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function me(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function he(e){if(isNaN(e.h))return new ue(e.l,0,0,e.opacity);var t=e.h*re;return new ue(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}C(ue,(function(e,t,n,r){return 1===arguments.length?se(e):new ue(e,t,n,null==r?1:r)}),w(R,{brighter(e){return new ue(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ue(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new G(pe(3.1338561*(t=.96422*de(t))-1.6168667*(e=1*de(e))-.4906146*(n=.82521*de(n))),pe(-.9787684*t+1.9161415*e+.033454*n),pe(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),C(me,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof me)return new me(e.h,e.c,e.l,e.opacity);if(e instanceof ue||(e=se(e)),0===e.a&&0===e.b)return new me(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*oe;return new me(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new me(e,t,n,null==r?1:r)}),w(R,{brighter(e){return new me(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new me(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return he(this).rgb()}}));var ge=e=>()=>e;function ve(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):ge(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?ve:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):ge(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=W(e)).r,(t=W(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=ve(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var be="center",ye="bottom";[{key:"NoDataExist",alignment:be,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:be,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:be,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:be},{key:"DataRangeIncludingZero",alignment:ye},{key:"LimitedData",alignment:ye},{key:"NegativeOrZeroValues",alignment:ye}].reduce((function(e,t){return e[t.key]=t,e}),{});var xe,Se=["__proto__","constructor"];function Ee(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!Se.some((function(e){return r.includes(e)}))){for(var i=e,a=0;a<r.length-1;++a){var l=r[a];void 0===i[l]&&(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}}}function Ce(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=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(r,i)}),n)}}function we(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Re(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=ke)):void 0===t&&(t=Le);for(var n,r,o,i,a,l=new Me(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new Me(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(_e)}function Le(e){return e.children}function ke(e){return Array.isArray(e)?e[1]:null}function Ie(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function _e(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Me(e){this.data=e,this.depth=this.height=0,this.parent=null}function Pe(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,n,r){const o=r&&"rows"===r.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")}}]}}Me.prototype=Re.prototype={constructor:Me,count:function(){return this.eachAfter(we)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Re(this).eachBefore(Ie)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},xe=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 n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),v=p-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},xe({exports:{}});const Ae="qHyperCubeDef.qDimensions",De="dimensions",Te="qOtherTotalSpec.qTotalMode",Oe="totalMode",Ne={quarantine(e){i.quarantineArrayProp({properties:e,arrayPath:Ae,quarantineName:Oe,arrayName:De,itemPath:Te})},unquarantine(e){i.unquarantineArrayProp({properties:e,arrayPath:Ae,quarantineName:Oe,arrayName:De,itemPath:Te})}};function qe(e){const t=Pe(e);return(e,n,r,o)=>{var a,l,s,u,d,p;const f=i.hypercube.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t.targets[0],hypercubePath:o}),m=((null===(a=f.qProperty)||void 0===a||null===(a=a.qHyperCubeDef)||void 0===a?void 0:a.qDimensions)||[]).length,h=(null===(l=f.qProperty)||void 0===l||null===(l=l.qHyperCubeDef)||void 0===l||null===(l=l.qMeasures)||void 0===l?void 0:l.length)||0;let g,v=(null===(s=f.qProperty)||void 0===s||null===(s=s.qHyperCubeDef)||void 0===s?void 0:s.qInterColumnSortOrder)||[],b=!0;m+h===v.length&&Ee(f,"qProperty.qLayoutExclude.quarantine.interColSortOrder",v.concat());const y=(null==f||null===(u=f.qProperty)||void 0===u||null===(u=u.qLayoutExclude)||void 0===u||null===(u=u.quarantine)||void 0===u?void 0:u.pivotInterColSortOrder)||void 0;y?(v=y,g=[...y],Ee(f,"qProperty.qHyperCubeDef.qInterColumnSortOrder",v),delete f.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):v.length=0;const x=+(v.indexOf(-1)>-1),S=m+x;if(S>v.length)for(let e=v.length;e<S;e++)v.indexOf(e)<0&&v.push(e-x);for(let e=v.length-1;e>=0;e--)v[e]>=m&&v.splice(e,1);h>1&&v.indexOf(-1)<0?v.push(-1):h<2&&v.indexOf(-1)>-1&&v.splice(v.indexOf(-1),1);const E=null!==(d=null==f||null===(p=f.qProperty)||void 0===p||null===(p=p.qHyperCubeDef)||void 0===p?void 0:p.qNoOfLeftDims)&&void 0!==d?d:-1;if(m>0&&-1===E&&Ee(f,"qProperty.qHyperCubeDef.qNoOfLeftDims",m),g&&v&&g.length===v.length){for(let e=0;e<g.length;e++)if(g[e]!==v[e]){b=!1;break}b&&i.unquarantineProperty(f.qProperty,"noOfLeftDims")}return i.conditionalShow.unquarantine(f.qProperty),Ne.unquarantine(f.qProperty),c(f.qProperty),i.unquarantineProperty(f.qProperty,"pivotTableIndentMode"),f}}function Fe(e,t){var n,r,o;const a=null!==(n=null==e||null===(r=e.qProperty)||void 0===r||null===(r=r.qHyperCubeDef)||void 0===r?void 0:r.qInterColumnSortOrder)&&void 0!==n?n:[],l=a.slice(),s=a.indexOf(-1);s>-1&&a.splice(s,1);const u=i.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),c=u.properties.qHyperCubeDef,p=c.qDimensions.length,f=c.qMeasures.length;let m=c.qInterColumnSortOrder;Ee(u,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",l),i.quarantineProperty(u.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete u.properties.qHyperCubeDef.qNoOfLeftDims;const h=null==u||null===(o=u.properties)||void 0===o||null===(o=o.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.interColSortOrder;h&&(m=h,Ee(u,"properties.qHyperCubeDef.qInterColumnSortOrder",m),Ee(u,"data.0.interColumnSortOrder",m),delete u.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=m.length;e<p+f;e++)m.length<=e&&m.push(e);return i.quarantineProperty(u.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),i.conditionalShow.quarantine(u.properties),Ne.quarantine(u.properties),d(u.properties),u}const ze={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},je=(e,t)=>{if(e||t)return{uses:"dimensionRepresentationItems.representationType",options(){const n=[{value:"text",translation:"Object.Table.Representation.Text"}];return t&&n.push({value:"url",translation:"Object.Table.Representation.Link"}),e&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),n}}},$e=e=>{if(e)return{representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition"},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel"},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl"}}},Be=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",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"}]}}}}},He=e=>{var t,n;const{anything:r,flags:o}=e,i=o.isEnabled("CLIENT_IM_5715_LINKS"),a=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=r&&null!==(t=r.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages"));return{representationType:je(a,i),...$e(i),...Be(a)}},We=e=>{var t,n;const{flags:r,anything:o}=e,i=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=o&&null!==(t=o.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages"));return{representationType:i?{uses:"measureRepresentationItems.representationType",options:[{value:"text",translation:"Object.Table.Representation.Text"},{value:"image",translation:"Object.Table.Representation.Image"}]}:void 0,representationImage:i?{uses:"measureRepresentationItems.representationImage",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}};var Ge,Ve,Ue,Ye;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(Ge||(Ge={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(Ve||(Ve={})),function(e){e.LEFT_GRID="leftGrid",e.DATA_GRID="dataGrid",e.CONTAINER_GRID="containerGrid"}(Ue||(Ue={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(Ye||(Ye={}));const Ke="12px",Xe="nebula-table-utils-head-menu-button",Qe="sn-copy-cell";let Je=function(e){return e.ENTER="Enter",e.SPACE=" ",e.ESC="Escape",e.TAB="Tab",e.SHIFT="Shift",e.LEFT="ArrowLeft",e.RIGHT="ArrowRight",e.UP="ArrowUp",e.DOWN="ArrowDown",e.C="c",e}({});const Ze="nebula-table-utils-column-adjuster",et=`${Ze}-border`;let tt=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}({}),nt=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});var rt,ot;!function(e){e.NX_DIM_CELL_VALUE="V",e.NX_DIM_CELL_EMPTY="E",e.NX_DIM_CELL_NORMAL="N",e.NX_DIM_CELL_TOTAL="T",e.NX_DIM_CELL_OTHER="O",e.NX_DIM_CELL_AGGR="A",e.NX_DIM_CELL_PSEUDO="P",e.NX_DIM_CELL_ROOT="R",e.NX_DIM_CELL_NULL="U",e.NX_DIM_CELL_GENERATED="G"}(rt||(rt={})),function(e){e.NX_CELL_DATA="D",e.NX_CELL_TOP="T",e.NX_CELL_LEFT="L"}(ot||(ot={}));var it=rt;const at="image",lt=(e,t,n)=>{if(!n.properties.qHyperCubeDef.qIndentMode)return!0;const r=n.properties.qHyperCubeDef.qInterColumnSortOrder.indexOf(-1);let o=n.properties.qHyperCubeDef.qNoOfLeftDims;r>-1&&r<o&&(o-=1);const i=n.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===i||i>=o},st=(e,t)=>!e.properties.qHyperCubeDef.qIndentMode||!t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),ut=e=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:nt.Auto,translation:"Common.Auto"},{value:nt.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:nt.Pixels,translation:"Object.Table.Column.Pixels"},{value:nt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:nt.Auto,show:(t,n,r)=>st(r,e)},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:tt.PixelsDefault,show:(t,n,r)=>{var o;return st(r,e)&&(null===(o=t.qDef.columnWidth)||void 0===o?void 0:o.type)===nt.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(tt.PixelsMin,Math.min(tt.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:tt.PercentageDefault,show:(t,n,r)=>{var o;return st(r,e)&&(null===(o=t.qDef.columnWidth)||void 0===o?void 0:o.type)===nt.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(tt.PercentageMin,Math.min(tt.PercentageMax,e.qDef.columnWidth.percentage)))}}}),ct=({key:e,translation:t,env:n})=>{var r,o;if(!n.flags.isEnabled("CLIENT_IM_5863_PVT_TEXT_ALIGN"))return;const i=n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(r=n.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"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 n;if(!i||"labelTextAlign"===e)return!0;return(null==t||null===(n=t.qDef)||void 0===n||null===(n=n.representation)||void 0===n?void 0:n.type)!==at}},[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 n,r;return!(void 0===t.qDef[e]||null!==(n=t.qDef[e])&&void 0!==n&&n.auto)&&(!i||"labelTextAlign"===e||(null===(r=t.qDef)||void 0===r||null===(r=r.representation)||void 0===r?void 0:r.type)!==at)}}}},dt="TOTAL_OFF",pt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Ve.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Ve.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},ft="TOTAL_OFF",mt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Ve.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Ve.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},ht=e=>{var t,n;const{translator:r,anything:o,flags:i}=e,a=(e=>{var t,n;const{translator:r,anything:o,flags:i}=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:dt,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:dt,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&<},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!=o&&null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==dt&<(e,0,n)}},dimensionLimits:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}:void 0}},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:pt,...ct({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ct({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...He(e),...ut(i)}}}},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:i.isEnabled("CLIENT_IM_5851_MEASURE_FORMATTING")?{uses:"measures.items.numberFormatting"}:void 0}},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:pt,...ct({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ct({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...We(e),...ut(i)}}}}}}})(e);return i.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?a:{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Properties.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:ft,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:ft,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&<},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!=o&&null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==ft&<(e,0,n)}},dimensionLimits:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}:void 0,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:mt,...ct({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ct({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...He(e),...ut(i)}},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:i.isEnabled("CLIENT_IM_5851_MEASURE_FORMATTING")?{uses:"measures.items.numberFormatting"}:void 0,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:mt,...ct({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ct({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...We(e),...ut(i)}}}}},gt="12px",vt="Source Sans Pro, sans-serif",bt="600",yt=15e3,xt=4/3,St=1;var Et,Ct;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(Et||(Et={})),function(e){e.Solid="solid",e.None="none"}(Ct||(Ct={}));const wt={display:"flex",justifyContent:"center",alignItems:"center"},Rt={borderStyle:"solid"},Lt={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},kt={lineHeight:xt,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},It=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),_t=(e,t)=>e>0?`${e}px ${Ct.Solid} ${t}`:Ct.None,Mt=(e,t,n,r)=>{const o=Number(!t||(null==r?void 0:r.right)),i=Number(!e||(null==r?void 0:r.bottom));return{borderRight:_t(o,n),borderBottom:_t(i,n),borderLeft:Ct.None,borderTop:Ct.None}},Pt=(e,t,n,r,o,i)=>{const a=Mt(t,r,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=_t(2,o)),n||(a.borderLeft=_t(1,o))),a},At=({bottomDivider:e,rightDivider:t,borderColor:n})=>{const r={};return e&&(r.borderBottom=_t(1,n)),t&&(r.borderRight=_t(1,n)),r},Dt=(e,t,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:!1,defaultValue(e,t,r){const o=r.theme.current(),i=n(o);return{color:i===Et.Transparent.toString()?"none":i}}}),Tt=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),Ot=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:Tt("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?Tt("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:Dt("grid.border","properties.border",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:Et.DividerLight})),divider:Dt("grid.divider","properties.pivot.divider",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n||null===(n=n.divider)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:Et.DividerDark})),background:Dt("grid.background","properties.background",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:Et.Transparent}))}}}}),Nt=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},qt=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,n,r)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:vt,l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>Nt(e,!0)))],c=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...m(r).filter((e=>!s.includes(e))).map((e=>Nt(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),Ft=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],zt=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{var r;const o=t.fontSize,i=null!==(r=t.fontSizes)&&void 0!==r?r:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>Nt(e,!1)))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...Ft.filter((e=>!a.includes(e))).map((e=>Nt(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),jt=(e,t,n)=>{var r,o,i,a,l,s;switch(t){case"header":return null==e||null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.dimension)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.name)||void 0===r?void 0:r[n];case"dimensionValues":return null==e||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[n];case"measureLabels":return null==e||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[n];case"measureValues":return null==e||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[n];case"totalValues":return null==e||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[n];case"nullValues":return null==e||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[n];default:return}},$t=({section:e,defaultFontStyle:t,translator:n,flags:r})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:qt({ref:`${e}.fontFamily`,themeAccessor:t=>{var n;return null!==(n=jt(t,e,"fontFamily"))&&void 0!==n?n:t.fontFamily},translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:zt({ref:`${e}.fontSize`,themeAccessor:t=>{var n;return null!==(n=jt(t,e,"fontSize"))&&void 0!==n?n:t.fontSize},translator:n}),fontColor:Dt(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=jt(t,e,"color"))&&void 0!==n?n:t.color}))}},background:Dt(`${e}.background`,"properties.background",(t=>{var n;return null!==(n=jt(t,e,"backgroundColor"))&&void 0!==n?n:Et.Transparent}))}}}}),Bt=({section:e,defaultFontStyle:t,fallbackBackground: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:Dt(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=jt(t,e,"color"))&&void 0!==n?n:t.color}))}},background:Dt(`${e}.background`,"properties.background",(t=>{var r,o;return null!==(r=null!==(o=jt(t,e,"backgroundColor"))&&void 0!==o?o:n)&&void 0!==r?r:Et.Transparent}))}}}}),Ht=(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:$t({section:"header",defaultFontStyle:["bold"],translator:e,flags:t}),dimensionValueSection:$t({section:"dimensionValues",translator:e,flags:t}),measureValueSection:$t({section:"measureValues",translator:e,flags:t}),measureLabelSection:Bt({section:"measureLabels"}),totalValuesSection:Bt({section:"totalValues",defaultFontStyle:["bold"]}),nullValuesSection:Bt({section:"nullValues",fallbackBackground:Et.NullValueBackground}),gridSection:Ot(t)}}]}),Wt=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:nt.Auto,translation:"Common.Auto"},{value:nt.Pixels,translation:"Object.Table.Column.Pixels"},{value:nt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:nt.Auto,show:e=>e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:tt.PixelsDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===nt.Pixels},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.pixels)&&(n.indentModeColumnWidth.pixels=Math.max(tt.PixelsMin,Math.min(tt.PixelsMax,n.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:tt.PercentageDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===nt.Percentage},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.percentage)&&(n.indentModeColumnWidth.percentage=Math.max(tt.PercentageMin,Math.min(tt.PercentageMaxInIndentMode,n.indentModeColumnWidth.percentage)))}}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(e){var t;return!e.qHyperCubeDef.qIndentMode&&(null===(t=e.qHyperCubeDef)||void 0===t||null===(t=t.qDimensions)||void 0===t?void 0:t.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,n,r){e.qHyperCubeDef.qExpansionState=[],r.$emit("saveProperties",e)}}}}),Gt=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[Ht(e,t),Wt(t)]}}}),Vt="auto",Ut={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=>{var t;return!(null==e||null===(t=e.qHyperCubeDef)||void 0===t||!t.qSortbyYValue)}}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:Vt,translation:"Object.Table.SortingInSearch",options:[{value:Vt,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function Yt(e){const{translator:t,flags:n}=e;return{type:"items",component:"accordion",items:{data:ht(e),sorting:Ut,addons:ze,settings:Gt(t,n)}}}function Kt(e){return{support:{cssScaling:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),snapshot:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),export:e.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:Yt(e),importProperties:qe(e),exportProperties:Fe}}function Xt(){return Xt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xt.apply(this,arguments)}var Qt={exports:{}};function Jt(){}function Zt(){}Zt.resetWarningCache=Jt;Qt.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Zt,resetWarningCache:Jt};return n.PropTypes=n,n}();var en=n(Qt.exports);function tn(e){if(e.type)return e;if("#"===e.charAt(0))return tn(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function nn(e,t){return e=tn(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}(e)}function rn(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function on(e,t){return on=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},on(e,t)}function an(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,on(e,t)}var ln={exports:{}},sn={},un=Symbol.for("react.element"),cn=Symbol.for("react.portal"),dn=Symbol.for("react.fragment"),pn=Symbol.for("react.strict_mode"),fn=Symbol.for("react.profiler"),mn=Symbol.for("react.provider"),hn=Symbol.for("react.context"),gn=Symbol.for("react.forward_ref"),vn=Symbol.for("react.suspense"),bn=Symbol.for("react.memo"),yn=Symbol.for("react.lazy"),xn=Symbol.iterator;var Sn={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},En=Object.assign,Cn={};function wn(e,t,n){this.props=e,this.context=t,this.refs=Cn,this.updater=n||Sn}function Rn(){}function Ln(e,t,n){this.props=e,this.context=t,this.refs=Cn,this.updater=n||Sn}wn.prototype.isReactComponent={},wn.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},wn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},Rn.prototype=wn.prototype;var kn=Ln.prototype=new Rn;kn.constructor=Ln,En(kn,wn.prototype),kn.isPureReactComponent=!0;var In=Array.isArray,_n=Object.prototype.hasOwnProperty,Mn={current:null},Pn={key:!0,ref:!0,__self:!0,__source:!0};function An(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)_n.call(t,r)&&!Pn.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:un,type:e,key:i,ref:a,props:o,_owner:Mn.current}}function Dn(e){return"object"==typeof e&&null!==e&&e.$$typeof===un}var Tn=/\/+/g;function On(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function Nn(e,t,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case un:case cn:a=!0}}if(a)return o=o(a=e),e=""===r?"."+On(a,0):r,In(o)?(n="",null!=e&&(n=e.replace(Tn,"$&/")+"/"),Nn(o,t,n,"",(function(e){return e}))):null!=o&&(Dn(o)&&(o=function(e,t){return{$$typeof:un,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(Tn,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=""===r?".":r+":",In(e))for(var l=0;l<e.length;l++){var s=r+On(i=e[l],l);a+=Nn(i,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=xn&&e[xn]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(i=e.next()).done;)a+=Nn(i=i.value,t,n,s=r+On(i,l++),o);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function qn(e,t,n){if(null==e)return e;var r=[],o=0;return Nn(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function Fn(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var zn={current:null},jn={transition:null},$n={ReactCurrentDispatcher:zn,ReactCurrentBatchConfig:jn,ReactCurrentOwner:Mn};function Bn(){throw Error("act(...) is not supported in production builds of React.")}sn.Children={map:qn,forEach:function(e,t,n){qn(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return qn(e,(function(){t++})),t},toArray:function(e){return qn(e,(function(e){return e}))||[]},only:function(e){if(!Dn(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},sn.Component=wn,sn.Fragment=dn,sn.Profiler=fn,sn.PureComponent=Ln,sn.StrictMode=pn,sn.Suspense=vn,sn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$n,sn.act=Bn,sn.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=En({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=Mn.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)_n.call(t,s)&&!Pn.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==l?l[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:un,type:e.type,key:o,ref:i,props:r,_owner:a}},sn.createContext=function(e){return(e={$$typeof:hn,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:mn,_context:e},e.Consumer=e},sn.createElement=An,sn.createFactory=function(e){var t=An.bind(null,e);return t.type=e,t},sn.createRef=function(){return{current:null}},sn.forwardRef=function(e){return{$$typeof:gn,render:e}},sn.isValidElement=Dn,sn.lazy=function(e){return{$$typeof:yn,_payload:{_status:-1,_result:e},_init:Fn}},sn.memo=function(e,t){return{$$typeof:bn,type:e,compare:void 0===t?null:t}},sn.startTransition=function(e){var t=jn.transition;jn.transition={};try{e()}finally{jn.transition=t}},sn.unstable_act=Bn,sn.useCallback=function(e,t){return zn.current.useCallback(e,t)},sn.useContext=function(e){return zn.current.useContext(e)},sn.useDebugValue=function(){},sn.useDeferredValue=function(e){return zn.current.useDeferredValue(e)},sn.useEffect=function(e,t){return zn.current.useEffect(e,t)},sn.useId=function(){return zn.current.useId()},sn.useImperativeHandle=function(e,t,n){return zn.current.useImperativeHandle(e,t,n)},sn.useInsertionEffect=function(e,t){return zn.current.useInsertionEffect(e,t)},sn.useLayoutEffect=function(e,t){return zn.current.useLayoutEffect(e,t)},sn.useMemo=function(e,t){return zn.current.useMemo(e,t)},sn.useReducer=function(e,t,n){return zn.current.useReducer(e,t,n)},sn.useRef=function(e){return zn.current.useRef(e)},sn.useState=function(e){return zn.current.useState(e)},sn.useSyncExternalStore=function(e,t,n){return zn.current.useSyncExternalStore(e,t,n)},sn.useTransition=function(){return zn.current.useTransition()},sn.version="18.3.1",ln.exports=sn;var Hn=ln.exports,Wn=n(Hn),Gn=t({__proto__:null,default:Wn},[Hn]);const Vn={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"},Un={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Vn,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Yn=12,Kn=14,Xn=16,Qn=24,Jn=3,Zn=300,er=400,tr=600,nr=700,rr={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};nn(Un.GREYSCALE_0,.05),nn(Un.GREEN_PALE,.5),nn(Un.BLUE_PALE,.5),nn(Un.GREEN_PALE,.5),nn(Un.BLUE_PALE,.5),nn(Un.GREEN_PALE,.5),nn(Un.BLUE_PALE,.5);var or;function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ir.apply(this,arguments)}nn(Un.GREEN_PALE,.5),nn(Un.BLUE_PALE,.5),nn(Un.GREEN_PALE,.5),nn(Un.BLUE_PALE,.5);var ar,lr=function(e){return Hn.createElement("svg",ir({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),or||(or=Hn.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function sr(){return sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sr.apply(this,arguments)}var ur=function(e){return Hn.createElement("svg",sr({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),ar||(ar=Hn.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 cr({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Wn.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var dr=(e={})=>Wn.createElement(cr,{...e},Wn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},Wn.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Wn.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"}))),pr=(e={})=>Wn.createElement(cr,{...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Wn.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),fr=(e={})=>Wn.createElement(cr,{fontSize:"medium",...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},Wn.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),mr=(e={})=>Wn.createElement(cr,{fontSize:"medium",...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Wn.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"}))),hr=({className:e})=>Wn.createElement(cr,{fontSize:"small",className:e},Wn.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},Wn.createElement("g",{transform:"translate(4.324187, 1.300372)"},Wn.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"}),Wn.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 gr={black:"#000",white:"#fff"};var vr={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 br={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 yr={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 xr={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 Sr={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 Er={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 Cr={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 wr(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 Rr="$$material";function Lr(){return Lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lr.apply(this,arguments)}function kr(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Ir(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 _r=Object.freeze({__proto__:null,default:Ir}),Mr=function(){return Mr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Mr.apply(this,arguments)};function Pr(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Ar="-ms-",Dr="-moz-",Tr="-webkit-",Or="comm",Nr="rule",qr="decl",Fr="@import",zr="@keyframes",jr="@layer",$r=Math.abs,Br=String.fromCharCode,Hr=Object.assign;function Wr(e){return e.trim()}function Gr(e,t){return(e=t.exec(e))?e[0]:e}function Vr(e,t,n){return e.replace(t,n)}function Ur(e,t,n){return e.indexOf(t,n)}function Yr(e,t){return 0|e.charCodeAt(t)}function Kr(e,t,n){return e.slice(t,n)}function Xr(e){return e.length}function Qr(e){return e.length}function Jr(e,t){return t.push(e),e}function Zr(e,t){return e.filter((function(e){return!Gr(e,t)}))}var eo=1,to=1,no=0,ro=0,oo=0,io="";function ao(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:eo,column:to,length:a,return:"",siblings:l}}function lo(e,t){return Hr(ao("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function so(e){for(;e.root;)e=lo(e.root,{children:[e]});Jr(e,e.siblings)}function uo(){return oo=ro>0?Yr(io,--ro):0,to--,10===oo&&(to=1,eo--),oo}function co(){return oo=ro<no?Yr(io,ro++):0,to++,10===oo&&(to=1,eo++),oo}function po(){return Yr(io,ro)}function fo(){return ro}function mo(e,t){return Kr(io,e,t)}function ho(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 go(e){return Wr(mo(ro-1,yo(91===e?e+2:40===e?e+1:e)))}function vo(e){for(;(oo=po())&&oo<33;)co();return ho(e)>2||ho(oo)>3?"":" "}function bo(e,t){for(;--t&&co()&&!(oo<48||oo>102||oo>57&&oo<65||oo>70&&oo<97););return mo(e,fo()+(t<6&&32==po()&&32==co()))}function yo(e){for(;co();)switch(oo){case e:return ro;case 34:case 39:34!==e&&39!==e&&yo(oo);break;case 40:41===e&&yo(e);break;case 92:co()}return ro}function xo(e,t){for(;co()&&e+oo!==57&&(e+oo!==84||47!==po()););return"/*"+mo(t,ro-1)+"*"+Br(47===e?e:co())}function So(e){for(;!ho(po());)co();return mo(e,ro)}function Eo(e){return function(e){return io="",e}(Co("",null,null,null,[""],e=function(e){return eo=to=1,no=Xr(io=e),ro=0,[]}(e),0,[0],e))}function Co(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,v=1,b=0,y="",x=o,S=i,E=r,C=y;g;)switch(m=b,b=co()){case 40:if(108!=m&&58==Yr(C,d-1)){-1!=Ur(C+=Vr(go(b),"&","&\f"),"&\f",$r(u?l[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=go(b);break;case 9:case 10:case 13:case 32:C+=vo(m);break;case 92:C+=bo(fo()-1,7);continue;case 47:switch(po()){case 42:case 47:Jr(Ro(xo(co(),fo()),t,n,s),s);break;default:C+="/"}break;case 123*h:l[u++]=Xr(C)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(C=Vr(C,/\f/g,"")),f>0&&Xr(C)-d&&Jr(f>32?Lo(C+";",r,n,d-1,s):Lo(Vr(C," ","")+";",r,n,d-2,s),s);break;case 59:C+=";";default:if(Jr(E=wo(C,t,n,u,c,o,l,y,x=[],S=[],d,i),i),123===b)if(0===c)Co(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===Yr(C,3)?100:p){case 100:case 108:case 109:case 115:Co(e,E,E,r&&Jr(wo(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,r?x:S);break;default:Co(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=v=1,y=C="",d=a;break;case 58:d=1+Xr(C),f=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==uo())continue;switch(C+=Br(b),b*h){case 38:v=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Xr(C)-1)*v,v=1;break;case 64:45===po()&&(C+=go(co())),p=po(),c=d=Xr(y=C+=So(fo())),b++;break;case 45:45===m&&2==Xr(C)&&(h=0)}}return i}function wo(e,t,n,r,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=Qr(f),h=0,g=0,v=0;h<r;++h)for(var b=0,y=Kr(e,p+1,p=$r(g=a[h])),x=e;b<m;++b)(x=Wr(g>0?f[b]+" "+y:Vr(y,/&\f/g,f[b])))&&(s[v++]=x);return ao(e,t,n,0===o?Nr:l,s,u,c,d)}function Ro(e,t,n,r){return ao(e,t,n,Or,Br(oo),Kr(e,2,-2),0,r)}function Lo(e,t,n,r,o){return ao(e,t,n,qr,Kr(e,0,r),Kr(e,r+1,-1),r,o)}function ko(e,t,n){switch(function(e,t){return 45^Yr(e,0)?(((t<<2^Yr(e,0))<<2^Yr(e,1))<<2^Yr(e,2))<<2^Yr(e,3):0}(e,t)){case 5103:return Tr+"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 Tr+e+e;case 4789:return Dr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Tr+e+Dr+e+Ar+e+e;case 5936:switch(Yr(e,t+11)){case 114:return Tr+e+Ar+Vr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Tr+e+Ar+Vr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Tr+e+Ar+Vr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Tr+e+Ar+e+e;case 6165:return Tr+e+Ar+"flex-"+e+e;case 5187:return Tr+e+Vr(e,/(\w+).+(:[^]+)/,Tr+"box-$1$2"+Ar+"flex-$1$2")+e;case 5443:return Tr+e+Ar+"flex-item-"+Vr(e,/flex-|-self/g,"")+(Gr(e,/flex-|baseline/)?"":Ar+"grid-row-"+Vr(e,/flex-|-self/g,""))+e;case 4675:return Tr+e+Ar+"flex-line-pack"+Vr(e,/align-content|flex-|-self/g,"")+e;case 5548:return Tr+e+Ar+Vr(e,"shrink","negative")+e;case 5292:return Tr+e+Ar+Vr(e,"basis","preferred-size")+e;case 6060:return Tr+"box-"+Vr(e,"-grow","")+Tr+e+Ar+Vr(e,"grow","positive")+e;case 4554:return Tr+Vr(e,/([^-])(transform)/g,"$1"+Tr+"$2")+e;case 6187:return Vr(Vr(Vr(e,/(zoom-|grab)/,Tr+"$1"),/(image-set)/,Tr+"$1"),e,"")+e;case 5495:case 3959:return Vr(e,/(image-set\([^]*)/,Tr+"$1$`$1");case 4968:return Vr(Vr(e,/(.+:)(flex-)?(.*)/,Tr+"box-pack:$3"+Ar+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Tr+e+e;case 4200:if(!Gr(e,/flex-|baseline/))return Ar+"grid-column-align"+Kr(e,t)+e;break;case 2592:case 3360:return Ar+Vr(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,Gr(e.props,/grid-\w+-end/)}))?~Ur(e+(n=n[t].value),"span",0)?e:Ar+Vr(e,"-start","")+e+Ar+"grid-row-span:"+(~Ur(n,"span",0)?Gr(n,/\d+/):+Gr(n,/\d+/)-+Gr(e,/\d+/))+";":Ar+Vr(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return Gr(e.props,/grid-\w+-start/)}))?e:Ar+Vr(Vr(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Vr(e,/(.+)-inline(.+)/,Tr+"$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(Xr(e)-1-t>6)switch(Yr(e,t+1)){case 109:if(45!==Yr(e,t+4))break;case 102:return Vr(e,/(.+:)(.+)-([^]+)/,"$1"+Tr+"$2-$3$1"+Dr+(108==Yr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ur(e,"stretch",0)?ko(Vr(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Vr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,l){return Ar+n+":"+r+l+(o?Ar+n+"-span:"+(i?a:+a-+r)+l:"")+e}));case 4949:if(121===Yr(e,t+6))return Vr(e,":",":"+Tr)+e;break;case 6444:switch(Yr(e,45===Yr(e,14)?18:11)){case 120:return Vr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Tr+(45===Yr(e,14)?"inline-":"")+"box$3$1"+Tr+"$2$3$1"+Ar+"$2box$3")+e;case 100:return Vr(e,":",":"+Ar)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Vr(e,"scroll-","scroll-snap-")+e}return e}function Io(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function _o(e,t,n,r){switch(e.type){case jr:if(e.children.length)break;case Fr:case qr:return e.return=e.return||e.value;case Or:return"";case zr:return e.return=e.value+"{"+Io(e.children,r)+"}";case Nr:if(!Xr(e.value=e.props.join(",")))return""}return Xr(n=Io(e.children,r))?e.return=e.value+"{"+n+"}":""}function Mo(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case qr:return void(e.return=ko(e.value,e.length,n));case zr:return Io([lo(e,{value:Vr(e.value,"@","@"+Tr)})],r);case Nr:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(Gr(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":so(lo(e,{props:[Vr(t,/:(read-\w+)/,":"+Dr+"$1")]})),so(lo(e,{props:[t]})),Hr(e,{props:Zr(n,r)});break;case"::placeholder":so(lo(e,{props:[Vr(t,/:(plac\w+)/,":"+Tr+"input-$1")]})),so(lo(e,{props:[Vr(t,/:(plac\w+)/,":"+Dr+"$1")]})),so(lo(e,{props:[Vr(t,/:(plac\w+)/,Ar+"input-$1")]})),so(lo(e,{props:[t]})),Hr(e,{props:Zr(n,r)})}return""}))}}var Po={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},Ao="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Do="active",To="data-styled-version",Oo="6.1.11",No="/*!sc*/\n",qo="undefined"!=typeof window&&"HTMLElement"in window,Fo=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)),zo={},jo=Object.freeze([]),$o=Object.freeze({});function Bo(e,t,n){return void 0===n&&(n=$o),e.theme!==n.theme&&e.theme||t||n.theme}var Ho=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"]),Wo=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Go=/(^-|-$)/g;function Vo(e){return e.replace(Wo,"-").replace(Go,"")}var Uo=/(a)(d)/gi,Yo=52,Ko=function(e){return String.fromCharCode(e+(e>25?39:97))};function Xo(e){var t,n="";for(t=Math.abs(e);t>Yo;t=t/Yo|0)n=Ko(t%Yo)+n;return(Ko(t%Yo)+n).replace(Uo,"$1-$2")}var Qo,Jo=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Zo=function(e){return Jo(5381,e)};function ei(e){return Xo(Zo(e)>>>0)}function ti(e){return"string"==typeof e&&!0}var ni="function"==typeof Symbol&&Symbol.for,ri=ni?Symbol.for("react.memo"):60115,oi=ni?Symbol.for("react.forward_ref"):60112,ii={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ai={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},li={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},si=((Qo={})[oi]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Qo[ri]=li,Qo);function ui(e){return("type"in(t=e)&&t.type.$$typeof)===ri?li:"$$typeof"in e?si[e.$$typeof]:ii;var t}var ci=Object.defineProperty,di=Object.getOwnPropertyNames,pi=Object.getOwnPropertySymbols,fi=Object.getOwnPropertyDescriptor,mi=Object.getPrototypeOf,hi=Object.prototype;function gi(e,t,n){if("string"!=typeof t){if(hi){var r=mi(t);r&&r!==hi&&gi(e,r,n)}var o=di(t);pi&&(o=o.concat(pi(t)));for(var i=ui(e),a=ui(t),l=0;l<o.length;++l){var s=o[l];if(!(s in ai||n&&n[s]||a&&s in a||i&&s in i)){var u=fi(t,s);try{ci(e,s,u)}catch(e){}}}}return e}function vi(e){return"function"==typeof e}function bi(e){return"object"==typeof e&&"styledComponentId"in e}function yi(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function xi(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function Si(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ei(e,t,n){if(void 0===n&&(n=!1),!n&&!Si(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Ei(e[r],t[r]);else if(Si(t))for(var r in t)e[r]=Ei(e[r],t[r]);return e}function Ci(e,t){Object.defineProperty(e,"toString",{value:t})}function wi(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var 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,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw wi(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(No);return t},e}(),Li=new Map,ki=new Map,Ii=1,_i=function(e){if(Li.has(e))return Li.get(e);for(;ki.has(Ii);)Ii++;var t=Ii++;return Li.set(e,t),ki.set(t,e),t},Mi=function(e,t){Ii=t+1,Li.set(e,t),ki.set(t,e)},Pi="style[".concat(Ao,"][").concat(To,'="').concat(Oo,'"]'),Ai=new RegExp("^".concat(Ao,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Di=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},Ti=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(No),o=[],i=0,a=r.length;i<a;i++){var l=r[i].trim();if(l){var s=l.match(Ai);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(Mi(c,u),Di(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}};var Oi=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Ao,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Ao,Do),r.setAttribute(To,Oo);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},Ni=function(){function e(e){this.element=Oi(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw wi(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}(),qi=function(){function e(e){this.element=Oi(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Fi=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}(),zi=qo,ji={isServer:!qo,useCSSOMInjection:!Fo},$i=function(){function e(e,t,n){void 0===e&&(e=$o),void 0===t&&(t={});var r=this;this.options=Mr(Mr({},ji),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&qo&&zi&&(zi=!1,function(e){for(var t=document.querySelectorAll(Pi),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Ao)!==Do&&(Ti(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),Ci(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return ki.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||0===a.length)return"continue";var l="".concat(Ao,".g").concat(n,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),r+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(No)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return _i(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Mr(Mr({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Fi(n):t?new Ni(n):new qi(n)}(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(_i(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(_i(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(_i(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Bi=/&/g,Hi=/^\s*\/\/.*$/gm;function Wi(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=Wi(e.children,t)),e}))}var Gi=new $i,Vi=function(e){var t,n,r,o=void 0===e?$o:e,i=o.options,a=void 0===i?$o:i,l=o.plugins,s=void 0===l?jo:l,u=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===Nr&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Bi,n).replace(r,u))})),a.prefix&&c.push(Mo),c.push(_o);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var s=e.replace(Hi,""),u=Eo(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=Wi(u,a.namespace));var d,p=[];return Io(u,function(e){var t=Qr(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||wi(15),Jo(e,t.name)}),5381).toString():"",d}(),Ui=Wn.createContext({shouldForwardProp:void 0,styleSheet:Gi,stylis:Vi});function Yi(){return Hn.useContext(Ui)}Ui.Consumer;var Ki=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Vi);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Ci(this,(function(){throw wi(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Vi),this.name+e.hash},e}(),Xi=function(e){return e>="A"&&e<="Z"};function Qi(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Xi(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Ji=function(e){return null==e||!1===e||""===e},Zi=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Ji(i)&&(Array.isArray(i)&&i.isCss||vi(i)?r.push("".concat(Qi(o),":"),i,";"):Si(i)?r.push.apply(r,Pr(Pr(["".concat(o," {")],Zi(i),!1),["}"],!1)):r.push("".concat(Qi(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Po||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ea(e,t,n,r){return Ji(e)?[]:bi(e)?[".".concat(e.styledComponentId)]:vi(e)?!vi(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:ea(e(t),t,n,r):e instanceof Ki?n?(e.inject(n,r),[e.getName(r)]):[e]:Si(e)?Zi(e):Array.isArray(e)?Array.prototype.concat.apply(jo,e.map((function(e){return ea(e,t,n,r)}))):[e.toString()];var o}function ta(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(vi(n)&&!bi(n))return!1}return!0}var na=Zo(Oo),ra=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&ta(e),this.componentId=t,this.baseHash=Jo(na,t),this.baseStyle=n,$i.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=yi(r,this.staticRulesId);else{var o=xi(ea(this.rules,e,t,n)),i=Xo(Jo(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=yi(r,i),this.staticRulesId=i}else{for(var l=Jo(this.baseHash,n.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=xi(ea(c,e,t,n));l=Jo(l,d+u),s+=d}}if(s){var p=Xo(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=yi(r,p)}}return r},e}(),oa=Wn.createContext(void 0);oa.Consumer;var ia={};new Set;function aa(e,t,n){var r=bi(e),o=e,i=!ti(e),a=t.attrs,l=void 0===a?jo:a,s=t.componentId,u=void 0===s?function(e,t){var n="string"!=typeof e?"sc":Vo(e);ia[n]=(ia[n]||0)+1;var r="".concat(n,"-").concat(ei(Oo+n+ia[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return ti(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Vo(t.displayName),"-").concat(t.componentId):t.componentId||u,f=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(r&&o.shouldForwardProp){var h=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return h(e,t)&&g(e,t)}}else m=h}var v=new ra(n,p,r?o.componentStyle:void 0);function b(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=Wn.useContext(oa),c=Yi(),d=e.shouldForwardProp||c.shouldForwardProp,p=Bo(t,u,i)||$o,f=function(e,t,n){for(var r,o=Mr(Mr({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=vi(r=e[i])?r(o):r;for(var l in a)o[l]="className"===l?yi(o[l],a[l]):"style"===l?Mr(Mr({},o[l]),a[l]):a[l]}return t.className&&(o.className=yi(o.className,t.className)),o}(r,t,p),m=f.as||s,h={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?h.as=f.forwardedAs:d&&!d(g,m)||(h[g]=f[g]));var v=function(e,t){var n=Yi();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,f),b=yi(a,l);return v&&(b+=" "+v),f.className&&(b+=" "+f.className),h[ti(m)&&!Ho.has(m)?"class":"className"]=b,h.ref=n,Hn.createElement(m,h)}(y,e,t)}b.displayName=d;var y=Wn.forwardRef(b);return y.attrs=f,y.componentStyle=v,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=r?yi(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=r?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Ei(e,o[r],!0);return e}({},o.defaultProps,e):e}}),Ci(y,(function(){return".".concat(y.styledComponentId)})),i&&gi(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function la(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var sa=function(e){return Object.assign(e,{isCss:!0})};function ua(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(vi(e)||Si(e))return sa(ea(la(jo,Pr([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?ea(r):sa(ea(la(r,t)))}function ca(e,t,n){if(void 0===n&&(n=$o),!t)throw wi(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,ua.apply(void 0,Pr([r],o,!1)))};return r.attrs=function(r){return ca(e,t,Mr(Mr({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return ca(e,t,Mr(Mr({},n),r))},r}var da=function(e){return ca(aa,e)},pa=da;Ho.forEach((function(e){pa[e]=da(e)}));var fa=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ta(e),$i.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(xi(ea(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&$i.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function ma(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=ua.apply(void 0,Pr([e],t,!1)),o="sc-global-".concat(ei(JSON.stringify(r))),i=new fa(r,o),a=function(e){var t=Yi(),n=Wn.useContext(oa),r=Wn.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,zo,n,o);else{var l=Mr(Mr({},t),{theme:Bo(t,r,a.defaultProps)});i.renderStyles(e,l,n,o)}}(r,e,t.styleSheet,n,t.stylis),null};return Wn.memo(a)}function ha(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=xi(ua.apply(void 0,Pr([e],t,!1))),o=ei(r);return new Ki(o,r)}const ga=ma((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r}));var va=ga;
|
|
9
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),v=p-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},xe({exports:{}});const Ae="qHyperCubeDef.qDimensions",De="dimensions",Te="qOtherTotalSpec.qTotalMode",Oe="totalMode",Ne={quarantine(e){i.quarantineArrayProp({properties:e,arrayPath:Ae,quarantineName:Oe,arrayName:De,itemPath:Te})},unquarantine(e){i.unquarantineArrayProp({properties:e,arrayPath:Ae,quarantineName:Oe,arrayName:De,itemPath:Te})}};function qe(e){const t=Pe(e);return(e,n,r,o)=>{var a,l,s,u,d,p;const f=i.hypercube.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t.targets[0],hypercubePath:o}),m=((null===(a=f.qProperty)||void 0===a||null===(a=a.qHyperCubeDef)||void 0===a?void 0:a.qDimensions)||[]).length,h=(null===(l=f.qProperty)||void 0===l||null===(l=l.qHyperCubeDef)||void 0===l||null===(l=l.qMeasures)||void 0===l?void 0:l.length)||0;let g,v=(null===(s=f.qProperty)||void 0===s||null===(s=s.qHyperCubeDef)||void 0===s?void 0:s.qInterColumnSortOrder)||[],b=!0;m+h===v.length&&Ee(f,"qProperty.qLayoutExclude.quarantine.interColSortOrder",v.concat());const y=(null==f||null===(u=f.qProperty)||void 0===u||null===(u=u.qLayoutExclude)||void 0===u||null===(u=u.quarantine)||void 0===u?void 0:u.pivotInterColSortOrder)||void 0;y?(v=y,g=[...y],Ee(f,"qProperty.qHyperCubeDef.qInterColumnSortOrder",v),delete f.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):v.length=0;const x=+(v.indexOf(-1)>-1),S=m+x;if(S>v.length)for(let e=v.length;e<S;e++)v.indexOf(e)<0&&v.push(e-x);for(let e=v.length-1;e>=0;e--)v[e]>=m&&v.splice(e,1);h>1&&v.indexOf(-1)<0?v.push(-1):h<2&&v.indexOf(-1)>-1&&v.splice(v.indexOf(-1),1);const E=null!==(d=null==f||null===(p=f.qProperty)||void 0===p||null===(p=p.qHyperCubeDef)||void 0===p?void 0:p.qNoOfLeftDims)&&void 0!==d?d:-1;if(m>0&&-1===E&&Ee(f,"qProperty.qHyperCubeDef.qNoOfLeftDims",m),g&&v&&g.length===v.length){for(let e=0;e<g.length;e++)if(g[e]!==v[e]){b=!1;break}b&&i.unquarantineProperty(f.qProperty,"noOfLeftDims")}return i.conditionalShow.unquarantine(f.qProperty),Ne.unquarantine(f.qProperty),c(f.qProperty),i.unquarantineProperty(f.qProperty,"pivotTableIndentMode"),f}}function Fe(e,t){var n,r,o;const a=null!==(n=null==e||null===(r=e.qProperty)||void 0===r||null===(r=r.qHyperCubeDef)||void 0===r?void 0:r.qInterColumnSortOrder)&&void 0!==n?n:[],l=a.slice(),s=a.indexOf(-1);s>-1&&a.splice(s,1);const u=i.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),c=u.properties.qHyperCubeDef,p=c.qDimensions.length,f=c.qMeasures.length;let m=c.qInterColumnSortOrder;Ee(u,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",l),i.quarantineProperty(u.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete u.properties.qHyperCubeDef.qNoOfLeftDims;const h=null==u||null===(o=u.properties)||void 0===o||null===(o=o.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.interColSortOrder;h&&(m=h,Ee(u,"properties.qHyperCubeDef.qInterColumnSortOrder",m),Ee(u,"data.0.interColumnSortOrder",m),delete u.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=m.length;e<p+f;e++)m.length<=e&&m.push(e);return i.quarantineProperty(u.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),i.conditionalShow.quarantine(u.properties),Ne.quarantine(u.properties),d(u.properties),u}const ze={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},je=(e,t)=>{if(e||t)return{uses:"dimensionRepresentationItems.representationType",options(){const n=[{value:"text",translation:"Object.Table.Representation.Text"}];return t&&n.push({value:"url",translation:"Object.Table.Representation.Link"}),e&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),n}}},$e=e=>{if(e)return{representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition"},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel"},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl"}}},Be=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",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"}]}}}}},He=e=>{var t,n;const{anything:r,flags:o}=e,i=o.isEnabled("CLIENT_IM_5715_LINKS"),a=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=r&&null!==(t=r.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages"));return{representationType:je(a,i),...$e(i),...Be(a)}},We=e=>{var t,n;const{flags:r,anything:o}=e,i=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=o&&null!==(t=o.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages"));return{representationType:i?{uses:"measureRepresentationItems.representationType",options:[{value:"text",translation:"Object.Table.Representation.Text"},{value:"image",translation:"Object.Table.Representation.Image"}]}:void 0,representationImage:i?{uses:"measureRepresentationItems.representationImage",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}};var Ge,Ve,Ue,Ye;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(Ge||(Ge={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(Ve||(Ve={})),function(e){e.LEFT_GRID="leftGrid",e.DATA_GRID="dataGrid",e.CONTAINER_GRID="containerGrid"}(Ue||(Ue={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(Ye||(Ye={}));const Ke="12px",Xe="nebula-table-utils-head-menu-button",Qe="sn-copy-cell";let Je=function(e){return e.ENTER="Enter",e.SPACE=" ",e.ESC="Escape",e.TAB="Tab",e.SHIFT="Shift",e.LEFT="ArrowLeft",e.RIGHT="ArrowRight",e.UP="ArrowUp",e.DOWN="ArrowDown",e.C="c",e}({});const Ze="nebula-table-utils-column-adjuster",et=`${Ze}-border`;let tt=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}({}),nt=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});var rt,ot;!function(e){e.NX_DIM_CELL_VALUE="V",e.NX_DIM_CELL_EMPTY="E",e.NX_DIM_CELL_NORMAL="N",e.NX_DIM_CELL_TOTAL="T",e.NX_DIM_CELL_OTHER="O",e.NX_DIM_CELL_AGGR="A",e.NX_DIM_CELL_PSEUDO="P",e.NX_DIM_CELL_ROOT="R",e.NX_DIM_CELL_NULL="U",e.NX_DIM_CELL_GENERATED="G"}(rt||(rt={})),function(e){e.NX_CELL_DATA="D",e.NX_CELL_TOP="T",e.NX_CELL_LEFT="L"}(ot||(ot={}));var it=rt;const at="image",lt=(e,t,n)=>{if(!n.properties.qHyperCubeDef.qIndentMode)return!0;const r=n.properties.qHyperCubeDef.qInterColumnSortOrder.indexOf(-1);let o=n.properties.qHyperCubeDef.qNoOfLeftDims;r>-1&&r<o&&(o-=1);const i=n.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===i||i>=o},st=(e,t)=>!e.properties.qHyperCubeDef.qIndentMode||!t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),ut=e=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:nt.Auto,translation:"Common.Auto"},{value:nt.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:nt.Pixels,translation:"Object.Table.Column.Pixels"},{value:nt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:nt.Auto,show:(t,n,r)=>st(r,e)},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:tt.PixelsDefault,show:(t,n,r)=>{var o;return st(r,e)&&(null===(o=t.qDef.columnWidth)||void 0===o?void 0:o.type)===nt.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(tt.PixelsMin,Math.min(tt.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:tt.PercentageDefault,show:(t,n,r)=>{var o;return st(r,e)&&(null===(o=t.qDef.columnWidth)||void 0===o?void 0:o.type)===nt.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(tt.PercentageMin,Math.min(tt.PercentageMax,e.qDef.columnWidth.percentage)))}}}),ct=({key:e,translation:t,env:n})=>{var r,o;if(!n.flags.isEnabled("CLIENT_IM_5863_PVT_TEXT_ALIGN"))return;const i=n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(r=n.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"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 n;if(!i||"labelTextAlign"===e)return!0;return(null==t||null===(n=t.qDef)||void 0===n||null===(n=n.representation)||void 0===n?void 0:n.type)!==at}},[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 n,r;return!(void 0===t.qDef[e]||null!==(n=t.qDef[e])&&void 0!==n&&n.auto)&&(!i||"labelTextAlign"===e||(null===(r=t.qDef)||void 0===r||null===(r=r.representation)||void 0===r?void 0:r.type)!==at)}}}},dt="TOTAL_OFF",pt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Ve.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Ve.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},ft="TOTAL_OFF",mt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Ve.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Ve.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ve.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},ht=e=>{var t,n;const{translator:r,anything:o,flags:i}=e,a=(e=>{var t,n;const{translator:r,anything:o,flags:i}=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:dt,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:dt,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&<},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!=o&&null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==dt&<(e,0,n)}},dimensionLimits:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}:void 0}},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:pt,...ct({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ct({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...He(e),...ut(i)}}}},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:i.isEnabled("CLIENT_IM_5851_MEASURE_FORMATTING")?{uses:"measures.items.numberFormatting"}:void 0}},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:pt,...ct({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ct({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...We(e),...ut(i)}}}}}}})(e);return i.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?a:{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Properties.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:ft,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:ft,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&<},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!=o&&null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==ft&<(e,0,n)}},dimensionLimits:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}:void 0,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:mt,...ct({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ct({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...He(e),...ut(i)}},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:i.isEnabled("CLIENT_IM_5851_MEASURE_FORMATTING")?{uses:"measures.items.numberFormatting"}:void 0,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:mt,...ct({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ct({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...We(e),...ut(i)}}}}},gt="12px",vt="Source Sans Pro, sans-serif",bt="600",yt=15e3,xt=4/3,St=1;var Et,Ct;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(Et||(Et={})),function(e){e.Solid="solid",e.None="none"}(Ct||(Ct={}));const wt={display:"flex",justifyContent:"center",alignItems:"center"},Rt={borderStyle:"solid"},Lt={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},kt={lineHeight:xt,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},It=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),_t=(e,t)=>e>0?`${e}px ${Ct.Solid} ${t}`:Ct.None,Mt=(e,t,n,r)=>{const o=Number(!t||(null==r?void 0:r.right)),i=Number(!e||(null==r?void 0:r.bottom));return{borderRight:_t(o,n),borderBottom:_t(i,n),borderLeft:Ct.None,borderTop:Ct.None}},Pt=(e,t,n,r,o,i)=>{const a=Mt(t,r,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=_t(2,o)),n||(a.borderLeft=_t(1,o))),a},At=({bottomDivider:e,rightDivider:t,borderColor:n})=>{const r={};return e&&(r.borderBottom=_t(1,n)),t&&(r.borderRight=_t(1,n)),r},Dt=(e,t,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:!1,defaultValue(e,t,r){const o=r.theme.current(),i=n(o);return{color:i===Et.Transparent.toString()?"none":i}}}),Tt=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),Ot=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:Tt("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?Tt("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:Dt("grid.border","properties.border",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:Et.DividerLight})),divider:Dt("grid.divider","properties.pivot.divider",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n||null===(n=n.divider)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:Et.DividerDark})),background:Dt("grid.background","properties.background",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:Et.Transparent}))}}}}),Nt=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},qt=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,n,r)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:vt,l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>Nt(e,!0)))],c=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...m(r).filter((e=>!s.includes(e))).map((e=>Nt(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),Ft=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],zt=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{var r;const o=t.fontSize,i=null!==(r=t.fontSizes)&&void 0!==r?r:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>Nt(e,!1)))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...Ft.filter((e=>!a.includes(e))).map((e=>Nt(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),jt=(e,t,n)=>{var r,o,i,a,l,s;switch(t){case"header":return null==e||null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.dimension)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.name)||void 0===r?void 0:r[n];case"dimensionValues":return null==e||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[n];case"measureLabels":return null==e||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[n];case"measureValues":return null==e||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[n];case"totalValues":return null==e||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[n];case"nullValues":return null==e||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[n];default:return}},$t=({section:e,defaultFontStyle:t,translator:n,flags:r})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:qt({ref:`${e}.fontFamily`,themeAccessor:t=>{var n;return null!==(n=jt(t,e,"fontFamily"))&&void 0!==n?n:t.fontFamily},translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:zt({ref:`${e}.fontSize`,themeAccessor:t=>{var n;return null!==(n=jt(t,e,"fontSize"))&&void 0!==n?n:t.fontSize},translator:n}),fontColor:Dt(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=jt(t,e,"color"))&&void 0!==n?n:t.color}))}},background:Dt(`${e}.background`,"properties.background",(t=>{var n;return null!==(n=jt(t,e,"backgroundColor"))&&void 0!==n?n:Et.Transparent}))}}}}),Bt=({section:e,defaultFontStyle:t,fallbackBackground: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:Dt(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=jt(t,e,"color"))&&void 0!==n?n:t.color}))}},background:Dt(`${e}.background`,"properties.background",(t=>{var r,o;return null!==(r=null!==(o=jt(t,e,"backgroundColor"))&&void 0!==o?o:n)&&void 0!==r?r:Et.Transparent}))}}}}),Ht=(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:$t({section:"header",defaultFontStyle:["bold"],translator:e,flags:t}),dimensionValueSection:$t({section:"dimensionValues",translator:e,flags:t}),measureValueSection:$t({section:"measureValues",translator:e,flags:t}),measureLabelSection:Bt({section:"measureLabels"}),totalValuesSection:Bt({section:"totalValues",defaultFontStyle:["bold"]}),nullValuesSection:Bt({section:"nullValues",fallbackBackground:Et.NullValueBackground}),gridSection:Ot(t)}}]}),Wt=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:!0,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}},type:{type:"string",component:"dropdown",ref:"qHyperCubeDef.indentModeColumnWidth.type",translation:"Object.Table.Column.Width",options:[{value:nt.Auto,translation:"Common.Auto"},{value:nt.Pixels,translation:"Object.Table.Column.Pixels"},{value:nt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:nt.Auto,show:e=>e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:tt.PixelsDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===nt.Pixels},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.pixels)&&(n.indentModeColumnWidth.pixels=Math.max(tt.PixelsMin,Math.min(tt.PixelsMax,n.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:tt.PercentageDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===nt.Percentage},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.percentage)&&(n.indentModeColumnWidth.percentage=Math.max(tt.PercentageMin,Math.min(tt.PercentageMaxInIndentMode,n.indentModeColumnWidth.percentage)))}}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(e){var t;return!e.qHyperCubeDef.qIndentMode&&(null===(t=e.qHyperCubeDef)||void 0===t||null===(t=t.qDimensions)||void 0===t?void 0:t.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,n,r){e.qHyperCubeDef.qExpansionState=[],r.$emit("saveProperties",e)}}}}),Gt=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[Ht(e,t),Wt(t)]}}}),Vt="auto",Ut={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=>{var t;return!(null==e||null===(t=e.qHyperCubeDef)||void 0===t||!t.qSortbyYValue)}}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:Vt,translation:"Object.Table.SortingInSearch",options:[{value:Vt,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function Yt(e){const{translator:t,flags:n}=e;return{type:"items",component:"accordion",items:{data:ht(e),sorting:Ut,addons:ze,settings:Gt(t,n)}}}function Kt(e){return{support:{cssScaling:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),snapshot:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),export:e.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:Yt(e),importProperties:qe(e),exportProperties:Fe}}function Xt(){return Xt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xt.apply(this,arguments)}var Qt={exports:{}};function Jt(){}function Zt(){}Zt.resetWarningCache=Jt;Qt.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Zt,resetWarningCache:Jt};return n.PropTypes=n,n}();var en=n(Qt.exports);function tn(e){if(e.type)return e;if("#"===e.charAt(0))return tn(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function nn(e,t){return e=tn(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}(e)}function rn(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function on(e,t){return on=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},on(e,t)}function an(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,on(e,t)}var ln={exports:{}},sn={},un=Symbol.for("react.element"),cn=Symbol.for("react.portal"),dn=Symbol.for("react.fragment"),pn=Symbol.for("react.strict_mode"),fn=Symbol.for("react.profiler"),mn=Symbol.for("react.provider"),hn=Symbol.for("react.context"),gn=Symbol.for("react.forward_ref"),vn=Symbol.for("react.suspense"),bn=Symbol.for("react.memo"),yn=Symbol.for("react.lazy"),xn=Symbol.iterator;var Sn={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},En=Object.assign,Cn={};function wn(e,t,n){this.props=e,this.context=t,this.refs=Cn,this.updater=n||Sn}function Rn(){}function Ln(e,t,n){this.props=e,this.context=t,this.refs=Cn,this.updater=n||Sn}wn.prototype.isReactComponent={},wn.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},wn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},Rn.prototype=wn.prototype;var kn=Ln.prototype=new Rn;kn.constructor=Ln,En(kn,wn.prototype),kn.isPureReactComponent=!0;var In=Array.isArray,_n=Object.prototype.hasOwnProperty,Mn={current:null},Pn={key:!0,ref:!0,__self:!0,__source:!0};function An(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)_n.call(t,r)&&!Pn.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:un,type:e,key:i,ref:a,props:o,_owner:Mn.current}}function Dn(e){return"object"==typeof e&&null!==e&&e.$$typeof===un}var Tn=/\/+/g;function On(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function Nn(e,t,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case un:case cn:a=!0}}if(a)return o=o(a=e),e=""===r?"."+On(a,0):r,In(o)?(n="",null!=e&&(n=e.replace(Tn,"$&/")+"/"),Nn(o,t,n,"",(function(e){return e}))):null!=o&&(Dn(o)&&(o=function(e,t){return{$$typeof:un,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(Tn,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=""===r?".":r+":",In(e))for(var l=0;l<e.length;l++){var s=r+On(i=e[l],l);a+=Nn(i,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=xn&&e[xn]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(i=e.next()).done;)a+=Nn(i=i.value,t,n,s=r+On(i,l++),o);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function qn(e,t,n){if(null==e)return e;var r=[],o=0;return Nn(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function Fn(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var zn={current:null},jn={transition:null},$n={ReactCurrentDispatcher:zn,ReactCurrentBatchConfig:jn,ReactCurrentOwner:Mn};function Bn(){throw Error("act(...) is not supported in production builds of React.")}sn.Children={map:qn,forEach:function(e,t,n){qn(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return qn(e,(function(){t++})),t},toArray:function(e){return qn(e,(function(e){return e}))||[]},only:function(e){if(!Dn(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},sn.Component=wn,sn.Fragment=dn,sn.Profiler=fn,sn.PureComponent=Ln,sn.StrictMode=pn,sn.Suspense=vn,sn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$n,sn.act=Bn,sn.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=En({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=Mn.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)_n.call(t,s)&&!Pn.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==l?l[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:un,type:e.type,key:o,ref:i,props:r,_owner:a}},sn.createContext=function(e){return(e={$$typeof:hn,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:mn,_context:e},e.Consumer=e},sn.createElement=An,sn.createFactory=function(e){var t=An.bind(null,e);return t.type=e,t},sn.createRef=function(){return{current:null}},sn.forwardRef=function(e){return{$$typeof:gn,render:e}},sn.isValidElement=Dn,sn.lazy=function(e){return{$$typeof:yn,_payload:{_status:-1,_result:e},_init:Fn}},sn.memo=function(e,t){return{$$typeof:bn,type:e,compare:void 0===t?null:t}},sn.startTransition=function(e){var t=jn.transition;jn.transition={};try{e()}finally{jn.transition=t}},sn.unstable_act=Bn,sn.useCallback=function(e,t){return zn.current.useCallback(e,t)},sn.useContext=function(e){return zn.current.useContext(e)},sn.useDebugValue=function(){},sn.useDeferredValue=function(e){return zn.current.useDeferredValue(e)},sn.useEffect=function(e,t){return zn.current.useEffect(e,t)},sn.useId=function(){return zn.current.useId()},sn.useImperativeHandle=function(e,t,n){return zn.current.useImperativeHandle(e,t,n)},sn.useInsertionEffect=function(e,t){return zn.current.useInsertionEffect(e,t)},sn.useLayoutEffect=function(e,t){return zn.current.useLayoutEffect(e,t)},sn.useMemo=function(e,t){return zn.current.useMemo(e,t)},sn.useReducer=function(e,t,n){return zn.current.useReducer(e,t,n)},sn.useRef=function(e){return zn.current.useRef(e)},sn.useState=function(e){return zn.current.useState(e)},sn.useSyncExternalStore=function(e,t,n){return zn.current.useSyncExternalStore(e,t,n)},sn.useTransition=function(){return zn.current.useTransition()},sn.version="18.3.1",ln.exports=sn;var Hn=ln.exports,Wn=n(Hn),Gn=t({__proto__:null,default:Wn},[Hn]);const Vn={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"},Un={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Vn,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Yn=12,Kn=14,Xn=16,Qn=24,Jn=3,Zn=300,er=400,tr=600,nr=700,rr={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};nn(Un.GREYSCALE_0,.05),nn(Un.GREEN_PALE,.5),nn(Un.BLUE_PALE,.5),nn(Un.GREEN_PALE,.5),nn(Un.BLUE_PALE,.5),nn(Un.GREEN_PALE,.5),nn(Un.BLUE_PALE,.5);var or;function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ir.apply(this,arguments)}nn(Un.GREEN_PALE,.5),nn(Un.BLUE_PALE,.5),nn(Un.GREEN_PALE,.5),nn(Un.BLUE_PALE,.5);var ar,lr=function(e){return Hn.createElement("svg",ir({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),or||(or=Hn.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function sr(){return sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sr.apply(this,arguments)}var ur=function(e){return Hn.createElement("svg",sr({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),ar||(ar=Hn.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 cr({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Wn.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var dr=(e={})=>Wn.createElement(cr,{...e},Wn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},Wn.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Wn.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"}))),pr=(e={})=>Wn.createElement(cr,{...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Wn.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),fr=(e={})=>Wn.createElement(cr,{fontSize:"medium",...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},Wn.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),mr=(e={})=>Wn.createElement(cr,{fontSize:"medium",...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Wn.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"}))),hr=({className:e})=>Wn.createElement(cr,{fontSize:"small",className:e},Wn.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},Wn.createElement("g",{transform:"translate(4.324187, 1.300372)"},Wn.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"}),Wn.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 gr={black:"#000",white:"#fff"};var vr={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 br={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 yr={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 xr={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 Sr={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 Er={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 Cr={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 wr(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 Rr="$$material";function Lr(){return Lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lr.apply(this,arguments)}function kr(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Ir(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 _r=Object.freeze({__proto__:null,default:Ir}),Mr=function(){return Mr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Mr.apply(this,arguments)};function Pr(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Ar="-ms-",Dr="-moz-",Tr="-webkit-",Or="comm",Nr="rule",qr="decl",Fr="@import",zr="@keyframes",jr="@layer",$r=Math.abs,Br=String.fromCharCode,Hr=Object.assign;function Wr(e){return e.trim()}function Gr(e,t){return(e=t.exec(e))?e[0]:e}function Vr(e,t,n){return e.replace(t,n)}function Ur(e,t,n){return e.indexOf(t,n)}function Yr(e,t){return 0|e.charCodeAt(t)}function Kr(e,t,n){return e.slice(t,n)}function Xr(e){return e.length}function Qr(e){return e.length}function Jr(e,t){return t.push(e),e}function Zr(e,t){return e.filter((function(e){return!Gr(e,t)}))}var eo=1,to=1,no=0,ro=0,oo=0,io="";function ao(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:eo,column:to,length:a,return:"",siblings:l}}function lo(e,t){return Hr(ao("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function so(e){for(;e.root;)e=lo(e.root,{children:[e]});Jr(e,e.siblings)}function uo(){return oo=ro>0?Yr(io,--ro):0,to--,10===oo&&(to=1,eo--),oo}function co(){return oo=ro<no?Yr(io,ro++):0,to++,10===oo&&(to=1,eo++),oo}function po(){return Yr(io,ro)}function fo(){return ro}function mo(e,t){return Kr(io,e,t)}function ho(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 go(e){return Wr(mo(ro-1,yo(91===e?e+2:40===e?e+1:e)))}function vo(e){for(;(oo=po())&&oo<33;)co();return ho(e)>2||ho(oo)>3?"":" "}function bo(e,t){for(;--t&&co()&&!(oo<48||oo>102||oo>57&&oo<65||oo>70&&oo<97););return mo(e,fo()+(t<6&&32==po()&&32==co()))}function yo(e){for(;co();)switch(oo){case e:return ro;case 34:case 39:34!==e&&39!==e&&yo(oo);break;case 40:41===e&&yo(e);break;case 92:co()}return ro}function xo(e,t){for(;co()&&e+oo!==57&&(e+oo!==84||47!==po()););return"/*"+mo(t,ro-1)+"*"+Br(47===e?e:co())}function So(e){for(;!ho(po());)co();return mo(e,ro)}function Eo(e){return function(e){return io="",e}(Co("",null,null,null,[""],e=function(e){return eo=to=1,no=Xr(io=e),ro=0,[]}(e),0,[0],e))}function Co(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,v=1,b=0,y="",x=o,S=i,E=r,C=y;g;)switch(m=b,b=co()){case 40:if(108!=m&&58==Yr(C,d-1)){-1!=Ur(C+=Vr(go(b),"&","&\f"),"&\f",$r(u?l[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=go(b);break;case 9:case 10:case 13:case 32:C+=vo(m);break;case 92:C+=bo(fo()-1,7);continue;case 47:switch(po()){case 42:case 47:Jr(Ro(xo(co(),fo()),t,n,s),s);break;default:C+="/"}break;case 123*h:l[u++]=Xr(C)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(C=Vr(C,/\f/g,"")),f>0&&Xr(C)-d&&Jr(f>32?Lo(C+";",r,n,d-1,s):Lo(Vr(C," ","")+";",r,n,d-2,s),s);break;case 59:C+=";";default:if(Jr(E=wo(C,t,n,u,c,o,l,y,x=[],S=[],d,i),i),123===b)if(0===c)Co(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===Yr(C,3)?100:p){case 100:case 108:case 109:case 115:Co(e,E,E,r&&Jr(wo(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,r?x:S);break;default:Co(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=v=1,y=C="",d=a;break;case 58:d=1+Xr(C),f=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==uo())continue;switch(C+=Br(b),b*h){case 38:v=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Xr(C)-1)*v,v=1;break;case 64:45===po()&&(C+=go(co())),p=po(),c=d=Xr(y=C+=So(fo())),b++;break;case 45:45===m&&2==Xr(C)&&(h=0)}}return i}function wo(e,t,n,r,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=Qr(f),h=0,g=0,v=0;h<r;++h)for(var b=0,y=Kr(e,p+1,p=$r(g=a[h])),x=e;b<m;++b)(x=Wr(g>0?f[b]+" "+y:Vr(y,/&\f/g,f[b])))&&(s[v++]=x);return ao(e,t,n,0===o?Nr:l,s,u,c,d)}function Ro(e,t,n,r){return ao(e,t,n,Or,Br(oo),Kr(e,2,-2),0,r)}function Lo(e,t,n,r,o){return ao(e,t,n,qr,Kr(e,0,r),Kr(e,r+1,-1),r,o)}function ko(e,t,n){switch(function(e,t){return 45^Yr(e,0)?(((t<<2^Yr(e,0))<<2^Yr(e,1))<<2^Yr(e,2))<<2^Yr(e,3):0}(e,t)){case 5103:return Tr+"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 Tr+e+e;case 4789:return Dr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Tr+e+Dr+e+Ar+e+e;case 5936:switch(Yr(e,t+11)){case 114:return Tr+e+Ar+Vr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Tr+e+Ar+Vr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Tr+e+Ar+Vr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Tr+e+Ar+e+e;case 6165:return Tr+e+Ar+"flex-"+e+e;case 5187:return Tr+e+Vr(e,/(\w+).+(:[^]+)/,Tr+"box-$1$2"+Ar+"flex-$1$2")+e;case 5443:return Tr+e+Ar+"flex-item-"+Vr(e,/flex-|-self/g,"")+(Gr(e,/flex-|baseline/)?"":Ar+"grid-row-"+Vr(e,/flex-|-self/g,""))+e;case 4675:return Tr+e+Ar+"flex-line-pack"+Vr(e,/align-content|flex-|-self/g,"")+e;case 5548:return Tr+e+Ar+Vr(e,"shrink","negative")+e;case 5292:return Tr+e+Ar+Vr(e,"basis","preferred-size")+e;case 6060:return Tr+"box-"+Vr(e,"-grow","")+Tr+e+Ar+Vr(e,"grow","positive")+e;case 4554:return Tr+Vr(e,/([^-])(transform)/g,"$1"+Tr+"$2")+e;case 6187:return Vr(Vr(Vr(e,/(zoom-|grab)/,Tr+"$1"),/(image-set)/,Tr+"$1"),e,"")+e;case 5495:case 3959:return Vr(e,/(image-set\([^]*)/,Tr+"$1$`$1");case 4968:return Vr(Vr(e,/(.+:)(flex-)?(.*)/,Tr+"box-pack:$3"+Ar+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Tr+e+e;case 4200:if(!Gr(e,/flex-|baseline/))return Ar+"grid-column-align"+Kr(e,t)+e;break;case 2592:case 3360:return Ar+Vr(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,Gr(e.props,/grid-\w+-end/)}))?~Ur(e+(n=n[t].value),"span",0)?e:Ar+Vr(e,"-start","")+e+Ar+"grid-row-span:"+(~Ur(n,"span",0)?Gr(n,/\d+/):+Gr(n,/\d+/)-+Gr(e,/\d+/))+";":Ar+Vr(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return Gr(e.props,/grid-\w+-start/)}))?e:Ar+Vr(Vr(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Vr(e,/(.+)-inline(.+)/,Tr+"$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(Xr(e)-1-t>6)switch(Yr(e,t+1)){case 109:if(45!==Yr(e,t+4))break;case 102:return Vr(e,/(.+:)(.+)-([^]+)/,"$1"+Tr+"$2-$3$1"+Dr+(108==Yr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ur(e,"stretch",0)?ko(Vr(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Vr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,l){return Ar+n+":"+r+l+(o?Ar+n+"-span:"+(i?a:+a-+r)+l:"")+e}));case 4949:if(121===Yr(e,t+6))return Vr(e,":",":"+Tr)+e;break;case 6444:switch(Yr(e,45===Yr(e,14)?18:11)){case 120:return Vr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Tr+(45===Yr(e,14)?"inline-":"")+"box$3$1"+Tr+"$2$3$1"+Ar+"$2box$3")+e;case 100:return Vr(e,":",":"+Ar)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Vr(e,"scroll-","scroll-snap-")+e}return e}function Io(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function _o(e,t,n,r){switch(e.type){case jr:if(e.children.length)break;case Fr:case qr:return e.return=e.return||e.value;case Or:return"";case zr:return e.return=e.value+"{"+Io(e.children,r)+"}";case Nr:if(!Xr(e.value=e.props.join(",")))return""}return Xr(n=Io(e.children,r))?e.return=e.value+"{"+n+"}":""}function Mo(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case qr:return void(e.return=ko(e.value,e.length,n));case zr:return Io([lo(e,{value:Vr(e.value,"@","@"+Tr)})],r);case Nr:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(Gr(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":so(lo(e,{props:[Vr(t,/:(read-\w+)/,":"+Dr+"$1")]})),so(lo(e,{props:[t]})),Hr(e,{props:Zr(n,r)});break;case"::placeholder":so(lo(e,{props:[Vr(t,/:(plac\w+)/,":"+Tr+"input-$1")]})),so(lo(e,{props:[Vr(t,/:(plac\w+)/,":"+Dr+"$1")]})),so(lo(e,{props:[Vr(t,/:(plac\w+)/,Ar+"input-$1")]})),so(lo(e,{props:[t]})),Hr(e,{props:Zr(n,r)})}return""}))}}var Po={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},Ao="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Do="active",To="data-styled-version",Oo="6.1.11",No="/*!sc*/\n",qo="undefined"!=typeof window&&"HTMLElement"in window,Fo=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)),zo={},jo=Object.freeze([]),$o=Object.freeze({});function Bo(e,t,n){return void 0===n&&(n=$o),e.theme!==n.theme&&e.theme||t||n.theme}var Ho=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"]),Wo=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Go=/(^-|-$)/g;function Vo(e){return e.replace(Wo,"-").replace(Go,"")}var Uo=/(a)(d)/gi,Yo=52,Ko=function(e){return String.fromCharCode(e+(e>25?39:97))};function Xo(e){var t,n="";for(t=Math.abs(e);t>Yo;t=t/Yo|0)n=Ko(t%Yo)+n;return(Ko(t%Yo)+n).replace(Uo,"$1-$2")}var Qo,Jo=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Zo=function(e){return Jo(5381,e)};function ei(e){return Xo(Zo(e)>>>0)}function ti(e){return"string"==typeof e&&!0}var ni="function"==typeof Symbol&&Symbol.for,ri=ni?Symbol.for("react.memo"):60115,oi=ni?Symbol.for("react.forward_ref"):60112,ii={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ai={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},li={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},si=((Qo={})[oi]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Qo[ri]=li,Qo);function ui(e){return("type"in(t=e)&&t.type.$$typeof)===ri?li:"$$typeof"in e?si[e.$$typeof]:ii;var t}var ci=Object.defineProperty,di=Object.getOwnPropertyNames,pi=Object.getOwnPropertySymbols,fi=Object.getOwnPropertyDescriptor,mi=Object.getPrototypeOf,hi=Object.prototype;function gi(e,t,n){if("string"!=typeof t){if(hi){var r=mi(t);r&&r!==hi&&gi(e,r,n)}var o=di(t);pi&&(o=o.concat(pi(t)));for(var i=ui(e),a=ui(t),l=0;l<o.length;++l){var s=o[l];if(!(s in ai||n&&n[s]||a&&s in a||i&&s in i)){var u=fi(t,s);try{ci(e,s,u)}catch(e){}}}}return e}function vi(e){return"function"==typeof e}function bi(e){return"object"==typeof e&&"styledComponentId"in e}function yi(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function xi(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function Si(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ei(e,t,n){if(void 0===n&&(n=!1),!n&&!Si(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Ei(e[r],t[r]);else if(Si(t))for(var r in t)e[r]=Ei(e[r],t[r]);return e}function Ci(e,t){Object.defineProperty(e,"toString",{value:t})}function wi(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var 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,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw wi(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(No);return t},e}(),Li=new Map,ki=new Map,Ii=1,_i=function(e){if(Li.has(e))return Li.get(e);for(;ki.has(Ii);)Ii++;var t=Ii++;return Li.set(e,t),ki.set(t,e),t},Mi=function(e,t){Ii=t+1,Li.set(e,t),ki.set(t,e)},Pi="style[".concat(Ao,"][").concat(To,'="').concat(Oo,'"]'),Ai=new RegExp("^".concat(Ao,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Di=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},Ti=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(No),o=[],i=0,a=r.length;i<a;i++){var l=r[i].trim();if(l){var s=l.match(Ai);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(Mi(c,u),Di(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}};var Oi=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Ao,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Ao,Do),r.setAttribute(To,Oo);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},Ni=function(){function e(e){this.element=Oi(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw wi(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}(),qi=function(){function e(e){this.element=Oi(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Fi=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}(),zi=qo,ji={isServer:!qo,useCSSOMInjection:!Fo},$i=function(){function e(e,t,n){void 0===e&&(e=$o),void 0===t&&(t={});var r=this;this.options=Mr(Mr({},ji),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&qo&&zi&&(zi=!1,function(e){for(var t=document.querySelectorAll(Pi),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Ao)!==Do&&(Ti(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),Ci(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return ki.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||0===a.length)return"continue";var l="".concat(Ao,".g").concat(n,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),r+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(No)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return _i(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Mr(Mr({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Fi(n):t?new Ni(n):new qi(n)}(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(_i(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(_i(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(_i(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Bi=/&/g,Hi=/^\s*\/\/.*$/gm;function Wi(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=Wi(e.children,t)),e}))}var Gi=new $i,Vi=function(e){var t,n,r,o=void 0===e?$o:e,i=o.options,a=void 0===i?$o:i,l=o.plugins,s=void 0===l?jo:l,u=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===Nr&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Bi,n).replace(r,u))})),a.prefix&&c.push(Mo),c.push(_o);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var s=e.replace(Hi,""),u=Eo(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=Wi(u,a.namespace));var d,p=[];return Io(u,function(e){var t=Qr(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||wi(15),Jo(e,t.name)}),5381).toString():"",d}(),Ui=Wn.createContext({shouldForwardProp:void 0,styleSheet:Gi,stylis:Vi});function Yi(){return Hn.useContext(Ui)}Ui.Consumer;var Ki=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Vi);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Ci(this,(function(){throw wi(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Vi),this.name+e.hash},e}(),Xi=function(e){return e>="A"&&e<="Z"};function Qi(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Xi(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Ji=function(e){return null==e||!1===e||""===e},Zi=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Ji(i)&&(Array.isArray(i)&&i.isCss||vi(i)?r.push("".concat(Qi(o),":"),i,";"):Si(i)?r.push.apply(r,Pr(Pr(["".concat(o," {")],Zi(i),!1),["}"],!1)):r.push("".concat(Qi(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Po||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ea(e,t,n,r){return Ji(e)?[]:bi(e)?[".".concat(e.styledComponentId)]:vi(e)?!vi(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:ea(e(t),t,n,r):e instanceof Ki?n?(e.inject(n,r),[e.getName(r)]):[e]:Si(e)?Zi(e):Array.isArray(e)?Array.prototype.concat.apply(jo,e.map((function(e){return ea(e,t,n,r)}))):[e.toString()];var o}function ta(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(vi(n)&&!bi(n))return!1}return!0}var na=Zo(Oo),ra=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&ta(e),this.componentId=t,this.baseHash=Jo(na,t),this.baseStyle=n,$i.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=yi(r,this.staticRulesId);else{var o=xi(ea(this.rules,e,t,n)),i=Xo(Jo(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=yi(r,i),this.staticRulesId=i}else{for(var l=Jo(this.baseHash,n.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=xi(ea(c,e,t,n));l=Jo(l,d+u),s+=d}}if(s){var p=Xo(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=yi(r,p)}}return r},e}(),oa=Wn.createContext(void 0);oa.Consumer;var ia={};new Set;function aa(e,t,n){var r=bi(e),o=e,i=!ti(e),a=t.attrs,l=void 0===a?jo:a,s=t.componentId,u=void 0===s?function(e,t){var n="string"!=typeof e?"sc":Vo(e);ia[n]=(ia[n]||0)+1;var r="".concat(n,"-").concat(ei(Oo+n+ia[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return ti(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Vo(t.displayName),"-").concat(t.componentId):t.componentId||u,f=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(r&&o.shouldForwardProp){var h=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return h(e,t)&&g(e,t)}}else m=h}var v=new ra(n,p,r?o.componentStyle:void 0);function b(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=Wn.useContext(oa),c=Yi(),d=e.shouldForwardProp||c.shouldForwardProp,p=Bo(t,u,i)||$o,f=function(e,t,n){for(var r,o=Mr(Mr({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=vi(r=e[i])?r(o):r;for(var l in a)o[l]="className"===l?yi(o[l],a[l]):"style"===l?Mr(Mr({},o[l]),a[l]):a[l]}return t.className&&(o.className=yi(o.className,t.className)),o}(r,t,p),m=f.as||s,h={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?h.as=f.forwardedAs:d&&!d(g,m)||(h[g]=f[g]));var v=function(e,t){var n=Yi();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,f),b=yi(a,l);return v&&(b+=" "+v),f.className&&(b+=" "+f.className),h[ti(m)&&!Ho.has(m)?"class":"className"]=b,h.ref=n,Hn.createElement(m,h)}(y,e,t)}b.displayName=d;var y=Wn.forwardRef(b);return y.attrs=f,y.componentStyle=v,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=r?yi(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=r?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Ei(e,o[r],!0);return e}({},o.defaultProps,e):e}}),Ci(y,(function(){return".".concat(y.styledComponentId)})),i&&gi(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function la(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var sa=function(e){return Object.assign(e,{isCss:!0})};function ua(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(vi(e)||Si(e))return sa(ea(la(jo,Pr([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?ea(r):sa(ea(la(r,t)))}function ca(e,t,n){if(void 0===n&&(n=$o),!t)throw wi(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,ua.apply(void 0,Pr([r],o,!1)))};return r.attrs=function(r){return ca(e,t,Mr(Mr({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return ca(e,t,Mr(Mr({},n),r))},r}var da=function(e){return ca(aa,e)},pa=da;Ho.forEach((function(e){pa[e]=da(e)}));var fa=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ta(e),$i.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(xi(ea(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&$i.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function ma(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=ua.apply(void 0,Pr([e],t,!1)),o="sc-global-".concat(ei(JSON.stringify(r))),i=new fa(r,o),a=function(e){var t=Yi(),n=Wn.useContext(oa),r=Wn.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,zo,n,o);else{var l=Mr(Mr({},t),{theme:Bo(t,r,a.defaultProps)});i.renderStyles(e,l,n,o)}}(r,e,t.styleSheet,n,t.stylis),null};return Wn.memo(a)}function ha(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=xi(ua.apply(void 0,Pr([e],t,!1))),o=ei(r);return new Ki(o,r)}const ga=ma((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r}));var va=ga;
|
|
10
10
|
/**
|
|
11
11
|
* @mui/styled-engine-sc v6.0.0-alpha.17
|
|
12
12
|
*
|
|
@@ -115,7 +115,7 @@ function ba(e,t){let n;return n=t?pa(e).withConfig({displayName:t.label,shouldFo
|
|
|
115
115
|
animation-iteration-count: infinite;
|
|
116
116
|
animation-delay: 200ms;
|
|
117
117
|
}
|
|
118
|
-
`),xE.rippleVisible,kE,550,(({theme:e})=>e.transitions.easing.easeInOut),xE.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),xE.child,xE.childLeaving,IE,550,(({theme:e})=>e.transitions.easing.easeInOut),xE.childPulsate,_E,(({theme:e})=>e.transitions.easing.easeInOut)),AE=Hn.forwardRef((function(e,t){const n=cc({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=kr(n,SE),[l,s]=Hn.useState([]),u=Hn.useRef(0),c=Hn.useRef(null);Hn.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=Hn.useRef(!1),p=Hn.useRef(0),f=Hn.useRef(null),m=Hn.useRef(null);Hn.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=Hn.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,js.jsx(PE,{classes:{ripple:vc(o.ripple,xE.ripple),rippleVisible:vc(o.rippleVisible,xE.rippleVisible),ripplePulsate:vc(o.ripplePulsate,xE.ripplePulsate),child:vc(o.child,xE.child),childLeaving:vc(o.childLeaving,xE.childLeaving),childPulsate:vc(o.childPulsate,xE.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=Hn.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h]),v=Hn.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=Hn.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{b(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return Hn.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),js.jsx(ME,Lr({className:vc(xE.root,o.root,i),ref:m},a,{children:js.jsx(sE,{component:null,exit:!0,children:l})}))}));var DE=AE;function TE(e){return ju("MuiButtonBase",e)}var OE=$u("MuiButtonBase",["root","disabled","focusVisible"]);const NE=["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"],qE=mc("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"},[`&.${OE.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),FE=Hn.forwardRef((function(e,t){const n=cc({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:C,onTouchEnd:w,onTouchMove:R,onTouchStart:L,tabIndex:k=0,TouchRippleProps:I,touchRippleRef:_,type:M}=n,P=kr(n,NE),A=Hn.useRef(null),D=Hn.useRef(null),T=Ru(D,_),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:F}=Ou(),[z,j]=Hn.useState(!1);s&&z&&j(!1),Hn.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),A.current.focus()}})),[]);const[$,B]=Hn.useState(!1);Hn.useEffect((()=>{B(!0)}),[]);const H=$&&!u&&!s;function W(e,t,n=c){return wu((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}Hn.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const G=W("start",S),V=W("stop",h),U=W("stop",g),Y=W("stop",C),K=W("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=W("start",L),Q=W("stop",w),J=W("stop",R),Z=W("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),ee=wu((e=>{A.current||(A.current=e.currentTarget),N(e),!0===O.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=A.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=Hn.useRef(!1),re=wu((e=>{d&&!ne.current&&z&&D.current&&" "===e.key&&(ne.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),oe=wu((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(P.href||P.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===M?"button":M,ae.disabled=s):(P.href||P.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=Ru(t,F,A),se=Lr({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:k,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=bl({root:["root",t&&"disabled",n&&"focusVisible"]},TE,o);return n&&r&&(i.root+=` ${r}`),i})(se);return js.jsxs(qE,Lr({as:ie,className:vc(ue.root,a),ownerState:se,onBlur:Z,onClick:m,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:G,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:k,type:M},ae,P,{children:[i,H?js.jsx(DE,Lr({ref:T,center:o},I)):null]}))}));var zE=FE;function jE(e){return ju("MuiTypography",e)}$u("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const $E=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],BE=mc("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${gu(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Lr({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}))),HE={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},WE={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},GE=Hn.forwardRef((function(e,t){const n=cc({props:e,name:"MuiTypography"}),r=(e=>WE[e]||e)(n.color),o=Ws(Lr({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=HE}=o,f=kr(o,$E),m=Lr({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||HE[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return bl({root:["root",i,"inherit"!==e.align&&`align${gu(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},jE,a)})(m);return js.jsx(BE,Lr({as:h,ref:t,ownerState:m,className:vc(g.root,a)},f))}));var VE=GE;const UE=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function YE(e){const t=[],n=[];return Array.from(e.querySelectorAll(UE)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function KE(){return!0}function XE(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=YE,isEnabled:a=KE,open:l}=e,s=Hn.useRef(!1),u=Hn.useRef(null),c=Hn.useRef(null),d=Hn.useRef(null),p=Hn.useRef(null),f=Hn.useRef(!1),m=Hn.useRef(null),h=nl(t.ref,m),g=Hn.useRef(null);Hn.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),Hn.useEffect((()=>{if(!l||!m.current)return;const e=Qa(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),Hn.useEffect((()=>{if(!l||!m.current)return;const e=Qa(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return js.jsxs(Hn.Fragment,{children:[js.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),Hn.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),js.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const QE=Hn.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=Hn.useState(null),l=nl(Hn.isValidElement(n)?n.ref:null,t);if(el((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),el((()=>{if(i&&!o)return Za(t,i),()=>{Za(t,null)}}),[t,i,o]),o){if(Hn.isValidElement(n)){const e={ref:l};return Hn.cloneElement(n,e)}return js.jsx(Hn.Fragment,{children:n})}return js.jsx(Hn.Fragment,{children:i?GS.createPortal(n,i):i})}));function JE(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ZE(e){return parseInt(Ja(e).getComputedStyle(e).paddingRight,10)||0}function eC(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&JE(e,o)}))}function tC(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function nC(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Qa(e);return t.body===e?Ja(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=gl(Qa(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${ZE(r)+e}px`;const t=Qa(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${ZE(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Qa(r).body;else{const t=r.parentElement,n=Ja(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const rC=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&JE(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);eC(t,e.mount,e.modalRef,r,!0);const o=tC(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=tC(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=nC(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=tC(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&JE(e.modalRef,t),eC(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&JE(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function oC(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=rC,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=Hn.useRef({}),f=Hn.useRef(null),m=Hn.useRef(null),h=nl(m,d),[g,v]=Hn.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=tl((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Qa(f.current).body;o.add(x(),e),m.current&&S()})),C=Hn.useCallback((()=>o.isTopModal(x())),[o]),w=tl((e=>{f.current=e,e&&(c&&C()?S():m.current&&JE(m.current,y))})),R=Hn.useCallback((()=>{o.remove(x(),y)}),[y,o]);Hn.useEffect((()=>()=>{R()}),[R]),Hn.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},k=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=gE(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Xt({},n,t);return Xt({role:"presentation"},r,{onKeyDown:L(r),ref:h})},getBackdropProps:(e={})=>Xt({"aria-hidden":!0},e,{onClick:k(e),open:c}),getTransitionProps:()=>({onEnter:Ka((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Ka((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:w,isTopModal:C,exited:g,hasTransition:b}}const iC=["onChange","maxRows","minRows","style","value"];function aC(e){return parseInt(e,10)||0}const lC={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function sC(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const uC=Hn.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=rn(e,iC),{current:s}=Hn.useRef(null!=a),u=Hn.useRef(null),c=nl(t,u),d=Hn.useRef(null),p=Hn.useRef(0),[f,m]=Hn.useState({outerHeightStyle:0}),h=Hn.useCallback((()=>{const t=u.current,n=Ja(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n.boxSizing,l=aC(n.paddingBottom)+aC(n.paddingTop),s=aC(n.borderBottomWidth)+aC(n.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},v=Hn.useCallback((()=>{const e=h();sC(e)||m((t=>g(t,e)))}),[h]);el((()=>{const e=()=>{p.current=0,(()=>{const e=h();sC(e)||GS.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=Xa(e),n=u.current,r=Ja(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[h]),el((()=>{v()})),Hn.useEffect((()=>{p.current=0}),[a]);return js.jsxs(Hn.Fragment,{children:[js.jsx("textarea",Xt({value:a,onChange:e=>{p.current=0,s||v(),n&&n(e)},ref:c,rows:o,style:Xt({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),js.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Xt({},lC,i,{paddingTop:0,paddingBottom:0})})]})}));function cC({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var dC=Hn.createContext(void 0);function pC(){return Hn.useContext(dC)}function fC(e){return js.jsx($s,Lr({},e,{defaultTheme:sc,themeId:Rr}))}function mC(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function hC(e,t=!1){return e&&(mC(e.value)&&""!==e.value||t&&mC(e.defaultValue)&&""!==e.defaultValue)}function gC(e){return ju("MuiInputBase",e)}var vC=$u("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const bC=["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"],yC=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${gu(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},xC=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},SC=mc("div",{name:"MuiInputBase",slot:"Root",overridesResolver:yC})((({theme:e,ownerState:t})=>Lr({},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",[`&.${vC.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Lr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),EC=mc("input",{name:"MuiInputBase",slot:"Input",overridesResolver:xC})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Lr({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Lr({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${vC.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},[`&.${vC.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"})})),CC=js.jsx(fC,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),wC=Hn.forwardRef((function(e,t){var n;const r=cc({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:S=!1,name:E,onBlur:C,onChange:w,onClick:R,onFocus:L,onKeyDown:k,onKeyUp:I,placeholder:_,readOnly:M,renderSuffix:P,rows:A,slotProps:D={},slots:T={},startAdornment:O,type:N="text",value:q}=r,F=kr(r,bC),z=null!=v.value?v.value:q,{current:j}=Hn.useRef(null!=z),$=Hn.useRef(),B=Hn.useCallback((e=>{}),[]),H=Ru($,b,v.ref,B),[W,G]=Hn.useState(!1),V=pC(),U=cC({props:r,muiFormControl:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=V?V.focused:W,Hn.useEffect((()=>{!V&&d&&W&&(G(!1),C&&C())}),[V,d,W,C]);const Y=V&&V.onFilled,K=V&&V.onEmpty,X=Hn.useCallback((e=>{hC(e)?Y&&Y():K&&K()}),[Y,K]);yu((()=>{j&&X({value:z})}),[z,X,j]);Hn.useEffect((()=>{X($.current)}),[]);let Q=g,J=v;S&&"input"===Q&&(J=Lr(A?{type:void 0,minRows:A,maxRows:A}:{type:void 0,maxRows:y,minRows:x},J),Q=uC);Hn.useEffect((()=>{V&&V.setAdornedStart(Boolean(O))}),[V,O]);const Z=Lr({},r,{color:U.color||"primary",disabled:U.disabled,endAdornment:f,error:U.error,focused:U.focused,formControl:V,fullWidth:m,hiddenLabel:U.hiddenLabel,multiline:S,size:U.size,startAdornment:O,type:N}),ee=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return bl({root:["root",`color${gu(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${gu(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},gC,t)})(Z),te=T.root||s.Root||SC,ne=D.root||u.root||{},re=T.input||s.Input||EC;return J=Lr({},J,null!=(n=D.input)?n:u.input),js.jsxs(Hn.Fragment,{children:[!p&&CC,js.jsxs(te,Lr({},ne,!hE(te)&&{ownerState:Lr({},Z,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),R&&R(e)}},F,{className:vc(ee.root,ne.className,l,M&&"MuiInputBase-readOnly"),children:[O,js.jsx(dC.Provider,{value:null,children:js.jsx(re,Lr({ownerState:Z,"aria-invalid":U.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:U.disabled,id:h,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:E,placeholder:_,readOnly:M,required:U.required,rows:A,value:z,onKeyDown:k,onKeyUp:I,type:N},J,!hE(re)&&{as:Q,ownerState:Lr({},Z,J.ownerState)},{ref:H,className:vc(ee.input,J.className,M&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),v.onBlur&&v.onBlur(e),V&&V.onBlur?V.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||$.current;if(null==t)throw new Error(wr(1));X({value:t.value})}v.onChange&&v.onChange(e,...t),w&&w(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(L&&L(e),v.onFocus&&v.onFocus(e),V&&V.onFocus?V.onFocus(e):G(!0))}}))}),f,P?P(Lr({},U,{startAdornment:O})):null]}))]})}));var RC=wC;function LC(e){return ju("MuiInput",e)}var kC=Lr({},vC,$u("MuiInput",["root","underline","input"]));function IC(e){return ju("MuiOutlinedInput",e)}var _C=Lr({},vC,$u("MuiOutlinedInput",["root","notchedOutline","input"]));function MC(e){return ju("MuiFilledInput",e)}var PC=Lr({},vC,$u("MuiFilledInput",["root","underline","input"])),AC=function(e,t){function n(n,r){return js.jsx(Ec,Lr({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Ec.muiName,Hn.memo(Hn.forwardRef(n))}(js.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const DC=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],TC={entering:{opacity:1},entered:{opacity:1}},OC=Hn.forwardRef((function(e,t){const n=uc(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:v=nE}=e,b=kr(e,DC),y=Hn.useRef(null),x=Ru(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),C=S(((e,t)=>{uE(e);const r=cE({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),w=S(c),R=S(m),L=S((e=>{const t=cE({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),k=S(f);return js.jsx(v,Lr({appear:i,in:s,nodeRef:y,onEnter:C,onEntered:w,onEntering:E,onExit:L,onExited:k,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>Hn.cloneElement(a,Lr({style:Lr({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},TC[e],h,a.props.style),ref:x},t))}))}));var NC=OC;function qC(e){return ju("MuiBackdrop",e)}$u("MuiBackdrop",["root","invisible"]);const FC=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],zC=mc("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Lr({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"}))),jC=Hn.forwardRef((function(e,t){var n,r,o;const i=cc({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=NC,transitionDuration:g}=i,v=kr(i,FC),b=Lr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return bl({root:["root",n&&"invisible"]},qC,t)})(b),x=null!=(n=f.root)?n:c.root;return js.jsx(h,Lr({in:p,timeout:g},v,{children:js.jsx(zC,Lr({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:vc(y.root,l,null==x?void 0:x.className),ownerState:Lr({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var $C=jC;var BC=$u("MuiBox",["root"]);const HC=lc(),WC=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=ba("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ws);return Hn.forwardRef((function(e,a){const l=Ms(n),s=Ws(e),{className:u,component:c="div"}=s,d=rn(s,Us);return js.jsx(i,Xt({as:c,ref:a,className:Vs(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:Rr,defaultTheme:HC,defaultClassName:BC.root,generateClassName:Fu.generate});var GC=WC;function VC(e){return ju("MuiButton",e)}var UC=$u("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 YC=Hn.createContext({});var KC=Hn.createContext(void 0);const XC=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],QC=e=>Lr({},"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}}),JC=mc(zE,{shouldForwardProp:e=>dc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${gu(n.color)}`],t[`size${gu(n.size)}`],t[`${n.variant}Size${gu(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Lr({},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":Lr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:su(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})`:su(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})`:su(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":Lr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${UC.focusVisible}`]:Lr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${UC.disabled}`]:Lr({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 ${su(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${UC.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${UC.disabled}`]:{boxShadow:"none"}})),ZC=mc("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${gu(n.size)}`]]}})((({ownerState:e})=>Lr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},QC(e)))),ew=mc("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${gu(n.size)}`]]}})((({ownerState:e})=>Lr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},QC(e)))),tw=Hn.forwardRef((function(e,t){const n=Hn.useContext(YC),r=Hn.useContext(KC),o=cc({props:Nu(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:v,variant:b="text"}=o,y=kr(o,XC),x=Lr({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:v,variant:b}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Lr({},a,bl({root:["root",i,`${i}${gu(t)}`,`size${gu(o)}`,`${i}Size${gu(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${gu(o)}`],endIcon:["endIcon",`iconSize${gu(o)}`]},VC,a))})(x),E=g&&js.jsx(ZC,{className:S.startIcon,ownerState:x,children:g}),C=p&&js.jsx(ew,{className:S.endIcon,ownerState:x,children:p}),w=r||"";return js.jsxs(JC,Lr({ownerState:x,className:vc(n.className,S.root,s,w),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:vc(S.focusVisible,f),ref:t,type:v},y,{classes:S,children:[E,i,C]}))}));var nw=tw;function rw(e){return ju("MuiModal",e)}$u("MuiModal",["root","hidden","backdrop"]);const ow=["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"],iw=mc("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Lr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),aw=mc($C,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),lw=Hn.forwardRef((function(e,t){var n,r,o,i,a,l;const s=cc({name:"MuiModal",props:e}),{BackdropComponent:u=aw,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:w=!1,keepMounted:R=!1,onBackdropClick:L,open:k,slotProps:I,slots:_}=s,M=kr(s,ow),P=Lr({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:w,keepMounted:R}),{getRootProps:A,getBackdropProps:D,getTransitionProps:T,portalRef:O,isTopModal:N,exited:q,hasTransition:F}=oC(Lr({},P,{rootRef:t})),z=Lr({},P,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return bl({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},rw,r)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(r=null==_?void 0:_.root)?r:g.Root)?n:iw,H=null!=(o=null!=(i=null==_?void 0:_.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==I?void 0:I.root)?a:v.root,G=null!=(l=null==I?void 0:I.backdrop)?l:v.backdrop,V=yE({elementType:B,externalSlotProps:W,externalForwardedProps:M,getSlotProps:A,additionalProps:{ref:t,as:h},ownerState:z,className:vc(d,null==W?void 0:W.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=yE({elementType:H,externalSlotProps:G,additionalProps:c,getSlotProps:e=>D(Lr({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:vc(null==G?void 0:G.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||k||F&&!q?js.jsx(QE,{ref:O,container:m,disablePortal:S,children:js.jsxs(B,Lr({},V,{children:[!w&&u?js.jsx(H,Lr({},U)):null,js.jsx(XE,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:k,children:Hn.cloneElement(f,$)})]}))}):null}));var sw=lw;function uw(e){return ju("MuiDivider",e)}var cw=$u("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const dw=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],pw=mc("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Lr({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)`:su(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})=>Lr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Lr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Lr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Lr({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),fw=mc("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Lr({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)`}))),mw=Hn.forwardRef((function(e,t){const n=cc({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=kr(n,dw),m=Lr({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return bl({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},uw,r)})(m);return js.jsx(pw,Lr({as:a,className:vc(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?js.jsx(fw,{className:h.wrapper,ownerState:m,children:o}):null}))}));mw.muiSkipListHighlight=!0;var hw=mw;const gw=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],vw=mc(SC,{shouldForwardProp:e=>dc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...yC(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Lr({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}},[`&.${PC.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${PC.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${PC.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${PC.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(.${PC.disabled}, .${PC.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${PC.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Lr({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}))})),bw=mc(EC,{name:"MuiFilledInput",slot:"Input",overridesResolver:xC})((({theme:e,ownerState:t})=>Lr({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}))),yw=Hn.forwardRef((function(e,t){var n,r,o,i;const a=cc({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=kr(a,gw),g=Lr({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),v=(e=>{const{classes:t,disableUnderline:n}=e;return Lr({},t,bl({root:["root",!n&&"underline"],input:["input"]},MC,t))})(a),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?hu(b,null!=p?p:s):b,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:vw,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:bw;return js.jsx(RC,Lr({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:v}))}));yw.muiName="Input";var xw=yw;const Sw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ew(e){return`scale(${e}, ${e**2})`}const Cw={entering:{opacity:1,transform:Ew(1)},entered:{opacity:1,transform:"none"}},ww="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Rw=Hn.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=nE}=e,g=kr(e,Sw),v=Hn.useRef(),b=Hn.useRef(),y=uc(),x=Hn.useRef(null),S=Ru(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(u),w=E(((e,t)=>{uE(e);const{duration:n,delay:r,easing:o}=cE({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:ww?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),L=E(p),k=E((e=>{const{duration:t,delay:n,easing:r}=cE({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:ww?o:.666*o,delay:ww?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Ew(.75),c&&c(e)})),I=E(d);return Hn.useEffect((()=>()=>{clearTimeout(v.current)}),[]),js.jsx(h,Lr({appear:r,in:a,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:k,onExited:I,onExiting:L,addEndListener:e=>{"auto"===m&&(v.current=setTimeout(e,b.current||0)),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>Hn.cloneElement(o,Lr({style:Lr({opacity:0,transform:Ew(.75),visibility:"exited"!==e||a?void 0:"hidden"},Cw[e],f,o.props.style),ref:S},t))}))}));Rw.muiSupportAuto=!0;var Lw=Rw;const kw=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Iw=mc(SC,{shouldForwardProp:e=>dc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...yC(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Lr({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"},[`&.${kC.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${kC.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${kC.disabled}, .${kC.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${kC.disabled}:before`]:{borderBottomStyle:"dotted"}})})),_w=mc(EC,{name:"MuiInput",slot:"Input",overridesResolver:xC})({}),Mw=Hn.forwardRef((function(e,t){var n,r,o,i;const a=cc({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=kr(a,kw),v=(e=>{const{classes:t,disableUnderline:n}=e;return Lr({},t,bl({root:["root",!n&&"underline"],input:["input"]},LC,t))})(a),b={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?hu(null!=f?f:u,b):b,x=null!=(n=null!=(r=m.root)?r:s.Root)?n:Iw,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:_w;return js.jsx(RC,Lr({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:v}))}));Mw.muiName="Input";var Pw=Mw;function Aw(e){return ju("MuiLink",e)}var Dw=$u("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const Tw={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var Ow=({theme:e,ownerState:t})=>{const n=(e=>Tw[e]||e)(t.color),r=Dl(e,`palette.${n}`,!1)||t.color,o=Dl(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:su(r,.4)};const Nw=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],qw=mc(VE,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${gu(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>Lr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Lr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Ow({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"},[`&.${Dw.focusVisible}`]:{outline:"auto"}}))),Fw=Hn.forwardRef((function(e,t){const n=cc({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=n,p=kr(n,Nw),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=Ou(),[v,b]=Hn.useState(!1),y=Ru(t,g),x=Lr({},n,{color:o,component:i,focusVisible:v,underline:u,variant:c}),S=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return bl({root:["root",`underline${gu(o)}`,"button"===n&&"button",r&&"focusVisible"]},Aw,t)})(x);return js.jsx(qw,Lr({color:o,className:vc(S.root,r),classes:s,component:i,onBlur:e=>{m(e),!1===f.current&&b(!1),a&&a(e)},onFocus:e=>{h(e),!0===f.current&&b(!0),l&&l(e)},ref:y,ownerState:x,variant:c,sx:[...Object.keys(Tw).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var zw=Fw;var jw=Hn.createContext({});function $w(e){return ju("MuiList",e)}$u("MuiList",["root","padding","dense","subheader"]);const Bw=["children","className","component","dense","disablePadding","subheader"],Hw=mc("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Lr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var Ww=Hn.forwardRef((function(e,t){const n=cc({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=kr(n,Bw),c=Hn.useMemo((()=>({dense:a})),[a]),d=Lr({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return bl({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},$w,t)})(d);return js.jsx(jw.Provider,{value:c,children:js.jsxs(Hw,Lr({as:i,className:vc(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function Gw(e){return ju("MuiListItemIcon",e)}var Vw=$u("MuiListItemIcon",["root","alignItemsFlexStart"]);const Uw=["className"],Yw=mc("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Lr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var Kw=Hn.forwardRef((function(e,t){const n=cc({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=kr(n,Uw),i=Lr({},n,{alignItems:Hn.useContext(jw).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return bl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Gw,n)})(i);return js.jsx(Yw,Lr({className:vc(a.root,r),ownerState:i,ref:t},o))}));var Xw=$u("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const Qw=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Jw(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Zw(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function eR(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function tR(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&eR(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var nR=Hn.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=kr(e,Qw),p=Hn.useRef(null),f=Hn.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});yu((()=>{r&&p.current.focus()}),[r]),Hn.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(vu(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=Ru(p,t);let h=-1;Hn.Children.forEach(i,((e,t)=>{Hn.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=Hn.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),Hn.cloneElement(e,t)}return e}));return js.jsx(Ww,Lr({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=vu(t).activeElement;if("ArrowDown"===n)e.preventDefault(),tR(t,r,s,l,Jw);else if("ArrowUp"===n)e.preventDefault(),tR(t,r,s,l,Zw);else if("Home"===n)e.preventDefault(),tR(t,null,s,l,Jw);else if("End"===n)e.preventDefault(),tR(t,null,s,l,Zw);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&eR(r,o);o.previousKeyMatched&&(s||tR(t,r,!1,l,Jw,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function rR(e){return ju("MuiPopover",e)}$u("MuiPopover",["root","paper"]);const oR=["onEntering"],iR=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],aR=["slotProps"];function lR(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function sR(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function uR(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function cR(e){return"function"==typeof e?e():e}const dR=mc(sw,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pR=mc(mE,{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 fR=Hn.forwardRef((function(e,t){var n,r,o;const i=cc({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=Lw,transitionDuration:E="auto",TransitionProps:{onEntering:C}={},disableScrollLock:w=!1}=i,R=kr(i.TransitionProps,oR),L=kr(i,iR),k=null!=(n=null==y?void 0:y.paper)?n:v,I=Hn.useRef(),_=Ru(I,k.ref),M=Lr({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:k,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),P=(e=>{const{classes:t}=e;return bl({root:["root"],paper:["paper"]},rR,t)})(M),A=Hn.useCallback((()=>{if("anchorPosition"===c)return u;const e=cR(l),t=(e&&1===e.nodeType?e:vu(I.current).body).getBoundingClientRect();return{top:t.top+lR(t,s.vertical),left:t.left+sR(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=Hn.useCallback((e=>({vertical:lR(e,x.vertical),horizontal:sR(e,x.horizontal)})),[x.horizontal,x.vertical]),T=Hn.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:uR(n)};const r=A();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=bu(cR(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:uR(n)}}),[l,c,A,D,h]),[O,N]=Hn.useState(g),q=Hn.useCallback((()=>{const e=I.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);Hn.useEffect((()=>(w&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,w,q]);Hn.useEffect((()=>{g&&q()})),Hn.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),Hn.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{q()})),t=bu(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,q]);let F=E;"auto"!==E||S.muiSupportAuto||(F=void 0);const z=f||(l?vu(cR(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:dR,$=null!=(o=null==b?void 0:b.paper)?o:pR,B=yE({elementType:$,externalSlotProps:Lr({},k,{style:O?k.style:Lr({},k.style,{opacity:0})}),additionalProps:{elevation:m,ref:_},ownerState:M,className:vc(P.paper,null==k?void 0:k.className)}),H=yE({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:M,className:vc(P.root,p)}),{slotProps:W}=H,G=kr(H,aR);return js.jsx(j,Lr({},G,!hE(j)&&{slotProps:W,disableScrollLock:w},{children:js.jsx(S,Lr({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:js.jsx($,Lr({},B,{children:d}))}))}))}));function mR(e){return ju("MuiMenu",e)}$u("MuiMenu",["root","paper","list"]);const hR=["onEntering"],gR=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],vR={vertical:"top",horizontal:"right"},bR={vertical:"top",horizontal:"left"},yR=mc(fR,{shouldForwardProp:e=>dc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xR=mc(pR,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),SR=mc(nR,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var ER=Hn.forwardRef((function(e,t){var n,r;const o=cc({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=kr(o.TransitionProps,hR),x=kr(o,gR),S=uc(),E="rtl"===S.direction,C=Lr({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),w=(e=>{const{classes:t}=e;return bl({root:["root"],paper:["paper"],list:["list"]},mR,t)})(C),R=i&&!s&&d,L=Hn.useRef(null);let k=-1;Hn.Children.map(a,((e,t)=>{Hn.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===k)&&(k=t))}));const I=null!=(n=v.paper)?n:xR,_=null!=(r=b.paper)?r:p,M=yE({elementType:v.root,externalSlotProps:b.root,ownerState:C,className:[w.root,l]}),P=yE({elementType:I,externalSlotProps:_,ownerState:C,className:w.paper});return js.jsx(yR,Lr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?vR:bR,slots:{paper:I,root:v.root},slotProps:{root:M,paper:P},open:d,ref:t,transitionDuration:m,TransitionProps:Lr({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,S),h&&h(e,t)}},y),ownerState:C},x,{classes:f,children:js.jsx(SR,Lr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:L,autoFocus:i&&(-1===k||s),autoFocusItem:R,variant:g},u,{className:vc(w.list,u.className),children:a}))}))}));function CR(e){return ju("MuiMenuItem",e)}var wR=$u("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const RR=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],LR=mc(zE,{shouldForwardProp:e=>dc(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Lr({},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"}},[`&.${wR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:su(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${wR.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:su(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${wR.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:su(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})`:su(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${wR.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wR.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${cw.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${cw.inset}`]:{marginLeft:52},[`& .${Xw.root}`]:{marginTop:0,marginBottom:0},[`& .${Xw.inset}`]:{paddingLeft:36},[`& .${Vw.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Lr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Vw.root} svg`]:{fontSize:"1.25rem"}}))));var kR=Hn.forwardRef((function(e,t){const n=cc({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=kr(n,RR),f=Hn.useContext(jw),m=Hn.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=Hn.useRef(null);yu((()=>{r&&h.current&&h.current.focus()}),[r]);const g=Lr({},n,{dense:m.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Lr({},a,bl({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},CR,a))})(n),b=Ru(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),js.jsx(jw.Provider,{value:m,children:js.jsx(LR,Lr({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:vc(v.focusVisible,s),className:vc(v.root,d)},p,{ownerState:g,classes:v}))})}));function IR(e){return ju("MuiNativeSelect",e)}var _R=$u("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const MR=["className","disabled","error","IconComponent","inputRef","variant"],PR=({ownerState:e,theme:t})=>Lr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Lr({},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"},[`&.${_R.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}}),AR=mc("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:dc,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${_R.multiple}`]:t.multiple}]}})(PR),DR=({ownerState:e,theme:t})=>Lr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${_R.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),TR=mc("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${gu(n.variant)}`],n.open&&t.iconOpen]}})(DR),OR=Hn.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=kr(e,MR),u=Lr({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return bl({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${gu(n)}`,i&&"iconOpen",r&&"disabled"]},IR,t)})(u);return js.jsxs(Hn.Fragment,{children:[js.jsx(AR,Lr({ownerState:u,className:vc(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:js.jsx(TR,{as:i,ownerState:u,className:c.icon})]})}));var NR,qR=OR;const FR=["children","classes","className","label","notched"],zR=mc("fieldset",{shouldForwardProp:dc})({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%"}),jR=mc("legend",{shouldForwardProp:dc})((({ownerState:e,theme:t})=>Lr({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&&Lr({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 $R=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],BR=mc(SC,{shouldForwardProp:e=>dc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:yC})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Lr({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${_C.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${_C.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${_C.focused} .${_C.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${_C.error} .${_C.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${_C.disabled} .${_C.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Lr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),HR=mc((function(e){const{className:t,label:n,notched:r}=e,o=kr(e,FR),i=null!=n&&""!==n,a=Lr({},e,{notched:r,withLabel:i});return js.jsx(zR,Lr({"aria-hidden":!0,className:t,ownerState:a},o,{children:js.jsx(jR,{ownerState:a,children:i?js.jsx("span",{children:n}):NR||(NR=js.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}})),WR=mc(EC,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:xC})((({theme:e,ownerState:t})=>Lr({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}))),GR=Hn.forwardRef((function(e,t){var n,r,o,i,a;const l=cc({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=l,g=kr(l,$R),v=(e=>{const{classes:t}=e;return Lr({},t,bl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},IC,t))})(l),b=pC(),y=cC({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=Lr({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:h}),S=null!=(n=null!=(r=m.root)?r:s.Root)?n:BR,E=null!=(o=null!=(i=m.input)?i:s.Input)?o:WR;return js.jsx(RC,Lr({slots:{root:S,input:E},renderSuffix:e=>js.jsx(HR,{ownerState:x,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=js.jsxs(Hn.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:Lr({},v,{notchedOutline:null})}))}));GR.muiName="Input";var VR=GR;function UR(e){return ju("MuiSelect",e)}var YR,KR=$u("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const XR=["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"],QR=mc("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${KR.select}`]:t.select},{[`&.${KR.select}`]:t[n.variant]},{[`&.${KR.error}`]:t.error},{[`&.${KR.multiple}`]:t.multiple}]}})(PR,{[`&.${KR.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),JR=mc("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${gu(n.variant)}`],n.open&&t.iconOpen]}})(DR),ZR=mc("input",{shouldForwardProp:e=>pc(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 eL(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function tL(e){return null==e||"string"==typeof e&&!e.trim()}const nL=Hn.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:v={},multiple:b,name:y,onBlur:x,onChange:S,onClose:E,onFocus:C,onOpen:w,open:R,readOnly:L,renderValue:k,SelectDisplayProps:I={},tabIndex:_,value:M,variant:P="standard"}=e,A=kr(e,XR),[D,T]=Cu({controlled:M,default:c,name:"Select"}),[O,N]=Cu({controlled:R,default:u,name:"Select"}),q=Hn.useRef(null),F=Hn.useRef(null),[z,j]=Hn.useState(null),{current:$}=Hn.useRef(null!=R),[B,H]=Hn.useState(),W=Ru(t,h),G=Hn.useCallback((e=>{F.current=e,e&&j(e)}),[]),V=null==z?void 0:z.parentNode;Hn.useImperativeHandle(W,(()=>({focus:()=>{F.current.focus()},node:q.current,value:D})),[D]),Hn.useEffect((()=>{u&&O&&z&&!$&&(H(a?null:V.clientWidth),F.current.focus())}),[z,a]),Hn.useEffect((()=>{i&&F.current.focus()}),[i]),Hn.useEffect((()=>{if(!g)return;const e=vu(F.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const U=(e,t)=>{e?w&&w(t):E&&E(t),$||(H(a?null:V.clientWidth),N(e))},Y=Hn.Children.toArray(l),K=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(b){n=Array.isArray(D)?D.slice():[];const t=D.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),D!==n&&(T(n),S)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),S(o,e)}b||U(!1,t)}},X=null!==z&&O;let Q,J;delete A["aria-invalid"];const Z=[];let ee=!1;(hC({value:D})||p)&&(k?Q=k(D):ee=!0);const te=Y.map((e=>{if(!Hn.isValidElement(e))return null;let t;if(b){if(!Array.isArray(D))throw new Error(wr(2));t=D.some((t=>eL(t,e.props.value))),t&&ee&&Z.push(e.props.children)}else t=eL(D,e.props.value),t&&ee&&(J=e.props.children);return Hn.cloneElement(e,{"aria-selected":t?"true":"false",onClick:K(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ee&&(Q=b?0===Z.length?null:Z.reduce(((e,t,n)=>(e.push(t),n<Z.length-1&&e.push(", "),e)),[]):J);let ne,re=B;!a&&$&&z&&(re=V.clientWidth),ne=void 0!==_?_:d?null:0;const oe=I.id||(y?`mui-component-select-${y}`:void 0),ie=Lr({},e,{variant:P,value:D,open:X,error:f}),ae=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return bl({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${gu(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},UR,t)})(ie),le=Lr({},v.PaperProps,null==(n=v.slotProps)?void 0:n.paper),se=Eu();return js.jsxs(Hn.Fragment,{children:[js.jsx(QR,Lr({ref:G,tabIndex:ne,role:"combobox","aria-controls":se,"aria-disabled":d?"true":void 0,"aria-expanded":X?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,oe].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!L){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:d||L?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),U(!0,e))},onBlur:e=>{!X&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:D,name:y}}),x(e))},onFocus:C},I,{ownerState:ie,className:vc(I.className,ae.select,s),id:oe,children:tL(Q)?YR||(YR=js.jsx("span",{className:"notranslate",children:""})):Q})),js.jsx(ZR,Lr({"aria-invalid":f,value:Array.isArray(D)?D.join(","):D,name:y,ref:q,"aria-hidden":!0,onChange:e=>{const t=Y.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:ae.nativeInput,autoFocus:i,ownerState:ie},A)),js.jsx(JR,{as:m,className:ae.icon,ownerState:ie}),js.jsx(ER,Lr({id:`menu-${y||""}`,anchorEl:V,open:X,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:Lr({"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:se},v.MenuListProps),slotProps:Lr({},v.slotProps,{paper:Lr({},le,{style:Lr({minWidth:re},null!=le?le.style:null)})}),children:te}))]})}));var rL=nL;const oL=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],iL=["root"],aL={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>dc(e)&&"variant"!==e,slot:"Root"},lL=mc(Pw,aL)(""),sL=mc(VR,aL)(""),uL=mc(xw,aL)(""),cL=Hn.forwardRef((function(e,t){const n=cc({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=AC,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:v=!1,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:E,variant:C="outlined"}=n,w=kr(n,oL),R=v?qR:rL,L=cC({props:n,muiFormControl:pC(),states:["variant","error"]}),k=L.variant||C,I=Lr({},n,{variant:k,classes:i}),_=(e=>{const{classes:t}=e;return t})(I),M=kr(_,iL),P=d||{standard:js.jsx(lL,{ownerState:I}),outlined:js.jsx(sL,{label:f,ownerState:I}),filled:js.jsx(uL,{ownerState:I})}[k],A=Ru(t,P.ref);return js.jsx(Hn.Fragment,{children:Hn.cloneElement(P,Lr({inputComponent:R,inputProps:Lr({children:o,error:L.error,IconComponent:u,variant:k,type:void 0,multiple:g},v?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:Lr({id:c},E)},p,{classes:p?hu(M,p.classes):M},d?d.props.inputProps:{})},g&&v&&"outlined"===k?{notched:!0}:{},{ref:A,className:vc(P.props.className,a,_.root)},!d&&{variant:k},w))})}));cL.muiName="Select";var dL=cL,pL=(e={})=>Wn.createElement(cr,{...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("rect",{stroke:Un.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const fL={MuiAccordion:{styleOverrides:{root:{backgroundColor:Un.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Un.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Wn.createElement(lr,{"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 ${Un.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Un.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Un.MISC_FOCUS_BORDER}`,borderRadius:Jn,backgroundColor:Un.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 ${Un.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Un.WHITE,color:Un.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:Jn},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Un.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Un.GREYSCALE_0_15,backgroundColor:Un.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Un.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Un.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Un.GREEN_PALE},"&:active":{backgroundColor:Un.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Un.GREEN_PALE,boxShadow:`0 0 0 3px ${su(Un.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Un.BLUE_PALE},"&:active":{backgroundColor:Un.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Un.BLUE_PALE,boxShadow:`0 0 0 3px ${su(Un.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:Jn,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Un.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Un.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Un.GREYSCALE_0_15,backgroundColor:Un.GREYSCALE_100_60,"&:active":{backgroundColor:Un.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Un.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Un.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Un.PURPLE,"&.Mui-focusVisible":{borderColor:Un.PURPLE,boxShadow:`0 0 0 3px ${su(Un.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Un.GREEN,"&.Mui-focusVisible":{borderColor:Un.GREEN,boxShadow:`0 0 0 3px ${su(Un.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Un.BLUE,"&.Mui-focusVisible":{borderColor:Un.BLUE,boxShadow:`0 0 0 3px ${su(Un.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Un.ORANGE,"&.Mui-focusVisible":{borderColor:Un.ORANGE,boxShadow:`0 0 0 3px ${su(Un.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Un.RED,"&.Mui-focusVisible":{borderColor:Un.RED,boxShadow:`0 0 0 3px ${su(Un.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Un.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Un.PURPLE_PALE},"&:active":{backgroundColor:Un.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Un.PURPLE_PALE,boxShadow:`0 0 0 3px ${su(Un.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Un.GREEN_PALE},"&:active":{backgroundColor:Un.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Un.GREEN_PALE,boxShadow:`0 0 0 3px ${su(Un.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Un.BLUE_PALE},"&:active":{backgroundColor:Un.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Un.BLUE_PALE,boxShadow:`0 0 0 3px ${su(Un.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Un.ORANGE_PALE},"&:active":{backgroundColor:Un.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Un.ORANGE_PALE,boxShadow:`0 0 0 3px ${su(Un.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Un.RED_PALE},"&:active":{backgroundColor:Un.RED_DARK},"&.Mui-focusVisible":{borderColor:Un.RED_PALE,boxShadow:`0 0 0 3px ${su(Un.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:Un.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Un.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Jn,boxShadow:`inset 0 0 0 2px ${Un.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Wn.createElement(ur,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Yn,borderRadius:Jn,color:Un.TEXT_PRIMARY,backgroundColor:Un.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Un.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Un.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Un.GREYSCALE_0_05,color:Un.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Un.GREEN,borderColor:Un.GREEN},"&.MuiChip-outlinedInfo":{color:Un.BLUE,borderColor:Un.BLUE},"&.MuiChip-outlinedWarning":{color:Un.ORANGE,borderColor:Un.ORANGE},"&.MuiChip-outlinedError":{color:Un.RED,borderColor:Un.RED}},outlined:{border:`solid 1px ${Un.GREYSCALE_0_15}`,backgroundColor:Un.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Jn,boxShadow:"none",backgroundColor:Un.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Un.GREEN,borderColor:Un.GREEN},outlinedSecondary:{color:Un.BLUE,borderColor:Un.BLUE},label:{fontFamily:rr.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Wn.createElement(ur,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Wn.createElement(lr,{"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:Jn},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Jn,fontSize:Kn,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Un.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Un.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Un.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Un.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Un.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:Jn,border:`solid 1px ${Un.GREYSCALE_0_15}`,color:Un.GREYSCALE_0_60,marginRight:0,width:Qn,height:Qn},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Un.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Jn,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Un.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Kn}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Yn,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Un.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Un.GREYSCALE_25,fontSize:Yn,fontFamily:rr.FONT_FAMILY,fontWeight:tr,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Un.TEXT_PRIMARY},"&.Mui-error":{color:Un.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Un.TEXT_SECONDARY,content:"'(optional)'",fontWeight:er,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Un.TEXT_SECONDARY,content:"'(required)'",fontWeight:er,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Kn,lineHeight:"16px",backgroundColor:Un.WHITE,borderRadius:Jn,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Un.GREYSCALE_0_05}`,borderColor:Un.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Un.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Un.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Un.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Un.RED}`,boxShadow:`0px 0px 0px 1px ${Un.RED}, inset 0 2px 0 0 ${Un.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Un.GREYSCALE_0_10}`,borderColor:Un.GREYSCALE_0_10,backgroundColor:Un.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Un.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Un.GREYSCALE_0_15,borderRadius:Jn,boxShadow:`inset 0 2px 0 0 ${Un.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Wn.createElement(lr,{...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:Un.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Un.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Un.GREYSCALE_0_03},"&:active":{backgroundColor:Un.GREYSCALE_0_10},"&:focus":{backgroundColor:Un.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Un.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Un.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Un.GREYSCALE_0_30,"&:hover":{backgroundColor:Un.GREYSCALE_0_0,borderColor:Un.GREYSCALE_0_15},"& ~svg":{color:Un.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Un.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Jn}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Un.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Un.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Un.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:Kn,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Yn,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Yn,fontWeight:tr,color:Un.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:tr}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Un.GREYSCALE_0_15}, 0px 0px 0px 1px ${Un.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Wn.createElement(fr,null),checkedIcon:Wn.createElement(mr,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Un.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Un.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Un.GREEN_PALE,boxShadow:`0 0 0 3px ${su(Un.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Un.BLUE_PALE,boxShadow:`0 0 0 3px ${su(Un.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Un.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Un.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Wn.createElement(pL,null),checkedIcon:Wn.createElement(dr,null),indeterminateIcon:Wn.createElement(pr,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Jn,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Un.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Un.GREYSCALE_0_55,color:Un.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:Un.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Un.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Un.GREYSCALE_0_55,"&:hover":{color:Un.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:Un.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Un.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Kn,color:Un.TEXT_PRIMARY,lineHeight:"16px",fontWeight:tr},secondary:{fontSize:Yn,color:Un.GREYSCALE_45,fontWeight:er,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Kn,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Un.GREYSCALE_0_03},"&:active":{backgroundColor:Un.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Kn,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Un.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Yn,borderBottom:`solid 1px ${Un.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Kn,color:Un.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Un.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Un.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Un.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:Un.RED}}},"&.Mui-focusVisible":{backgroundColor:Un.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:Un.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:Un.GREEN,height:"24px","&.Mui-disabled":{color:Un.GREYSCALE_0_15}},rail:{backgroundColor:Un.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Un.GREYSCALE_0_05}`,borderRadius:Jn,boxShadow:`inset 0px 0px 0px 1px ${Un.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Un.GREYSCALE_0_05}`,borderRadius:Jn},thumb:{height:"16px",width:"16px",borderRadius:Jn,backgroundColor:Un.WHITE,boxShadow:`0px 1px 2px 0px ${Un.GREYSCALE_0_15}, 0px 0px 0px 1px ${Un.GREYSCALE_0_05}`,"&:hover":{borderRadius:Jn,boxShadow:`0 2px 4px 0 ${Un.GREYSCALE_0_30}, 0 0 0 1px ${Un.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Un.GREYSCALE_0_15}, 0 0 0 1px ${Un.GREYSCALE_0_06}, 0 0 0 2px ${Un.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Un.GREYSCALE_0_15}, 0 0 0 1px ${Un.GREYSCALE_0_06}, 0 0 0 2px ${Un.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Un.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Un.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Un.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Un.GREYSCALE_0_15},markLabel:{color:Un.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Un.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Un.WHITE,color:Un.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:Un.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:Un.GREEN_PALE,boxShadow:`0 0 0 3px ${su(Un.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Un.BLUE_PALE,boxShadow:`0 0 0 3px ${su(Un.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Un.GREYSCALE_0_15,borderRadius:Jn},thumb:{height:"16px",width:"16px",borderRadius:Jn,backgroundColor:Un.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:Kn,fontWeight:tr,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Un.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Un.MISC_FOCUS_BORDER}`,backgroundColor:Un.GREYSCALE_0_03,borderRadius:Jn},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Un.GREYSCALE_25,"&.Mui-selected":{color:Un.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Kn,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${Un.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${Un.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Un.GREYSCALE_85}`,borderRight:`1px solid ${Un.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:tr,backgroundColor:Un.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:Un.GREYSCALE_98,borderBottom:`1px solid ${Un.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Un.GREYSCALE_85}`,borderTop:`1px solid ${Un.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Un.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Un.GREYSCALE_0_05,"&:hover":{backgroundColor:Un.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Un.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Wn.createElement(hr,{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 ${Un.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Kn,borderRadius:Jn,padding:"7px 16px",border:`1px solid ${Un.GREYSCALE_0_15}`,backgroundColor:Un.GREYSCALE_100_60,color:Un.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Un.GREYSCALE_0_10,border:`1px solid ${Un.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Un.GREYSCALE_0_03,border:`1px solid ${Un.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Un.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Un.MISC_FOCUS_BORDER}`,border:`1px solid ${Un.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Un.GREYSCALE_25,backgroundColor:Un.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Un.GREYSCALE_0_10,border:`1px solid ${Un.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Yn,height:24,width:24,padding:7},sizeLarge:{fontSize:Xn,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Kn,borderRadius:Jn}}},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:Un.GREYSCALE_20},tooltip:{backgroundColor:Un.GREYSCALE_20,fontSize:Yn,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const mL={mode:"light",primary:{light:Un.GREEN_PALE,main:Un.GREEN,dark:Un.GREEN_DARK,contrastText:Un.WHITE},secondary:{light:Un.BLUE_PALE,main:Un.BLUE,dark:Un.BLUE_DARK,contrastText:Un.WHITE},error:{light:Un.RED_PALE,main:Un.RED,dark:Un.RED_DARK,contrastText:Un.WHITE},warning:{light:Un.ORANGE_PALE,main:Un.ORANGE,dark:Un.ORANGE_DARK,contrastText:Un.WHITE},success:{light:Un.GREEN_PALE,main:Un.GREEN,dark:Un.GREEN_DARK,contrastText:Un.WHITE},info:{light:Un.BLUE_PALE,main:Un.BLUE,dark:Un.BLUE_DARK,contrastText:Un.WHITE},text:{primary:Un.TEXT_PRIMARY,secondary:Un.TEXT_SECONDARY,disabled:Un.GREYSCALE_0_30},action:{hover:Un.GREYSCALE_0_03,hoverOpacity:.05,selected:Un.GREYSCALE_0_05,focus:Un.MISC_FOCUS_BORDER},amethyst:{main:Un.PURPLE,light:Un.PURPLE_PALE,dark:Un.PURPLE_DARK,contrastText:Un.WHITE},background:{paper:Un.WHITE,default:Un.GREYSCALE_95},divider:Un.GREYSCALE_0_15},hL=e=>({components:fL,palette:mL,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:Kn,fontWeightLight:Zn,fontWeightRegular:er,fontWeightMedium:tr,fontWeightBold:nr,htmlFontSize:Kn,fontFamily:rr.FONT_FAMILY,button:{fontWeight:tr,fontSize:Kn,textTransform:"none"},body1:{fontSize:Xn,lineHeight:"24px"},body2:{fontSize:Kn,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Qn,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Xn,fontWeight:tr,lineHeight:"16px"},h6:{fontSize:Kn,fontWeight:tr,lineHeight:"16px"},caption:{color:Un.TEXT_SECONDARY},subtitle1:{fontSize:Kn,color:Un.TEXT_SECONDARY},subtitle2:{fontSize:Yn,color:Un.TEXT_SECONDARY}},shape:{borderRadius:Jn}}),gL={...Vn,MISC_FOCUS_BORDER:Un.MISC_FOCUS_BORDER},vL=hL().palette,bL={TEXT:vL.text.primary,DISABLED:vL.text.disabled,HOVER:vL.action.hover,WHITE:gL.GREYSCALE_100,BORDER_LIGHT:gL.GREYSCALE_90,BORDER_MEDIUM:gL.GREYSCALE_85,BORDER_HEAVY:gL.GREYSCALE_50,DARK_MODE_TEXT:gL.GREYSCALE_95,DARK_MODE_BORDER:gL.GREYSCALE_95,DARK_MODE_DISABLED:gL.GREYSCALE_70,DARK_MODE_BACKGROUND:gL.GREYSCALE_20};function yL(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function xL(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function SL(){}var EL=.7,CL=1/EL,wL="\\s*([+-]?\\d+)\\s*",RL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",LL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",kL=/^#([0-9a-f]{3,8})$/,IL=new RegExp(`^rgb\\(${wL},${wL},${wL}\\)$`),_L=new RegExp(`^rgb\\(${LL},${LL},${LL}\\)$`),ML=new RegExp(`^rgba\\(${wL},${wL},${wL},${RL}\\)$`),PL=new RegExp(`^rgba\\(${LL},${LL},${LL},${RL}\\)$`),AL=new RegExp(`^hsl\\(${RL},${LL},${LL}\\)$`),DL=new RegExp(`^hsla\\(${RL},${LL},${LL},${RL}\\)$`),TL={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 OL(){return this.rgb().formatHex()}function NL(){return this.rgb().formatRgb()}function qL(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=kL.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?FL(t):3===n?new BL(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?zL(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?zL(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=IL.exec(e))?new BL(t[1],t[2],t[3],1):(t=_L.exec(e))?new BL(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ML.exec(e))?zL(t[1],t[2],t[3],t[4]):(t=PL.exec(e))?zL(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=AL.exec(e))?YL(t[1],t[2]/100,t[3]/100,1):(t=DL.exec(e))?YL(t[1],t[2]/100,t[3]/100,t[4]):TL.hasOwnProperty(e)?FL(TL[e]):"transparent"===e?new BL(NaN,NaN,NaN,0):null}function FL(e){return new BL(e>>16&255,e>>8&255,255&e,1)}function zL(e,t,n,r){return r<=0&&(e=t=n=NaN),new BL(e,t,n,r)}function jL(e){return e instanceof SL||(e=qL(e)),e?new BL((e=e.rgb()).r,e.g,e.b,e.opacity):new BL}function $L(e,t,n,r){return 1===arguments.length?jL(e):new BL(e,t,n,null==r?1:r)}function BL(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function HL(){return`#${UL(this.r)}${UL(this.g)}${UL(this.b)}`}function WL(){const e=GL(this.opacity);return`${1===e?"rgb(":"rgba("}${VL(this.r)}, ${VL(this.g)}, ${VL(this.b)}${1===e?")":`, ${e})`}`}function GL(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function VL(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function UL(e){return((e=VL(e))<16?"0":"")+e.toString(16)}function YL(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new XL(e,t,n,r)}function KL(e){if(e instanceof XL)return new XL(e.h,e.s,e.l,e.opacity);if(e instanceof SL||(e=qL(e)),!e)return new XL;if(e instanceof XL)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new XL(a,l,s,e.opacity)}function XL(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function QL(e){return(e=(e||0)%360)<0?e+360:e}function JL(e){return Math.max(0,Math.min(1,e||0))}function ZL(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}yL(SL,qL,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:OL,formatHex:OL,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return KL(this).formatHsl()},formatRgb:NL,toString:NL}),yL(BL,$L,xL(SL,{brighter(e){return e=null==e?CL:Math.pow(CL,e),new BL(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?EL:Math.pow(EL,e),new BL(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new BL(VL(this.r),VL(this.g),VL(this.b),GL(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:HL,formatHex:HL,formatHex8:function(){return`#${UL(this.r)}${UL(this.g)}${UL(this.b)}${UL(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:WL,toString:WL})),yL(XL,(function(e,t,n,r){return 1===arguments.length?KL(e):new XL(e,t,n,null==r?1:r)}),xL(SL,{brighter(e){return e=null==e?CL:Math.pow(CL,e),new XL(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?EL:Math.pow(EL,e),new XL(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new BL(ZL(e>=240?e-240:e+120,o,r),ZL(e,o,r),ZL(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new XL(QL(this.h),JL(this.s),JL(this.l),GL(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=GL(this.opacity);return`${1===e?"hsl(":"hsla("}${QL(this.h)}, ${100*JL(this.s)}%, ${100*JL(this.l)}%${1===e?")":`, ${e})`}`}}));const ek=Math.PI/180,tk=180/Math.PI,nk=.96422,rk=1,ok=.82521,ik=4/29,ak=6/29,lk=3*ak*ak,sk=ak*ak*ak;function uk(e){if(e instanceof ck)return new ck(e.l,e.a,e.b,e.opacity);if(e instanceof gk)return vk(e);e instanceof BL||(e=jL(e));var t,n,r=mk(e.r),o=mk(e.g),i=mk(e.b),a=dk((.2225045*r+.7168786*o+.0606169*i)/rk);return r===o&&o===i?t=n=a:(t=dk((.4360747*r+.3850649*o+.1430804*i)/nk),n=dk((.0139322*r+.0971045*o+.7141733*i)/ok)),new ck(116*a-16,500*(t-a),200*(a-n),e.opacity)}function ck(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function dk(e){return e>sk?Math.pow(e,1/3):e/lk+ik}function pk(e){return e>ak?e*e*e:lk*(e-ik)}function fk(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function mk(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function hk(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof gk)return new gk(e.h,e.c,e.l,e.opacity);if(e instanceof ck||(e=uk(e)),0===e.a&&0===e.b)return new gk(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*tk;return new gk(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new gk(e,t,n,null==r?1:r)}function gk(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function vk(e){if(isNaN(e.h))return new ck(e.l,0,0,e.opacity);var t=e.h*ek;return new ck(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}yL(ck,(function(e,t,n,r){return 1===arguments.length?uk(e):new ck(e,t,n,null==r?1:r)}),xL(SL,{brighter(e){return new ck(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ck(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new BL(fk(3.1338561*(t=nk*pk(t))-1.6168667*(e=rk*pk(e))-.4906146*(n=ok*pk(n))),fk(-.9787684*t+1.9161415*e+.033454*n),fk(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),yL(gk,hk,xL(SL,{brighter(e){return new gk(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new gk(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return vk(this).rgb()}}));const bk=(e,t)=>{const n=hk(e),r=n.l<70;return 0===n.opacity?(n.opacity=t.opacity,n.toString()):r?n.brighter(t.brighter).toString():n.darker(t.darker).toString()},yk=e=>{if(e){const t=$L(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},xk=e=>!!e&&0===$L(e).opacity,Sk=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,Ek=e=>{const t=Sk.exec(e);if(t){const[,e,n,r,o]=t;return $L(+n,+r,+o,+e/255)}return $L(e)},Ck=e=>{const t=Ek(e);return Number.isNaN(t.r)?null:t.toString()},wk=e=>{e.stopPropagation(),e.preventDefault()},Rk="#grid",Lk=(e,t)=>{const n=null==t?void 0:t.closest(e);return n&&window.getComputedStyle(n).backgroundColor},kk=(e,t,n,r,o)=>{const i=Lk(".qv-object .qv-inner-object",n),a=Lk(".qv-panel-sheet",n),l=Lk(Rk,n),s=null!=l?l:a,u=(e=>{var t,n,r,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(n=l.bgColor)||void 0===n?void 0:n.colorExpression,u=null==l||null===(r=l.bgColor)||void 0===r||null===(r=r.color)||void 0===r?void 0:r.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return Ck(s);if("none"===u)return"transparent";if(void 0===u)return;const c=Ek(u);return c.opacity=null!==(i=null==l||null===(a=l.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.opacity,c.toString()})(e),c=null==r?void 0:r(t),d=null==o?void 0:o(t),p=c||i||d,f=xk(p),m=yk(f?s:p),h=((e,t,n)=>xk(e)||!e?xk(t)?null!=n?n:bL.WHITE:t:e)(u,p,s);return{color:p,headerColor:h,isDark:m}},Ik=(t,n,r,o)=>{const i=e.useTheme(),a=((t,n={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,o]=e.useState([]);return e.useEffect((()=>{let e;return t&&(e=new MutationObserver((e=>{o(e)})),e.observe(t,n)),()=>{var t;null===(t=e)||void 0===t||t.disconnect()}}),[t,n]),r})(null==n?void 0:n.closest(Rk),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return e.useMemo((()=>({...i,background:kk(t,i,n,r,o)})),[i.name(),n,r,o,t,a])};function _k(t,n){const r=e.useMemo((()=>({isLoading:!0})),n),[o,i]=e.usePromise((async()=>{try{return await t()}finally{r.isLoading=!1}}),n);return[o,r.isLoading,i]}var Mk=Object.prototype.hasOwnProperty,Pk=Object.prototype.toString,Ak=Object.defineProperty,Dk=Object.getOwnPropertyDescriptor,Tk=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Pk.call(e)},Ok=function(e){if(!e||"[object Object]"!==Pk.call(e))return!1;var t,n=Mk.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Mk.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Mk.call(e,t)},Nk=function(e,t){Ak&&"__proto__"===t.name?Ak(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},qk=function(e,t){if("__proto__"===t){if(!Mk.call(e,t))return;if(Dk)return Dk(e,t).value}return e[t]};function Fk(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function zk(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function jk(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=qk(l,n),l!==(o=qk(t,n))&&(c&&o&&(Ok(o)||(i=Tk(o)))?(i?(i=!1,a=r&&Tk(r)?r:[]):a=r&&Ok(r)?r:{},Nk(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&Nk(l,{name:n,newValue:o}));return l}));var $k=1/.7,Bk="\\s*([+-]?\\d+)\\s*",Hk="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Wk="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Gk=/^#([0-9a-f]{3,8})$/,Vk=new RegExp(`^rgb\\(${Bk},${Bk},${Bk}\\)$`),Uk=new RegExp(`^rgb\\(${Wk},${Wk},${Wk}\\)$`),Yk=new RegExp(`^rgba\\(${Bk},${Bk},${Bk},${Hk}\\)$`),Kk=new RegExp(`^rgba\\(${Wk},${Wk},${Wk},${Hk}\\)$`),Xk=new RegExp(`^hsl\\(${Hk},${Wk},${Wk}\\)$`),Qk=new RegExp(`^hsla\\(${Hk},${Wk},${Wk},${Hk}\\)$`),Jk={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 Zk(){return this.rgb().formatHex()}function eI(){return this.rgb().formatRgb()}function tI(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Gk.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?nI(t):3===n?new aI(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?rI(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?rI(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=Vk.exec(e))?new aI(t[1],t[2],t[3],1):(t=Uk.exec(e))?new aI(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Yk.exec(e))?rI(t[1],t[2],t[3],t[4]):(t=Kk.exec(e))?rI(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Xk.exec(e))?pI(t[1],t[2]/100,t[3]/100,1):(t=Qk.exec(e))?pI(t[1],t[2]/100,t[3]/100,t[4]):Jk.hasOwnProperty(e)?nI(Jk[e]):"transparent"===e?new aI(NaN,NaN,NaN,0):null}function nI(e){return new aI(e>>16&255,e>>8&255,255&e,1)}function rI(e,t,n,r){return r<=0&&(e=t=n=NaN),new aI(e,t,n,r)}function oI(e){return e instanceof jk||(e=tI(e)),e?new aI((e=e.rgb()).r,e.g,e.b,e.opacity):new aI}function iI(e,t,n,r){return 1===arguments.length?oI(e):new aI(e,t,n,null==r?1:r)}function aI(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function lI(){return`#${dI(this.r)}${dI(this.g)}${dI(this.b)}`}function sI(){const e=uI(this.opacity);return`${1===e?"rgb(":"rgba("}${cI(this.r)}, ${cI(this.g)}, ${cI(this.b)}${1===e?")":`, ${e})`}`}function uI(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function cI(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function dI(e){return((e=cI(e))<16?"0":"")+e.toString(16)}function pI(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new mI(e,t,n,r)}function fI(e){if(e instanceof mI)return new mI(e.h,e.s,e.l,e.opacity);if(e instanceof jk||(e=tI(e)),!e)return new mI;if(e instanceof mI)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new mI(a,l,s,e.opacity)}function mI(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function hI(e){return(e=(e||0)%360)<0?e+360:e}function gI(e){return Math.max(0,Math.min(1,e||0))}function vI(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Fk(jk,tI,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Zk,formatHex:Zk,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return fI(this).formatHsl()},formatRgb:eI,toString:eI}),Fk(aI,iI,zk(jk,{brighter(e){return e=null==e?$k:Math.pow($k,e),new aI(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new aI(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new aI(cI(this.r),cI(this.g),cI(this.b),uI(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:lI,formatHex:lI,formatHex8:function(){return`#${dI(this.r)}${dI(this.g)}${dI(this.b)}${dI(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:sI,toString:sI})),Fk(mI,(function(e,t,n,r){return 1===arguments.length?fI(e):new mI(e,t,n,null==r?1:r)}),zk(jk,{brighter(e){return e=null==e?$k:Math.pow($k,e),new mI(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new mI(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new aI(vI(e>=240?e-240:e+120,o,r),vI(e,o,r),vI(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new mI(hI(this.h),gI(this.s),gI(this.l),uI(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=uI(this.opacity);return`${1===e?"hsl(":"hsla("}${hI(this.h)}, ${100*gI(this.s)}%, ${100*gI(this.l)}%${1===e?")":`, ${e})`}`}}));const bI=Math.PI/180,yI=180/Math.PI,xI=4/29,SI=6/29,EI=3*SI*SI;function CI(e){if(e instanceof wI)return new wI(e.l,e.a,e.b,e.opacity);if(e instanceof _I)return MI(e);e instanceof aI||(e=oI(e));var t,n,r=II(e.r),o=II(e.g),i=II(e.b),a=RI((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=RI((.4360747*r+.3850649*o+.1430804*i)/.96422),n=RI((.0139322*r+.0971045*o+.7141733*i)/.82521)),new wI(116*a-16,500*(t-a),200*(a-n),e.opacity)}function wI(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function RI(e){return e>.008856451679035631?Math.pow(e,1/3):e/EI+xI}function LI(e){return e>SI?e*e*e:EI*(e-xI)}function kI(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function II(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function _I(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function MI(e){if(isNaN(e.h))return new wI(e.l,0,0,e.opacity);var t=e.h*bI;return new wI(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Fk(wI,(function(e,t,n,r){return 1===arguments.length?CI(e):new wI(e,t,n,null==r?1:r)}),zk(jk,{brighter(e){return new wI(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new wI(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new aI(kI(3.1338561*(t=.96422*LI(t))-1.6168667*(e=1*LI(e))-.4906146*(n=.82521*LI(n))),kI(-.9787684*t+1.9161415*e+.033454*n),kI(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Fk(_I,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof _I)return new _I(e.h,e.c,e.l,e.opacity);if(e instanceof wI||(e=CI(e)),0===e.a&&0===e.b)return new _I(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*yI;return new _I(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new _I(e,t,n,null==r?1:r)}),zk(jk,{brighter(e){return new _I(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new _I(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return MI(this).rgb()}}));var PI,AI=e=>()=>e;function DI(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):AI(isNaN(e)?t:e)}function TI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function OI(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function NI(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=FI)):void 0===t&&(t=qI);for(var n,r,o,i,a,l=new $I(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new $I(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(jI)}function qI(e){return e.children}function FI(e){return Array.isArray(e)?e[1]:null}function zI(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function jI(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function $I(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var n=function(e){return 1==(e=+e)?DI:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):AI(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=iI(e)).r,(t=iI(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=DI(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1),$I.prototype=NI.prototype={constructor:$I,count:function(){return this.eachAfter(OI)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return NI(this).eachBefore(zI)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},PI=function(e){
|
|
118
|
+
`),xE.rippleVisible,kE,550,(({theme:e})=>e.transitions.easing.easeInOut),xE.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),xE.child,xE.childLeaving,IE,550,(({theme:e})=>e.transitions.easing.easeInOut),xE.childPulsate,_E,(({theme:e})=>e.transitions.easing.easeInOut)),AE=Hn.forwardRef((function(e,t){const n=cc({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=kr(n,SE),[l,s]=Hn.useState([]),u=Hn.useRef(0),c=Hn.useRef(null);Hn.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=Hn.useRef(!1),p=Hn.useRef(0),f=Hn.useRef(null),m=Hn.useRef(null);Hn.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=Hn.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,js.jsx(PE,{classes:{ripple:vc(o.ripple,xE.ripple),rippleVisible:vc(o.rippleVisible,xE.rippleVisible),ripplePulsate:vc(o.ripplePulsate,xE.ripplePulsate),child:vc(o.child,xE.child),childLeaving:vc(o.childLeaving,xE.childLeaving),childPulsate:vc(o.childPulsate,xE.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=Hn.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h]),v=Hn.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=Hn.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{b(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return Hn.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),js.jsx(ME,Lr({className:vc(xE.root,o.root,i),ref:m},a,{children:js.jsx(sE,{component:null,exit:!0,children:l})}))}));var DE=AE;function TE(e){return ju("MuiButtonBase",e)}var OE=$u("MuiButtonBase",["root","disabled","focusVisible"]);const NE=["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"],qE=mc("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"},[`&.${OE.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),FE=Hn.forwardRef((function(e,t){const n=cc({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:C,onTouchEnd:w,onTouchMove:R,onTouchStart:L,tabIndex:k=0,TouchRippleProps:I,touchRippleRef:_,type:M}=n,P=kr(n,NE),A=Hn.useRef(null),D=Hn.useRef(null),T=Ru(D,_),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:F}=Ou(),[z,j]=Hn.useState(!1);s&&z&&j(!1),Hn.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),A.current.focus()}})),[]);const[$,B]=Hn.useState(!1);Hn.useEffect((()=>{B(!0)}),[]);const H=$&&!u&&!s;function W(e,t,n=c){return wu((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}Hn.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const G=W("start",S),V=W("stop",h),U=W("stop",g),Y=W("stop",C),K=W("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=W("start",L),Q=W("stop",w),J=W("stop",R),Z=W("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),ee=wu((e=>{A.current||(A.current=e.currentTarget),N(e),!0===O.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=A.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=Hn.useRef(!1),re=wu((e=>{d&&!ne.current&&z&&D.current&&" "===e.key&&(ne.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),oe=wu((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(P.href||P.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===M?"button":M,ae.disabled=s):(P.href||P.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=Ru(t,F,A),se=Lr({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:k,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=bl({root:["root",t&&"disabled",n&&"focusVisible"]},TE,o);return n&&r&&(i.root+=` ${r}`),i})(se);return js.jsxs(qE,Lr({as:ie,className:vc(ue.root,a),ownerState:se,onBlur:Z,onClick:m,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:G,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:k,type:M},ae,P,{children:[i,H?js.jsx(DE,Lr({ref:T,center:o},I)):null]}))}));var zE=FE;function jE(e){return ju("MuiTypography",e)}$u("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const $E=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],BE=mc("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${gu(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Lr({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}))),HE={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},WE={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},GE=Hn.forwardRef((function(e,t){const n=cc({props:e,name:"MuiTypography"}),r=(e=>WE[e]||e)(n.color),o=Ws(Lr({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=HE}=o,f=kr(o,$E),m=Lr({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||HE[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return bl({root:["root",i,"inherit"!==e.align&&`align${gu(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},jE,a)})(m);return js.jsx(BE,Lr({as:h,ref:t,ownerState:m,className:vc(g.root,a)},f))}));var VE=GE;const UE=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function YE(e){const t=[],n=[];return Array.from(e.querySelectorAll(UE)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function KE(){return!0}function XE(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=YE,isEnabled:a=KE,open:l}=e,s=Hn.useRef(!1),u=Hn.useRef(null),c=Hn.useRef(null),d=Hn.useRef(null),p=Hn.useRef(null),f=Hn.useRef(!1),m=Hn.useRef(null),h=nl(t.ref,m),g=Hn.useRef(null);Hn.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),Hn.useEffect((()=>{if(!l||!m.current)return;const e=Qa(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),Hn.useEffect((()=>{if(!l||!m.current)return;const e=Qa(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return js.jsxs(Hn.Fragment,{children:[js.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),Hn.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),js.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const QE=Hn.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=Hn.useState(null),l=nl(Hn.isValidElement(n)?n.ref:null,t);if(el((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),el((()=>{if(i&&!o)return Za(t,i),()=>{Za(t,null)}}),[t,i,o]),o){if(Hn.isValidElement(n)){const e={ref:l};return Hn.cloneElement(n,e)}return js.jsx(Hn.Fragment,{children:n})}return js.jsx(Hn.Fragment,{children:i?GS.createPortal(n,i):i})}));function JE(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ZE(e){return parseInt(Ja(e).getComputedStyle(e).paddingRight,10)||0}function eC(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&JE(e,o)}))}function tC(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function nC(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Qa(e);return t.body===e?Ja(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=gl(Qa(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${ZE(r)+e}px`;const t=Qa(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${ZE(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Qa(r).body;else{const t=r.parentElement,n=Ja(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const rC=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&JE(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);eC(t,e.mount,e.modalRef,r,!0);const o=tC(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=tC(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=nC(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=tC(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&JE(e.modalRef,t),eC(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&JE(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function oC(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=rC,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=Hn.useRef({}),f=Hn.useRef(null),m=Hn.useRef(null),h=nl(m,d),[g,v]=Hn.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=tl((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Qa(f.current).body;o.add(x(),e),m.current&&S()})),C=Hn.useCallback((()=>o.isTopModal(x())),[o]),w=tl((e=>{f.current=e,e&&(c&&C()?S():m.current&&JE(m.current,y))})),R=Hn.useCallback((()=>{o.remove(x(),y)}),[y,o]);Hn.useEffect((()=>()=>{R()}),[R]),Hn.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},k=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=gE(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Xt({},n,t);return Xt({role:"presentation"},r,{onKeyDown:L(r),ref:h})},getBackdropProps:(e={})=>Xt({"aria-hidden":!0},e,{onClick:k(e),open:c}),getTransitionProps:()=>({onEnter:Ka((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Ka((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:w,isTopModal:C,exited:g,hasTransition:b}}const iC=["onChange","maxRows","minRows","style","value"];function aC(e){return parseInt(e,10)||0}const lC={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function sC(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const uC=Hn.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=rn(e,iC),{current:s}=Hn.useRef(null!=a),u=Hn.useRef(null),c=nl(t,u),d=Hn.useRef(null),p=Hn.useRef(0),[f,m]=Hn.useState({outerHeightStyle:0}),h=Hn.useCallback((()=>{const t=u.current,n=Ja(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n.boxSizing,l=aC(n.paddingBottom)+aC(n.paddingTop),s=aC(n.borderBottomWidth)+aC(n.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},v=Hn.useCallback((()=>{const e=h();sC(e)||m((t=>g(t,e)))}),[h]);el((()=>{const e=()=>{p.current=0,(()=>{const e=h();sC(e)||GS.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=Xa(e),n=u.current,r=Ja(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[h]),el((()=>{v()})),Hn.useEffect((()=>{p.current=0}),[a]);return js.jsxs(Hn.Fragment,{children:[js.jsx("textarea",Xt({value:a,onChange:e=>{p.current=0,s||v(),n&&n(e)},ref:c,rows:o,style:Xt({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),js.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Xt({},lC,i,{paddingTop:0,paddingBottom:0})})]})}));function cC({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var dC=Hn.createContext(void 0);function pC(){return Hn.useContext(dC)}function fC(e){return js.jsx($s,Lr({},e,{defaultTheme:sc,themeId:Rr}))}function mC(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function hC(e,t=!1){return e&&(mC(e.value)&&""!==e.value||t&&mC(e.defaultValue)&&""!==e.defaultValue)}function gC(e){return ju("MuiInputBase",e)}var vC=$u("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const bC=["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"],yC=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${gu(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},xC=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},SC=mc("div",{name:"MuiInputBase",slot:"Root",overridesResolver:yC})((({theme:e,ownerState:t})=>Lr({},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",[`&.${vC.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Lr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),EC=mc("input",{name:"MuiInputBase",slot:"Input",overridesResolver:xC})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Lr({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Lr({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${vC.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},[`&.${vC.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"})})),CC=js.jsx(fC,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),wC=Hn.forwardRef((function(e,t){var n;const r=cc({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:S=!1,name:E,onBlur:C,onChange:w,onClick:R,onFocus:L,onKeyDown:k,onKeyUp:I,placeholder:_,readOnly:M,renderSuffix:P,rows:A,slotProps:D={},slots:T={},startAdornment:O,type:N="text",value:q}=r,F=kr(r,bC),z=null!=v.value?v.value:q,{current:j}=Hn.useRef(null!=z),$=Hn.useRef(),B=Hn.useCallback((e=>{}),[]),H=Ru($,b,v.ref,B),[W,G]=Hn.useState(!1),V=pC(),U=cC({props:r,muiFormControl:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=V?V.focused:W,Hn.useEffect((()=>{!V&&d&&W&&(G(!1),C&&C())}),[V,d,W,C]);const Y=V&&V.onFilled,K=V&&V.onEmpty,X=Hn.useCallback((e=>{hC(e)?Y&&Y():K&&K()}),[Y,K]);yu((()=>{j&&X({value:z})}),[z,X,j]);Hn.useEffect((()=>{X($.current)}),[]);let Q=g,J=v;S&&"input"===Q&&(J=Lr(A?{type:void 0,minRows:A,maxRows:A}:{type:void 0,maxRows:y,minRows:x},J),Q=uC);Hn.useEffect((()=>{V&&V.setAdornedStart(Boolean(O))}),[V,O]);const Z=Lr({},r,{color:U.color||"primary",disabled:U.disabled,endAdornment:f,error:U.error,focused:U.focused,formControl:V,fullWidth:m,hiddenLabel:U.hiddenLabel,multiline:S,size:U.size,startAdornment:O,type:N}),ee=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return bl({root:["root",`color${gu(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${gu(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},gC,t)})(Z),te=T.root||s.Root||SC,ne=D.root||u.root||{},re=T.input||s.Input||EC;return J=Lr({},J,null!=(n=D.input)?n:u.input),js.jsxs(Hn.Fragment,{children:[!p&&CC,js.jsxs(te,Lr({},ne,!hE(te)&&{ownerState:Lr({},Z,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),R&&R(e)}},F,{className:vc(ee.root,ne.className,l,M&&"MuiInputBase-readOnly"),children:[O,js.jsx(dC.Provider,{value:null,children:js.jsx(re,Lr({ownerState:Z,"aria-invalid":U.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:U.disabled,id:h,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:E,placeholder:_,readOnly:M,required:U.required,rows:A,value:z,onKeyDown:k,onKeyUp:I,type:N},J,!hE(re)&&{as:Q,ownerState:Lr({},Z,J.ownerState)},{ref:H,className:vc(ee.input,J.className,M&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),v.onBlur&&v.onBlur(e),V&&V.onBlur?V.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||$.current;if(null==t)throw new Error(wr(1));X({value:t.value})}v.onChange&&v.onChange(e,...t),w&&w(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(L&&L(e),v.onFocus&&v.onFocus(e),V&&V.onFocus?V.onFocus(e):G(!0))}}))}),f,P?P(Lr({},U,{startAdornment:O})):null]}))]})}));var RC=wC;function LC(e){return ju("MuiInput",e)}var kC=Lr({},vC,$u("MuiInput",["root","underline","input"]));function IC(e){return ju("MuiOutlinedInput",e)}var _C=Lr({},vC,$u("MuiOutlinedInput",["root","notchedOutline","input"]));function MC(e){return ju("MuiFilledInput",e)}var PC=Lr({},vC,$u("MuiFilledInput",["root","underline","input"])),AC=function(e,t){function n(n,r){return js.jsx(Ec,Lr({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Ec.muiName,Hn.memo(Hn.forwardRef(n))}(js.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const DC=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],TC={entering:{opacity:1},entered:{opacity:1}},OC=Hn.forwardRef((function(e,t){const n=uc(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:v=nE}=e,b=kr(e,DC),y=Hn.useRef(null),x=Ru(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),C=S(((e,t)=>{uE(e);const r=cE({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),w=S(c),R=S(m),L=S((e=>{const t=cE({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),k=S(f);return js.jsx(v,Lr({appear:i,in:s,nodeRef:y,onEnter:C,onEntered:w,onEntering:E,onExit:L,onExited:k,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>Hn.cloneElement(a,Lr({style:Lr({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},TC[e],h,a.props.style),ref:x},t))}))}));var NC=OC;function qC(e){return ju("MuiBackdrop",e)}$u("MuiBackdrop",["root","invisible"]);const FC=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],zC=mc("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Lr({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"}))),jC=Hn.forwardRef((function(e,t){var n,r,o;const i=cc({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=NC,transitionDuration:g}=i,v=kr(i,FC),b=Lr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return bl({root:["root",n&&"invisible"]},qC,t)})(b),x=null!=(n=f.root)?n:c.root;return js.jsx(h,Lr({in:p,timeout:g},v,{children:js.jsx(zC,Lr({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:vc(y.root,l,null==x?void 0:x.className),ownerState:Lr({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var $C=jC;var BC=$u("MuiBox",["root"]);const HC=lc(),WC=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=ba("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ws);return Hn.forwardRef((function(e,a){const l=Ms(n),s=Ws(e),{className:u,component:c="div"}=s,d=rn(s,Us);return js.jsx(i,Xt({as:c,ref:a,className:Vs(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:Rr,defaultTheme:HC,defaultClassName:BC.root,generateClassName:Fu.generate});var GC=WC;function VC(e){return ju("MuiButton",e)}var UC=$u("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 YC=Hn.createContext({});var KC=Hn.createContext(void 0);const XC=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],QC=e=>Lr({},"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}}),JC=mc(zE,{shouldForwardProp:e=>dc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${gu(n.color)}`],t[`size${gu(n.size)}`],t[`${n.variant}Size${gu(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Lr({},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":Lr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:su(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})`:su(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})`:su(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":Lr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${UC.focusVisible}`]:Lr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${UC.disabled}`]:Lr({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 ${su(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${UC.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${UC.disabled}`]:{boxShadow:"none"}})),ZC=mc("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${gu(n.size)}`]]}})((({ownerState:e})=>Lr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},QC(e)))),ew=mc("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${gu(n.size)}`]]}})((({ownerState:e})=>Lr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},QC(e)))),tw=Hn.forwardRef((function(e,t){const n=Hn.useContext(YC),r=Hn.useContext(KC),o=cc({props:Nu(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:v,variant:b="text"}=o,y=kr(o,XC),x=Lr({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:v,variant:b}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Lr({},a,bl({root:["root",i,`${i}${gu(t)}`,`size${gu(o)}`,`${i}Size${gu(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${gu(o)}`],endIcon:["endIcon",`iconSize${gu(o)}`]},VC,a))})(x),E=g&&js.jsx(ZC,{className:S.startIcon,ownerState:x,children:g}),C=p&&js.jsx(ew,{className:S.endIcon,ownerState:x,children:p}),w=r||"";return js.jsxs(JC,Lr({ownerState:x,className:vc(n.className,S.root,s,w),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:vc(S.focusVisible,f),ref:t,type:v},y,{classes:S,children:[E,i,C]}))}));var nw=tw;function rw(e){return ju("MuiModal",e)}$u("MuiModal",["root","hidden","backdrop"]);const ow=["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"],iw=mc("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Lr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),aw=mc($C,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),lw=Hn.forwardRef((function(e,t){var n,r,o,i,a,l;const s=cc({name:"MuiModal",props:e}),{BackdropComponent:u=aw,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:w=!1,keepMounted:R=!1,onBackdropClick:L,open:k,slotProps:I,slots:_}=s,M=kr(s,ow),P=Lr({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:w,keepMounted:R}),{getRootProps:A,getBackdropProps:D,getTransitionProps:T,portalRef:O,isTopModal:N,exited:q,hasTransition:F}=oC(Lr({},P,{rootRef:t})),z=Lr({},P,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return bl({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},rw,r)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(r=null==_?void 0:_.root)?r:g.Root)?n:iw,H=null!=(o=null!=(i=null==_?void 0:_.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==I?void 0:I.root)?a:v.root,G=null!=(l=null==I?void 0:I.backdrop)?l:v.backdrop,V=yE({elementType:B,externalSlotProps:W,externalForwardedProps:M,getSlotProps:A,additionalProps:{ref:t,as:h},ownerState:z,className:vc(d,null==W?void 0:W.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=yE({elementType:H,externalSlotProps:G,additionalProps:c,getSlotProps:e=>D(Lr({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:vc(null==G?void 0:G.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||k||F&&!q?js.jsx(QE,{ref:O,container:m,disablePortal:S,children:js.jsxs(B,Lr({},V,{children:[!w&&u?js.jsx(H,Lr({},U)):null,js.jsx(XE,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:k,children:Hn.cloneElement(f,$)})]}))}):null}));var sw=lw;function uw(e){return ju("MuiDivider",e)}var cw=$u("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const dw=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],pw=mc("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Lr({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)`:su(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})=>Lr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Lr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Lr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Lr({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),fw=mc("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Lr({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)`}))),mw=Hn.forwardRef((function(e,t){const n=cc({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=kr(n,dw),m=Lr({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return bl({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},uw,r)})(m);return js.jsx(pw,Lr({as:a,className:vc(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?js.jsx(fw,{className:h.wrapper,ownerState:m,children:o}):null}))}));mw.muiSkipListHighlight=!0;var hw=mw;const gw=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],vw=mc(SC,{shouldForwardProp:e=>dc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...yC(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Lr({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}},[`&.${PC.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${PC.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${PC.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${PC.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(.${PC.disabled}, .${PC.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${PC.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Lr({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}))})),bw=mc(EC,{name:"MuiFilledInput",slot:"Input",overridesResolver:xC})((({theme:e,ownerState:t})=>Lr({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}))),yw=Hn.forwardRef((function(e,t){var n,r,o,i;const a=cc({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=kr(a,gw),g=Lr({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),v=(e=>{const{classes:t,disableUnderline:n}=e;return Lr({},t,bl({root:["root",!n&&"underline"],input:["input"]},MC,t))})(a),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?hu(b,null!=p?p:s):b,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:vw,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:bw;return js.jsx(RC,Lr({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:v}))}));yw.muiName="Input";var xw=yw;const Sw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ew(e){return`scale(${e}, ${e**2})`}const Cw={entering:{opacity:1,transform:Ew(1)},entered:{opacity:1,transform:"none"}},ww="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Rw=Hn.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=nE}=e,g=kr(e,Sw),v=Hn.useRef(),b=Hn.useRef(),y=uc(),x=Hn.useRef(null),S=Ru(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(u),w=E(((e,t)=>{uE(e);const{duration:n,delay:r,easing:o}=cE({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:ww?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),L=E(p),k=E((e=>{const{duration:t,delay:n,easing:r}=cE({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:ww?o:.666*o,delay:ww?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Ew(.75),c&&c(e)})),I=E(d);return Hn.useEffect((()=>()=>{clearTimeout(v.current)}),[]),js.jsx(h,Lr({appear:r,in:a,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:k,onExited:I,onExiting:L,addEndListener:e=>{"auto"===m&&(v.current=setTimeout(e,b.current||0)),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>Hn.cloneElement(o,Lr({style:Lr({opacity:0,transform:Ew(.75),visibility:"exited"!==e||a?void 0:"hidden"},Cw[e],f,o.props.style),ref:S},t))}))}));Rw.muiSupportAuto=!0;var Lw=Rw;const kw=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Iw=mc(SC,{shouldForwardProp:e=>dc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...yC(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Lr({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"},[`&.${kC.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${kC.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${kC.disabled}, .${kC.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${kC.disabled}:before`]:{borderBottomStyle:"dotted"}})})),_w=mc(EC,{name:"MuiInput",slot:"Input",overridesResolver:xC})({}),Mw=Hn.forwardRef((function(e,t){var n,r,o,i;const a=cc({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=kr(a,kw),v=(e=>{const{classes:t,disableUnderline:n}=e;return Lr({},t,bl({root:["root",!n&&"underline"],input:["input"]},LC,t))})(a),b={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?hu(null!=f?f:u,b):b,x=null!=(n=null!=(r=m.root)?r:s.Root)?n:Iw,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:_w;return js.jsx(RC,Lr({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:v}))}));Mw.muiName="Input";var Pw=Mw;function Aw(e){return ju("MuiLink",e)}var Dw=$u("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const Tw={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var Ow=({theme:e,ownerState:t})=>{const n=(e=>Tw[e]||e)(t.color),r=Dl(e,`palette.${n}`,!1)||t.color,o=Dl(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:su(r,.4)};const Nw=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],qw=mc(VE,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${gu(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>Lr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Lr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Ow({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"},[`&.${Dw.focusVisible}`]:{outline:"auto"}}))),Fw=Hn.forwardRef((function(e,t){const n=cc({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=n,p=kr(n,Nw),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=Ou(),[v,b]=Hn.useState(!1),y=Ru(t,g),x=Lr({},n,{color:o,component:i,focusVisible:v,underline:u,variant:c}),S=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return bl({root:["root",`underline${gu(o)}`,"button"===n&&"button",r&&"focusVisible"]},Aw,t)})(x);return js.jsx(qw,Lr({color:o,className:vc(S.root,r),classes:s,component:i,onBlur:e=>{m(e),!1===f.current&&b(!1),a&&a(e)},onFocus:e=>{h(e),!0===f.current&&b(!0),l&&l(e)},ref:y,ownerState:x,variant:c,sx:[...Object.keys(Tw).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var zw=Fw;var jw=Hn.createContext({});function $w(e){return ju("MuiList",e)}$u("MuiList",["root","padding","dense","subheader"]);const Bw=["children","className","component","dense","disablePadding","subheader"],Hw=mc("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Lr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var Ww=Hn.forwardRef((function(e,t){const n=cc({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=kr(n,Bw),c=Hn.useMemo((()=>({dense:a})),[a]),d=Lr({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return bl({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},$w,t)})(d);return js.jsx(jw.Provider,{value:c,children:js.jsxs(Hw,Lr({as:i,className:vc(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function Gw(e){return ju("MuiListItemIcon",e)}var Vw=$u("MuiListItemIcon",["root","alignItemsFlexStart"]);const Uw=["className"],Yw=mc("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Lr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var Kw=Hn.forwardRef((function(e,t){const n=cc({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=kr(n,Uw),i=Lr({},n,{alignItems:Hn.useContext(jw).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return bl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Gw,n)})(i);return js.jsx(Yw,Lr({className:vc(a.root,r),ownerState:i,ref:t},o))}));var Xw=$u("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const Qw=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Jw(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Zw(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function eR(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function tR(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&eR(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var nR=Hn.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=kr(e,Qw),p=Hn.useRef(null),f=Hn.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});yu((()=>{r&&p.current.focus()}),[r]),Hn.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(vu(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=Ru(p,t);let h=-1;Hn.Children.forEach(i,((e,t)=>{Hn.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=Hn.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),Hn.cloneElement(e,t)}return e}));return js.jsx(Ww,Lr({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=vu(t).activeElement;if("ArrowDown"===n)e.preventDefault(),tR(t,r,s,l,Jw);else if("ArrowUp"===n)e.preventDefault(),tR(t,r,s,l,Zw);else if("Home"===n)e.preventDefault(),tR(t,null,s,l,Jw);else if("End"===n)e.preventDefault(),tR(t,null,s,l,Zw);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&eR(r,o);o.previousKeyMatched&&(s||tR(t,r,!1,l,Jw,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function rR(e){return ju("MuiPopover",e)}$u("MuiPopover",["root","paper"]);const oR=["onEntering"],iR=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],aR=["slotProps"];function lR(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function sR(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function uR(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function cR(e){return"function"==typeof e?e():e}const dR=mc(sw,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pR=mc(mE,{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 fR=Hn.forwardRef((function(e,t){var n,r,o;const i=cc({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=Lw,transitionDuration:E="auto",TransitionProps:{onEntering:C}={},disableScrollLock:w=!1}=i,R=kr(i.TransitionProps,oR),L=kr(i,iR),k=null!=(n=null==y?void 0:y.paper)?n:v,I=Hn.useRef(),_=Ru(I,k.ref),M=Lr({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:k,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),P=(e=>{const{classes:t}=e;return bl({root:["root"],paper:["paper"]},rR,t)})(M),A=Hn.useCallback((()=>{if("anchorPosition"===c)return u;const e=cR(l),t=(e&&1===e.nodeType?e:vu(I.current).body).getBoundingClientRect();return{top:t.top+lR(t,s.vertical),left:t.left+sR(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=Hn.useCallback((e=>({vertical:lR(e,x.vertical),horizontal:sR(e,x.horizontal)})),[x.horizontal,x.vertical]),T=Hn.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:uR(n)};const r=A();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=bu(cR(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:uR(n)}}),[l,c,A,D,h]),[O,N]=Hn.useState(g),q=Hn.useCallback((()=>{const e=I.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);Hn.useEffect((()=>(w&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,w,q]);Hn.useEffect((()=>{g&&q()})),Hn.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),Hn.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{q()})),t=bu(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,q]);let F=E;"auto"!==E||S.muiSupportAuto||(F=void 0);const z=f||(l?vu(cR(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:dR,$=null!=(o=null==b?void 0:b.paper)?o:pR,B=yE({elementType:$,externalSlotProps:Lr({},k,{style:O?k.style:Lr({},k.style,{opacity:0})}),additionalProps:{elevation:m,ref:_},ownerState:M,className:vc(P.paper,null==k?void 0:k.className)}),H=yE({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:M,className:vc(P.root,p)}),{slotProps:W}=H,G=kr(H,aR);return js.jsx(j,Lr({},G,!hE(j)&&{slotProps:W,disableScrollLock:w},{children:js.jsx(S,Lr({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:js.jsx($,Lr({},B,{children:d}))}))}))}));function mR(e){return ju("MuiMenu",e)}$u("MuiMenu",["root","paper","list"]);const hR=["onEntering"],gR=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],vR={vertical:"top",horizontal:"right"},bR={vertical:"top",horizontal:"left"},yR=mc(fR,{shouldForwardProp:e=>dc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xR=mc(pR,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),SR=mc(nR,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var ER=Hn.forwardRef((function(e,t){var n,r;const o=cc({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=kr(o.TransitionProps,hR),x=kr(o,gR),S=uc(),E="rtl"===S.direction,C=Lr({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),w=(e=>{const{classes:t}=e;return bl({root:["root"],paper:["paper"],list:["list"]},mR,t)})(C),R=i&&!s&&d,L=Hn.useRef(null);let k=-1;Hn.Children.map(a,((e,t)=>{Hn.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===k)&&(k=t))}));const I=null!=(n=v.paper)?n:xR,_=null!=(r=b.paper)?r:p,M=yE({elementType:v.root,externalSlotProps:b.root,ownerState:C,className:[w.root,l]}),P=yE({elementType:I,externalSlotProps:_,ownerState:C,className:w.paper});return js.jsx(yR,Lr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?vR:bR,slots:{paper:I,root:v.root},slotProps:{root:M,paper:P},open:d,ref:t,transitionDuration:m,TransitionProps:Lr({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,S),h&&h(e,t)}},y),ownerState:C},x,{classes:f,children:js.jsx(SR,Lr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:L,autoFocus:i&&(-1===k||s),autoFocusItem:R,variant:g},u,{className:vc(w.list,u.className),children:a}))}))}));function CR(e){return ju("MuiMenuItem",e)}var wR=$u("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const RR=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],LR=mc(zE,{shouldForwardProp:e=>dc(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Lr({},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"}},[`&.${wR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:su(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${wR.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:su(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${wR.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:su(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})`:su(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${wR.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wR.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${cw.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${cw.inset}`]:{marginLeft:52},[`& .${Xw.root}`]:{marginTop:0,marginBottom:0},[`& .${Xw.inset}`]:{paddingLeft:36},[`& .${Vw.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Lr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Vw.root} svg`]:{fontSize:"1.25rem"}}))));var kR=Hn.forwardRef((function(e,t){const n=cc({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=kr(n,RR),f=Hn.useContext(jw),m=Hn.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=Hn.useRef(null);yu((()=>{r&&h.current&&h.current.focus()}),[r]);const g=Lr({},n,{dense:m.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Lr({},a,bl({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},CR,a))})(n),b=Ru(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),js.jsx(jw.Provider,{value:m,children:js.jsx(LR,Lr({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:vc(v.focusVisible,s),className:vc(v.root,d)},p,{ownerState:g,classes:v}))})}));function IR(e){return ju("MuiNativeSelect",e)}var _R=$u("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const MR=["className","disabled","error","IconComponent","inputRef","variant"],PR=({ownerState:e,theme:t})=>Lr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Lr({},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"},[`&.${_R.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}}),AR=mc("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:dc,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${_R.multiple}`]:t.multiple}]}})(PR),DR=({ownerState:e,theme:t})=>Lr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${_R.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),TR=mc("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${gu(n.variant)}`],n.open&&t.iconOpen]}})(DR),OR=Hn.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=kr(e,MR),u=Lr({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return bl({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${gu(n)}`,i&&"iconOpen",r&&"disabled"]},IR,t)})(u);return js.jsxs(Hn.Fragment,{children:[js.jsx(AR,Lr({ownerState:u,className:vc(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:js.jsx(TR,{as:i,ownerState:u,className:c.icon})]})}));var NR,qR=OR;const FR=["children","classes","className","label","notched"],zR=mc("fieldset",{shouldForwardProp:dc})({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%"}),jR=mc("legend",{shouldForwardProp:dc})((({ownerState:e,theme:t})=>Lr({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&&Lr({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 $R=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],BR=mc(SC,{shouldForwardProp:e=>dc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:yC})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Lr({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${_C.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${_C.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${_C.focused} .${_C.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${_C.error} .${_C.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${_C.disabled} .${_C.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Lr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),HR=mc((function(e){const{className:t,label:n,notched:r}=e,o=kr(e,FR),i=null!=n&&""!==n,a=Lr({},e,{notched:r,withLabel:i});return js.jsx(zR,Lr({"aria-hidden":!0,className:t,ownerState:a},o,{children:js.jsx(jR,{ownerState:a,children:i?js.jsx("span",{children:n}):NR||(NR=js.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}})),WR=mc(EC,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:xC})((({theme:e,ownerState:t})=>Lr({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}))),GR=Hn.forwardRef((function(e,t){var n,r,o,i,a;const l=cc({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=l,g=kr(l,$R),v=(e=>{const{classes:t}=e;return Lr({},t,bl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},IC,t))})(l),b=pC(),y=cC({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=Lr({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:h}),S=null!=(n=null!=(r=m.root)?r:s.Root)?n:BR,E=null!=(o=null!=(i=m.input)?i:s.Input)?o:WR;return js.jsx(RC,Lr({slots:{root:S,input:E},renderSuffix:e=>js.jsx(HR,{ownerState:x,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=js.jsxs(Hn.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:Lr({},v,{notchedOutline:null})}))}));GR.muiName="Input";var VR=GR;function UR(e){return ju("MuiSelect",e)}var YR,KR=$u("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const XR=["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"],QR=mc("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${KR.select}`]:t.select},{[`&.${KR.select}`]:t[n.variant]},{[`&.${KR.error}`]:t.error},{[`&.${KR.multiple}`]:t.multiple}]}})(PR,{[`&.${KR.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),JR=mc("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${gu(n.variant)}`],n.open&&t.iconOpen]}})(DR),ZR=mc("input",{shouldForwardProp:e=>pc(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 eL(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function tL(e){return null==e||"string"==typeof e&&!e.trim()}const nL=Hn.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:v={},multiple:b,name:y,onBlur:x,onChange:S,onClose:E,onFocus:C,onOpen:w,open:R,readOnly:L,renderValue:k,SelectDisplayProps:I={},tabIndex:_,value:M,variant:P="standard"}=e,A=kr(e,XR),[D,T]=Cu({controlled:M,default:c,name:"Select"}),[O,N]=Cu({controlled:R,default:u,name:"Select"}),q=Hn.useRef(null),F=Hn.useRef(null),[z,j]=Hn.useState(null),{current:$}=Hn.useRef(null!=R),[B,H]=Hn.useState(),W=Ru(t,h),G=Hn.useCallback((e=>{F.current=e,e&&j(e)}),[]),V=null==z?void 0:z.parentNode;Hn.useImperativeHandle(W,(()=>({focus:()=>{F.current.focus()},node:q.current,value:D})),[D]),Hn.useEffect((()=>{u&&O&&z&&!$&&(H(a?null:V.clientWidth),F.current.focus())}),[z,a]),Hn.useEffect((()=>{i&&F.current.focus()}),[i]),Hn.useEffect((()=>{if(!g)return;const e=vu(F.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const U=(e,t)=>{e?w&&w(t):E&&E(t),$||(H(a?null:V.clientWidth),N(e))},Y=Hn.Children.toArray(l),K=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(b){n=Array.isArray(D)?D.slice():[];const t=D.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),D!==n&&(T(n),S)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),S(o,e)}b||U(!1,t)}},X=null!==z&&O;let Q,J;delete A["aria-invalid"];const Z=[];let ee=!1;(hC({value:D})||p)&&(k?Q=k(D):ee=!0);const te=Y.map((e=>{if(!Hn.isValidElement(e))return null;let t;if(b){if(!Array.isArray(D))throw new Error(wr(2));t=D.some((t=>eL(t,e.props.value))),t&&ee&&Z.push(e.props.children)}else t=eL(D,e.props.value),t&&ee&&(J=e.props.children);return Hn.cloneElement(e,{"aria-selected":t?"true":"false",onClick:K(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ee&&(Q=b?0===Z.length?null:Z.reduce(((e,t,n)=>(e.push(t),n<Z.length-1&&e.push(", "),e)),[]):J);let ne,re=B;!a&&$&&z&&(re=V.clientWidth),ne=void 0!==_?_:d?null:0;const oe=I.id||(y?`mui-component-select-${y}`:void 0),ie=Lr({},e,{variant:P,value:D,open:X,error:f}),ae=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return bl({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${gu(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},UR,t)})(ie),le=Lr({},v.PaperProps,null==(n=v.slotProps)?void 0:n.paper),se=Eu();return js.jsxs(Hn.Fragment,{children:[js.jsx(QR,Lr({ref:G,tabIndex:ne,role:"combobox","aria-controls":se,"aria-disabled":d?"true":void 0,"aria-expanded":X?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,oe].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!L){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:d||L?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),U(!0,e))},onBlur:e=>{!X&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:D,name:y}}),x(e))},onFocus:C},I,{ownerState:ie,className:vc(I.className,ae.select,s),id:oe,children:tL(Q)?YR||(YR=js.jsx("span",{className:"notranslate",children:""})):Q})),js.jsx(ZR,Lr({"aria-invalid":f,value:Array.isArray(D)?D.join(","):D,name:y,ref:q,"aria-hidden":!0,onChange:e=>{const t=Y.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:ae.nativeInput,autoFocus:i,ownerState:ie},A)),js.jsx(JR,{as:m,className:ae.icon,ownerState:ie}),js.jsx(ER,Lr({id:`menu-${y||""}`,anchorEl:V,open:X,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:Lr({"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:se},v.MenuListProps),slotProps:Lr({},v.slotProps,{paper:Lr({},le,{style:Lr({minWidth:re},null!=le?le.style:null)})}),children:te}))]})}));var rL=nL;const oL=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],iL=["root"],aL={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>dc(e)&&"variant"!==e,slot:"Root"},lL=mc(Pw,aL)(""),sL=mc(VR,aL)(""),uL=mc(xw,aL)(""),cL=Hn.forwardRef((function(e,t){const n=cc({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=AC,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:v=!1,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:E,variant:C="outlined"}=n,w=kr(n,oL),R=v?qR:rL,L=cC({props:n,muiFormControl:pC(),states:["variant","error"]}),k=L.variant||C,I=Lr({},n,{variant:k,classes:i}),_=(e=>{const{classes:t}=e;return t})(I),M=kr(_,iL),P=d||{standard:js.jsx(lL,{ownerState:I}),outlined:js.jsx(sL,{label:f,ownerState:I}),filled:js.jsx(uL,{ownerState:I})}[k],A=Ru(t,P.ref);return js.jsx(Hn.Fragment,{children:Hn.cloneElement(P,Lr({inputComponent:R,inputProps:Lr({children:o,error:L.error,IconComponent:u,variant:k,type:void 0,multiple:g},v?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:Lr({id:c},E)},p,{classes:p?hu(M,p.classes):M},d?d.props.inputProps:{})},g&&v&&"outlined"===k?{notched:!0}:{},{ref:A,className:vc(P.props.className,a,_.root)},!d&&{variant:k},w))})}));cL.muiName="Select";var dL=cL,pL=(e={})=>Wn.createElement(cr,{...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("rect",{stroke:Un.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const fL={MuiAccordion:{styleOverrides:{root:{backgroundColor:Un.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Un.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Wn.createElement(lr,{"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 ${Un.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Un.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Un.MISC_FOCUS_BORDER}`,borderRadius:Jn,backgroundColor:Un.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 ${Un.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Un.WHITE,color:Un.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:Jn},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Un.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Un.GREYSCALE_0_15,backgroundColor:Un.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Un.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Un.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Un.GREEN_PALE},"&:active":{backgroundColor:Un.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Un.GREEN_PALE,boxShadow:`0 0 0 3px ${su(Un.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Un.BLUE_PALE},"&:active":{backgroundColor:Un.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Un.BLUE_PALE,boxShadow:`0 0 0 3px ${su(Un.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:Jn,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Un.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Un.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Un.GREYSCALE_0_15,backgroundColor:Un.GREYSCALE_100_60,"&:active":{backgroundColor:Un.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Un.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Un.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Un.PURPLE,"&.Mui-focusVisible":{borderColor:Un.PURPLE,boxShadow:`0 0 0 3px ${su(Un.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Un.GREEN,"&.Mui-focusVisible":{borderColor:Un.GREEN,boxShadow:`0 0 0 3px ${su(Un.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Un.BLUE,"&.Mui-focusVisible":{borderColor:Un.BLUE,boxShadow:`0 0 0 3px ${su(Un.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Un.ORANGE,"&.Mui-focusVisible":{borderColor:Un.ORANGE,boxShadow:`0 0 0 3px ${su(Un.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Un.RED,"&.Mui-focusVisible":{borderColor:Un.RED,boxShadow:`0 0 0 3px ${su(Un.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Un.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Un.PURPLE_PALE},"&:active":{backgroundColor:Un.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Un.PURPLE_PALE,boxShadow:`0 0 0 3px ${su(Un.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Un.GREEN_PALE},"&:active":{backgroundColor:Un.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Un.GREEN_PALE,boxShadow:`0 0 0 3px ${su(Un.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Un.BLUE_PALE},"&:active":{backgroundColor:Un.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Un.BLUE_PALE,boxShadow:`0 0 0 3px ${su(Un.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Un.ORANGE_PALE},"&:active":{backgroundColor:Un.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Un.ORANGE_PALE,boxShadow:`0 0 0 3px ${su(Un.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Un.RED_PALE},"&:active":{backgroundColor:Un.RED_DARK},"&.Mui-focusVisible":{borderColor:Un.RED_PALE,boxShadow:`0 0 0 3px ${su(Un.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:Un.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Un.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Jn,boxShadow:`inset 0 0 0 2px ${Un.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Wn.createElement(ur,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Yn,borderRadius:Jn,color:Un.TEXT_PRIMARY,backgroundColor:Un.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Un.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Un.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Un.GREYSCALE_0_05,color:Un.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Un.GREEN,borderColor:Un.GREEN},"&.MuiChip-outlinedInfo":{color:Un.BLUE,borderColor:Un.BLUE},"&.MuiChip-outlinedWarning":{color:Un.ORANGE,borderColor:Un.ORANGE},"&.MuiChip-outlinedError":{color:Un.RED,borderColor:Un.RED}},outlined:{border:`solid 1px ${Un.GREYSCALE_0_15}`,backgroundColor:Un.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Jn,boxShadow:"none",backgroundColor:Un.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Un.GREEN,borderColor:Un.GREEN},outlinedSecondary:{color:Un.BLUE,borderColor:Un.BLUE},label:{fontFamily:rr.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Wn.createElement(ur,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Wn.createElement(lr,{"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:Jn},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Jn,fontSize:Kn,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Un.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Un.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Un.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Un.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Un.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:Jn,border:`solid 1px ${Un.GREYSCALE_0_15}`,color:Un.GREYSCALE_0_60,marginRight:0,width:Qn,height:Qn},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Un.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Jn,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Un.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Kn}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Yn,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Un.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Un.GREYSCALE_25,fontSize:Yn,fontFamily:rr.FONT_FAMILY,fontWeight:tr,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Un.TEXT_PRIMARY},"&.Mui-error":{color:Un.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Un.TEXT_SECONDARY,content:"'(optional)'",fontWeight:er,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Un.TEXT_SECONDARY,content:"'(required)'",fontWeight:er,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Kn,lineHeight:"16px",backgroundColor:Un.WHITE,borderRadius:Jn,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Un.GREYSCALE_0_05}`,borderColor:Un.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Un.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Un.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Un.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Un.RED}`,boxShadow:`0px 0px 0px 1px ${Un.RED}, inset 0 2px 0 0 ${Un.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Un.GREYSCALE_0_10}`,borderColor:Un.GREYSCALE_0_10,backgroundColor:Un.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Un.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Un.GREYSCALE_0_15,borderRadius:Jn,boxShadow:`inset 0 2px 0 0 ${Un.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Wn.createElement(lr,{...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:Un.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Un.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Un.GREYSCALE_0_03},"&:active":{backgroundColor:Un.GREYSCALE_0_10},"&:focus":{backgroundColor:Un.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Un.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Un.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Un.GREYSCALE_0_30,"&:hover":{backgroundColor:Un.GREYSCALE_0_0,borderColor:Un.GREYSCALE_0_15},"& ~svg":{color:Un.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Un.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Jn}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Un.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Un.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Un.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:Kn,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Yn,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Yn,fontWeight:tr,color:Un.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:tr}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Un.GREYSCALE_0_15}, 0px 0px 0px 1px ${Un.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Wn.createElement(fr,null),checkedIcon:Wn.createElement(mr,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Un.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Un.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Un.GREEN_PALE,boxShadow:`0 0 0 3px ${su(Un.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Un.BLUE_PALE,boxShadow:`0 0 0 3px ${su(Un.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Un.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Un.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Wn.createElement(pL,null),checkedIcon:Wn.createElement(dr,null),indeterminateIcon:Wn.createElement(pr,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Jn,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Un.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Un.GREYSCALE_0_55,color:Un.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:Un.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Un.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Un.GREYSCALE_0_55,"&:hover":{color:Un.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:Un.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Un.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Kn,color:Un.TEXT_PRIMARY,lineHeight:"16px",fontWeight:tr},secondary:{fontSize:Yn,color:Un.GREYSCALE_45,fontWeight:er,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Kn,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Un.GREYSCALE_0_03},"&:active":{backgroundColor:Un.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Kn,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Un.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Yn,borderBottom:`solid 1px ${Un.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Kn,color:Un.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Un.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Un.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Un.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:Un.RED}}},"&.Mui-focusVisible":{backgroundColor:Un.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:Un.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:Un.GREEN,height:"24px","&.Mui-disabled":{color:Un.GREYSCALE_0_15}},rail:{backgroundColor:Un.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Un.GREYSCALE_0_05}`,borderRadius:Jn,boxShadow:`inset 0px 0px 0px 1px ${Un.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Un.GREYSCALE_0_05}`,borderRadius:Jn},thumb:{height:"16px",width:"16px",borderRadius:Jn,backgroundColor:Un.WHITE,boxShadow:`0px 1px 2px 0px ${Un.GREYSCALE_0_15}, 0px 0px 0px 1px ${Un.GREYSCALE_0_05}`,"&:hover":{borderRadius:Jn,boxShadow:`0 2px 4px 0 ${Un.GREYSCALE_0_30}, 0 0 0 1px ${Un.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Un.GREYSCALE_0_15}, 0 0 0 1px ${Un.GREYSCALE_0_06}, 0 0 0 2px ${Un.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Un.GREYSCALE_0_15}, 0 0 0 1px ${Un.GREYSCALE_0_06}, 0 0 0 2px ${Un.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Un.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Un.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Un.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Un.GREYSCALE_0_15},markLabel:{color:Un.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Un.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Un.WHITE,color:Un.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:Un.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:Un.GREEN_PALE,boxShadow:`0 0 0 3px ${su(Un.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Un.BLUE_PALE,boxShadow:`0 0 0 3px ${su(Un.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Un.GREYSCALE_0_15,borderRadius:Jn},thumb:{height:"16px",width:"16px",borderRadius:Jn,backgroundColor:Un.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:Kn,fontWeight:tr,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Un.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Un.MISC_FOCUS_BORDER}`,backgroundColor:Un.GREYSCALE_0_03,borderRadius:Jn},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Un.GREYSCALE_25,"&.Mui-selected":{color:Un.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Kn,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${Un.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${Un.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Un.GREYSCALE_85}`,borderRight:`1px solid ${Un.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:tr,backgroundColor:Un.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:Un.GREYSCALE_98,borderBottom:`1px solid ${Un.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Un.GREYSCALE_85}`,borderTop:`1px solid ${Un.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Un.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Un.GREYSCALE_0_05,"&:hover":{backgroundColor:Un.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Un.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Wn.createElement(hr,{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 ${Un.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Kn,borderRadius:Jn,padding:"7px 16px",border:`1px solid ${Un.GREYSCALE_0_15}`,backgroundColor:Un.GREYSCALE_100_60,color:Un.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Un.GREYSCALE_0_10,border:`1px solid ${Un.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Un.GREYSCALE_0_03,border:`1px solid ${Un.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Un.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Un.MISC_FOCUS_BORDER}`,border:`1px solid ${Un.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Un.GREYSCALE_25,backgroundColor:Un.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Un.GREYSCALE_0_10,border:`1px solid ${Un.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Yn,height:24,width:24,padding:7},sizeLarge:{fontSize:Xn,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Kn,borderRadius:Jn}}},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:Un.GREYSCALE_20},tooltip:{backgroundColor:Un.GREYSCALE_20,fontSize:Yn,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const mL={mode:"light",primary:{light:Un.GREEN_PALE,main:Un.GREEN,dark:Un.GREEN_DARK,contrastText:Un.WHITE},secondary:{light:Un.BLUE_PALE,main:Un.BLUE,dark:Un.BLUE_DARK,contrastText:Un.WHITE},error:{light:Un.RED_PALE,main:Un.RED,dark:Un.RED_DARK,contrastText:Un.WHITE},warning:{light:Un.ORANGE_PALE,main:Un.ORANGE,dark:Un.ORANGE_DARK,contrastText:Un.WHITE},success:{light:Un.GREEN_PALE,main:Un.GREEN,dark:Un.GREEN_DARK,contrastText:Un.WHITE},info:{light:Un.BLUE_PALE,main:Un.BLUE,dark:Un.BLUE_DARK,contrastText:Un.WHITE},text:{primary:Un.TEXT_PRIMARY,secondary:Un.TEXT_SECONDARY,disabled:Un.GREYSCALE_0_30},action:{hover:Un.GREYSCALE_0_03,hoverOpacity:.05,selected:Un.GREYSCALE_0_05,focus:Un.MISC_FOCUS_BORDER},amethyst:{main:Un.PURPLE,light:Un.PURPLE_PALE,dark:Un.PURPLE_DARK,contrastText:Un.WHITE},background:{paper:Un.WHITE,default:Un.GREYSCALE_95},divider:Un.GREYSCALE_0_15},hL=e=>({components:fL,palette:mL,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:Kn,fontWeightLight:Zn,fontWeightRegular:er,fontWeightMedium:tr,fontWeightBold:nr,htmlFontSize:Kn,fontFamily:rr.FONT_FAMILY,button:{fontWeight:tr,fontSize:Kn,textTransform:"none"},body1:{fontSize:Xn,lineHeight:"24px"},body2:{fontSize:Kn,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Qn,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Xn,fontWeight:tr,lineHeight:"16px"},h6:{fontSize:Kn,fontWeight:tr,lineHeight:"16px"},caption:{color:Un.TEXT_SECONDARY},subtitle1:{fontSize:Kn,color:Un.TEXT_SECONDARY},subtitle2:{fontSize:Yn,color:Un.TEXT_SECONDARY}},shape:{borderRadius:Jn}}),gL={...Vn,MISC_FOCUS_BORDER:Un.MISC_FOCUS_BORDER},vL=hL().palette,bL={TEXT:vL.text.primary,DISABLED:vL.text.disabled,HOVER:vL.action.hover,WHITE:gL.GREYSCALE_100,BORDER_LIGHT:gL.GREYSCALE_90,BORDER_MEDIUM:gL.GREYSCALE_85,BORDER_HEAVY:gL.GREYSCALE_50,DARK_MODE_TEXT:gL.GREYSCALE_95,DARK_MODE_BORDER:gL.GREYSCALE_95,DARK_MODE_DISABLED:gL.GREYSCALE_70,DARK_MODE_BACKGROUND:gL.GREYSCALE_20};function yL(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function xL(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function SL(){}var EL=.7,CL=1/EL,wL="\\s*([+-]?\\d+)\\s*",RL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",LL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",kL=/^#([0-9a-f]{3,8})$/,IL=new RegExp(`^rgb\\(${wL},${wL},${wL}\\)$`),_L=new RegExp(`^rgb\\(${LL},${LL},${LL}\\)$`),ML=new RegExp(`^rgba\\(${wL},${wL},${wL},${RL}\\)$`),PL=new RegExp(`^rgba\\(${LL},${LL},${LL},${RL}\\)$`),AL=new RegExp(`^hsl\\(${RL},${LL},${LL}\\)$`),DL=new RegExp(`^hsla\\(${RL},${LL},${LL},${RL}\\)$`),TL={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 OL(){return this.rgb().formatHex()}function NL(){return this.rgb().formatRgb()}function qL(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=kL.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?FL(t):3===n?new BL(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?zL(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?zL(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=IL.exec(e))?new BL(t[1],t[2],t[3],1):(t=_L.exec(e))?new BL(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ML.exec(e))?zL(t[1],t[2],t[3],t[4]):(t=PL.exec(e))?zL(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=AL.exec(e))?YL(t[1],t[2]/100,t[3]/100,1):(t=DL.exec(e))?YL(t[1],t[2]/100,t[3]/100,t[4]):TL.hasOwnProperty(e)?FL(TL[e]):"transparent"===e?new BL(NaN,NaN,NaN,0):null}function FL(e){return new BL(e>>16&255,e>>8&255,255&e,1)}function zL(e,t,n,r){return r<=0&&(e=t=n=NaN),new BL(e,t,n,r)}function jL(e){return e instanceof SL||(e=qL(e)),e?new BL((e=e.rgb()).r,e.g,e.b,e.opacity):new BL}function $L(e,t,n,r){return 1===arguments.length?jL(e):new BL(e,t,n,null==r?1:r)}function BL(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function HL(){return`#${UL(this.r)}${UL(this.g)}${UL(this.b)}`}function WL(){const e=GL(this.opacity);return`${1===e?"rgb(":"rgba("}${VL(this.r)}, ${VL(this.g)}, ${VL(this.b)}${1===e?")":`, ${e})`}`}function GL(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function VL(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function UL(e){return((e=VL(e))<16?"0":"")+e.toString(16)}function YL(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new XL(e,t,n,r)}function KL(e){if(e instanceof XL)return new XL(e.h,e.s,e.l,e.opacity);if(e instanceof SL||(e=qL(e)),!e)return new XL;if(e instanceof XL)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new XL(a,l,s,e.opacity)}function XL(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function QL(e){return(e=(e||0)%360)<0?e+360:e}function JL(e){return Math.max(0,Math.min(1,e||0))}function ZL(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}yL(SL,qL,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:OL,formatHex:OL,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return KL(this).formatHsl()},formatRgb:NL,toString:NL}),yL(BL,$L,xL(SL,{brighter(e){return e=null==e?CL:Math.pow(CL,e),new BL(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?EL:Math.pow(EL,e),new BL(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new BL(VL(this.r),VL(this.g),VL(this.b),GL(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:HL,formatHex:HL,formatHex8:function(){return`#${UL(this.r)}${UL(this.g)}${UL(this.b)}${UL(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:WL,toString:WL})),yL(XL,(function(e,t,n,r){return 1===arguments.length?KL(e):new XL(e,t,n,null==r?1:r)}),xL(SL,{brighter(e){return e=null==e?CL:Math.pow(CL,e),new XL(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?EL:Math.pow(EL,e),new XL(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new BL(ZL(e>=240?e-240:e+120,o,r),ZL(e,o,r),ZL(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new XL(QL(this.h),JL(this.s),JL(this.l),GL(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=GL(this.opacity);return`${1===e?"hsl(":"hsla("}${QL(this.h)}, ${100*JL(this.s)}%, ${100*JL(this.l)}%${1===e?")":`, ${e})`}`}}));const ek=Math.PI/180,tk=180/Math.PI,nk=.96422,rk=1,ok=.82521,ik=4/29,ak=6/29,lk=3*ak*ak,sk=ak*ak*ak;function uk(e){if(e instanceof ck)return new ck(e.l,e.a,e.b,e.opacity);if(e instanceof gk)return vk(e);e instanceof BL||(e=jL(e));var t,n,r=mk(e.r),o=mk(e.g),i=mk(e.b),a=dk((.2225045*r+.7168786*o+.0606169*i)/rk);return r===o&&o===i?t=n=a:(t=dk((.4360747*r+.3850649*o+.1430804*i)/nk),n=dk((.0139322*r+.0971045*o+.7141733*i)/ok)),new ck(116*a-16,500*(t-a),200*(a-n),e.opacity)}function ck(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function dk(e){return e>sk?Math.pow(e,1/3):e/lk+ik}function pk(e){return e>ak?e*e*e:lk*(e-ik)}function fk(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function mk(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function hk(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof gk)return new gk(e.h,e.c,e.l,e.opacity);if(e instanceof ck||(e=uk(e)),0===e.a&&0===e.b)return new gk(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*tk;return new gk(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new gk(e,t,n,null==r?1:r)}function gk(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function vk(e){if(isNaN(e.h))return new ck(e.l,0,0,e.opacity);var t=e.h*ek;return new ck(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}yL(ck,(function(e,t,n,r){return 1===arguments.length?uk(e):new ck(e,t,n,null==r?1:r)}),xL(SL,{brighter(e){return new ck(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ck(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new BL(fk(3.1338561*(t=nk*pk(t))-1.6168667*(e=rk*pk(e))-.4906146*(n=ok*pk(n))),fk(-.9787684*t+1.9161415*e+.033454*n),fk(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),yL(gk,hk,xL(SL,{brighter(e){return new gk(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new gk(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return vk(this).rgb()}}));const bk=(e,t)=>{const n=hk(e),r=n.l<70;return 0===n.opacity?(n.opacity=t.opacity,n.toString()):r?n.brighter(t.brighter).toString():n.darker(t.darker).toString()},yk=e=>{if(e){const t=$L(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},xk=e=>!!e&&0===$L(e).opacity,Sk=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,Ek=e=>{const t=Sk.exec(e);if(t){const[,e,n,r,o]=t;return $L(+n,+r,+o,+e/255)}return $L(e)},Ck=e=>{const t=Ek(e);return Number.isNaN(t.r)?null:t.toString()},wk=e=>{e.stopPropagation(),e.preventDefault()},Rk="#grid",Lk=(e,t)=>{const n=null==t?void 0:t.closest(e);return n&&window.getComputedStyle(n).backgroundColor},kk=(e,t,n,r,o)=>{const i=Lk(".qv-object .qv-inner-object",n),a=Lk(".qv-panel-sheet",n),l=Lk(Rk,n),s=null!=l?l:a,u=(e=>{var t,n,r,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(n=l.bgColor)||void 0===n?void 0:n.colorExpression,u=null==l||null===(r=l.bgColor)||void 0===r||null===(r=r.color)||void 0===r?void 0:r.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return Ck(s);if("none"===u)return"transparent";if(void 0===u)return;const c=Ek(u);return c.opacity=null!==(i=null==l||null===(a=l.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.opacity,c.toString()})(e),c=null==r?void 0:r(t),d=null==o?void 0:o(t),p=c||i||d,f=xk(p),m=yk(f?s:p),h=((e,t,n)=>e&&!xk(e)?e:xk(t)?n&&!xk(n)?n:bL.WHITE:t)(u,p,s);return{color:p,headerColor:h,isDark:m}},Ik=(t,n,r,o)=>{const i=e.useTheme(),a=((t,n={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,o]=e.useState([]);return e.useEffect((()=>{let e;return t&&(e=new MutationObserver((e=>{o(e)})),e.observe(t,n)),()=>{var t;null===(t=e)||void 0===t||t.disconnect()}}),[t,n]),r})(null==n?void 0:n.closest(Rk),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return e.useMemo((()=>({...i,background:kk(t,i,n,r,o)})),[i.name(),n,r,o,t,a])};function _k(t,n){const r=e.useMemo((()=>({isLoading:!0})),n),[o,i]=e.usePromise((async()=>{try{return await t()}finally{r.isLoading=!1}}),n);return[o,r.isLoading,i]}var Mk=Object.prototype.hasOwnProperty,Pk=Object.prototype.toString,Ak=Object.defineProperty,Dk=Object.getOwnPropertyDescriptor,Tk=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Pk.call(e)},Ok=function(e){if(!e||"[object Object]"!==Pk.call(e))return!1;var t,n=Mk.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Mk.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Mk.call(e,t)},Nk=function(e,t){Ak&&"__proto__"===t.name?Ak(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},qk=function(e,t){if("__proto__"===t){if(!Mk.call(e,t))return;if(Dk)return Dk(e,t).value}return e[t]};function Fk(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function zk(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function jk(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=qk(l,n),l!==(o=qk(t,n))&&(c&&o&&(Ok(o)||(i=Tk(o)))?(i?(i=!1,a=r&&Tk(r)?r:[]):a=r&&Ok(r)?r:{},Nk(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&Nk(l,{name:n,newValue:o}));return l}));var $k=1/.7,Bk="\\s*([+-]?\\d+)\\s*",Hk="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Wk="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Gk=/^#([0-9a-f]{3,8})$/,Vk=new RegExp(`^rgb\\(${Bk},${Bk},${Bk}\\)$`),Uk=new RegExp(`^rgb\\(${Wk},${Wk},${Wk}\\)$`),Yk=new RegExp(`^rgba\\(${Bk},${Bk},${Bk},${Hk}\\)$`),Kk=new RegExp(`^rgba\\(${Wk},${Wk},${Wk},${Hk}\\)$`),Xk=new RegExp(`^hsl\\(${Hk},${Wk},${Wk}\\)$`),Qk=new RegExp(`^hsla\\(${Hk},${Wk},${Wk},${Hk}\\)$`),Jk={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 Zk(){return this.rgb().formatHex()}function eI(){return this.rgb().formatRgb()}function tI(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Gk.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?nI(t):3===n?new aI(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?rI(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?rI(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=Vk.exec(e))?new aI(t[1],t[2],t[3],1):(t=Uk.exec(e))?new aI(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Yk.exec(e))?rI(t[1],t[2],t[3],t[4]):(t=Kk.exec(e))?rI(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Xk.exec(e))?pI(t[1],t[2]/100,t[3]/100,1):(t=Qk.exec(e))?pI(t[1],t[2]/100,t[3]/100,t[4]):Jk.hasOwnProperty(e)?nI(Jk[e]):"transparent"===e?new aI(NaN,NaN,NaN,0):null}function nI(e){return new aI(e>>16&255,e>>8&255,255&e,1)}function rI(e,t,n,r){return r<=0&&(e=t=n=NaN),new aI(e,t,n,r)}function oI(e){return e instanceof jk||(e=tI(e)),e?new aI((e=e.rgb()).r,e.g,e.b,e.opacity):new aI}function iI(e,t,n,r){return 1===arguments.length?oI(e):new aI(e,t,n,null==r?1:r)}function aI(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function lI(){return`#${dI(this.r)}${dI(this.g)}${dI(this.b)}`}function sI(){const e=uI(this.opacity);return`${1===e?"rgb(":"rgba("}${cI(this.r)}, ${cI(this.g)}, ${cI(this.b)}${1===e?")":`, ${e})`}`}function uI(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function cI(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function dI(e){return((e=cI(e))<16?"0":"")+e.toString(16)}function pI(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new mI(e,t,n,r)}function fI(e){if(e instanceof mI)return new mI(e.h,e.s,e.l,e.opacity);if(e instanceof jk||(e=tI(e)),!e)return new mI;if(e instanceof mI)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new mI(a,l,s,e.opacity)}function mI(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function hI(e){return(e=(e||0)%360)<0?e+360:e}function gI(e){return Math.max(0,Math.min(1,e||0))}function vI(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Fk(jk,tI,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Zk,formatHex:Zk,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return fI(this).formatHsl()},formatRgb:eI,toString:eI}),Fk(aI,iI,zk(jk,{brighter(e){return e=null==e?$k:Math.pow($k,e),new aI(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new aI(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new aI(cI(this.r),cI(this.g),cI(this.b),uI(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:lI,formatHex:lI,formatHex8:function(){return`#${dI(this.r)}${dI(this.g)}${dI(this.b)}${dI(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:sI,toString:sI})),Fk(mI,(function(e,t,n,r){return 1===arguments.length?fI(e):new mI(e,t,n,null==r?1:r)}),zk(jk,{brighter(e){return e=null==e?$k:Math.pow($k,e),new mI(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new mI(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new aI(vI(e>=240?e-240:e+120,o,r),vI(e,o,r),vI(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new mI(hI(this.h),gI(this.s),gI(this.l),uI(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=uI(this.opacity);return`${1===e?"hsl(":"hsla("}${hI(this.h)}, ${100*gI(this.s)}%, ${100*gI(this.l)}%${1===e?")":`, ${e})`}`}}));const bI=Math.PI/180,yI=180/Math.PI,xI=4/29,SI=6/29,EI=3*SI*SI;function CI(e){if(e instanceof wI)return new wI(e.l,e.a,e.b,e.opacity);if(e instanceof _I)return MI(e);e instanceof aI||(e=oI(e));var t,n,r=II(e.r),o=II(e.g),i=II(e.b),a=RI((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=RI((.4360747*r+.3850649*o+.1430804*i)/.96422),n=RI((.0139322*r+.0971045*o+.7141733*i)/.82521)),new wI(116*a-16,500*(t-a),200*(a-n),e.opacity)}function wI(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function RI(e){return e>.008856451679035631?Math.pow(e,1/3):e/EI+xI}function LI(e){return e>SI?e*e*e:EI*(e-xI)}function kI(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function II(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function _I(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function MI(e){if(isNaN(e.h))return new wI(e.l,0,0,e.opacity);var t=e.h*bI;return new wI(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Fk(wI,(function(e,t,n,r){return 1===arguments.length?CI(e):new wI(e,t,n,null==r?1:r)}),zk(jk,{brighter(e){return new wI(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new wI(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new aI(kI(3.1338561*(t=.96422*LI(t))-1.6168667*(e=1*LI(e))-.4906146*(n=.82521*LI(n))),kI(-.9787684*t+1.9161415*e+.033454*n),kI(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Fk(_I,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof _I)return new _I(e.h,e.c,e.l,e.opacity);if(e instanceof wI||(e=CI(e)),0===e.a&&0===e.b)return new _I(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*yI;return new _I(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new _I(e,t,n,null==r?1:r)}),zk(jk,{brighter(e){return new _I(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new _I(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return MI(this).rgb()}}));var PI,AI=e=>()=>e;function DI(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):AI(isNaN(e)?t:e)}function TI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function OI(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function NI(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=FI)):void 0===t&&(t=qI);for(var n,r,o,i,a,l=new $I(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new $I(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(jI)}function qI(e){return e.children}function FI(e){return Array.isArray(e)?e[1]:null}function zI(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function jI(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function $I(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var n=function(e){return 1==(e=+e)?DI:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):AI(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=iI(e)).r,(t=iI(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=DI(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1),$I.prototype=NI.prototype={constructor:$I,count:function(){return this.eachAfter(OI)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return NI(this).eachBefore(zI)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},PI=function(e){
|
|
119
119
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
120
120
|
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),v=p-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},PI({exports:{}});const BI=3,HI="N";function WI(e,t,n){let r=0,o=e.length;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=o;){const i=Math.floor((r+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=n(a),u=n(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?r=i+1:o=i}return null}function GI({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=BI}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=Hn.useMemo((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const a=TI(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=TI((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,o=e;do{r+=1,o=WI(o,t,l)}while(null!==o&&r<i);return r}),(({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a(HI).width*e,estimateLineCount:s}}),[n,r,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var VI,UI=GS;VI=UI.createRoot,UI.hydrateRoot;function YI(e,t){const[n,r]=Hn.useState(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}var KI={NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const XI=({translator:e})=>(Hn.useMemo((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(KI).forEach((t=>{e.add(KI[t])}))}}(e)),[e]),e),QI=document.createElement("textarea");function JI(e){QI.value=e,document.body.appendChild(QI),QI.select(),QI.setSelectionRange(0,QI.value.length),document.execCommand("copy"),document.body.removeChild(QI)}QI.style.position="absolute",QI.style.left="-9999px",QI.setAttribute("readonly","");function ZI(){null===e.onContextMenu||void 0===e.onContextMenu||e.onContextMenu(((e,t)=>{const n=t.target,r=null==n?void 0:n.closest(`.${Qe}`);null!=r&&r.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{(e=>{var t;const n=e.title;n&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(n).catch((()=>JI(n))):JI(n))})(r)}})}))}var e_="$$material";function t_(e){const{injectFirst:t,children:n}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return n}t_.propTypes={children:en.node,injectFirst:en.bool};const n_=ma((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r}));var r_=n_;
|
|
121
121
|
/**
|
|
@@ -198,4 +198,4 @@ function o_(e,t){let n;return n=t?pa(e).withConfig({displayName:t.label,shouldFo
|
|
|
198
198
|
animation-iteration-count: infinite;
|
|
199
199
|
animation-delay: 200ms;
|
|
200
200
|
}
|
|
201
|
-
`),IF.rippleVisible,OF,550,(({theme:e})=>e.transitions.easing.easeInOut),IF.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),IF.child,IF.childLeaving,NF,550,(({theme:e})=>e.transitions.easing.easeInOut),IF.childPulsate,qF,(({theme:e})=>e.transitions.easing.easeInOut)),jF=Hn.forwardRef((function(e,t){const n=kP({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=rn(n,_F),[l,s]=Hn.useState([]),u=Hn.useRef(0),c=Hn.useRef(null);Hn.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=Hn.useRef(!1),p=al(),f=Hn.useRef(null),m=Hn.useRef(null),h=Hn.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,js.jsx(zF,{classes:{ripple:Vs(o.ripple,IF.ripple),rippleVisible:Vs(o.rippleVisible,IF.rippleVisible),ripplePulsate:Vs(o.ripplePulsate,IF.ripplePulsate),child:Vs(o.child,IF.child),childLeaving:Vs(o.childLeaving,IF.childLeaving),childPulsate:Vs(o.childPulsate,IF.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=Hn.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h,p]),v=Hn.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=Hn.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{b(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return Hn.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),js.jsx(FF,Xt({className:Vs(IF.root,o.root,i),ref:m},a,{children:js.jsx(sE,{component:null,exit:!0,children:l})}))}));var $F=jF;function BF(e){return El("MuiButtonBase",e)}var HF=Cl("MuiButtonBase",["root","disabled","focusVisible"]);const WF=["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"],GF=oA("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"},[`&.${HF.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),VF=Hn.forwardRef((function(e,t){const n=kP({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:C,onTouchEnd:w,onTouchMove:R,onTouchStart:L,tabIndex:k=0,TouchRippleProps:I,touchRippleRef:_,type:M}=n,P=rn(n,WF),A=Hn.useRef(null),D=Hn.useRef(null),T=nl(D,_),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:F}=hl(),[z,j]=Hn.useState(!1);s&&z&&j(!1),Hn.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),A.current.focus()}})),[]);const[$,B]=Hn.useState(!1);Hn.useEffect((()=>{B(!0)}),[]);const H=$&&!u&&!s;function W(e,t,n=c){return tl((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}Hn.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const G=W("start",S),V=W("stop",h),U=W("stop",g),Y=W("stop",C),K=W("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=W("start",L),Q=W("stop",w),J=W("stop",R),Z=W("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),ee=tl((e=>{A.current||(A.current=e.currentTarget),N(e),!0===O.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=A.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=Hn.useRef(!1),re=tl((e=>{d&&!ne.current&&z&&D.current&&" "===e.key&&(ne.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),oe=tl((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(P.href||P.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===M?"button":M,ae.disabled=s):(P.href||P.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=nl(t,F,A),se=Xt({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:k,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=bl({root:["root",t&&"disabled",n&&"focusVisible"]},BF,o);return n&&r&&(i.root+=` ${r}`),i})(se);return js.jsxs(GF,Xt({as:ie,className:Vs(ue.root,a),ownerState:se,onBlur:Z,onClick:m,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:G,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:k,type:M},ae,P,{children:[i,H?js.jsx($F,Xt({ref:T,center:o},I)):null]}))}));var UF=VF;const YF=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function KF(e){const t=[],n=[];return Array.from(e.querySelectorAll(YF)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function XF(){return!0}function QF(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=KF,isEnabled:a=XF,open:l}=e,s=Hn.useRef(!1),u=Hn.useRef(null),c=Hn.useRef(null),d=Hn.useRef(null),p=Hn.useRef(null),f=Hn.useRef(!1),m=Hn.useRef(null),h=nl(t.ref,m),g=Hn.useRef(null);Hn.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),Hn.useEffect((()=>{if(!l||!m.current)return;const e=Qa(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),Hn.useEffect((()=>{if(!l||!m.current)return;const e=Qa(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return js.jsxs(Hn.Fragment,{children:[js.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),Hn.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),js.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const JF=Hn.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=Hn.useState(null),l=nl(Hn.isValidElement(n)?n.ref:null,t);if(el((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),el((()=>{if(i&&!o)return Za(t,i),()=>{Za(t,null)}}),[t,i,o]),o){if(Hn.isValidElement(n)){const e={ref:l};return Hn.cloneElement(n,e)}return js.jsx(Hn.Fragment,{children:n})}return js.jsx(Hn.Fragment,{children:i?GS.createPortal(n,i):i})}));function ZF(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ez(e){return parseInt(Ja(e).getComputedStyle(e).paddingRight,10)||0}function tz(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&ZF(e,o)}))}function nz(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function rz(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Qa(e);return t.body===e?Ja(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=gl(Qa(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${ez(r)+e}px`;const t=Qa(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${ez(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Qa(r).body;else{const t=r.parentElement,n=Ja(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const oz=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&ZF(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);tz(t,e.mount,e.modalRef,r,!0);const o=nz(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=nz(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=rz(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=nz(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&ZF(e.modalRef,t),tz(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&ZF(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function iz(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=oz,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=Hn.useRef({}),f=Hn.useRef(null),m=Hn.useRef(null),h=nl(m,d),[g,v]=Hn.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=tl((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Qa(f.current).body;o.add(x(),e),m.current&&S()})),C=Hn.useCallback((()=>o.isTopModal(x())),[o]),w=tl((e=>{f.current=e,e&&(c&&C()?S():m.current&&ZF(m.current,y))})),R=Hn.useCallback((()=>{o.remove(x(),y)}),[y,o]);Hn.useEffect((()=>()=>{R()}),[R]),Hn.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},k=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=wF(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Xt({},n,t);return Xt({role:"presentation"},r,{onKeyDown:L(r),ref:h})},getBackdropProps:(e={})=>Xt({"aria-hidden":!0},e,{onClick:k(e),open:c}),getTransitionProps:()=>({onEnter:Ka((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Ka((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:w,isTopModal:C,exited:g,hasTransition:b}}const az=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],lz={entering:{opacity:1},entered:{opacity:1}},sz=Hn.forwardRef((function(e,t){const n=LP(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:v=nE}=e,b=rn(e,az),y=Hn.useRef(null),x=nl(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),C=S(((e,t)=>{vF(e);const r=bF({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),w=S(c),R=S(m),L=S((e=>{const t=bF({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),k=S(f);return js.jsx(v,Xt({appear:i,in:s,nodeRef:y,onEnter:C,onEntered:w,onEntering:E,onExit:L,onExited:k,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>Hn.cloneElement(a,Xt({style:Xt({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},lz[e],h,a.props.style),ref:x},t))}))}));var uz=sz;function cz(e){return El("MuiBackdrop",e)}Cl("MuiBackdrop",["root","invisible"]);const dz=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],pz=oA("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Xt({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"}))),fz=Hn.forwardRef((function(e,t){var n,r,o;const i=kP({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=uz,transitionDuration:g}=i,v=rn(i,dz),b=Xt({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return bl({root:["root",n&&"invisible"]},cz,t)})(b),x=null!=(n=f.root)?n:c.root;return js.jsx(h,Xt({in:p,timeout:g},v,{children:js.jsx(pz,Xt({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:Vs(y.root,l,null==x?void 0:x.className),ownerState:Xt({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var mz=fz;var hz=Cl("MuiBox",["root"]);const gz=wP(),vz=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=o_("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(aM);return Hn.forwardRef((function(e,a){const l=fM(n),s=gM(e),{className:u,component:c="div"}=s,d=rn(s,bM);return js.jsx(i,Xt({as:c,ref:a,className:Vs(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:e_,defaultTheme:gz,defaultClassName:hz.root,generateClassName:xl.generate});var bz=vz;function yz(e){return El("MuiModal",e)}Cl("MuiModal",["root","hidden","backdrop"]);const xz=["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"],Sz=oA("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Xt({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Ez=oA(mz,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Cz=Hn.forwardRef((function(e,t){var n,r,o,i,a,l;const s=kP({name:"MuiModal",props:e}),{BackdropComponent:u=Ez,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:w=!1,keepMounted:R=!1,onBackdropClick:L,open:k,slotProps:I,slots:_}=s,M=rn(s,xz),P=Xt({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:w,keepMounted:R}),{getRootProps:A,getBackdropProps:D,getTransitionProps:T,portalRef:O,isTopModal:N,exited:q,hasTransition:F}=iz(Xt({},P,{rootRef:t})),z=Xt({},P,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return bl({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},yz,r)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(r=null==_?void 0:_.root)?r:g.Root)?n:Sz,H=null!=(o=null!=(i=null==_?void 0:_.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==I?void 0:I.root)?a:v.root,G=null!=(l=null==I?void 0:I.backdrop)?l:v.backdrop,V=kF({elementType:B,externalSlotProps:W,externalForwardedProps:M,getSlotProps:A,additionalProps:{ref:t,as:h},ownerState:z,className:Vs(d,null==W?void 0:W.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=kF({elementType:H,externalSlotProps:G,additionalProps:c,getSlotProps:e=>D(Xt({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Vs(null==G?void 0:G.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||k||F&&!q?js.jsx(JF,{ref:O,container:m,disablePortal:S,children:js.jsxs(B,Xt({},V,{children:[!w&&u?js.jsx(H,Xt({},U)):null,js.jsx(QF,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:k,children:Hn.cloneElement(f,$)})]}))}):null}));var wz=Cz;var Rz=Cl("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Lz=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function kz(e){return`scale(${e}, ${e**2})`}const Iz={entering:{opacity:1,transform:kz(1)},entered:{opacity:1,transform:"none"}},_z="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Mz=Hn.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=nE}=e,g=rn(e,Lz),v=al(),b=Hn.useRef(),y=LP(),x=Hn.useRef(null),S=nl(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(u),w=E(((e,t)=>{vF(e);const{duration:n,delay:r,easing:o}=bF({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:_z?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),L=E(p),k=E((e=>{const{duration:t,delay:n,easing:r}=bF({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:_z?o:.666*o,delay:_z?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=kz(.75),c&&c(e)})),I=E(d);return js.jsx(h,Xt({appear:r,in:a,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:k,onExited:I,onExiting:L,addEndListener:e=>{"auto"===m&&v.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>Hn.cloneElement(o,Xt({style:Xt({opacity:0,transform:kz(.75),visibility:"exited"!==e||a?void 0:"hidden"},Iz[e],f,o.props.style),ref:S},t))}))}));Mz.muiSupportAuto=!0;var Pz=Mz;var Az=Hn.createContext({});function Dz(e){return El("MuiList",e)}Cl("MuiList",["root","padding","dense","subheader"]);const Tz=["children","className","component","dense","disablePadding","subheader"],Oz=oA("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Xt({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var Nz=Hn.forwardRef((function(e,t){const n=kP({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=rn(n,Tz),c=Hn.useMemo((()=>({dense:a})),[a]),d=Xt({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return bl({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Dz,t)})(d);return js.jsx(Az.Provider,{value:c,children:js.jsxs(Oz,Xt({as:i,className:Vs(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));var qz=Cl("MuiListItemIcon",["root","alignItemsFlexStart"]);var Fz=Cl("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const zz=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function jz(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function $z(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Bz(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Hz(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Bz(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var Wz=Hn.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=rn(e,zz),p=Hn.useRef(null),f=Hn.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});el((()=>{r&&p.current.focus()}),[r]),Hn.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${gl(Qa(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=nl(p,t);let h=-1;Hn.Children.forEach(i,((e,t)=>{Hn.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=Hn.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),Hn.cloneElement(e,t)}return e}));return js.jsx(Nz,Xt({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Qa(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Hz(t,r,s,l,jz);else if("ArrowUp"===n)e.preventDefault(),Hz(t,r,s,l,$z);else if("Home"===n)e.preventDefault(),Hz(t,null,s,l,jz);else if("End"===n)e.preventDefault(),Hz(t,null,s,l,$z);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&Bz(r,o);o.previousKeyMatched&&(s||Hz(t,r,!1,l,jz,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function Gz(e){return El("MuiPopover",e)}Cl("MuiPopover",["root","paper"]);const Vz=["onEntering"],Uz=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Yz=["slotProps"];function Kz(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Xz(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Qz(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Jz(e){return"function"==typeof e?e():e}const Zz=oA(wz,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ej=oA(EF,{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 tj=Hn.forwardRef((function(e,t){var n,r,o;const i=kP({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=Pz,transitionDuration:E="auto",TransitionProps:{onEntering:C}={},disableScrollLock:w=!1}=i,R=rn(i.TransitionProps,Vz),L=rn(i,Uz),k=null!=(n=null==y?void 0:y.paper)?n:v,I=Hn.useRef(),_=nl(I,k.ref),M=Xt({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:k,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),P=(e=>{const{classes:t}=e;return bl({root:["root"],paper:["paper"]},Gz,t)})(M),A=Hn.useCallback((()=>{if("anchorPosition"===c)return u;const e=Jz(l),t=(e&&1===e.nodeType?e:Qa(I.current).body).getBoundingClientRect();return{top:t.top+Kz(t,s.vertical),left:t.left+Xz(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=Hn.useCallback((e=>({vertical:Kz(e,x.vertical),horizontal:Xz(e,x.horizontal)})),[x.horizontal,x.vertical]),T=Hn.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:Qz(n)};const r=A();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=Ja(Jz(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Qz(n)}}),[l,c,A,D,h]),[O,N]=Hn.useState(g),q=Hn.useCallback((()=>{const e=I.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);Hn.useEffect((()=>(w&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,w,q]);Hn.useEffect((()=>{g&&q()})),Hn.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),Hn.useEffect((()=>{if(!g)return;const e=Xa((()=>{q()})),t=Ja(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,q]);let F=E;"auto"!==E||S.muiSupportAuto||(F=void 0);const z=f||(l?Qa(Jz(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:Zz,$=null!=(o=null==b?void 0:b.paper)?o:ej,B=kF({elementType:$,externalSlotProps:Xt({},k,{style:O?k.style:Xt({},k.style,{opacity:0})}),additionalProps:{elevation:m,ref:_},ownerState:M,className:Vs(P.paper,null==k?void 0:k.className)}),H=kF({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:M,className:Vs(P.root,p)}),{slotProps:W}=H,G=rn(H,Yz);return js.jsx(j,Xt({},G,!CF(j)&&{slotProps:W,disableScrollLock:w},{children:js.jsx(S,Xt({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:js.jsx($,Xt({},B,{children:d}))}))}))}));function nj(e){return El("MuiMenu",e)}Cl("MuiMenu",["root","paper","list"]);const rj=["onEntering"],oj=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],ij={vertical:"top",horizontal:"right"},aj={vertical:"top",horizontal:"left"},lj=oA(tj,{shouldForwardProp:e=>rA(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sj=oA(ej,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),uj=oA(Wz,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var cj=Hn.forwardRef((function(e,t){var n,r;const o=kP({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=rn(o.TransitionProps,rj),x=rn(o,oj),S=(()=>{const e=Hn.useContext(CM);return null!=e&&e})(),E=Xt({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return bl({root:["root"],paper:["paper"],list:["list"]},nj,t)})(E),w=i&&!s&&d,R=Hn.useRef(null);let L=-1;Hn.Children.map(a,((e,t)=>{Hn.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===L)&&(L=t))}));const k=null!=(n=v.paper)?n:sj,I=null!=(r=b.paper)?r:p,_=kF({elementType:v.root,externalSlotProps:b.root,ownerState:E,className:[C.root,l]}),M=kF({elementType:k,externalSlotProps:I,ownerState:E,className:C.paper});return js.jsx(lj,Xt({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?ij:aj,slots:{paper:k,root:v.root},slotProps:{root:_,paper:M},open:d,ref:t,transitionDuration:m,TransitionProps:Xt({onEntering:(e,t)=>{R.current&&R.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),h&&h(e,t)}},y),ownerState:E},x,{classes:f,children:js.jsx(uj,Xt({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:R,autoFocus:i&&(-1===L||s),autoFocusItem:w,variant:g},u,{className:Vs(C.list,u.className),children:a}))}))}));function dj(e){return El("MuiMenuItem",e)}var pj=Cl("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const fj=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],mj=oA(UF,{shouldForwardProp:e=>rA(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Xt({},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"}},[`&.${pj.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:TM(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${pj.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:TM(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${pj.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:TM(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})`:TM(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${pj.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${pj.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Rz.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Rz.inset}`]:{marginLeft:52},[`& .${Fz.root}`]:{marginTop:0,marginBottom:0},[`& .${Fz.inset}`]:{paddingLeft:36},[`& .${qz.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Xt({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${qz.root} svg`]:{fontSize:"1.25rem"}}))));var hj=Hn.forwardRef((function(e,t){const n=kP({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=rn(n,fj),f=Hn.useContext(Az),m=Hn.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=Hn.useRef(null);el((()=>{r&&h.current&&h.current.focus()}),[r]);const g=Xt({},n,{dense:m.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Xt({},a,bl({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},dj,a))})(n),b=nl(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),js.jsx(Az.Provider,{value:m,children:js.jsx(mj,Xt({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:Vs(v.focusVisible,s),className:Vs(v.root,d)},p,{ownerState:g,classes:v}))})}));const gj=oA(bz,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:n,shouldShowMenuIcon:r,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:r?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?n:t}}))),vj=oA("div")({position:"absolute",left:0,bottom:0}),bj=oA("div")({...wt,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}),yj=oA("div")((()=>({...wt}))),xj=oA("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:n,fontStyle:r,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:n,fontSize:e,fontFamily:t,fontStyle:r,textDecoration:o}))),Sj=oA(cj)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),Ej=oA(hj,{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}}}))),Cj=oA("span")({textOverflow:"ellipsis",overflow:"hidden"}),wj=oA("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:sT,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),Rj={[dD.SORTING]:!0,[dD.SELECTIONS]:!0,[dD.SEARCHING]:!0},Lj=({dataModel:e,cell:t,style:n,isFirstColumn:r,isLastColumn:o,isLastRow:i,translator:a,changeSortOrder:l,iconsVisibilityStatus:s,columnWidth:u,overrideLeftGridWidth:c,layoutService:d,shouldApplyIndentModeColumnWidth:p})=>{var f;const m=Hn.useRef(null),h=iT(),{app:g,model:v,interactions:b,embed:y,env:{flags:x}}=eT(),{fontSize:S,fontFamily:E,fontStyle:C,fontWeight:w,textDecoration:R,color:L,background:k,hoverBackground:I,activeBackground:_}=h.header,M=Hn.useRef(null),{shouldShowLockIcon:P,shouldShowMenuIcon:A}=s,{open:D,setOpen:T,handleOpenMenu:O,setIsAdjustingWidth:N}=mF({interactions:b,dataModel:e}),q={sortFromMenu:async e=>{e.stopPropagation(),await l(t)}},F={embed:y,listboxRef:m},z={model:v,app:g},{labelTextAlign:j}=null!==(f=d.getDimensionInfo(t.dimensionInfoIndex))&&void 0!==f?f:{},$=Uq(j,"flex-start",x);return js.jsxs(gj,{className:Qe,title:t.label,interactions:b,background:D?_:k,hoverBackground:I,shouldShowMenuIcon:A,isDimension:t.isDim,style:{...n,...Lt,...Pt(t,i,r,o,h.grid.border),color:L},"data-testid":"title-cell",onClick:O,children:[js.jsxs(bj,{children:[P&&js.jsx(yj,{children:js.jsx(pF,{height:12})}),js.jsx(xj,{fontFamily:E,fontSize:S,fontStyle:C,fontWeight:w,textDecoration:R,justifyContent:$,children:js.jsx("span",{style:kt,children:t.label})})]}),t.isDim&&js.jsxs(js.Fragment,{children:[js.jsx(fD,{headerData:t,translator:a,anchorRef:M,open:D,setOpen:T,interactions:b,menuAvailabilityFlags:Rj,sortRelatedArgs:q,searchRelatedArgs:F,selectionRelatedArgs:z,shouldShowMenuIcon:A}),js.jsx(vj,{ref:m}),js.jsx(vj,{ref:M})]}),js.jsx(gF,{cellInfo:{...t,isLeftColumn:!0},columnWidth:u,dataModel:e,isLastColumn:o,overrideLeftGridWidth:c,setIsAdjustingWidth:N,shouldApplyIndentModeColumnWidth:p})]})},kj=({rowSpan:e,columnSpan:t})=>{const n=iT();return e>0&&t>0?js.jsx("div",{style:{...Rt,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"0px 1px 0px 0px",borderColor:n.grid.border,background:n.grid.background},"data-testid":"empty-header-cell"}):null};function Ij(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _j=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ij(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})),Mj=Hn.forwardRef(_j);function Pj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Aj=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Pj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),Wn.createElement("use",{fillRule:"evenodd"})),Dj=Hn.forwardRef(Aj),Tj=({dataModel:e,tableWidth:t,leftGridWidth:n,overrideLeftGridWidth:r})=>{const o=iT(),{interactions:i}=eT(),{isActive:a}=kq(),{setIsAdjustingWidth:l}=fF([e]);if(!(!!i.active&&!a))return null;const s=hF(o,{isLeftColumn:!0});return js.jsx(cA,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:s,columnWidth:n,updateWidthCallback:e=>{r(Math.min(e,t*dT))},confirmWidthCallback:o=>{var i;if(o.type===nt.FitToContent)return void e.applyIndentModeColumnWidth({type:nt.Auto});const a=Math.min(null!==(i=o.pixels)&&void 0!==i?i:n,t*dT);r(a),e.applyIndentModeColumnWidth({type:nt.Pixels,pixels:a})},setIsAdjustingWidth:l})};function Oj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Nj=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Oj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.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"})),qj=Hn.forwardRef(Nj),Fj=({cell:e,translator:t,dataModel:n,changeSortOrder:r})=>{const o=Hn.useRef(null),i=Hn.useRef(null),{app:a,model:l,interactions:s,embed:u}=eT(),{open:c,setOpen:d,handleOpenMenu:p}=mF({interactions:s,dataModel:n});return js.jsxs(Ej,{component:"div",onClick:p,isActive:c,children:[js.jsx(Cj,{children:e.label}),js.jsxs(wj,{className:"indent-mode-dropdown-more",visible:c,children:[js.jsx(qj,{}),e.isDim&&js.jsxs(js.Fragment,{children:[js.jsx(fD,{headerData:e,translator:t,anchorRef:o,open:c,setOpen:d,interactions:s,menuAvailabilityFlags:Rj,sortRelatedArgs:{sortFromMenu:async t=>{t.stopPropagation(),await r(e)}},searchRelatedArgs:{embed:u,listboxRef:i},selectionRelatedArgs:{model:l,app:a},shouldShowMenuIcon:!1}),js.jsx(vj,{ref:i}),js.jsx(vj,{ref:o})]})]})]})},zj=({idx:e,menu:t,menuItems:n,isOnlyOneRow:r})=>{var o,i;const a=(null===(o=n.at(-1))||void 0===o?void 0:o.id)===vT,l=e+1<n.length&&(null===(i=n[e+1])||void 0===i?void 0:i.id)===vT;return!(r&&a&&l)&&((null==t?void 0:t.id)!==vT&&e<n.length-1)},jj=({headersData:e,menuItems:t,dataModel:n,translator:r,changeSortOrder:o,overrideLeftGridWidth:i,leftGridWidth:a,tableWidth:l})=>{const s=iT(),{interactions:u}=eT(),[c,d]=Hn.useState(!1),p=Hn.useRef(null),{headerCellHeight:f}=s,{color:m,background:h,hoverBackground:g,activeBackground:v,fontFamily:b,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E}=s.header,{isAdjustingWidth:C}=fF([n]),w=e=>e.stopPropagation(),R={height:f,gridColumn:`1 / span ${e.size.x}`,gridRow:e.size.y,zIndex:e.size.x-0};return js.jsxs(gj,{isDimension:!0,background:c?v:h,interactions:u,hoverBackground:g,style:{...R,...Lt,color:m},onClick:e=>u.active&&!Cq(e)&&!C&&d(!c),children:[js.jsxs(bj,{children:[js.jsx(xj,{fontFamily:b,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E,justifyContent:"flex-start",children:js.jsx("span",{style:kt,children:r.get("SNPivotTable.IndentMode.Rows")})}),c?js.jsx(Dj,{}):js.jsx(Mj,{}),js.jsx(vj,{ref:p})]}),js.jsx(Sj,{open:c,anchorEl:p.current,children:t.map(((i,a)=>[i&&(null==i?void 0:i.id)!==vT&&js.jsx("li",{role:"presentation",onClick:w,onKeyDown:w,children:js.jsx(Fj,{cell:i,translator:r,dataModel:n,changeSortOrder:o})}),zj({idx:a,menu:i,menuItems:t,isOnlyOneRow:1===e.size.y})&&js.jsx(bA,{"data-testid":"group-divider",variant:"middle"},"divider")]))}),js.jsx(Tj,{dataModel:n,tableWidth:l,leftGridWidth:a,overrideLeftGridWidth:i})]})},$j={display:"grid",width:"fit-content"},Bj=({dataModel:e,tableWidth:t,leftGridWidth:n,columnWidths:r,rowHight:o,headersData:i,translator:a,changeSortOrder:l,getHeaderCellsIconsVisibilityStatus:s,height:u,overrideLeftGridWidth:c,layoutService:d})=>js.jsxs("div",{style:{...$j,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:i.data.map((()=>`${o}px`)).join(" "),height:u},children:[i.size.y>1&&js.jsx(kj,{columnSpan:i.size.x-1,rowSpan:i.size.y-1}),i.data.map(((u,p)=>{let f=[];if(d.isIndentModeEnabled&&i.size.x>1&&p+1===i.size.y){const r=i.data.at(-1);return f.push(js.jsx(jj,{headersData:i,menuItems:r[0],dataModel:e,translator:a,changeSortOrder:l,overrideLeftGridWidth:c,leftGridWidth:n,tableWidth:t},r[0][0].id)),f}return f=u.reduce(((t,n,u)=>{if(n){const f=s(u,n.isLocked,n.label),m=d.isIndentModeEnabled&&1===i.size.x;t.push(js.jsx(Lj,{dataModel:e,style:{width:r[u],height:o,gridColumn:d.isIndentModeEnabled&&i.size.x>1?2:u+1,gridRow:p+1,zIndex:i.size.x-u},isLastRow:p===i.size.y-1,isFirstColumn:0===u,isLastColumn:u===i.size.x-1,translator:a,changeSortOrder:l,cell:n,iconsVisibilityStatus:f,columnWidth:r[u],overrideLeftGridWidth:c,layoutService:d,shouldApplyIndentModeColumnWidth:m},n.id))}return t}),[]),f}))]});var Hj=Hn.memo(Bj);const Wj=(e,t,n,r,o)=>{Hn.useLayoutEffect((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,n,r,o])},Gj=(e,t)=>{YI((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},Vj=(e,t,n,r)=>{var o;const i=n?"flex-start":"center";var a,l;if(e.representation.type===pT.Image)return null!==(a=null===(l=e.representation.resolvedImagePosition)||void 0===l?void 0:l.horizontal)&&void 0!==a?a:i;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){var s;const{labelTextAlign:n}=null!==(s=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==s?s:{};return Uq(n,i,r)}const{textAlign:u}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return Uq(u,i,r)},Uj=()=>{},Yj=({children:e,text:t,reactWindowStyle:n,cell:r,data:o,showTotalCellDivider:i,isLastRow:a,isLastColumn:l,isLeftColumn:s,isCellSelected:u,isAdjustingWidth:c})=>{var d;const p=iT(),{interactions:f,env:{flags:m}}=eT(),{select:h,isLocked:g}=kq(),{layoutService:v,showLastBorder:b}=o,y=g(r)||r.isLockedByDimension,x=!(y||!f.active||!f.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||c),S=x?h(r):void 0;return js.jsx("div",{className:Qe,title:f.passive?t:void 0,style:{...n,...Mt(a,l,p.grid.border,b),...At({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:p.grid.divider}),...Lt,padding:"0px 4px",cursor:qq(x),background:Aq({styleService:p,isCellSelected:u,cell:r,isCellLocked:y}),zIndex:s?void 0:v.size.x-r.x,justifyContent:Vj(r,v,s,m),display:"flex",...v.isIndentModeEnabled&&s&&{paddingLeft:24*(null!==(d=r.indentLevel)&&void 0!==d?d:0)}},"aria-hidden":"true",onClick:S,onKeyUp:Uj,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":r.x,"data-page-x":r.pageX,"data-y":r.y,"data-page-y":r.pageY,"data-cell-type":r.ref.qType,children:e})},Kj=e=>e.stopPropagation(),Xj=({href:e,text:t,interactions:n,color:r})=>Wn.createElement(zw,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:Kj,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),Qj=({children:e,textStyle:t})=>js.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),Jj=({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>{const{isActive:o}=kq(),{interactions:i}=eT();let a=e.representation.text;if(e.isEmpty)return null;const l=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>({...kt,...It(r?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:Dq({cell:e,styleService:t,isCellSelected:n}),fontWeight:Tq({cell:e,styleService:t}),fontStyle:Oq({cell:e,styleService:t}),textDecoration:Nq({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r});return e.representation.type!==pT.Image||e.isTotal?(e.representation.type!==pT.Link||o||e.isTotal||(a=js.jsx(Xj,{text:e.representation.text,href:e.representation.url,interactions:i,color:e.expressionColor.color})),js.jsx(Qj,{textStyle:l,children:a})):js.jsx(Vq,{representation:e.representation,isLeftColumn:r,styleService:t,textStyle:l,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand})},Zj=e=>{const t=e.isLeftColumn?"flex-start":"center";var n;return e.representation.type!==pT.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(n=e.representation.resolvedImagePosition)||void 0===n?void 0:n.vertical},e$=({index:e,style:t,data:n})=>{const r=iT(),{isSelected:o}=kq(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=fF([n]),{dataModel:l,isLeftColumn:s=!1,showLastBorder:u,itemCount:c,isLast:d,totalDividerIndex:p,layoutService:f}=n,m=((e,t)=>{const{isLast:n,list:r,listValues:o}=t;return n?r[e]:o[e]})(e,n),h=s?e===c-1:d,g=s?d:e===c-1,v=JN(m,p,f.isIndentModeEnabled);if(void 0===m){const{background:n}=r.dimensionValues;return js.jsx(fq,{style:{...t,background:n},index:e,isLastRow:h,isLastColumn:g,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:v})}const b=o(m);return js.jsxs(Yj,{text:m.representation.text,reactWindowStyle:t,isLeftColumn:s,isLastRow:h,isLastColumn:g,isCellSelected:b,showTotalCellDivider:v,cell:m,data:n,isAdjustingWidth:i,children:[js.jsxs(mq,{verticalAlign:Zj(m),width:hq(m.representation),right:m.isLeftColumn?void 0:4,children:[js.jsx(jq,{isLeftColumn:s,isCellSelected:b,cell:m,dataModel:l}),js.jsx(Jj,{isLeftColumn:s,isCellSelected:b,cell:m,styleService:r})]}),js.jsx(gF,{cellInfo:{...m,columnWidthLocation:m.isPseudoDimension?Ge.Measures:Ge.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:g,setIsAdjustingWidth:a})]})};var t$=Wn.memo(e$,QN);const n$=({list:e,listValues:t,isLastRow:n,getRightGridColumnWidth:r})=>o=>{var i;const a=n?e[o]:t[o];return 0===o&&(null==a?void 0:a.x)>0?(a.leafCount+a.x+a.distanceToNextCell)*r():n||void 0===a?r(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o):(a.leafCount+a.distanceToNextCell)*r()},r$=(e,t,n,r)=>{const o=Object.values(e);let i,a=o.length;return r&&(a=n,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},o$=(e,t)=>n=>{e.current&&(e.current[t]=n)},i$={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...Rt},a$={overflow:"hidden",willChange:"auto",flexShrink:0},l$=({dataModel:e,leftGridRef:t,width:n,columnWidths:r,height:o,layoutService:i,leftDimensionData:a,showLastBorder:l,visibleLeftDimensionInfo:s,pageInfo:u})=>{const{qSize:c}=i.layout.qHyperCube,{contentCellHeight:d,grid:{divider:p}}=iT();Gj(t,a),Wj(t,n,o,d,i);const f=u.rowsOnCurrentPage*d;return js.jsx("div",{style:{...i$,borderColor:p},children:a.grid.map(((n,p)=>{const m=p===a.columnCount-1,h=FT(s[p]),{itemCount:g,estimatedItemSize:v,listValues:b}=r$(n,f,u.rowsOnCurrentPage,m),y=i.isIndentModeEnabled?()=>d:((e,t,n,r,o)=>i=>{const a=r?e[i]:t[i];if(0===i&&(null==a?void 0:a.pageY)>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if((null==a?void 0:a.leafCount)>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n})(n,b,d,m,c.qcy);return js.jsx(UN,{ref:o$(t,p),style:{...a$,flexGrow:m?1:0},height:o,width:r[p],itemCount:g,itemSize:y,layout:"vertical",itemData:{layoutService:i,dataModel:e,list:n,isLeftColumn:!0,isLast:m,itemCount:g,showLastBorder:l,listValues:b,totalDividerIndex:a.totalDividerIndex},itemKey:iF,estimatedItemSize:v,children:t$},h)}))})};var s$=Hn.memo(l$);const u$={overflow:"hidden",willChange:"auto"},c$={...Rt,borderWidth:"0px 0px 0px 1px"},d$=({dataModel:e,topGridRef:t,rowHightCallback:n,width:r,height:o,layoutService:i,topDimensionData:a,showLastBorder:l,getRightGridColumnWidth:s,headersData:u})=>{const{grid:{divider:c},headerCellHeight:d}=iT(),p={...c$,borderColor:c,height:o};Gj(t,a),Wj(t,r,o,d,i);const f=i.size.x*s();return 0===a.rowCount?js.jsx("div",{style:{width:r,height:o,...c$}}):js.jsx("div",{style:p,children:a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:m,listValues:h}=r$(o,f,i.size.x,d),g=(({layoutService:e,headersData:t,topRowIndex:n})=>{var r;const o=t.data[n],i=t.size.x-1,a=e.isIndentModeEnabled&&t.size.x>1&&n+1===t.size.y?null===(r=o[0][i])||void 0===r?void 0:r.dimensionInfoIndex:null==o?void 0:o[i].dimensionInfoIndex;return void 0!==a?e.getDimensionInfo(a):void 0})({layoutService:i,headersData:u,topRowIndex:c}),v=g?FT(g):`empty ${c}`;return js.jsx(UN,{ref:o$(t,c),style:u$,height:n(),width:r,itemCount:p,itemSize:n$({list:o,listValues:h,isLastRow:d,getRightGridColumnWidth:s}),layout:"horizontal",itemData:{layoutService:i,dataModel:e,list:o,isLast:d,itemCount:p,showLastBorder:l,listValues:h,totalDividerIndex:a.totalDividerIndex},itemKey:iF,estimatedItemSize:m,children:t$},v)}))})};var p$=Hn.memo(d$);const f$=({model:e,rect:t,viewService:n,layoutService:r,qPivotDataPages:o,pageInfo:i,translator:a})=>{const{headerCellHeight:l,contentCellHeight:s}=iT(),u=((e,t,n)=>Hn.useMemo((()=>{let{height:r}=e;return t.hasLimitedData&&(r-=22),n&&(r-=41),{...e,height:r}}),[e,t,n]))(t,r,i.shouldShowPagination),{visibleLeftDimensionInfo:c,visibleTopDimensionInfo:d}=((e,t)=>{const{qHyperCube:n}=e.layout,{qNoOfLeftDims:r,qEffectiveInterColumnSortOrder:o,qDimensionInfo:i}=n;return Hn.useMemo((()=>{var e,n,a,l;const s=sN(null!==(e=null===(n=t[0])||void 0===n?void 0:n.qLeft)&&void 0!==e?e:[]),u=sN(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(lN(i,o,0)),visibleTopDimensionInfo:u.map(lN(i,o,r))}}),[i,o,r,t])})(r,o),p=(e=>{const t=Hn.useCallback((async t=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:n,dimensionInfoIndex:r}=t,o=[];o.push({qPath:`/qHyperCubeDef/qDimensions/${r}/qDef/qReverseSort`,qOp:"Replace",qValue:(!n).toString()});try{return await e.applyPatches(o,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(e),{headersData:f,measureData:m,topDimensionData:h,leftDimensionData:g,attrExprInfoIndexes:v,nextPageHandler:b}=tN(o,r,i,c,d),y=iN({model:e,nextPageHandler:b,pageInfo:i,layoutService:r}),{onHorizontalScrollHandler:x,onVerticalScrollHandler:S,verticalScrollableContainerRef:E,leftGridHorizontalScrollableContainerRef:C,dataGridHorizontalScrollableContainerRef:w,dataGridRef:R,leftGridRef:L,topGridRef:k,verticalScrollbarWidth:I,horizontalScrollbarHeight:_,horizontalScrollbarHeightSetter:M,verticalScrollDirection:P,horizontalScrollDirection:A}=(({layoutService:e,viewService:t,pageInfo:n,tableRect:r,mockedRefs:o})=>{var i,a,l,s,u,c;const{theme:d,downloadService:p}=eT(),f=Hn.useRef(null!==(i=null==o?void 0:o.verticalScrollableContainerRef)&&void 0!==i?i:null),m=Hn.useRef(null!==(a=null==o?void 0:o.leftGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),h=Hn.useRef(null!==(l=null==o?void 0:o.dataGridHorizontalScrollableContainerRef)&&void 0!==l?l:null),g=Hn.useRef(null!==(s=null==o?void 0:o.topGridRef)&&void 0!==s?s:[]),v=Hn.useRef(null!==(u=null==o?void 0:o.leftGridRef)&&void 0!==u?u:[]),b=Hn.useRef(null!==(c=null==o?void 0:o.dataGridRef)&&void 0!==c?c:null),y=Hn.useRef(0),x=Hn.useRef(0),S=Hn.useRef(Ye.None),E=Hn.useRef(Ye.None),[C,w]=Hn.useState(0),[R,L]=Hn.useState(0),k=e=>{E.current=aN(e.currentTarget.scrollLeft,y.current),y.current=e.currentTarget.scrollLeft,S.current=aN(e.currentTarget.scrollTop,x.current),x.current=e.currentTarget.scrollTop};Hn.useLayoutEffect((()=>{e.triggerdByExpandOrCollapse||(m.current&&(m.current.scrollLeft=0),h.current&&(h.current.scrollLeft=0),f.current&&(f.current.scrollTop=0))}),[e]),Hn.useLayoutEffect((()=>{if(e.triggerdByExpandOrCollapse){var t,n,r,o,i,a;const e=null!==(t=null===(n=h.current)||void 0===n?void 0:n.scrollLeft)&&void 0!==t?t:0,l=null!==(r=null===(o=f.current)||void 0===o?void 0:o.scrollTop)&&void 0!==r?r:0;null===(i=v.current)||void 0===i||i.forEach((e=>null==e?void 0:e.scrollTo(l))),null===(a=g.current)||void 0===a||a.forEach((t=>null==t?void 0:t.scrollTo(e)))}}),[e]),Hn.useLayoutEffect((()=>{m.current&&(m.current.scrollLeft=0),h.current&&(h.current.scrollLeft=0),f.current&&(f.current.scrollTop=0)}),[n.page]);const I=Hn.useCallback((e=>{if(e)return void L(0);let t=0;if(m.current){const e=m.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}if(h.current){const e=h.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}L(t)}),[L]);return Hn.useLayoutEffect((()=>{if(f.current){const e=f.current,t=e.offsetWidth-e.clientWidth;w(t)}I()}),[I,e,t,r.width,r.height,d,p]),Hn.useLayoutEffect((()=>{(p.isDownloadedAsPDForImage||e.isSnapshot)&&f.current&&h.current&&m.current&&(f.current.scrollTop=t.scrollTop,h.current.scrollLeft=t.scrollLeft,m.current.scrollLeft=t.leftGridScrollLeft)}),[t,f,h,m,p,e]),{onHorizontalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(e.target.dataset.key===`scrollable-container--${Ue.LEFT_GRID}`&&(t.leftGridScrollLeft=e.currentTarget.scrollLeft),e.target.dataset.key===`scrollable-container--${Ue.DATA_GRID}`&&(k(e),null===(n=g.current)||void 0===n||n.forEach((t=>null==t?void 0:t.scrollTo(e.currentTarget.scrollLeft))),null===(r=b.current)||void 0===r||r.scrollTo({scrollLeft:e.currentTarget.scrollLeft}),t.scrollLeft=e.currentTarget.scrollLeft))},onVerticalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(k(e),null===(n=v.current)||void 0===n||n.filter(Boolean).forEach((t=>t.scrollTo(e.currentTarget.scrollTop))),null===(r=b.current)||void 0===r||r.scrollTo({scrollTop:e.currentTarget.scrollTop}),t.scrollTop=e.currentTarget.scrollTop)},verticalScrollableContainerRef:f,leftGridHorizontalScrollableContainerRef:m,dataGridHorizontalScrollableContainerRef:h,dataGridRef:b,leftGridRef:v,topGridRef:g,verticalScrollbarWidth:C,horizontalScrollbarHeight:R,horizontalScrollbarHeightSetter:I,verticalScrollDirection:S,horizontalScrollDirection:E}})({layoutService:r,viewService:n,pageInfo:i,tableRect:u}),{containerHeight:D,headerGridHeight:T,topGridHeight:O,leftGridHeight:N,dataGridHeight:q,allRowsVisible:F}=function({pageInfo:e,headersData:t,topDimensionData:n,tableRect:r,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=iT(),l=e.rowsOnCurrentPage*a,s=i*t.size.y,u=l+s,c=i*Math.max(t.size.y,n.rowCount,1);return{containerHeight:u,headerGridHeight:s,topGridHeight:c,leftGridHeight:Math.min(r.height-s-St,l),dataGridHeight:Math.min(r.height-c-St,l),allRowsVisible:c+St+l+o<=r.height}}({pageInfo:i,headersData:f,topDimensionData:h,tableRect:u,horizontalScrollbarHeight:_}),{leftGridWidth:z,leftGridColumnWidths:j,rightGridWidth:$,totalWidth:B,showLastRightBorder:H,getRightGridColumnWidth:W,getHeaderCellsIconsVisibilityStatus:G,overrideLeftGridWidth:V}=function({layoutService:e,tableWidth:t,headersData:n,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i}){const a=iT(),{measureText:l}=GI(a.header),s=_T({layoutService:e,tableWidth:t,headersData:n}),u=MT({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,leftGridWidth:s.leftGridWidth}),c=s.leftGridWidth+u.rightGridFullWidth+St,d=c<t,p=Hn.useCallback(((e,t,n="")=>{const r=s.leftGridColumnWidths[e];let o=!1,i=!1,a=l(n)+cT;return t&&a+uT<=r&&(i=!0,a+=uT),a+sT<=r&&(o=!0),{shouldShowMenuIcon:o,shouldShowLockIcon:i}}),[s.leftGridColumnWidths,l]);return Hn.useEffect((()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=u.rightGridWidth===u.rightGridFullWidth;i(e&&t)}),[i,s.leftGridWidth,s.leftGridFullWidth,u.rightGridWidth,u.rightGridFullWidth]),{...s,...u,totalWidth:c,showLastRightBorder:d,getHeaderCellsIconsVisibilityStatus:p}}({layoutService:r,tableWidth:u.width,headersData:f,visibleTopDimensionInfo:d,verticalScrollbarWidth:I,horizontalScrollbarHeightSetter:M}),{rootWrapper:U,leftWrapper:Y,rightWrapper:K}=(({tableRect:e,containerHeight:t,headerGridHeight:n,leftGridHeight:r,topGridHeight:o,dataGridHeight:i,allRowsVisible:a,totalWidth:l,leftGridWidth:s,rightGridWidth:u,verticalScrollbarWidth:c,horizontalScrollbarHeight:d})=>{const p=o+i+St,f=a?0:Math.max(0,e.height-p),m=c*(a?0:1),h=d*(a?0:1),g=a?p+d:e.height,v=e.height-h,b=l-s-m,y=e.width-s-m;return{rootWrapper:{scrollable:e,fullSize:{width:l-m,height:t+h},sticky:{width:e.width-m,height:e.height}},leftWrapper:{containers:{scrollable:{width:s,height:g},fullSize:{width:s,height:t},sticky:{width:s,height:v}},headerGrid:{width:-1,height:n},leftGrid:{width:s,height:r-h+f}},rightWrapper:{containers:{scrollable:{width:u+St-m,height:g},fullSize:{width:b,height:t},sticky:{width:b<y?b:y,height:v}},topGrid:{width:u-m,height:o},dataGrid:{width:u-m,height:i-h+f}}}})({tableRect:u,containerHeight:D,headerGridHeight:T,leftGridHeight:N,topGridHeight:O,dataGridHeight:q,allRowsVisible:F,totalWidth:B,leftGridWidth:z,rightGridWidth:$,verticalScrollbarWidth:I,horizontalScrollbarHeight:_}),X=Hn.useCallback((()=>l),[l]),Q=Hn.useCallback((()=>s),[s]);return(()=>{const{downloadService:e}=eT();Hn.useEffect((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),js.jsx(pN,{ref:E,...U.scrollable,onScroll:S,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:Ue.CONTAINER_GRID,children:js.jsx(uN,{...U.fullSize,children:js.jsxs(fN,{...U.sticky,style:{display:"grid",gridTemplateColumns:z?`${Y.containers.scrollable.width}px ${K.containers.scrollable.width}px`:`${K.containers.scrollable.width}px`},children:[Boolean(z)&&js.jsx(pN,{ref:C,...Y.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ue.LEFT_GRID,children:js.jsx(uN,{isLeftGrid:!0,...Y.containers.fullSize,children:js.jsxs(fN,{isLeftGrid:!0,...Y.containers.sticky,children:[js.jsx(Hj,{dataModel:y,tableWidth:u.width,leftGridWidth:z,columnWidths:j,getHeaderCellsIconsVisibilityStatus:G,rowHight:l,height:Y.headerGrid.height,headersData:f,translator:a,changeSortOrder:p,overrideLeftGridWidth:V,layoutService:r}),js.jsx(s$,{dataModel:y,leftGridRef:L,...Y.leftGrid,columnWidths:j,layoutService:r,leftDimensionData:g,showLastBorder:{right:!1,bottom:F},visibleLeftDimensionInfo:c,pageInfo:i})]})})}),js.jsx(pN,{ref:w,...K.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ue.DATA_GRID,children:js.jsx(uN,{...K.containers.fullSize,children:js.jsxs(fN,{...K.containers.sticky,children:[js.jsx(p$,{dataModel:y,topGridRef:k,rowHightCallback:X,...K.topGrid,layoutService:r,topDimensionData:h,showLastBorder:{right:H,bottom:!1},getRightGridColumnWidth:W,headersData:f}),js.jsx(uF,{dataModel:y,dataGridRef:R,rowHightCallback:Q,...K.dataGrid,viewService:n,layoutService:r,measureData:m,leftDimensionData:g,topDimensionData:h,visibleTopDimensionInfo:d,visibleLeftDimensionInfo:c,attrExprInfoIndexes:v.measures,showLastBorder:{right:H,bottom:F},getRightGridColumnWidth:W,pageInfo:i,verticalScrollDirection:P,horizontalScrollDirection:A})]})})})]})})})},m$=e=>{const{layoutService:t,translator:n,pageInfo:r,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=eT(),{layout:u,hasData:c}=t;return js.jsxs(js.Fragment,{children:[c&&js.jsx(f$,{...e}),js.jsx(nT,{translator:n,layoutService:t}),js.jsx(QD,{paginationNeeded:r.shouldShowPagination,handleChangePage:e=>o({page:e}),pageInfo:r,totalRowCount:r.totalRowCount,totalColumnCount:0,totalPages:r.totalPages,keyboard:a,translator:n,theme:l,interactions:s,rect:i,layout:u})]})},h$={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)"},g$=12,v$=14,b$=16,y$=24,x$=3,S$=300,E$=400,C$=600,w$=700,R$={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};nn(h$.GREYSCALE_0,.05),nn(h$.GREEN_PALE,.5),nn(h$.BLUE_PALE,.5),nn(h$.GREEN_PALE,.5),nn(h$.BLUE_PALE,.5),nn(h$.GREEN_PALE,.5),nn(h$.BLUE_PALE,.5);var L$;function k$(){return k$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k$.apply(this,arguments)}nn(h$.GREEN_PALE,.5),nn(h$.BLUE_PALE,.5),nn(h$.GREEN_PALE,.5),nn(h$.BLUE_PALE,.5);var I$,_$=function(e){return Hn.createElement("svg",k$({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),L$||(L$=Hn.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function M$(){return M$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M$.apply(this,arguments)}var P$=function(e){return Hn.createElement("svg",M$({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),I$||(I$=Hn.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 A$({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Wn.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var D$=(e={})=>Wn.createElement(A$,{...e},Wn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},Wn.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Wn.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"}))),T$=(e={})=>Wn.createElement(A$,{...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Wn.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),O$=(e={})=>Wn.createElement(A$,{fontSize:"medium",...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},Wn.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),N$=(e={})=>Wn.createElement(A$,{fontSize:"medium",...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Wn.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"}))),q$=({className:e})=>Wn.createElement(A$,{fontSize:"small",className:e},Wn.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},Wn.createElement("g",{transform:"translate(4.324187, 1.300372)"},Wn.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"}),Wn.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"})))))),F$=(e={})=>Wn.createElement(A$,{...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("rect",{stroke:h$.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const z$={MuiAccordion:{styleOverrides:{root:{backgroundColor:h$.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:h$.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Wn.createElement(_$,{"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 ${h$.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:h$.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${h$.MISC_FOCUS_BORDER}`,borderRadius:x$,backgroundColor:h$.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 ${h$.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:h$.WHITE,color:h$.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:x$},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${h$.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:h$.GREYSCALE_0_15,backgroundColor:h$.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:h$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${h$.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:h$.GREEN_PALE},"&:active":{backgroundColor:h$.GREEN_DARK},"&.Mui-focusVisible":{borderColor:h$.GREEN_PALE,boxShadow:`0 0 0 3px ${SM(h$.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:h$.BLUE_PALE},"&:active":{backgroundColor:h$.BLUE_DARK},"&.Mui-focusVisible":{borderColor:h$.BLUE_PALE,boxShadow:`0 0 0 3px ${SM(h$.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:x$,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:h$.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${h$.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:h$.GREYSCALE_0_15,backgroundColor:h$.GREYSCALE_100_60,"&:active":{backgroundColor:h$.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:h$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${h$.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:h$.PURPLE,"&.Mui-focusVisible":{borderColor:h$.PURPLE,boxShadow:`0 0 0 3px ${SM(h$.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:h$.GREEN,"&.Mui-focusVisible":{borderColor:h$.GREEN,boxShadow:`0 0 0 3px ${SM(h$.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:h$.BLUE,"&.Mui-focusVisible":{borderColor:h$.BLUE,boxShadow:`0 0 0 3px ${SM(h$.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:h$.ORANGE,"&.Mui-focusVisible":{borderColor:h$.ORANGE,boxShadow:`0 0 0 3px ${SM(h$.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:h$.RED,"&.Mui-focusVisible":{borderColor:h$.RED,boxShadow:`0 0 0 3px ${SM(h$.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:h$.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:h$.PURPLE_PALE},"&:active":{backgroundColor:h$.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:h$.PURPLE_PALE,boxShadow:`0 0 0 3px ${SM(h$.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:h$.GREEN_PALE},"&:active":{backgroundColor:h$.GREEN_DARK},"&.Mui-focusVisible":{borderColor:h$.GREEN_PALE,boxShadow:`0 0 0 3px ${SM(h$.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:h$.BLUE_PALE},"&:active":{backgroundColor:h$.BLUE_DARK},"&.Mui-focusVisible":{borderColor:h$.BLUE_PALE,boxShadow:`0 0 0 3px ${SM(h$.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:h$.ORANGE_PALE},"&:active":{backgroundColor:h$.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:h$.ORANGE_PALE,boxShadow:`0 0 0 3px ${SM(h$.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:h$.RED_PALE},"&:active":{backgroundColor:h$.RED_DARK},"&.Mui-focusVisible":{borderColor:h$.RED_PALE,boxShadow:`0 0 0 3px ${SM(h$.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:h$.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:h$.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:x$,boxShadow:`inset 0 0 0 2px ${h$.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Wn.createElement(P$,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:g$,borderRadius:x$,color:h$.TEXT_PRIMARY,backgroundColor:h$.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:h$.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${h$.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:h$.GREYSCALE_0_05,color:h$.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:h$.GREEN,borderColor:h$.GREEN},"&.MuiChip-outlinedInfo":{color:h$.BLUE,borderColor:h$.BLUE},"&.MuiChip-outlinedWarning":{color:h$.ORANGE,borderColor:h$.ORANGE},"&.MuiChip-outlinedError":{color:h$.RED,borderColor:h$.RED}},outlined:{border:`solid 1px ${h$.GREYSCALE_0_15}`,backgroundColor:h$.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:x$,boxShadow:"none",backgroundColor:h$.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:h$.GREEN,borderColor:h$.GREEN},outlinedSecondary:{color:h$.BLUE,borderColor:h$.BLUE},label:{fontFamily:R$.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Wn.createElement(P$,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Wn.createElement(_$,{"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:x$},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:x$,fontSize:v$,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:h$.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${h$.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:h$.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:h$.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:h$.GREYSCALE_0_05}}},popupIndicator:{borderRadius:x$,border:`solid 1px ${h$.GREYSCALE_0_15}`,color:h$.GREYSCALE_0_60,marginRight:0,width:y$,height:y$},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${h$.GREYSCALE_0_15}`},clearIndicator:{borderRadius:x$,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:h$.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:v$}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:g$,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:h$.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:h$.GREYSCALE_25,fontSize:g$,fontFamily:R$.FONT_FAMILY,fontWeight:C$,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:h$.TEXT_PRIMARY},"&.Mui-error":{color:h$.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:h$.TEXT_SECONDARY,content:"'(optional)'",fontWeight:E$,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:h$.TEXT_SECONDARY,content:"'(required)'",fontWeight:E$,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:v$,lineHeight:"16px",backgroundColor:h$.WHITE,borderRadius:x$,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${h$.GREYSCALE_0_05}`,borderColor:h$.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${h$.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${h$.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${h$.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${h$.RED}`,boxShadow:`0px 0px 0px 1px ${h$.RED}, inset 0 2px 0 0 ${h$.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${h$.GREYSCALE_0_10}`,borderColor:h$.GREYSCALE_0_10,backgroundColor:h$.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:h$.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:h$.GREYSCALE_0_15,borderRadius:x$,boxShadow:`inset 0 2px 0 0 ${h$.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Wn.createElement(_$,{...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:h$.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:h$.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:h$.GREYSCALE_0_03},"&:active":{backgroundColor:h$.GREYSCALE_0_10},"&:focus":{backgroundColor:h$.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${h$.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${h$.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:h$.GREYSCALE_0_30,"&:hover":{backgroundColor:h$.GREYSCALE_0_0,borderColor:h$.GREYSCALE_0_15},"& ~svg":{color:h$.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${h$.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:x$}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:h$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${h$.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:h$.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:v$,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:g$,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:g$,fontWeight:C$,color:h$.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:C$}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${h$.GREYSCALE_0_15}, 0px 0px 0px 1px ${h$.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Wn.createElement(O$,null),checkedIcon:Wn.createElement(N$,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:h$.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${h$.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:h$.GREEN_PALE,boxShadow:`0 0 0 3px ${SM(h$.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:h$.BLUE_PALE,boxShadow:`0 0 0 3px ${SM(h$.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:h$.GREYSCALE_0_20}},"&.Mui-disabled":{fill:h$.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Wn.createElement(F$,null),checkedIcon:Wn.createElement(D$,null),indeterminateIcon:Wn.createElement(T$,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:x$,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:h$.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:h$.GREYSCALE_0_55,color:h$.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:h$.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:h$.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:h$.GREYSCALE_0_55,"&:hover":{color:h$.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:h$.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:h$.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:v$,color:h$.TEXT_PRIMARY,lineHeight:"16px",fontWeight:C$},secondary:{fontSize:g$,color:h$.GREYSCALE_45,fontWeight:E$,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:v$,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:h$.GREYSCALE_0_03},"&:active":{backgroundColor:h$.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:v$,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:h$.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:g$,borderBottom:`solid 1px ${h$.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:v$,color:h$.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:h$.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:h$.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:h$.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:h$.RED}}},"&.Mui-focusVisible":{backgroundColor:h$.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:h$.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:h$.GREEN,height:"24px","&.Mui-disabled":{color:h$.GREYSCALE_0_15}},rail:{backgroundColor:h$.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${h$.GREYSCALE_0_05}`,borderRadius:x$,boxShadow:`inset 0px 0px 0px 1px ${h$.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${h$.GREYSCALE_0_05}`,borderRadius:x$},thumb:{height:"16px",width:"16px",borderRadius:x$,backgroundColor:h$.WHITE,boxShadow:`0px 1px 2px 0px ${h$.GREYSCALE_0_15}, 0px 0px 0px 1px ${h$.GREYSCALE_0_05}`,"&:hover":{borderRadius:x$,boxShadow:`0 2px 4px 0 ${h$.GREYSCALE_0_30}, 0 0 0 1px ${h$.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${h$.GREYSCALE_0_15}, 0 0 0 1px ${h$.GREYSCALE_0_06}, 0 0 0 2px ${h$.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${h$.GREYSCALE_0_15}, 0 0 0 1px ${h$.GREYSCALE_0_06}, 0 0 0 2px ${h$.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:h$.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:h$.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:h$.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:h$.GREYSCALE_0_15},markLabel:{color:h$.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:h$.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:h$.WHITE,color:h$.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:h$.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:h$.GREEN_PALE,boxShadow:`0 0 0 3px ${SM(h$.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:h$.BLUE_PALE,boxShadow:`0 0 0 3px ${SM(h$.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:h$.GREYSCALE_0_15,borderRadius:x$},thumb:{height:"16px",width:"16px",borderRadius:x$,backgroundColor:h$.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:v$,fontWeight:C$,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${h$.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${h$.MISC_FOCUS_BORDER}`,backgroundColor:h$.GREYSCALE_0_03,borderRadius:x$},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:h$.GREYSCALE_25,"&.Mui-selected":{color:h$.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:v$,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},scrollableY:{marginBlock:"4px"},scrollButtons:{borderRadius:x$,"&:hover":{backgroundColor:`${h$.GREYSCALE_0_03}`},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{"& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"3px"},"& .MuiTabs-scrollButtons":{marginBlock:"-1px",borderTop:`1px solid ${h$.GREYSCALE_0_15}`,borderBottom:`1px solid ${h$.GREYSCALE_0_15}`},"& .MuiTab-root":{fontWeight:"normal",borderRadius:x$,marginBlock:"4px","&.Mui-selected":{backgroundColor:h$.GREYSCALE_0_05},"&:hover":{backgroundColor:`${h$.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${h$.GREYSCALE_85}`,borderRight:`1px solid ${h$.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:C$,backgroundColor:h$.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:h$.GREYSCALE_98,borderBottom:`1px solid ${h$.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${h$.GREYSCALE_85}`,borderTop:`1px solid ${h$.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:h$.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:h$.GREYSCALE_0_05,"&:hover":{backgroundColor:h$.GREYSCALE_0_03}},"&&:hover":{backgroundColor:h$.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Wn.createElement(q$,{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 ${h$.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:v$,borderRadius:x$,padding:"7px 16px",border:`1px solid ${h$.GREYSCALE_0_15}`,backgroundColor:h$.GREYSCALE_100_60,color:h$.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:h$.GREYSCALE_0_10,border:`1px solid ${h$.GREYSCALE_0_30}`},"&:hover":{backgroundColor:h$.GREYSCALE_0_03,border:`1px solid ${h$.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:h$.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${h$.MISC_FOCUS_BORDER}`,border:`1px solid ${h$.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:h$.GREYSCALE_25,backgroundColor:h$.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:h$.GREYSCALE_0_10,border:`1px solid ${h$.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:g$,height:24,width:24,padding:7},sizeLarge:{fontSize:b$,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:v$,borderRadius:x$}}},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:h$.GREYSCALE_20},tooltip:{backgroundColor:h$.GREYSCALE_20,fontSize:g$,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var j$=e=>z$;const $$={mode:"light",primary:{ultraLight:h$.GREEN_ULTRA_LIGHT,light:h$.GREEN_PALE,main:h$.GREEN,dark:h$.GREEN_DARK,extraDark:h$.GREEN_EXTRA_DARK,contrastText:h$.WHITE},secondary:{ultraLight:h$.BLUE_ULTRA_LIGHT,light:h$.BLUE_PALE,main:h$.BLUE,dark:h$.BLUE_DARK,extraDark:h$.BLUE_EXTRA_DARK,contrastText:h$.WHITE},error:{ultraLight:h$.RED_ULTRA_LIGHT,light:h$.RED_PALE,main:h$.RED,dark:h$.RED_DARK,extraDark:h$.RED_EXTRA_DARK,contrastText:h$.WHITE},warning:{ultraLight:h$.ORANGE_ULTRA_LIGHT,light:h$.ORANGE_PALE,main:h$.ORANGE,dark:h$.ORANGE_DARK,extraDark:h$.ORANGE_EXTRA_DARK,contrastText:h$.WHITE},success:{ultraLight:h$.GREEN_ULTRA_LIGHT,light:h$.GREEN_PALE,main:h$.GREEN,dark:h$.GREEN_DARK,extraDark:h$.GREEN_EXTRA_DARK,contrastText:h$.WHITE},info:{ultraLight:h$.BLUE_ULTRA_LIGHT,light:h$.BLUE_PALE,main:h$.BLUE,dark:h$.BLUE_DARK,extraDark:h$.BLUE_EXTRA_DARK,contrastText:h$.WHITE},text:{primary:h$.TEXT_PRIMARY,secondary:h$.TEXT_SECONDARY,disabled:h$.GREYSCALE_0_30},action:{hover:h$.GREYSCALE_0_03,hoverOpacity:.03,selected:h$.GREYSCALE_0_05,selectedOpacity:.05,focus:h$.MISC_FOCUS_BORDER},amethyst:{ultraLight:h$.WHITE,main:h$.PURPLE,light:h$.PURPLE_PALE,dark:h$.PURPLE_DARK,extraDark:h$.GREYSCALE_0_0,contrastText:h$.WHITE},background:{paper:h$.WHITE,default:h$.GREYSCALE_95},divider:h$.GREYSCALE_0_15},B$=e=>$$,H$=(e="light")=>({components:j$(),palette:B$(),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:v$,fontWeightLight:S$,fontWeightRegular:E$,fontWeightMedium:C$,fontWeightBold:w$,htmlFontSize:v$,fontFamily:R$.FONT_FAMILY,button:{fontWeight:C$,fontSize:v$,textTransform:"none"},body1:{fontSize:b$,lineHeight:"24px"},body2:{fontSize:v$,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:y$,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:b$,fontWeight:C$,lineHeight:"16px"},h6:{fontSize:v$,fontWeight:C$,lineHeight:"16px"},caption:{color:h$.TEXT_SECONDARY},subtitle1:{fontSize:v$,color:h$.TEXT_SECONDARY},subtitle2:{fontSize:g$,color:h$.TEXT_SECONDARY}},shape:{borderRadius:x$}});const W$=(e,t)=>{const{selections:n,styleService:r,app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d}=t,p=function(e){var t;const n=H$();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),wP({...n,direction:e})}("ltr");e.render(js.jsx(Wn.StrictMode,{children:js.jsx(aA,{theme:p,children:js.jsx(tT,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d,children:js.jsx(Iq,{selections:n,updatePageInfo:t.updatePageInfo,children:js.jsx(aT,{styleService:r,children:js.jsx(m$,{...t})})})})})}))},G$={darker:.15,brighter:.3,opacity:.03},V$={darker:.3,brighter:.5,opacity:.05};var U$,Y$,K$,X$;!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"}(U$||(U$={})),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"}(Y$||(Y$={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(K$||(K$={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(X$||(X$={}));const Q$=e=>e?`${parseInt(e,10)}px`:void 0,J$=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?Et.Transparent:n}},Z$=(e,t)=>+(parseInt(e,10)*xt*t+8).toFixed(2),eB=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?bt:"normal",tB=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",nB=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none";function rB(t,n){return e.useMemo((()=>t),n)}const oB={},iB=t=>{const n=e.useMemo((()=>({current:oB})),[]);return n.current=n.current===oB?t:n.current,n},aB=({fontStyle:e,fontWeight:t,fontSize:n,fontFamily:r})=>t?`${e} ${t} ${n} ${r}`:`${e} ${n} ${r}`,lB=(t,n,r)=>{var o,i;const a=null!==(o=null==r?void 0:r.qHyperCubeDef.qShowTotalsAbove)&&void 0!==o&&o,l=null!==(i=null==r?void 0:r.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==i&&i;return e.useMemo((()=>(({layout:e,flags:t,qShowTotalsAbove:n,qAlwaysFullyExpanded:r})=>{var o,i,a;const{qHyperCube:l,nullValueRepresentation:s,snapshotData:u}=e,{qNoOfLeftDims:c,qEffectiveInterColumnSortOrder:d,qMeasureInfo:p,qDimensionInfo:f}=l,m=!!u,h=null!==(o=null==u||null===(i=u.content)||void 0===i?void 0:i.rowsPerPage)&&void 0!==o?o:15e3,g={x:Math.min(e.qHyperCube.qSize.qcx,yt),y:Math.min(e.qHyperCube.qSize.qcy,h)},v=d.slice(0,c),b=e=>v.some((t=>t===e)),y=b(gT),x=new Map(d.map((e=>{var t;return[null!==(t=f[e])&&void 0!==t?t:gT,e]}))),S=p.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==s?void 0:s.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(y)return 0;const n=e%S.length;return t?n:p.findIndex((e=>e===S[n]))},getDimensionInfo:e=>e===gT?gT:f[e],getDimensionInfoIndex:e=>{var t;return null!==(t=x.get(e))&&void 0!==t?t:-1},size:g,isSnapshot:m,hasLimitedData:!m&&g.x<e.qHyperCube.qSize.qcx,hasData:g.x>0&&g.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:n,hasPseudoDimOnLeft:y,leftDimensionInfoIndexes:v,isLeftDimension:b,isFullyExpanded:r,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:S,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),indentModeColumnWidth:null!==(a=e.qHyperCube.indentModeColumnWidth)&&void 0!==a?a:{type:nt.Auto,pixels:tt.PixelsDefault,percentage:tt.PercentageDefault}}})({layout:t,flags:n,qShowTotalsAbove:a,qAlwaysFullyExpanded:l})),[t,a,l,n])},sB=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=iB(e);return t.current=e,t})(rN(o));return _k((async()=>{var t;const{qHyperCube:o}=i,{maxNumberOfVisibleRows:u,maxNumberOfVisibleColumns:c}=s.current;var d,p;if(a)return null!==(d=null===(p=i.snapshotData)||void 0===p||null===(p=p.content)||void 0===p?void 0:p.qPivotDataPages)&&void 0!==d?d:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,n,r)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=r||t.gridRowStartIndex+t.gridHeight>=n))(l,n,u,c)||((e,t,n,r)=>{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(r,l.qcx)||c<Math.min(n,l.qcy)})(i,r,u,c))){const t=((e,t,n,r,o,i)=>{const a=r.page*r.rowsPerPage,l=Math.min(a+r.rowsPerPage,n.qcy),s=Math.min(yt,n.qcx);if(n.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,n=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),n>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,n,i.qHyperCube.qSize,r,u,c);return t?e.getHyperCubePivotData(hT,oN(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,n,r.page,r.rowsPerPage,s,l])},uB=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),cB=(e,t,n=15e3)=>({rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:uB({rowsPerPage:n,totalRowCount:e,page:t})}),dB=15,pB=({layoutService:t,viewService:n,rect:r,model:o,pageInfo:i})=>{var a;return e.onTakeSnapshot((async e=>{if(!e.snapshotData||!o||e.snapshotData.content)return e;if(null!=o&&o.getHyperCubePivotData){const{scrollTop:t,scrollLeft:a,leftGridScrollLeft:l}=n,s=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,l=t.page*t.rowsPerPage,s=Math.max(r-dB,0),u=Math.max(l+o-dB,l,0);if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=rN(n);return{qLeft:s,qTop:u,qWidth:e+30,qHeight:t+30}}return{qLeft:s,qTop:u,qWidth:i+30,qHeight:a+30}})(n,i,r),u=oN(s),c={qLeft:0,qTop:i.page*i.rowsPerPage,qWidth:1,qHeight:1};e.snapshotData.content={qPivotDataPages:await o.getHyperCubePivotData(hT,[c,...u]),scrollTop:t,scrollLeft:a,leftGridScrollLeft:l,page:i.page,rowsPerPage:i.rowsPerPage},e.snapshotData.object.size.w=r.width,e.snapshotData.object.size.h=r.height}return e})),e.useImperativeHandle((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,renderPage:t.page}))(n,i)})),[n]),null!==(a=t.layout.snapshotData)&&void 0!==a&&a.content?{left:r.left,top:r.top,width:t.layout.snapshotData.object.size.w,height:t.layout.snapshotData.object.size.h}:r};var fB={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 mB=()=>{const t=e.useTranslator(),n=t.language();return e.useMemo((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(fB).forEach((t=>{e.add(fB[t])}))}}(t)),[t]),{translator:t,language:n}},hB=t=>{const{flags:n}=t,r=e.useElement(),o=(t=>{const n=e.useMemo((()=>VI(t)),[t]);return e.useEffect((()=>()=>n.unmount()),[n]),n})(r),i=e.useStaleLayout(),a=e.useModel(),l=e.useApp(),s=e.useEmbed(),u=e.useKeyboard(),c=e.useInteractionState(),d=(t=>{const{viewState:n}=e.useOptions(),r=iB(new Set),o=void 0!==n&&t.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),{promise:i,resolve:a}=e.useMemo((()=>gq()),[]),l=rB((e=>{r.current.add(e)}),[r]),s=rB(Ce((async()=>{await Promise.all(r.current),a()}),1e3),[a,r]);return e.usePromise((async()=>{o&&await i}),[i,o]),e.useMemo((()=>({viewState:n,isDownloadedAsPDForImage:o,notifyIsDoneRendering:s,waitForPromise:l})),[s,o,n,l])})(t),[p,f]=((e,t)=>_k((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(a,i),m=lB(i,n,p),h=e.useSelections(),g=Ik(i,r),{translator:v,language:b}=mB(),{pageInfo:y,updatePageInfo:x}=((t,n)=>{const{size:r,layout:{qHyperCube:{qSize:o}}}=t,i=n.isDownloadedAsPDForImage||t.isSnapshot,a=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(t),[l,s]=e.useState((()=>{const e=((e,t)=>{var n,r,o,i;return t.isDownloadedAsPDForImage?null!==(n=null===(r=t.viewState)||void 0===r?void 0:r.renderPage)&&void 0!==n?n: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})(t,n);return{page:e,shouldShowPagination:o.qcy>r.y&&!i,...cB(o.qcy,e,a)}}));return e.useEffect((()=>{s((e=>({...e,...cB(t.layout.qHyperCube.qSize.qcy,e.page,a),shouldShowPagination:t.layout.qHyperCube.qSize.qcy>t.size.y&&!i})))}),[t.layout.qHyperCube.qSize.qcy,t.size.y,s,i,a]),e.useEffect((()=>{const{page:e,totalPages:t}=l;if(e+1>t){const e=t-1,n=uB({...l,page:e});s({...l,page:e,rowsOnCurrentPage:n})}}),[l]),{pageInfo:l,updatePageInfo:e=>s({...l,...e,rowsOnCurrentPage:uB({...l,...e})})}})(m,d),S=((t,n,r)=>e.useMemo((()=>((e,t)=>{var n,r,o,i,a,l;if(e.isDownloadedAsPDForImage){var s,u,c;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(s=null==t?void 0:t.scrollTop)&&void 0!==s?s:0,scrollLeft:null!==(u=null==t?void 0:t.scrollLeft)&&void 0!==u?u:0,leftGridScrollLeft:null!==(c=null==t?void 0:t.leftGridScrollLeft)&&void 0!==c?c:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.scrollTop)&&void 0!==n?n: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}})(r,n.snapshotData)),[r,t.page,n.snapshotData]))(y,i,d),E=pB({rect:e.useRect(),layoutService:m,viewService:S,model:a,pageInfo:y}),[C,w]=sB({model:a,layoutService:m,viewService:S,pageInfo:y,rect:E}),R=e.useMemo((()=>((e,t,n)=>{var r,o,i,a,l,s,u,c,d,p,f,m,h,g,v,b,y,x,S,E,C,w,R,L,k,I,_,M,P,A,D,T,O,N,q,F,z,j,$,B,H,W,G,V,U,Y,K;const X=null===(r=t.layout.components)||void 0===r?void 0:r.find((e=>"theme"===e.key)),Q=null==X?void 0:X.header,J=null==X?void 0:X.dimensionValues,Z=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,ne=null==X?void 0:X.nullValues,re=null==X?void 0:X.grid,oe=(t,n,r)=>e.getStyle(t,n,r),ie=+(null!==(o=null!==(i=null==re?void 0:re[U$.LineClamp])&&void 0!==i?i:oe(Y$.Grid,K$.Grid,X$.LineClamp))&&void 0!==o?o:1),ae=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==re?void 0:re[U$.ColumnLineClamp])&&void 0!==l?l:oe(Y$.Grid,K$.Grid,X$.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=J$(e,null==Q?void 0:Q[U$.Background]))&&void 0!==u?u:oe(Y$.Dimension,K$.LabelName,X$.BackgroundColor))&&void 0!==s?s:Et.Transparent,se={header:{fontSize:null!==(c=null!==(d=Q$(null==Q?void 0:Q[U$.FontSize]))&&void 0!==d?d:oe(Y$.Dimension,K$.LabelName,X$.FontSize))&&void 0!==c?c:gt,fontFamily:null!==(p=null!==(f=null==Q?void 0:Q[U$.FontFamily])&&void 0!==f?f:oe(Y$.Dimension,K$.LabelName,X$.FontFamily))&&void 0!==p?p:vt,fontWeight:eB(null==Q?void 0:Q[U$.FontStyle],bt),fontStyle:tB(null==Q?void 0:Q[U$.FontStyle]),textDecoration:nB(null==Q?void 0:Q[U$.FontStyle]),color:null!==(m=null!==(h=J$(e,null==Q?void 0:Q[U$.FontColor]))&&void 0!==h?h:oe(Y$.Dimension,K$.LabelName,X$.Color))&&void 0!==m?m:bL.TEXT,background:le,hoverBackground:bk(le,G$),activeBackground:bk(le,V$)},dimensionValues:{fontSize:null!==(g=null!==(v=Q$(null==J?void 0:J[U$.FontSize]))&&void 0!==v?v:oe(Y$.Dimension,K$.LabelValue,X$.FontSize))&&void 0!==g?g:gt,fontFamily:null!==(b=null!==(y=null==J?void 0:J[U$.FontFamily])&&void 0!==y?y:oe(Y$.Dimension,K$.LabelValue,X$.FontFamily))&&void 0!==b?b:vt,fontWeight:eB(null==J?void 0:J[U$.FontStyle],void 0),fontStyle:tB(null==J?void 0:J[U$.FontStyle]),textDecoration:nB(null==J?void 0:J[U$.FontStyle]),color:null!==(x=null!==(S=J$(e,null==J?void 0:J[U$.FontColor]))&&void 0!==S?S:oe(Y$.Dimension,K$.LabelValue,X$.Color))&&void 0!==x?x:bL.TEXT,background:null!==(E=null!==(C=J$(e,null==J?void 0:J[U$.Background]))&&void 0!==C?C:oe(Y$.Dimension,K$.LabelValue,X$.BackgroundColor))&&void 0!==E?E:Et.Transparent},measureValues:{fontSize:null!==(w=null!==(R=Q$(null==Z?void 0:Z[U$.FontSize]))&&void 0!==R?R:oe(Y$.Measure,K$.LabelValue,X$.FontSize))&&void 0!==w?w:gt,fontFamily:null!==(L=null!==(k=null==Z?void 0:Z[U$.FontFamily])&&void 0!==k?k:oe(Y$.Measure,K$.LabelValue,X$.FontFamily))&&void 0!==L?L:vt,fontWeight:eB(null==Z?void 0:Z[U$.FontStyle],"normal"),fontStyle:tB(null==Z?void 0:Z[U$.FontStyle]),textDecoration:nB(null==Z?void 0:Z[U$.FontStyle]),color:null!==(I=null!==(_=J$(e,null==Z?void 0:Z[U$.FontColor]))&&void 0!==_?_:oe(Y$.Measure,K$.LabelValue,X$.Color))&&void 0!==I?I:Et.FontSecondary,background:null!==(M=null!==(P=J$(e,null==Z?void 0:Z[U$.Background]))&&void 0!==P?P:oe(Y$.Measure,K$.LabelValue,X$.BackgroundColor))&&void 0!==M?M:Et.Transparent},measureLabels:{fontWeight:eB(null==ee?void 0:ee[U$.FontStyle],"normal"),fontStyle:tB(null==ee?void 0:ee[U$.FontStyle]),textDecoration:nB(null==ee?void 0:ee[U$.FontStyle]),color:null!==(A=null!==(D=J$(e,null==ee?void 0:ee[U$.FontColor]))&&void 0!==D?D:oe(Y$.Measure,K$.LabelName,X$.Color))&&void 0!==A?A:Et.FontSecondary,background:null!==(T=null!==(O=J$(e,null==ee?void 0:ee[U$.Background]))&&void 0!==O?O:oe(Y$.Measure,K$.LabelName,X$.BackgroundColor))&&void 0!==T?T:Et.Transparent},totalValues:{fontWeight:eB(null==te?void 0:te[U$.FontStyle],bt),fontStyle:tB(null==te?void 0:te[U$.FontStyle]),textDecoration:nB(null==te?void 0:te[U$.FontStyle]),color:null!==(N=null!==(q=J$(e,null==te?void 0:te[U$.FontColor]))&&void 0!==q?q:oe(Y$.Total,K$.LabelValue,X$.Color))&&void 0!==N?N:bL.TEXT,background:null!==(F=null!==(z=J$(e,null==te?void 0:te[U$.Background]))&&void 0!==z?z:oe(Y$.Total,K$.LabelValue,X$.BackgroundColor))&&void 0!==F?F:Et.Transparent},nullValues:{fontWeight:eB(null==ne?void 0:ne[U$.FontStyle],"normal"),fontStyle:tB(null==ne?void 0:ne[U$.FontStyle]),textDecoration:nB(null==ne?void 0:ne[U$.FontStyle]),color:null!==(j=null!==($=J$(e,null==ne?void 0:ne[U$.FontColor]))&&void 0!==$?$:oe(Y$.Null,K$.LabelValue,X$.Color))&&void 0!==j?j:bL.TEXT,background:null!==(B=null!==(H=J$(e,null==ne?void 0:ne[U$.Background]))&&void 0!==H?H:oe(Y$.Null,K$.LabelValue,X$.BackgroundColor))&&void 0!==B?B:Et.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(W=null!==(G=J$(e,null==re?void 0:re[U$.Border]))&&void 0!==G?G:oe(Y$.Grid,K$.Grid,X$.BorderColor))&&void 0!==W?W:Et.DividerLight,divider:null!==(V=null!==(U=J$(e,null==re?void 0:re[U$.Divider]))&&void 0!==U?U:oe(Y$.Grid,K$.Divider,X$.BorderColor))&&void 0!==V?V:Et.DividerDark,background:null!==(Y=null!==(K=J$(e,null==re?void 0:re[U$.Background]))&&void 0!==K?K:oe(Y$.Grid,K$.Grid,X$.BackgroundColor))&&void 0!==Y?Y:Et.Transparent}};return se.headerCellHeight=Math.max(Z$(se.header.fontSize,ae),Z$(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(Z$(se.measureValues.fontSize,ie),Z$(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=Z$(se.dimensionValues.fontSize,1),se})(g,m,n)),[g,m,n]),L=(t=>e.useMemo((()=>[...new Set([aB(t.header),aB(t.dimensionValues),aB({...t.dimensionValues,...t.measureLabels}),aB({...t.dimensionValues,...t.nullValues}),aB({...t.dimensionValues,...t.totalValues}),aB(t.measureValues),aB({...t.measureValues,...t.nullValues}),aB({...t.measureValues,...t.totalValues})])]),[t]))(R),k=(t=>{const[n,r]=e.usePromise((()=>Promise.all(t.map((e=>document.fonts.load(e))))),[t]);return r?(console.warn("Failed to load font:",r),!0):!!n})(L);n.isEnabled("CLIENT_IM6278_PIVOT_COPYCELL")&&ZI(),e.useEffect((()=>{!w&&a&&(null==E?void 0:E.width)&&(null==E?void 0:E.height)&&h&&S&&m&&R&&!!C&&!f&&k&&W$(o,{model:a,app:l,rect:E,selections:h,viewService:S,layoutService:m,downloadService:d,qPivotDataPages:C,styleService:R,translator:v,pageInfo:y,updatePageInfo:x,interactions:c,embed:s,keyboard:u,theme:g,env:t})}),[a,l,E,null==E?void 0:E.width,null==E?void 0:E.height,c,h,S,m,d,w,C,R,o,k,v,b,y,x,p,f,s,u,g,t])},gB={version:"3.7.1",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:[]};return function(e){return{qae:{properties:{initial:gB},data:Pe(e)},ext:Kt(e),component(){hB(e)}}}}));
|
|
201
|
+
`),IF.rippleVisible,OF,550,(({theme:e})=>e.transitions.easing.easeInOut),IF.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),IF.child,IF.childLeaving,NF,550,(({theme:e})=>e.transitions.easing.easeInOut),IF.childPulsate,qF,(({theme:e})=>e.transitions.easing.easeInOut)),jF=Hn.forwardRef((function(e,t){const n=kP({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=rn(n,_F),[l,s]=Hn.useState([]),u=Hn.useRef(0),c=Hn.useRef(null);Hn.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=Hn.useRef(!1),p=al(),f=Hn.useRef(null),m=Hn.useRef(null),h=Hn.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,js.jsx(zF,{classes:{ripple:Vs(o.ripple,IF.ripple),rippleVisible:Vs(o.rippleVisible,IF.rippleVisible),ripplePulsate:Vs(o.ripplePulsate,IF.ripplePulsate),child:Vs(o.child,IF.child),childLeaving:Vs(o.childLeaving,IF.childLeaving),childPulsate:Vs(o.childPulsate,IF.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=Hn.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h,p]),v=Hn.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=Hn.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{b(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return Hn.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),js.jsx(FF,Xt({className:Vs(IF.root,o.root,i),ref:m},a,{children:js.jsx(sE,{component:null,exit:!0,children:l})}))}));var $F=jF;function BF(e){return El("MuiButtonBase",e)}var HF=Cl("MuiButtonBase",["root","disabled","focusVisible"]);const WF=["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"],GF=oA("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"},[`&.${HF.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),VF=Hn.forwardRef((function(e,t){const n=kP({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:C,onTouchEnd:w,onTouchMove:R,onTouchStart:L,tabIndex:k=0,TouchRippleProps:I,touchRippleRef:_,type:M}=n,P=rn(n,WF),A=Hn.useRef(null),D=Hn.useRef(null),T=nl(D,_),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:F}=hl(),[z,j]=Hn.useState(!1);s&&z&&j(!1),Hn.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),A.current.focus()}})),[]);const[$,B]=Hn.useState(!1);Hn.useEffect((()=>{B(!0)}),[]);const H=$&&!u&&!s;function W(e,t,n=c){return tl((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}Hn.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const G=W("start",S),V=W("stop",h),U=W("stop",g),Y=W("stop",C),K=W("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=W("start",L),Q=W("stop",w),J=W("stop",R),Z=W("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),ee=tl((e=>{A.current||(A.current=e.currentTarget),N(e),!0===O.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=A.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=Hn.useRef(!1),re=tl((e=>{d&&!ne.current&&z&&D.current&&" "===e.key&&(ne.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),oe=tl((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(P.href||P.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===M?"button":M,ae.disabled=s):(P.href||P.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=nl(t,F,A),se=Xt({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:k,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=bl({root:["root",t&&"disabled",n&&"focusVisible"]},BF,o);return n&&r&&(i.root+=` ${r}`),i})(se);return js.jsxs(GF,Xt({as:ie,className:Vs(ue.root,a),ownerState:se,onBlur:Z,onClick:m,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:G,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:k,type:M},ae,P,{children:[i,H?js.jsx($F,Xt({ref:T,center:o},I)):null]}))}));var UF=VF;const YF=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function KF(e){const t=[],n=[];return Array.from(e.querySelectorAll(YF)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function XF(){return!0}function QF(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=KF,isEnabled:a=XF,open:l}=e,s=Hn.useRef(!1),u=Hn.useRef(null),c=Hn.useRef(null),d=Hn.useRef(null),p=Hn.useRef(null),f=Hn.useRef(!1),m=Hn.useRef(null),h=nl(t.ref,m),g=Hn.useRef(null);Hn.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),Hn.useEffect((()=>{if(!l||!m.current)return;const e=Qa(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),Hn.useEffect((()=>{if(!l||!m.current)return;const e=Qa(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return js.jsxs(Hn.Fragment,{children:[js.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),Hn.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),js.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const JF=Hn.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=Hn.useState(null),l=nl(Hn.isValidElement(n)?n.ref:null,t);if(el((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),el((()=>{if(i&&!o)return Za(t,i),()=>{Za(t,null)}}),[t,i,o]),o){if(Hn.isValidElement(n)){const e={ref:l};return Hn.cloneElement(n,e)}return js.jsx(Hn.Fragment,{children:n})}return js.jsx(Hn.Fragment,{children:i?GS.createPortal(n,i):i})}));function ZF(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ez(e){return parseInt(Ja(e).getComputedStyle(e).paddingRight,10)||0}function tz(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&ZF(e,o)}))}function nz(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function rz(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Qa(e);return t.body===e?Ja(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=gl(Qa(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${ez(r)+e}px`;const t=Qa(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${ez(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Qa(r).body;else{const t=r.parentElement,n=Ja(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const oz=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&ZF(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);tz(t,e.mount,e.modalRef,r,!0);const o=nz(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=nz(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=rz(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=nz(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&ZF(e.modalRef,t),tz(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&ZF(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function iz(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=oz,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=Hn.useRef({}),f=Hn.useRef(null),m=Hn.useRef(null),h=nl(m,d),[g,v]=Hn.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=tl((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Qa(f.current).body;o.add(x(),e),m.current&&S()})),C=Hn.useCallback((()=>o.isTopModal(x())),[o]),w=tl((e=>{f.current=e,e&&(c&&C()?S():m.current&&ZF(m.current,y))})),R=Hn.useCallback((()=>{o.remove(x(),y)}),[y,o]);Hn.useEffect((()=>()=>{R()}),[R]),Hn.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},k=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=wF(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Xt({},n,t);return Xt({role:"presentation"},r,{onKeyDown:L(r),ref:h})},getBackdropProps:(e={})=>Xt({"aria-hidden":!0},e,{onClick:k(e),open:c}),getTransitionProps:()=>({onEnter:Ka((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Ka((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:w,isTopModal:C,exited:g,hasTransition:b}}const az=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],lz={entering:{opacity:1},entered:{opacity:1}},sz=Hn.forwardRef((function(e,t){const n=LP(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:v=nE}=e,b=rn(e,az),y=Hn.useRef(null),x=nl(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),C=S(((e,t)=>{vF(e);const r=bF({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),w=S(c),R=S(m),L=S((e=>{const t=bF({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),k=S(f);return js.jsx(v,Xt({appear:i,in:s,nodeRef:y,onEnter:C,onEntered:w,onEntering:E,onExit:L,onExited:k,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>Hn.cloneElement(a,Xt({style:Xt({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},lz[e],h,a.props.style),ref:x},t))}))}));var uz=sz;function cz(e){return El("MuiBackdrop",e)}Cl("MuiBackdrop",["root","invisible"]);const dz=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],pz=oA("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Xt({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"}))),fz=Hn.forwardRef((function(e,t){var n,r,o;const i=kP({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=uz,transitionDuration:g}=i,v=rn(i,dz),b=Xt({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return bl({root:["root",n&&"invisible"]},cz,t)})(b),x=null!=(n=f.root)?n:c.root;return js.jsx(h,Xt({in:p,timeout:g},v,{children:js.jsx(pz,Xt({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:Vs(y.root,l,null==x?void 0:x.className),ownerState:Xt({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var mz=fz;var hz=Cl("MuiBox",["root"]);const gz=wP(),vz=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=o_("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(aM);return Hn.forwardRef((function(e,a){const l=fM(n),s=gM(e),{className:u,component:c="div"}=s,d=rn(s,bM);return js.jsx(i,Xt({as:c,ref:a,className:Vs(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:e_,defaultTheme:gz,defaultClassName:hz.root,generateClassName:xl.generate});var bz=vz;function yz(e){return El("MuiModal",e)}Cl("MuiModal",["root","hidden","backdrop"]);const xz=["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"],Sz=oA("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Xt({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Ez=oA(mz,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Cz=Hn.forwardRef((function(e,t){var n,r,o,i,a,l;const s=kP({name:"MuiModal",props:e}),{BackdropComponent:u=Ez,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:w=!1,keepMounted:R=!1,onBackdropClick:L,open:k,slotProps:I,slots:_}=s,M=rn(s,xz),P=Xt({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:w,keepMounted:R}),{getRootProps:A,getBackdropProps:D,getTransitionProps:T,portalRef:O,isTopModal:N,exited:q,hasTransition:F}=iz(Xt({},P,{rootRef:t})),z=Xt({},P,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return bl({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},yz,r)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(r=null==_?void 0:_.root)?r:g.Root)?n:Sz,H=null!=(o=null!=(i=null==_?void 0:_.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==I?void 0:I.root)?a:v.root,G=null!=(l=null==I?void 0:I.backdrop)?l:v.backdrop,V=kF({elementType:B,externalSlotProps:W,externalForwardedProps:M,getSlotProps:A,additionalProps:{ref:t,as:h},ownerState:z,className:Vs(d,null==W?void 0:W.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=kF({elementType:H,externalSlotProps:G,additionalProps:c,getSlotProps:e=>D(Xt({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Vs(null==G?void 0:G.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||k||F&&!q?js.jsx(JF,{ref:O,container:m,disablePortal:S,children:js.jsxs(B,Xt({},V,{children:[!w&&u?js.jsx(H,Xt({},U)):null,js.jsx(QF,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:k,children:Hn.cloneElement(f,$)})]}))}):null}));var wz=Cz;var Rz=Cl("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Lz=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function kz(e){return`scale(${e}, ${e**2})`}const Iz={entering:{opacity:1,transform:kz(1)},entered:{opacity:1,transform:"none"}},_z="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Mz=Hn.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=nE}=e,g=rn(e,Lz),v=al(),b=Hn.useRef(),y=LP(),x=Hn.useRef(null),S=nl(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(u),w=E(((e,t)=>{vF(e);const{duration:n,delay:r,easing:o}=bF({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:_z?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),L=E(p),k=E((e=>{const{duration:t,delay:n,easing:r}=bF({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:_z?o:.666*o,delay:_z?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=kz(.75),c&&c(e)})),I=E(d);return js.jsx(h,Xt({appear:r,in:a,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:k,onExited:I,onExiting:L,addEndListener:e=>{"auto"===m&&v.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>Hn.cloneElement(o,Xt({style:Xt({opacity:0,transform:kz(.75),visibility:"exited"!==e||a?void 0:"hidden"},Iz[e],f,o.props.style),ref:S},t))}))}));Mz.muiSupportAuto=!0;var Pz=Mz;var Az=Hn.createContext({});function Dz(e){return El("MuiList",e)}Cl("MuiList",["root","padding","dense","subheader"]);const Tz=["children","className","component","dense","disablePadding","subheader"],Oz=oA("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Xt({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var Nz=Hn.forwardRef((function(e,t){const n=kP({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=rn(n,Tz),c=Hn.useMemo((()=>({dense:a})),[a]),d=Xt({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return bl({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Dz,t)})(d);return js.jsx(Az.Provider,{value:c,children:js.jsxs(Oz,Xt({as:i,className:Vs(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));var qz=Cl("MuiListItemIcon",["root","alignItemsFlexStart"]);var Fz=Cl("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const zz=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function jz(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function $z(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Bz(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Hz(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Bz(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var Wz=Hn.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=rn(e,zz),p=Hn.useRef(null),f=Hn.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});el((()=>{r&&p.current.focus()}),[r]),Hn.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${gl(Qa(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=nl(p,t);let h=-1;Hn.Children.forEach(i,((e,t)=>{Hn.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=Hn.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),Hn.cloneElement(e,t)}return e}));return js.jsx(Nz,Xt({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Qa(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Hz(t,r,s,l,jz);else if("ArrowUp"===n)e.preventDefault(),Hz(t,r,s,l,$z);else if("Home"===n)e.preventDefault(),Hz(t,null,s,l,jz);else if("End"===n)e.preventDefault(),Hz(t,null,s,l,$z);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&Bz(r,o);o.previousKeyMatched&&(s||Hz(t,r,!1,l,jz,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function Gz(e){return El("MuiPopover",e)}Cl("MuiPopover",["root","paper"]);const Vz=["onEntering"],Uz=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Yz=["slotProps"];function Kz(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Xz(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Qz(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Jz(e){return"function"==typeof e?e():e}const Zz=oA(wz,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ej=oA(EF,{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 tj=Hn.forwardRef((function(e,t){var n,r,o;const i=kP({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=Pz,transitionDuration:E="auto",TransitionProps:{onEntering:C}={},disableScrollLock:w=!1}=i,R=rn(i.TransitionProps,Vz),L=rn(i,Uz),k=null!=(n=null==y?void 0:y.paper)?n:v,I=Hn.useRef(),_=nl(I,k.ref),M=Xt({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:k,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),P=(e=>{const{classes:t}=e;return bl({root:["root"],paper:["paper"]},Gz,t)})(M),A=Hn.useCallback((()=>{if("anchorPosition"===c)return u;const e=Jz(l),t=(e&&1===e.nodeType?e:Qa(I.current).body).getBoundingClientRect();return{top:t.top+Kz(t,s.vertical),left:t.left+Xz(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=Hn.useCallback((e=>({vertical:Kz(e,x.vertical),horizontal:Xz(e,x.horizontal)})),[x.horizontal,x.vertical]),T=Hn.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:Qz(n)};const r=A();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=Ja(Jz(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Qz(n)}}),[l,c,A,D,h]),[O,N]=Hn.useState(g),q=Hn.useCallback((()=>{const e=I.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);Hn.useEffect((()=>(w&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,w,q]);Hn.useEffect((()=>{g&&q()})),Hn.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),Hn.useEffect((()=>{if(!g)return;const e=Xa((()=>{q()})),t=Ja(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,q]);let F=E;"auto"!==E||S.muiSupportAuto||(F=void 0);const z=f||(l?Qa(Jz(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:Zz,$=null!=(o=null==b?void 0:b.paper)?o:ej,B=kF({elementType:$,externalSlotProps:Xt({},k,{style:O?k.style:Xt({},k.style,{opacity:0})}),additionalProps:{elevation:m,ref:_},ownerState:M,className:Vs(P.paper,null==k?void 0:k.className)}),H=kF({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:M,className:Vs(P.root,p)}),{slotProps:W}=H,G=rn(H,Yz);return js.jsx(j,Xt({},G,!CF(j)&&{slotProps:W,disableScrollLock:w},{children:js.jsx(S,Xt({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:js.jsx($,Xt({},B,{children:d}))}))}))}));function nj(e){return El("MuiMenu",e)}Cl("MuiMenu",["root","paper","list"]);const rj=["onEntering"],oj=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],ij={vertical:"top",horizontal:"right"},aj={vertical:"top",horizontal:"left"},lj=oA(tj,{shouldForwardProp:e=>rA(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sj=oA(ej,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),uj=oA(Wz,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var cj=Hn.forwardRef((function(e,t){var n,r;const o=kP({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=rn(o.TransitionProps,rj),x=rn(o,oj),S=(()=>{const e=Hn.useContext(CM);return null!=e&&e})(),E=Xt({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return bl({root:["root"],paper:["paper"],list:["list"]},nj,t)})(E),w=i&&!s&&d,R=Hn.useRef(null);let L=-1;Hn.Children.map(a,((e,t)=>{Hn.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===L)&&(L=t))}));const k=null!=(n=v.paper)?n:sj,I=null!=(r=b.paper)?r:p,_=kF({elementType:v.root,externalSlotProps:b.root,ownerState:E,className:[C.root,l]}),M=kF({elementType:k,externalSlotProps:I,ownerState:E,className:C.paper});return js.jsx(lj,Xt({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?ij:aj,slots:{paper:k,root:v.root},slotProps:{root:_,paper:M},open:d,ref:t,transitionDuration:m,TransitionProps:Xt({onEntering:(e,t)=>{R.current&&R.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),h&&h(e,t)}},y),ownerState:E},x,{classes:f,children:js.jsx(uj,Xt({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:R,autoFocus:i&&(-1===L||s),autoFocusItem:w,variant:g},u,{className:Vs(C.list,u.className),children:a}))}))}));function dj(e){return El("MuiMenuItem",e)}var pj=Cl("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const fj=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],mj=oA(UF,{shouldForwardProp:e=>rA(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Xt({},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"}},[`&.${pj.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:TM(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${pj.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:TM(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${pj.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:TM(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})`:TM(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${pj.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${pj.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Rz.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Rz.inset}`]:{marginLeft:52},[`& .${Fz.root}`]:{marginTop:0,marginBottom:0},[`& .${Fz.inset}`]:{paddingLeft:36},[`& .${qz.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Xt({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${qz.root} svg`]:{fontSize:"1.25rem"}}))));var hj=Hn.forwardRef((function(e,t){const n=kP({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=rn(n,fj),f=Hn.useContext(Az),m=Hn.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=Hn.useRef(null);el((()=>{r&&h.current&&h.current.focus()}),[r]);const g=Xt({},n,{dense:m.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Xt({},a,bl({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},dj,a))})(n),b=nl(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),js.jsx(Az.Provider,{value:m,children:js.jsx(mj,Xt({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:Vs(v.focusVisible,s),className:Vs(v.root,d)},p,{ownerState:g,classes:v}))})}));const gj=oA(bz,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:n,shouldShowMenuIcon:r,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:r?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?n:t}}))),vj=oA("div")({position:"absolute",left:0,bottom:0}),bj=oA("div")({...wt,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}),yj=oA("div")((()=>({...wt}))),xj=oA("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:n,fontStyle:r,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:n,fontSize:e,fontFamily:t,fontStyle:r,textDecoration:o}))),Sj=oA(cj)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),Ej=oA(hj,{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}}}))),Cj=oA("span")({textOverflow:"ellipsis",overflow:"hidden"}),wj=oA("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:sT,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),Rj={[dD.SORTING]:!0,[dD.SELECTIONS]:!0,[dD.SEARCHING]:!0},Lj=({dataModel:e,cell:t,style:n,isFirstColumn:r,isLastColumn:o,isLastRow:i,translator:a,changeSortOrder:l,iconsVisibilityStatus:s,columnWidth:u,overrideLeftGridWidth:c,layoutService:d,shouldApplyIndentModeColumnWidth:p})=>{var f;const m=Hn.useRef(null),h=iT(),{app:g,model:v,interactions:b,embed:y,env:{flags:x}}=eT(),{fontSize:S,fontFamily:E,fontStyle:C,fontWeight:w,textDecoration:R,color:L,background:k,hoverBackground:I,activeBackground:_}=h.header,M=Hn.useRef(null),{shouldShowLockIcon:P,shouldShowMenuIcon:A}=s,{open:D,setOpen:T,handleOpenMenu:O,setIsAdjustingWidth:N}=mF({interactions:b,dataModel:e}),q={sortFromMenu:async e=>{e.stopPropagation(),await l(t)}},F={embed:y,listboxRef:m},z={model:v,app:g},{labelTextAlign:j}=null!==(f=d.getDimensionInfo(t.dimensionInfoIndex))&&void 0!==f?f:{},$=Uq(j,"flex-start",x);return js.jsxs(gj,{className:Qe,title:t.label,interactions:b,background:D?_:k,hoverBackground:I,shouldShowMenuIcon:A,isDimension:t.isDim,style:{...n,...Lt,...Pt(t,i,r,o,h.grid.border),color:L},"data-testid":"title-cell",onClick:O,children:[js.jsxs(bj,{children:[P&&js.jsx(yj,{children:js.jsx(pF,{height:12})}),js.jsx(xj,{fontFamily:E,fontSize:S,fontStyle:C,fontWeight:w,textDecoration:R,justifyContent:$,children:js.jsx("span",{style:kt,children:t.label})})]}),t.isDim&&js.jsxs(js.Fragment,{children:[js.jsx(fD,{headerData:t,translator:a,anchorRef:M,open:D,setOpen:T,interactions:b,menuAvailabilityFlags:Rj,sortRelatedArgs:q,searchRelatedArgs:F,selectionRelatedArgs:z,shouldShowMenuIcon:A}),js.jsx(vj,{ref:m}),js.jsx(vj,{ref:M})]}),js.jsx(gF,{cellInfo:{...t,isLeftColumn:!0},columnWidth:u,dataModel:e,isLastColumn:o,overrideLeftGridWidth:c,setIsAdjustingWidth:N,shouldApplyIndentModeColumnWidth:p})]})},kj=({rowSpan:e,columnSpan:t})=>{const n=iT();return e>0&&t>0?js.jsx("div",{style:{...Rt,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"0px 1px 0px 0px",borderColor:n.grid.border,background:n.grid.background},"data-testid":"empty-header-cell"}):null};function Ij(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _j=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ij(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})),Mj=Hn.forwardRef(_j);function Pj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Aj=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Pj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),Wn.createElement("use",{fillRule:"evenodd"})),Dj=Hn.forwardRef(Aj),Tj=({dataModel:e,tableWidth:t,leftGridWidth:n,overrideLeftGridWidth:r})=>{const o=iT(),{interactions:i}=eT(),{isActive:a}=kq(),{setIsAdjustingWidth:l}=fF([e]);if(!(!!i.active&&!a))return null;const s=hF(o,{isLeftColumn:!0});return js.jsx(cA,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:s,columnWidth:n,updateWidthCallback:e=>{r(Math.min(e,t*dT))},confirmWidthCallback:o=>{var i;if(o.type===nt.FitToContent)return void e.applyIndentModeColumnWidth({type:nt.Auto});const a=Math.min(null!==(i=o.pixels)&&void 0!==i?i:n,t*dT);r(a),e.applyIndentModeColumnWidth({type:nt.Pixels,pixels:a})},setIsAdjustingWidth:l})};function Oj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Nj=(e,t)=>Wn.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Oj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Wn.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"})),qj=Hn.forwardRef(Nj),Fj=({cell:e,translator:t,dataModel:n,changeSortOrder:r})=>{const o=Hn.useRef(null),i=Hn.useRef(null),{app:a,model:l,interactions:s,embed:u}=eT(),{open:c,setOpen:d,handleOpenMenu:p}=mF({interactions:s,dataModel:n});return js.jsxs(Ej,{component:"div",onClick:p,isActive:c,children:[js.jsx(Cj,{children:e.label}),js.jsxs(wj,{className:"indent-mode-dropdown-more",visible:c,children:[js.jsx(qj,{}),e.isDim&&js.jsxs(js.Fragment,{children:[js.jsx(fD,{headerData:e,translator:t,anchorRef:o,open:c,setOpen:d,interactions:s,menuAvailabilityFlags:Rj,sortRelatedArgs:{sortFromMenu:async t=>{t.stopPropagation(),await r(e)}},searchRelatedArgs:{embed:u,listboxRef:i},selectionRelatedArgs:{model:l,app:a},shouldShowMenuIcon:!1}),js.jsx(vj,{ref:i}),js.jsx(vj,{ref:o})]})]})]})},zj=({idx:e,menu:t,menuItems:n,isOnlyOneRow:r})=>{var o,i;const a=(null===(o=n.at(-1))||void 0===o?void 0:o.id)===vT,l=e+1<n.length&&(null===(i=n[e+1])||void 0===i?void 0:i.id)===vT;return!(r&&a&&l)&&((null==t?void 0:t.id)!==vT&&e<n.length-1)},jj=({headersData:e,menuItems:t,dataModel:n,translator:r,changeSortOrder:o,overrideLeftGridWidth:i,leftGridWidth:a,tableWidth:l})=>{const s=iT(),{interactions:u}=eT(),[c,d]=Hn.useState(!1),p=Hn.useRef(null),{headerCellHeight:f}=s,{color:m,background:h,hoverBackground:g,activeBackground:v,fontFamily:b,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E}=s.header,{isAdjustingWidth:C}=fF([n]),w=e=>e.stopPropagation(),R={height:f,gridColumn:`1 / span ${e.size.x}`,gridRow:e.size.y,zIndex:e.size.x-0};return js.jsxs(gj,{isDimension:!0,background:c?v:h,interactions:u,hoverBackground:g,style:{...R,...Lt,color:m},onClick:e=>u.active&&!Cq(e)&&!C&&d(!c),children:[js.jsxs(bj,{children:[js.jsx(xj,{fontFamily:b,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E,justifyContent:"flex-start",children:js.jsx("span",{style:kt,children:r.get("SNPivotTable.IndentMode.Rows")})}),c?js.jsx(Dj,{}):js.jsx(Mj,{}),js.jsx(vj,{ref:p})]}),js.jsx(Sj,{open:c,anchorEl:p.current,children:t.map(((i,a)=>[i&&(null==i?void 0:i.id)!==vT&&js.jsx("li",{role:"presentation",onClick:w,onKeyDown:w,children:js.jsx(Fj,{cell:i,translator:r,dataModel:n,changeSortOrder:o})}),zj({idx:a,menu:i,menuItems:t,isOnlyOneRow:1===e.size.y})&&js.jsx(bA,{"data-testid":"group-divider",variant:"middle"},"divider")]))}),js.jsx(Tj,{dataModel:n,tableWidth:l,leftGridWidth:a,overrideLeftGridWidth:i})]})},$j={display:"grid",width:"fit-content"},Bj=({dataModel:e,tableWidth:t,leftGridWidth:n,columnWidths:r,rowHight:o,headersData:i,translator:a,changeSortOrder:l,getHeaderCellsIconsVisibilityStatus:s,height:u,overrideLeftGridWidth:c,layoutService:d})=>js.jsxs("div",{style:{...$j,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:i.data.map((()=>`${o}px`)).join(" "),height:u},children:[i.size.y>1&&js.jsx(kj,{columnSpan:i.size.x-1,rowSpan:i.size.y-1}),i.data.map(((u,p)=>{let f=[];if(d.isIndentModeEnabled&&i.size.x>1&&p+1===i.size.y){const r=i.data.at(-1);return f.push(js.jsx(jj,{headersData:i,menuItems:r[0],dataModel:e,translator:a,changeSortOrder:l,overrideLeftGridWidth:c,leftGridWidth:n,tableWidth:t},r[0][0].id)),f}return f=u.reduce(((t,n,u)=>{if(n){const f=s(u,n.isLocked,n.label),m=d.isIndentModeEnabled&&1===i.size.x;t.push(js.jsx(Lj,{dataModel:e,style:{width:r[u],height:o,gridColumn:d.isIndentModeEnabled&&i.size.x>1?2:u+1,gridRow:p+1,zIndex:i.size.x-u},isLastRow:p===i.size.y-1,isFirstColumn:0===u,isLastColumn:u===i.size.x-1,translator:a,changeSortOrder:l,cell:n,iconsVisibilityStatus:f,columnWidth:r[u],overrideLeftGridWidth:c,layoutService:d,shouldApplyIndentModeColumnWidth:m},n.id))}return t}),[]),f}))]});var Hj=Hn.memo(Bj);const Wj=(e,t,n,r,o)=>{Hn.useLayoutEffect((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,n,r,o])},Gj=(e,t)=>{YI((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},Vj=(e,t,n,r)=>{var o;const i=n?"flex-start":"center";var a,l;if(e.representation.type===pT.Image)return null!==(a=null===(l=e.representation.resolvedImagePosition)||void 0===l?void 0:l.horizontal)&&void 0!==a?a:i;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){var s;const{labelTextAlign:n}=null!==(s=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==s?s:{};return Uq(n,i,r)}const{textAlign:u}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return Uq(u,i,r)},Uj=()=>{},Yj=({children:e,text:t,reactWindowStyle:n,cell:r,data:o,showTotalCellDivider:i,isLastRow:a,isLastColumn:l,isLeftColumn:s,isCellSelected:u,isAdjustingWidth:c})=>{var d;const p=iT(),{interactions:f,env:{flags:m}}=eT(),{select:h,isLocked:g}=kq(),{layoutService:v,showLastBorder:b}=o,y=g(r)||r.isLockedByDimension,x=!(y||!f.active||!f.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||c),S=x?h(r):void 0;return js.jsx("div",{className:Qe,title:f.passive?t:void 0,style:{...n,...Mt(a,l,p.grid.border,b),...At({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:p.grid.divider}),...Lt,padding:"0px 4px",cursor:qq(x),background:Aq({styleService:p,isCellSelected:u,cell:r,isCellLocked:y}),zIndex:s?void 0:v.size.x-r.x,justifyContent:Vj(r,v,s,m),display:"flex",...v.isIndentModeEnabled&&s&&{paddingLeft:24*(null!==(d=r.indentLevel)&&void 0!==d?d:0)}},"aria-hidden":"true",onClick:S,onKeyUp:Uj,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":r.x,"data-page-x":r.pageX,"data-y":r.y,"data-page-y":r.pageY,"data-cell-type":r.ref.qType,children:e})},Kj=e=>e.stopPropagation(),Xj=({href:e,text:t,interactions:n,color:r})=>Wn.createElement(zw,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:Kj,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),Qj=({children:e,textStyle:t})=>js.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),Jj=({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>{const{isActive:o}=kq(),{interactions:i}=eT();let a=e.representation.text;if(e.isEmpty)return null;const l=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>({...kt,...It(r?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:Dq({cell:e,styleService:t,isCellSelected:n}),fontWeight:Tq({cell:e,styleService:t}),fontStyle:Oq({cell:e,styleService:t}),textDecoration:Nq({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r});return e.representation.type!==pT.Image||e.isTotal?(e.representation.type!==pT.Link||o||e.isTotal||(a=js.jsx(Xj,{text:e.representation.text,href:e.representation.url,interactions:i,color:e.expressionColor.color})),js.jsx(Qj,{textStyle:l,children:a})):js.jsx(Vq,{representation:e.representation,isLeftColumn:r,styleService:t,textStyle:l,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand})},Zj=e=>{const t=e.isLeftColumn?"flex-start":"center";var n;return e.representation.type!==pT.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(n=e.representation.resolvedImagePosition)||void 0===n?void 0:n.vertical},e$=({index:e,style:t,data:n})=>{const r=iT(),{isSelected:o}=kq(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=fF([n]),{dataModel:l,isLeftColumn:s=!1,showLastBorder:u,itemCount:c,isLast:d,totalDividerIndex:p,layoutService:f}=n,m=((e,t)=>{const{isLast:n,list:r,listValues:o}=t;return n?r[e]:o[e]})(e,n),h=s?e===c-1:d,g=s?d:e===c-1,v=JN(m,p,f.isIndentModeEnabled);if(void 0===m){const{background:n}=r.dimensionValues;return js.jsx(fq,{style:{...t,background:n},index:e,isLastRow:h,isLastColumn:g,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:v})}const b=o(m);return js.jsxs(Yj,{text:m.representation.text,reactWindowStyle:t,isLeftColumn:s,isLastRow:h,isLastColumn:g,isCellSelected:b,showTotalCellDivider:v,cell:m,data:n,isAdjustingWidth:i,children:[js.jsxs(mq,{verticalAlign:Zj(m),width:hq(m.representation),right:m.isLeftColumn?void 0:4,children:[js.jsx(jq,{isLeftColumn:s,isCellSelected:b,cell:m,dataModel:l}),js.jsx(Jj,{isLeftColumn:s,isCellSelected:b,cell:m,styleService:r})]}),js.jsx(gF,{cellInfo:{...m,columnWidthLocation:m.isPseudoDimension?Ge.Measures:Ge.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:g,setIsAdjustingWidth:a})]})};var t$=Wn.memo(e$,QN);const n$=({list:e,listValues:t,isLastRow:n,getRightGridColumnWidth:r})=>o=>{var i;const a=n?e[o]:t[o];return 0===o&&(null==a?void 0:a.x)>0?(a.leafCount+a.x+a.distanceToNextCell)*r():n||void 0===a?r(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o):(a.leafCount+a.distanceToNextCell)*r()},r$=(e,t,n,r)=>{const o=Object.values(e);let i,a=o.length;return r&&(a=n,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},o$=(e,t)=>n=>{e.current&&(e.current[t]=n)},i$={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...Rt},a$={overflow:"hidden",willChange:"auto",flexShrink:0},l$=({dataModel:e,leftGridRef:t,width:n,columnWidths:r,height:o,layoutService:i,leftDimensionData:a,showLastBorder:l,visibleLeftDimensionInfo:s,pageInfo:u})=>{const{qSize:c}=i.layout.qHyperCube,{contentCellHeight:d,grid:{divider:p}}=iT();Gj(t,a),Wj(t,n,o,d,i);const f=u.rowsOnCurrentPage*d;return js.jsx("div",{style:{...i$,borderColor:p},children:a.grid.map(((n,p)=>{const m=p===a.columnCount-1,h=FT(s[p]),{itemCount:g,estimatedItemSize:v,listValues:b}=r$(n,f,u.rowsOnCurrentPage,m),y=i.isIndentModeEnabled?()=>d:((e,t,n,r,o)=>i=>{const a=r?e[i]:t[i];if(0===i&&(null==a?void 0:a.pageY)>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if((null==a?void 0:a.leafCount)>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n})(n,b,d,m,c.qcy);return js.jsx(UN,{ref:o$(t,p),style:{...a$,flexGrow:m?1:0},height:o,width:r[p],itemCount:g,itemSize:y,layout:"vertical",itemData:{layoutService:i,dataModel:e,list:n,isLeftColumn:!0,isLast:m,itemCount:g,showLastBorder:l,listValues:b,totalDividerIndex:a.totalDividerIndex},itemKey:iF,estimatedItemSize:v,children:t$},h)}))})};var s$=Hn.memo(l$);const u$={overflow:"hidden",willChange:"auto"},c$={...Rt,borderWidth:"0px 0px 0px 1px"},d$=({dataModel:e,topGridRef:t,rowHightCallback:n,width:r,height:o,layoutService:i,topDimensionData:a,showLastBorder:l,getRightGridColumnWidth:s,headersData:u})=>{const{grid:{divider:c},headerCellHeight:d}=iT(),p={...c$,borderColor:c,height:o};Gj(t,a),Wj(t,r,o,d,i);const f=i.size.x*s();return 0===a.rowCount?js.jsx("div",{style:{width:r,height:o,...c$}}):js.jsx("div",{style:p,children:a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:m,listValues:h}=r$(o,f,i.size.x,d),g=(({layoutService:e,headersData:t,topRowIndex:n})=>{var r;const o=t.data[n],i=t.size.x-1,a=e.isIndentModeEnabled&&t.size.x>1&&n+1===t.size.y?null===(r=o[0][i])||void 0===r?void 0:r.dimensionInfoIndex:null==o?void 0:o[i].dimensionInfoIndex;return void 0!==a?e.getDimensionInfo(a):void 0})({layoutService:i,headersData:u,topRowIndex:c}),v=g?FT(g):`empty ${c}`;return js.jsx(UN,{ref:o$(t,c),style:u$,height:n(),width:r,itemCount:p,itemSize:n$({list:o,listValues:h,isLastRow:d,getRightGridColumnWidth:s}),layout:"horizontal",itemData:{layoutService:i,dataModel:e,list:o,isLast:d,itemCount:p,showLastBorder:l,listValues:h,totalDividerIndex:a.totalDividerIndex},itemKey:iF,estimatedItemSize:m,children:t$},v)}))})};var p$=Hn.memo(d$);const f$=({model:e,rect:t,viewService:n,layoutService:r,qPivotDataPages:o,pageInfo:i,translator:a})=>{const{headerCellHeight:l,contentCellHeight:s}=iT(),u=((e,t,n)=>Hn.useMemo((()=>{let{height:r}=e;return t.hasLimitedData&&(r-=22),n&&(r-=41),{...e,height:r}}),[e,t,n]))(t,r,i.shouldShowPagination),{visibleLeftDimensionInfo:c,visibleTopDimensionInfo:d}=((e,t)=>{const{qHyperCube:n}=e.layout,{qNoOfLeftDims:r,qEffectiveInterColumnSortOrder:o,qDimensionInfo:i}=n;return Hn.useMemo((()=>{var e,n,a,l;const s=sN(null!==(e=null===(n=t[0])||void 0===n?void 0:n.qLeft)&&void 0!==e?e:[]),u=sN(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(lN(i,o,0)),visibleTopDimensionInfo:u.map(lN(i,o,r))}}),[i,o,r,t])})(r,o),p=(e=>{const t=Hn.useCallback((async t=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:n,dimensionInfoIndex:r}=t,o=[];o.push({qPath:`/qHyperCubeDef/qDimensions/${r}/qDef/qReverseSort`,qOp:"Replace",qValue:(!n).toString()});try{return await e.applyPatches(o,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(e),{headersData:f,measureData:m,topDimensionData:h,leftDimensionData:g,attrExprInfoIndexes:v,nextPageHandler:b}=tN(o,r,i,c,d),y=iN({model:e,nextPageHandler:b,pageInfo:i,layoutService:r}),{onHorizontalScrollHandler:x,onVerticalScrollHandler:S,verticalScrollableContainerRef:E,leftGridHorizontalScrollableContainerRef:C,dataGridHorizontalScrollableContainerRef:w,dataGridRef:R,leftGridRef:L,topGridRef:k,verticalScrollbarWidth:I,horizontalScrollbarHeight:_,horizontalScrollbarHeightSetter:M,verticalScrollDirection:P,horizontalScrollDirection:A}=(({layoutService:e,viewService:t,pageInfo:n,tableRect:r,mockedRefs:o})=>{var i,a,l,s,u,c;const{theme:d,downloadService:p}=eT(),f=Hn.useRef(null!==(i=null==o?void 0:o.verticalScrollableContainerRef)&&void 0!==i?i:null),m=Hn.useRef(null!==(a=null==o?void 0:o.leftGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),h=Hn.useRef(null!==(l=null==o?void 0:o.dataGridHorizontalScrollableContainerRef)&&void 0!==l?l:null),g=Hn.useRef(null!==(s=null==o?void 0:o.topGridRef)&&void 0!==s?s:[]),v=Hn.useRef(null!==(u=null==o?void 0:o.leftGridRef)&&void 0!==u?u:[]),b=Hn.useRef(null!==(c=null==o?void 0:o.dataGridRef)&&void 0!==c?c:null),y=Hn.useRef(0),x=Hn.useRef(0),S=Hn.useRef(Ye.None),E=Hn.useRef(Ye.None),[C,w]=Hn.useState(0),[R,L]=Hn.useState(0),k=e=>{E.current=aN(e.currentTarget.scrollLeft,y.current),y.current=e.currentTarget.scrollLeft,S.current=aN(e.currentTarget.scrollTop,x.current),x.current=e.currentTarget.scrollTop};Hn.useLayoutEffect((()=>{e.triggerdByExpandOrCollapse||(m.current&&(m.current.scrollLeft=0),h.current&&(h.current.scrollLeft=0),f.current&&(f.current.scrollTop=0))}),[e]),Hn.useLayoutEffect((()=>{if(e.triggerdByExpandOrCollapse){var t,n,r,o,i,a;const e=null!==(t=null===(n=h.current)||void 0===n?void 0:n.scrollLeft)&&void 0!==t?t:0,l=null!==(r=null===(o=f.current)||void 0===o?void 0:o.scrollTop)&&void 0!==r?r:0;null===(i=v.current)||void 0===i||i.forEach((e=>null==e?void 0:e.scrollTo(l))),null===(a=g.current)||void 0===a||a.forEach((t=>null==t?void 0:t.scrollTo(e)))}}),[e]),Hn.useLayoutEffect((()=>{m.current&&(m.current.scrollLeft=0),h.current&&(h.current.scrollLeft=0),f.current&&(f.current.scrollTop=0)}),[n.page]);const I=Hn.useCallback((e=>{if(e)return void L(0);let t=0;if(m.current){const e=m.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}if(h.current){const e=h.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}L(t)}),[L]);return Hn.useLayoutEffect((()=>{if(f.current){const e=f.current,t=e.offsetWidth-e.clientWidth;w(t)}I()}),[I,e,t,r.width,r.height,d,p]),Hn.useLayoutEffect((()=>{(p.isDownloadedAsPDForImage||e.isSnapshot)&&f.current&&h.current&&m.current&&(f.current.scrollTop=t.scrollTop,h.current.scrollLeft=t.scrollLeft,m.current.scrollLeft=t.leftGridScrollLeft)}),[t,f,h,m,p,e]),{onHorizontalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(e.target.dataset.key===`scrollable-container--${Ue.LEFT_GRID}`&&(t.leftGridScrollLeft=e.currentTarget.scrollLeft),e.target.dataset.key===`scrollable-container--${Ue.DATA_GRID}`&&(k(e),null===(n=g.current)||void 0===n||n.forEach((t=>null==t?void 0:t.scrollTo(e.currentTarget.scrollLeft))),null===(r=b.current)||void 0===r||r.scrollTo({scrollLeft:e.currentTarget.scrollLeft}),t.scrollLeft=e.currentTarget.scrollLeft))},onVerticalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(k(e),null===(n=v.current)||void 0===n||n.filter(Boolean).forEach((t=>t.scrollTo(e.currentTarget.scrollTop))),null===(r=b.current)||void 0===r||r.scrollTo({scrollTop:e.currentTarget.scrollTop}),t.scrollTop=e.currentTarget.scrollTop)},verticalScrollableContainerRef:f,leftGridHorizontalScrollableContainerRef:m,dataGridHorizontalScrollableContainerRef:h,dataGridRef:b,leftGridRef:v,topGridRef:g,verticalScrollbarWidth:C,horizontalScrollbarHeight:R,horizontalScrollbarHeightSetter:I,verticalScrollDirection:S,horizontalScrollDirection:E}})({layoutService:r,viewService:n,pageInfo:i,tableRect:u}),{containerHeight:D,headerGridHeight:T,topGridHeight:O,leftGridHeight:N,dataGridHeight:q,allRowsVisible:F}=function({pageInfo:e,headersData:t,topDimensionData:n,tableRect:r,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=iT(),l=e.rowsOnCurrentPage*a,s=i*t.size.y,u=l+s,c=i*Math.max(t.size.y,n.rowCount,1);return{containerHeight:u,headerGridHeight:s,topGridHeight:c,leftGridHeight:Math.min(r.height-s-St,l),dataGridHeight:Math.min(r.height-c-St,l),allRowsVisible:c+St+l+o<=r.height}}({pageInfo:i,headersData:f,topDimensionData:h,tableRect:u,horizontalScrollbarHeight:_}),{leftGridWidth:z,leftGridColumnWidths:j,rightGridWidth:$,totalWidth:B,showLastRightBorder:H,getRightGridColumnWidth:W,getHeaderCellsIconsVisibilityStatus:G,overrideLeftGridWidth:V}=function({layoutService:e,tableWidth:t,headersData:n,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i}){const a=iT(),{measureText:l}=GI(a.header),s=_T({layoutService:e,tableWidth:t,headersData:n}),u=MT({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,leftGridWidth:s.leftGridWidth}),c=s.leftGridWidth+u.rightGridFullWidth+St,d=c<t,p=Hn.useCallback(((e,t,n="")=>{const r=s.leftGridColumnWidths[e];let o=!1,i=!1,a=l(n)+cT;return t&&a+uT<=r&&(i=!0,a+=uT),a+sT<=r&&(o=!0),{shouldShowMenuIcon:o,shouldShowLockIcon:i}}),[s.leftGridColumnWidths,l]);return Hn.useEffect((()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=u.rightGridWidth===u.rightGridFullWidth;i(e&&t)}),[i,s.leftGridWidth,s.leftGridFullWidth,u.rightGridWidth,u.rightGridFullWidth]),{...s,...u,totalWidth:c,showLastRightBorder:d,getHeaderCellsIconsVisibilityStatus:p}}({layoutService:r,tableWidth:u.width,headersData:f,visibleTopDimensionInfo:d,verticalScrollbarWidth:I,horizontalScrollbarHeightSetter:M}),{rootWrapper:U,leftWrapper:Y,rightWrapper:K}=(({tableRect:e,containerHeight:t,headerGridHeight:n,leftGridHeight:r,topGridHeight:o,dataGridHeight:i,allRowsVisible:a,totalWidth:l,leftGridWidth:s,rightGridWidth:u,verticalScrollbarWidth:c,horizontalScrollbarHeight:d})=>{const p=o+i+St,f=a?0:Math.max(0,e.height-p),m=c*(a?0:1),h=d*(a?0:1),g=a?p+d:e.height,v=e.height-h,b=l-s-m,y=e.width-s-m;return{rootWrapper:{scrollable:e,fullSize:{width:l-m,height:t+h},sticky:{width:e.width-m,height:e.height}},leftWrapper:{containers:{scrollable:{width:s,height:g},fullSize:{width:s,height:t},sticky:{width:s,height:v}},headerGrid:{width:-1,height:n},leftGrid:{width:s,height:r-h+f}},rightWrapper:{containers:{scrollable:{width:u+St-m,height:g},fullSize:{width:b,height:t},sticky:{width:b<y?b:y,height:v}},topGrid:{width:u-m,height:o},dataGrid:{width:u-m,height:i-h+f}}}})({tableRect:u,containerHeight:D,headerGridHeight:T,leftGridHeight:N,topGridHeight:O,dataGridHeight:q,allRowsVisible:F,totalWidth:B,leftGridWidth:z,rightGridWidth:$,verticalScrollbarWidth:I,horizontalScrollbarHeight:_}),X=Hn.useCallback((()=>l),[l]),Q=Hn.useCallback((()=>s),[s]);return(()=>{const{downloadService:e}=eT();Hn.useEffect((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),js.jsx(pN,{ref:E,...U.scrollable,onScroll:S,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:Ue.CONTAINER_GRID,children:js.jsx(uN,{...U.fullSize,children:js.jsxs(fN,{...U.sticky,style:{display:"grid",gridTemplateColumns:z?`${Y.containers.scrollable.width}px ${K.containers.scrollable.width}px`:`${K.containers.scrollable.width}px`},children:[Boolean(z)&&js.jsx(pN,{ref:C,...Y.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ue.LEFT_GRID,children:js.jsx(uN,{isLeftGrid:!0,...Y.containers.fullSize,children:js.jsxs(fN,{isLeftGrid:!0,...Y.containers.sticky,children:[js.jsx(Hj,{dataModel:y,tableWidth:u.width,leftGridWidth:z,columnWidths:j,getHeaderCellsIconsVisibilityStatus:G,rowHight:l,height:Y.headerGrid.height,headersData:f,translator:a,changeSortOrder:p,overrideLeftGridWidth:V,layoutService:r}),js.jsx(s$,{dataModel:y,leftGridRef:L,...Y.leftGrid,columnWidths:j,layoutService:r,leftDimensionData:g,showLastBorder:{right:!1,bottom:F},visibleLeftDimensionInfo:c,pageInfo:i})]})})}),js.jsx(pN,{ref:w,...K.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ue.DATA_GRID,children:js.jsx(uN,{...K.containers.fullSize,children:js.jsxs(fN,{...K.containers.sticky,children:[js.jsx(p$,{dataModel:y,topGridRef:k,rowHightCallback:X,...K.topGrid,layoutService:r,topDimensionData:h,showLastBorder:{right:H,bottom:!1},getRightGridColumnWidth:W,headersData:f}),js.jsx(uF,{dataModel:y,dataGridRef:R,rowHightCallback:Q,...K.dataGrid,viewService:n,layoutService:r,measureData:m,leftDimensionData:g,topDimensionData:h,visibleTopDimensionInfo:d,visibleLeftDimensionInfo:c,attrExprInfoIndexes:v.measures,showLastBorder:{right:H,bottom:F},getRightGridColumnWidth:W,pageInfo:i,verticalScrollDirection:P,horizontalScrollDirection:A})]})})})]})})})},m$=e=>{const{layoutService:t,translator:n,pageInfo:r,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=eT(),{layout:u,hasData:c}=t;return js.jsxs(js.Fragment,{children:[c&&js.jsx(f$,{...e}),js.jsx(nT,{translator:n,layoutService:t}),js.jsx(QD,{paginationNeeded:r.shouldShowPagination,handleChangePage:e=>o({page:e}),pageInfo:r,totalRowCount:r.totalRowCount,totalColumnCount:0,totalPages:r.totalPages,keyboard:a,translator:n,theme:l,interactions:s,rect:i,layout:u})]})},h$={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)"},g$=12,v$=14,b$=16,y$=24,x$=3,S$=300,E$=400,C$=600,w$=700,R$={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};nn(h$.GREYSCALE_0,.05),nn(h$.GREEN_PALE,.5),nn(h$.BLUE_PALE,.5),nn(h$.GREEN_PALE,.5),nn(h$.BLUE_PALE,.5),nn(h$.GREEN_PALE,.5),nn(h$.BLUE_PALE,.5);var L$;function k$(){return k$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k$.apply(this,arguments)}nn(h$.GREEN_PALE,.5),nn(h$.BLUE_PALE,.5),nn(h$.GREEN_PALE,.5),nn(h$.BLUE_PALE,.5);var I$,_$=function(e){return Hn.createElement("svg",k$({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),L$||(L$=Hn.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function M$(){return M$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M$.apply(this,arguments)}var P$=function(e){return Hn.createElement("svg",M$({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),I$||(I$=Hn.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 A$({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Wn.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var D$=(e={})=>Wn.createElement(A$,{...e},Wn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},Wn.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Wn.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"}))),T$=(e={})=>Wn.createElement(A$,{...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Wn.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),O$=(e={})=>Wn.createElement(A$,{fontSize:"medium",...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},Wn.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),N$=(e={})=>Wn.createElement(A$,{fontSize:"medium",...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Wn.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"}))),q$=({className:e})=>Wn.createElement(A$,{fontSize:"small",className:e},Wn.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},Wn.createElement("g",{transform:"translate(4.324187, 1.300372)"},Wn.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"}),Wn.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"})))))),F$=(e={})=>Wn.createElement(A$,{...e},Wn.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wn.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wn.createElement("rect",{stroke:h$.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const z$={MuiAccordion:{styleOverrides:{root:{backgroundColor:h$.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:h$.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Wn.createElement(_$,{"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 ${h$.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:h$.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${h$.MISC_FOCUS_BORDER}`,borderRadius:x$,backgroundColor:h$.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 ${h$.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:h$.WHITE,color:h$.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:x$},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${h$.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:h$.GREYSCALE_0_15,backgroundColor:h$.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:h$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${h$.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:h$.GREEN_PALE},"&:active":{backgroundColor:h$.GREEN_DARK},"&.Mui-focusVisible":{borderColor:h$.GREEN_PALE,boxShadow:`0 0 0 3px ${SM(h$.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:h$.BLUE_PALE},"&:active":{backgroundColor:h$.BLUE_DARK},"&.Mui-focusVisible":{borderColor:h$.BLUE_PALE,boxShadow:`0 0 0 3px ${SM(h$.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:x$,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:h$.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${h$.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:h$.GREYSCALE_0_15,backgroundColor:h$.GREYSCALE_100_60,"&:active":{backgroundColor:h$.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:h$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${h$.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:h$.PURPLE,"&.Mui-focusVisible":{borderColor:h$.PURPLE,boxShadow:`0 0 0 3px ${SM(h$.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:h$.GREEN,"&.Mui-focusVisible":{borderColor:h$.GREEN,boxShadow:`0 0 0 3px ${SM(h$.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:h$.BLUE,"&.Mui-focusVisible":{borderColor:h$.BLUE,boxShadow:`0 0 0 3px ${SM(h$.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:h$.ORANGE,"&.Mui-focusVisible":{borderColor:h$.ORANGE,boxShadow:`0 0 0 3px ${SM(h$.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:h$.RED,"&.Mui-focusVisible":{borderColor:h$.RED,boxShadow:`0 0 0 3px ${SM(h$.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:h$.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:h$.PURPLE_PALE},"&:active":{backgroundColor:h$.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:h$.PURPLE_PALE,boxShadow:`0 0 0 3px ${SM(h$.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:h$.GREEN_PALE},"&:active":{backgroundColor:h$.GREEN_DARK},"&.Mui-focusVisible":{borderColor:h$.GREEN_PALE,boxShadow:`0 0 0 3px ${SM(h$.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:h$.BLUE_PALE},"&:active":{backgroundColor:h$.BLUE_DARK},"&.Mui-focusVisible":{borderColor:h$.BLUE_PALE,boxShadow:`0 0 0 3px ${SM(h$.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:h$.ORANGE_PALE},"&:active":{backgroundColor:h$.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:h$.ORANGE_PALE,boxShadow:`0 0 0 3px ${SM(h$.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:h$.RED_PALE},"&:active":{backgroundColor:h$.RED_DARK},"&.Mui-focusVisible":{borderColor:h$.RED_PALE,boxShadow:`0 0 0 3px ${SM(h$.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:h$.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:h$.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:x$,boxShadow:`inset 0 0 0 2px ${h$.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Wn.createElement(P$,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:g$,borderRadius:x$,color:h$.TEXT_PRIMARY,backgroundColor:h$.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:h$.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${h$.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:h$.GREYSCALE_0_05,color:h$.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:h$.GREEN,borderColor:h$.GREEN},"&.MuiChip-outlinedInfo":{color:h$.BLUE,borderColor:h$.BLUE},"&.MuiChip-outlinedWarning":{color:h$.ORANGE,borderColor:h$.ORANGE},"&.MuiChip-outlinedError":{color:h$.RED,borderColor:h$.RED}},outlined:{border:`solid 1px ${h$.GREYSCALE_0_15}`,backgroundColor:h$.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:x$,boxShadow:"none",backgroundColor:h$.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:h$.GREEN,borderColor:h$.GREEN},outlinedSecondary:{color:h$.BLUE,borderColor:h$.BLUE},label:{fontFamily:R$.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Wn.createElement(P$,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Wn.createElement(_$,{"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:x$},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:x$,fontSize:v$,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:h$.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${h$.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:h$.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:h$.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:h$.GREYSCALE_0_05}}},popupIndicator:{borderRadius:x$,border:`solid 1px ${h$.GREYSCALE_0_15}`,color:h$.GREYSCALE_0_60,marginRight:0,width:y$,height:y$},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${h$.GREYSCALE_0_15}`},clearIndicator:{borderRadius:x$,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:h$.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:v$}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:g$,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:h$.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:h$.GREYSCALE_25,fontSize:g$,fontFamily:R$.FONT_FAMILY,fontWeight:C$,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:h$.TEXT_PRIMARY},"&.Mui-error":{color:h$.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:h$.TEXT_SECONDARY,content:"'(optional)'",fontWeight:E$,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:h$.TEXT_SECONDARY,content:"'(required)'",fontWeight:E$,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:v$,lineHeight:"16px",backgroundColor:h$.WHITE,borderRadius:x$,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${h$.GREYSCALE_0_05}`,borderColor:h$.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${h$.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${h$.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${h$.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${h$.RED}`,boxShadow:`0px 0px 0px 1px ${h$.RED}, inset 0 2px 0 0 ${h$.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${h$.GREYSCALE_0_10}`,borderColor:h$.GREYSCALE_0_10,backgroundColor:h$.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:h$.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:h$.GREYSCALE_0_15,borderRadius:x$,boxShadow:`inset 0 2px 0 0 ${h$.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Wn.createElement(_$,{...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:h$.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:h$.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:h$.GREYSCALE_0_03},"&:active":{backgroundColor:h$.GREYSCALE_0_10},"&:focus":{backgroundColor:h$.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${h$.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${h$.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:h$.GREYSCALE_0_30,"&:hover":{backgroundColor:h$.GREYSCALE_0_0,borderColor:h$.GREYSCALE_0_15},"& ~svg":{color:h$.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${h$.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:x$}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:h$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${h$.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:h$.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:v$,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:g$,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:g$,fontWeight:C$,color:h$.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:C$}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${h$.GREYSCALE_0_15}, 0px 0px 0px 1px ${h$.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Wn.createElement(O$,null),checkedIcon:Wn.createElement(N$,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:h$.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${h$.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:h$.GREEN_PALE,boxShadow:`0 0 0 3px ${SM(h$.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:h$.BLUE_PALE,boxShadow:`0 0 0 3px ${SM(h$.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:h$.GREYSCALE_0_20}},"&.Mui-disabled":{fill:h$.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Wn.createElement(F$,null),checkedIcon:Wn.createElement(D$,null),indeterminateIcon:Wn.createElement(T$,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:x$,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:h$.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:h$.GREYSCALE_0_55,color:h$.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:h$.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:h$.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:h$.GREYSCALE_0_55,"&:hover":{color:h$.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:h$.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:h$.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:v$,color:h$.TEXT_PRIMARY,lineHeight:"16px",fontWeight:C$},secondary:{fontSize:g$,color:h$.GREYSCALE_45,fontWeight:E$,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:v$,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:h$.GREYSCALE_0_03},"&:active":{backgroundColor:h$.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:v$,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:h$.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:g$,borderBottom:`solid 1px ${h$.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:v$,color:h$.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:h$.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:h$.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:h$.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:h$.RED}}},"&.Mui-focusVisible":{backgroundColor:h$.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:h$.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:h$.GREEN,height:"24px","&.Mui-disabled":{color:h$.GREYSCALE_0_15}},rail:{backgroundColor:h$.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${h$.GREYSCALE_0_05}`,borderRadius:x$,boxShadow:`inset 0px 0px 0px 1px ${h$.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${h$.GREYSCALE_0_05}`,borderRadius:x$},thumb:{height:"16px",width:"16px",borderRadius:x$,backgroundColor:h$.WHITE,boxShadow:`0px 1px 2px 0px ${h$.GREYSCALE_0_15}, 0px 0px 0px 1px ${h$.GREYSCALE_0_05}`,"&:hover":{borderRadius:x$,boxShadow:`0 2px 4px 0 ${h$.GREYSCALE_0_30}, 0 0 0 1px ${h$.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${h$.GREYSCALE_0_15}, 0 0 0 1px ${h$.GREYSCALE_0_06}, 0 0 0 2px ${h$.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${h$.GREYSCALE_0_15}, 0 0 0 1px ${h$.GREYSCALE_0_06}, 0 0 0 2px ${h$.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:h$.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:h$.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:h$.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:h$.GREYSCALE_0_15},markLabel:{color:h$.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:h$.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:h$.WHITE,color:h$.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:h$.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:h$.GREEN_PALE,boxShadow:`0 0 0 3px ${SM(h$.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:h$.BLUE_PALE,boxShadow:`0 0 0 3px ${SM(h$.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:h$.GREYSCALE_0_15,borderRadius:x$},thumb:{height:"16px",width:"16px",borderRadius:x$,backgroundColor:h$.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:v$,fontWeight:C$,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${h$.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${h$.MISC_FOCUS_BORDER}`,backgroundColor:h$.GREYSCALE_0_03,borderRadius:x$},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:h$.GREYSCALE_25,"&.Mui-selected":{color:h$.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:v$,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},scrollableY:{marginBlock:"4px"},scrollButtons:{borderRadius:x$,"&:hover":{backgroundColor:`${h$.GREYSCALE_0_03}`},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{"& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"3px"},"& .MuiTabs-scrollButtons":{marginBlock:"-1px",borderTop:`1px solid ${h$.GREYSCALE_0_15}`,borderBottom:`1px solid ${h$.GREYSCALE_0_15}`},"& .MuiTab-root":{fontWeight:"normal",borderRadius:x$,marginBlock:"4px","&.Mui-selected":{backgroundColor:h$.GREYSCALE_0_05},"&:hover":{backgroundColor:`${h$.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${h$.GREYSCALE_85}`,borderRight:`1px solid ${h$.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:C$,backgroundColor:h$.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:h$.GREYSCALE_98,borderBottom:`1px solid ${h$.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${h$.GREYSCALE_85}`,borderTop:`1px solid ${h$.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:h$.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:h$.GREYSCALE_0_05,"&:hover":{backgroundColor:h$.GREYSCALE_0_03}},"&&:hover":{backgroundColor:h$.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Wn.createElement(q$,{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 ${h$.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:v$,borderRadius:x$,padding:"7px 16px",border:`1px solid ${h$.GREYSCALE_0_15}`,backgroundColor:h$.GREYSCALE_100_60,color:h$.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:h$.GREYSCALE_0_10,border:`1px solid ${h$.GREYSCALE_0_30}`},"&:hover":{backgroundColor:h$.GREYSCALE_0_03,border:`1px solid ${h$.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:h$.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${h$.MISC_FOCUS_BORDER}`,border:`1px solid ${h$.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:h$.GREYSCALE_25,backgroundColor:h$.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:h$.GREYSCALE_0_10,border:`1px solid ${h$.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:g$,height:24,width:24,padding:7},sizeLarge:{fontSize:b$,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:v$,borderRadius:x$}}},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:h$.GREYSCALE_20},tooltip:{backgroundColor:h$.GREYSCALE_20,fontSize:g$,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var j$=e=>z$;const $$={mode:"light",primary:{ultraLight:h$.GREEN_ULTRA_LIGHT,light:h$.GREEN_PALE,main:h$.GREEN,dark:h$.GREEN_DARK,extraDark:h$.GREEN_EXTRA_DARK,contrastText:h$.WHITE},secondary:{ultraLight:h$.BLUE_ULTRA_LIGHT,light:h$.BLUE_PALE,main:h$.BLUE,dark:h$.BLUE_DARK,extraDark:h$.BLUE_EXTRA_DARK,contrastText:h$.WHITE},error:{ultraLight:h$.RED_ULTRA_LIGHT,light:h$.RED_PALE,main:h$.RED,dark:h$.RED_DARK,extraDark:h$.RED_EXTRA_DARK,contrastText:h$.WHITE},warning:{ultraLight:h$.ORANGE_ULTRA_LIGHT,light:h$.ORANGE_PALE,main:h$.ORANGE,dark:h$.ORANGE_DARK,extraDark:h$.ORANGE_EXTRA_DARK,contrastText:h$.WHITE},success:{ultraLight:h$.GREEN_ULTRA_LIGHT,light:h$.GREEN_PALE,main:h$.GREEN,dark:h$.GREEN_DARK,extraDark:h$.GREEN_EXTRA_DARK,contrastText:h$.WHITE},info:{ultraLight:h$.BLUE_ULTRA_LIGHT,light:h$.BLUE_PALE,main:h$.BLUE,dark:h$.BLUE_DARK,extraDark:h$.BLUE_EXTRA_DARK,contrastText:h$.WHITE},text:{primary:h$.TEXT_PRIMARY,secondary:h$.TEXT_SECONDARY,disabled:h$.GREYSCALE_0_30},action:{hover:h$.GREYSCALE_0_03,hoverOpacity:.03,selected:h$.GREYSCALE_0_05,selectedOpacity:.05,focus:h$.MISC_FOCUS_BORDER},amethyst:{ultraLight:h$.WHITE,main:h$.PURPLE,light:h$.PURPLE_PALE,dark:h$.PURPLE_DARK,extraDark:h$.GREYSCALE_0_0,contrastText:h$.WHITE},background:{paper:h$.WHITE,default:h$.GREYSCALE_95},divider:h$.GREYSCALE_0_15},B$=e=>$$,H$=(e="light")=>({components:j$(),palette:B$(),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:v$,fontWeightLight:S$,fontWeightRegular:E$,fontWeightMedium:C$,fontWeightBold:w$,htmlFontSize:v$,fontFamily:R$.FONT_FAMILY,button:{fontWeight:C$,fontSize:v$,textTransform:"none"},body1:{fontSize:b$,lineHeight:"24px"},body2:{fontSize:v$,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:y$,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:b$,fontWeight:C$,lineHeight:"16px"},h6:{fontSize:v$,fontWeight:C$,lineHeight:"16px"},caption:{color:h$.TEXT_SECONDARY},subtitle1:{fontSize:v$,color:h$.TEXT_SECONDARY},subtitle2:{fontSize:g$,color:h$.TEXT_SECONDARY}},shape:{borderRadius:x$}});const W$=(e,t)=>{const{selections:n,styleService:r,app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d}=t,p=function(e){var t;const n=H$();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),wP({...n,direction:e})}("ltr");e.render(js.jsx(Wn.StrictMode,{children:js.jsx(aA,{theme:p,children:js.jsx(tT,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d,children:js.jsx(Iq,{selections:n,updatePageInfo:t.updatePageInfo,children:js.jsx(aT,{styleService:r,children:js.jsx(m$,{...t})})})})})}))},G$={darker:.15,brighter:.3,opacity:.03},V$={darker:.3,brighter:.5,opacity:.05};var U$,Y$,K$,X$;!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"}(U$||(U$={})),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"}(Y$||(Y$={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(K$||(K$={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(X$||(X$={}));const Q$=e=>e?`${parseInt(e,10)}px`:void 0,J$=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?Et.Transparent:n}},Z$=(e,t)=>+(parseInt(e,10)*xt*t+8).toFixed(2),eB=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?bt:"normal",tB=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",nB=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none";function rB(t,n){return e.useMemo((()=>t),n)}const oB={},iB=t=>{const n=e.useMemo((()=>({current:oB})),[]);return n.current=n.current===oB?t:n.current,n},aB=({fontStyle:e,fontWeight:t,fontSize:n,fontFamily:r})=>t?`${e} ${t} ${n} ${r}`:`${e} ${n} ${r}`,lB=(t,n,r)=>{var o,i;const a=null!==(o=null==r?void 0:r.qHyperCubeDef.qShowTotalsAbove)&&void 0!==o&&o,l=null!==(i=null==r?void 0:r.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==i&&i;return e.useMemo((()=>(({layout:e,flags:t,qShowTotalsAbove:n,qAlwaysFullyExpanded:r})=>{var o,i,a;const{qHyperCube:l,nullValueRepresentation:s,snapshotData:u}=e,{qNoOfLeftDims:c,qEffectiveInterColumnSortOrder:d,qMeasureInfo:p,qDimensionInfo:f}=l,m=!!u,h=null!==(o=null==u||null===(i=u.content)||void 0===i?void 0:i.rowsPerPage)&&void 0!==o?o:15e3,g={x:Math.min(e.qHyperCube.qSize.qcx,yt),y:Math.min(e.qHyperCube.qSize.qcy,h)},v=d.slice(0,c),b=e=>v.some((t=>t===e)),y=b(gT),x=new Map(d.map((e=>{var t;return[null!==(t=f[e])&&void 0!==t?t:gT,e]}))),S=p.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==s?void 0:s.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(y)return 0;const n=e%S.length;return t?n:p.findIndex((e=>e===S[n]))},getDimensionInfo:e=>e===gT?gT:f[e],getDimensionInfoIndex:e=>{var t;return null!==(t=x.get(e))&&void 0!==t?t:-1},size:g,isSnapshot:m,hasLimitedData:!m&&g.x<e.qHyperCube.qSize.qcx,hasData:g.x>0&&g.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:n,hasPseudoDimOnLeft:y,leftDimensionInfoIndexes:v,isLeftDimension:b,isFullyExpanded:r,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:S,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),indentModeColumnWidth:null!==(a=e.qHyperCube.indentModeColumnWidth)&&void 0!==a?a:{type:nt.Auto,pixels:tt.PixelsDefault,percentage:tt.PercentageDefault}}})({layout:t,flags:n,qShowTotalsAbove:a,qAlwaysFullyExpanded:l})),[t,a,l,n])},sB=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=iB(e);return t.current=e,t})(rN(o));return _k((async()=>{var t;const{qHyperCube:o}=i,{maxNumberOfVisibleRows:u,maxNumberOfVisibleColumns:c}=s.current;var d,p;if(a)return null!==(d=null===(p=i.snapshotData)||void 0===p||null===(p=p.content)||void 0===p?void 0:p.qPivotDataPages)&&void 0!==d?d:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,n,r)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=r||t.gridRowStartIndex+t.gridHeight>=n))(l,n,u,c)||((e,t,n,r)=>{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(r,l.qcx)||c<Math.min(n,l.qcy)})(i,r,u,c))){const t=((e,t,n,r,o,i)=>{const a=r.page*r.rowsPerPage,l=Math.min(a+r.rowsPerPage,n.qcy),s=Math.min(yt,n.qcx);if(n.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,n=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),n>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,n,i.qHyperCube.qSize,r,u,c);return t?e.getHyperCubePivotData(hT,oN(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,n,r.page,r.rowsPerPage,s,l])},uB=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),cB=(e,t,n=15e3)=>({rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:uB({rowsPerPage:n,totalRowCount:e,page:t})}),dB=15,pB=({layoutService:t,viewService:n,rect:r,model:o,pageInfo:i})=>{var a;return e.onTakeSnapshot((async e=>{if(!e.snapshotData||!o||e.snapshotData.content)return e;if(null!=o&&o.getHyperCubePivotData){const{scrollTop:t,scrollLeft:a,leftGridScrollLeft:l}=n,s=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,l=t.page*t.rowsPerPage,s=Math.max(r-dB,0),u=Math.max(l+o-dB,l,0);if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=rN(n);return{qLeft:s,qTop:u,qWidth:e+30,qHeight:t+30}}return{qLeft:s,qTop:u,qWidth:i+30,qHeight:a+30}})(n,i,r),u=oN(s),c={qLeft:0,qTop:i.page*i.rowsPerPage,qWidth:1,qHeight:1};e.snapshotData.content={qPivotDataPages:await o.getHyperCubePivotData(hT,[c,...u]),scrollTop:t,scrollLeft:a,leftGridScrollLeft:l,page:i.page,rowsPerPage:i.rowsPerPage},e.snapshotData.object.size.w=r.width,e.snapshotData.object.size.h=r.height}return e})),e.useImperativeHandle((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,renderPage:t.page}))(n,i)})),[n]),null!==(a=t.layout.snapshotData)&&void 0!==a&&a.content?{left:r.left,top:r.top,width:t.layout.snapshotData.object.size.w,height:t.layout.snapshotData.object.size.h}:r};var fB={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 mB=()=>{const t=e.useTranslator(),n=t.language();return e.useMemo((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(fB).forEach((t=>{e.add(fB[t])}))}}(t)),[t]),{translator:t,language:n}},hB=t=>{const{flags:n}=t,r=e.useElement(),o=(t=>{const n=e.useMemo((()=>VI(t)),[t]);return e.useEffect((()=>()=>n.unmount()),[n]),n})(r),i=e.useStaleLayout(),a=e.useModel(),l=e.useApp(),s=e.useEmbed(),u=e.useKeyboard(),c=e.useInteractionState(),d=(t=>{const{viewState:n}=e.useOptions(),r=iB(new Set),o=void 0!==n&&t.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),{promise:i,resolve:a}=e.useMemo((()=>gq()),[]),l=rB((e=>{r.current.add(e)}),[r]),s=rB(Ce((async()=>{await Promise.all(r.current),a()}),1e3),[a,r]);return e.usePromise((async()=>{o&&await i}),[i,o]),e.useMemo((()=>({viewState:n,isDownloadedAsPDForImage:o,notifyIsDoneRendering:s,waitForPromise:l})),[s,o,n,l])})(t),[p,f]=((e,t)=>_k((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(a,i),m=lB(i,n,p),h=e.useSelections(),g=Ik(i,r),{translator:v,language:b}=mB(),{pageInfo:y,updatePageInfo:x}=((t,n)=>{const{size:r,layout:{qHyperCube:{qSize:o}}}=t,i=n.isDownloadedAsPDForImage||t.isSnapshot,a=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(t),[l,s]=e.useState((()=>{const e=((e,t)=>{var n,r,o,i;return t.isDownloadedAsPDForImage?null!==(n=null===(r=t.viewState)||void 0===r?void 0:r.renderPage)&&void 0!==n?n: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})(t,n);return{page:e,shouldShowPagination:o.qcy>r.y&&!i,...cB(o.qcy,e,a)}}));return e.useEffect((()=>{s((e=>({...e,...cB(t.layout.qHyperCube.qSize.qcy,e.page,a),shouldShowPagination:t.layout.qHyperCube.qSize.qcy>t.size.y&&!i})))}),[t.layout.qHyperCube.qSize.qcy,t.size.y,s,i,a]),e.useEffect((()=>{const{page:e,totalPages:t}=l;if(e+1>t){const e=t-1,n=uB({...l,page:e});s({...l,page:e,rowsOnCurrentPage:n})}}),[l]),{pageInfo:l,updatePageInfo:e=>s({...l,...e,rowsOnCurrentPage:uB({...l,...e})})}})(m,d),S=((t,n,r)=>e.useMemo((()=>((e,t)=>{var n,r,o,i,a,l;if(e.isDownloadedAsPDForImage){var s,u,c;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(s=null==t?void 0:t.scrollTop)&&void 0!==s?s:0,scrollLeft:null!==(u=null==t?void 0:t.scrollLeft)&&void 0!==u?u:0,leftGridScrollLeft:null!==(c=null==t?void 0:t.leftGridScrollLeft)&&void 0!==c?c:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.scrollTop)&&void 0!==n?n: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}})(r,n.snapshotData)),[r,t.page,n.snapshotData]))(y,i,d),E=pB({rect:e.useRect(),layoutService:m,viewService:S,model:a,pageInfo:y}),[C,w]=sB({model:a,layoutService:m,viewService:S,pageInfo:y,rect:E}),R=e.useMemo((()=>((e,t,n)=>{var r,o,i,a,l,s,u,c,d,p,f,m,h,g,v,b,y,x,S,E,C,w,R,L,k,I,_,M,P,A,D,T,O,N,q,F,z,j,$,B,H,W,G,V,U,Y,K;const X=null===(r=t.layout.components)||void 0===r?void 0:r.find((e=>"theme"===e.key)),Q=null==X?void 0:X.header,J=null==X?void 0:X.dimensionValues,Z=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,ne=null==X?void 0:X.nullValues,re=null==X?void 0:X.grid,oe=(t,n,r)=>e.getStyle(t,n,r),ie=+(null!==(o=null!==(i=null==re?void 0:re[U$.LineClamp])&&void 0!==i?i:oe(Y$.Grid,K$.Grid,X$.LineClamp))&&void 0!==o?o:1),ae=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==re?void 0:re[U$.ColumnLineClamp])&&void 0!==l?l:oe(Y$.Grid,K$.Grid,X$.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=J$(e,null==Q?void 0:Q[U$.Background]))&&void 0!==u?u:oe(Y$.Dimension,K$.LabelName,X$.BackgroundColor))&&void 0!==s?s:Et.Transparent,se={header:{fontSize:null!==(c=null!==(d=Q$(null==Q?void 0:Q[U$.FontSize]))&&void 0!==d?d:oe(Y$.Dimension,K$.LabelName,X$.FontSize))&&void 0!==c?c:gt,fontFamily:null!==(p=null!==(f=null==Q?void 0:Q[U$.FontFamily])&&void 0!==f?f:oe(Y$.Dimension,K$.LabelName,X$.FontFamily))&&void 0!==p?p:vt,fontWeight:eB(null==Q?void 0:Q[U$.FontStyle],bt),fontStyle:tB(null==Q?void 0:Q[U$.FontStyle]),textDecoration:nB(null==Q?void 0:Q[U$.FontStyle]),color:null!==(m=null!==(h=J$(e,null==Q?void 0:Q[U$.FontColor]))&&void 0!==h?h:oe(Y$.Dimension,K$.LabelName,X$.Color))&&void 0!==m?m:bL.TEXT,background:le,hoverBackground:bk(le,G$),activeBackground:bk(le,V$)},dimensionValues:{fontSize:null!==(g=null!==(v=Q$(null==J?void 0:J[U$.FontSize]))&&void 0!==v?v:oe(Y$.Dimension,K$.LabelValue,X$.FontSize))&&void 0!==g?g:gt,fontFamily:null!==(b=null!==(y=null==J?void 0:J[U$.FontFamily])&&void 0!==y?y:oe(Y$.Dimension,K$.LabelValue,X$.FontFamily))&&void 0!==b?b:vt,fontWeight:eB(null==J?void 0:J[U$.FontStyle],void 0),fontStyle:tB(null==J?void 0:J[U$.FontStyle]),textDecoration:nB(null==J?void 0:J[U$.FontStyle]),color:null!==(x=null!==(S=J$(e,null==J?void 0:J[U$.FontColor]))&&void 0!==S?S:oe(Y$.Dimension,K$.LabelValue,X$.Color))&&void 0!==x?x:bL.TEXT,background:null!==(E=null!==(C=J$(e,null==J?void 0:J[U$.Background]))&&void 0!==C?C:oe(Y$.Dimension,K$.LabelValue,X$.BackgroundColor))&&void 0!==E?E:Et.Transparent},measureValues:{fontSize:null!==(w=null!==(R=Q$(null==Z?void 0:Z[U$.FontSize]))&&void 0!==R?R:oe(Y$.Measure,K$.LabelValue,X$.FontSize))&&void 0!==w?w:gt,fontFamily:null!==(L=null!==(k=null==Z?void 0:Z[U$.FontFamily])&&void 0!==k?k:oe(Y$.Measure,K$.LabelValue,X$.FontFamily))&&void 0!==L?L:vt,fontWeight:eB(null==Z?void 0:Z[U$.FontStyle],"normal"),fontStyle:tB(null==Z?void 0:Z[U$.FontStyle]),textDecoration:nB(null==Z?void 0:Z[U$.FontStyle]),color:null!==(I=null!==(_=J$(e,null==Z?void 0:Z[U$.FontColor]))&&void 0!==_?_:oe(Y$.Measure,K$.LabelValue,X$.Color))&&void 0!==I?I:Et.FontSecondary,background:null!==(M=null!==(P=J$(e,null==Z?void 0:Z[U$.Background]))&&void 0!==P?P:oe(Y$.Measure,K$.LabelValue,X$.BackgroundColor))&&void 0!==M?M:Et.Transparent},measureLabels:{fontWeight:eB(null==ee?void 0:ee[U$.FontStyle],"normal"),fontStyle:tB(null==ee?void 0:ee[U$.FontStyle]),textDecoration:nB(null==ee?void 0:ee[U$.FontStyle]),color:null!==(A=null!==(D=J$(e,null==ee?void 0:ee[U$.FontColor]))&&void 0!==D?D:oe(Y$.Measure,K$.LabelName,X$.Color))&&void 0!==A?A:Et.FontSecondary,background:null!==(T=null!==(O=J$(e,null==ee?void 0:ee[U$.Background]))&&void 0!==O?O:oe(Y$.Measure,K$.LabelName,X$.BackgroundColor))&&void 0!==T?T:Et.Transparent},totalValues:{fontWeight:eB(null==te?void 0:te[U$.FontStyle],bt),fontStyle:tB(null==te?void 0:te[U$.FontStyle]),textDecoration:nB(null==te?void 0:te[U$.FontStyle]),color:null!==(N=null!==(q=J$(e,null==te?void 0:te[U$.FontColor]))&&void 0!==q?q:oe(Y$.Total,K$.LabelValue,X$.Color))&&void 0!==N?N:bL.TEXT,background:null!==(F=null!==(z=J$(e,null==te?void 0:te[U$.Background]))&&void 0!==z?z:oe(Y$.Total,K$.LabelValue,X$.BackgroundColor))&&void 0!==F?F:Et.Transparent},nullValues:{fontWeight:eB(null==ne?void 0:ne[U$.FontStyle],"normal"),fontStyle:tB(null==ne?void 0:ne[U$.FontStyle]),textDecoration:nB(null==ne?void 0:ne[U$.FontStyle]),color:null!==(j=null!==($=J$(e,null==ne?void 0:ne[U$.FontColor]))&&void 0!==$?$:oe(Y$.Null,K$.LabelValue,X$.Color))&&void 0!==j?j:bL.TEXT,background:null!==(B=null!==(H=J$(e,null==ne?void 0:ne[U$.Background]))&&void 0!==H?H:oe(Y$.Null,K$.LabelValue,X$.BackgroundColor))&&void 0!==B?B:Et.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(W=null!==(G=J$(e,null==re?void 0:re[U$.Border]))&&void 0!==G?G:oe(Y$.Grid,K$.Grid,X$.BorderColor))&&void 0!==W?W:Et.DividerLight,divider:null!==(V=null!==(U=J$(e,null==re?void 0:re[U$.Divider]))&&void 0!==U?U:oe(Y$.Grid,K$.Divider,X$.BorderColor))&&void 0!==V?V:Et.DividerDark,background:null!==(Y=null!==(K=J$(e,null==re?void 0:re[U$.Background]))&&void 0!==K?K:oe(Y$.Grid,K$.Grid,X$.BackgroundColor))&&void 0!==Y?Y:Et.Transparent}};return se.headerCellHeight=Math.max(Z$(se.header.fontSize,ae),Z$(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(Z$(se.measureValues.fontSize,ie),Z$(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=Z$(se.dimensionValues.fontSize,1),se})(g,m,n)),[g,m,n]),L=(t=>e.useMemo((()=>[...new Set([aB(t.header),aB(t.dimensionValues),aB({...t.dimensionValues,...t.measureLabels}),aB({...t.dimensionValues,...t.nullValues}),aB({...t.dimensionValues,...t.totalValues}),aB(t.measureValues),aB({...t.measureValues,...t.nullValues}),aB({...t.measureValues,...t.totalValues})])]),[t]))(R),k=(t=>{const[n,r]=e.usePromise((()=>Promise.all(t.map((e=>document.fonts.load(e))))),[t]);return r?(console.warn("Failed to load font:",r),!0):!!n})(L);n.isEnabled("CLIENT_IM6278_PIVOT_COPYCELL")&&ZI(),e.useEffect((()=>{!w&&a&&(null==E?void 0:E.width)&&(null==E?void 0:E.height)&&h&&S&&m&&R&&!!C&&!f&&k&&W$(o,{model:a,app:l,rect:E,selections:h,viewService:S,layoutService:m,downloadService:d,qPivotDataPages:C,styleService:R,translator:v,pageInfo:y,updatePageInfo:x,interactions:c,embed:s,keyboard:u,theme:g,env:t})}),[a,l,E,null==E?void 0:E.width,null==E?void 0:E.height,c,h,S,m,d,w,C,R,o,k,v,b,y,x,p,f,s,u,g,t])},gB={version:"3.8.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:[]},vB=e=>({...gB,qHyperCubeDef:{...gB.qHyperCubeDef,qIndentMode:e.flags.isEnabled("CLIENT_IM_5975_INDENT_MODE")}});return function(e){return{qae:{properties:{initial:vB(e)},data:Pe(e)},ext:Kt(e),component(){hB(e)}}}}));
|