@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/core/esm/index.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
|
import{useState as e,useEffect as t,useTheme as n,useMemo as r,usePromise as o,onContextMenu as i,useOptions as a,onTakeSnapshot as l,useImperativeHandle as s,useTranslator as u,useElement as c,useStaleLayout as d,useModel as p,useApp as f,useEmbed as h,useKeyboard as m,useInteractionState as g,useSelections as b,useRect as v}from"@nebula.js/stardust";import*as y from"react";import x,{useContext as S,createElement as E,Children as C,isValidElement as w,cloneElement as R,useMemo as L,useState as A,useRef as I,forwardRef as M,useCallback as D,useEffect as P,createContext as _,memo as O,useLayoutEffect as T,PureComponent as k}from"react";import*as q from"react-dom";import N from"react-dom";function F(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function z(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 j={exports:{}};self,j.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,h=!1;for("boolean"==typeof d&&(h=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))&&(h&&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(h,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,h=!1;for("boolean"==typeof d&&(h=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))&&(h&&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(h,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 h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],o),h(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=h(0),m=h(1),g=v(d,f),b=v(p,m);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.length){var d=h(0),p=h(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:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(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=h(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:h,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={},A=Array.isArray;function I(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function M(e){return void 0===e}function D(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function P(e,t){var 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]=M(e[n||t])?i:e[t],e=e[n||t]}})),e}function _(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){_(e[r],t[r])||(n=!1)})),n);if(A(e)&&A(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!_(e[r],t[r]))return!1;return!0}return e===t}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);_(i,a)||D(t,o)||(M(a)?r.push({op:"add",path:l,value:i}):I(i)&&I(a)?r=r.concat(L.generate(a,i,l)):A(i)&&A(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&M(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(_(t,o))return r;if(!M(t[0])&&M(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){M(t[o])&&!D(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(A(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(A(a)&&A(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return 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&&!D(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);A(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(A(o)?o.splice(+i,1):delete o[i])}))},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 O=L,T=function(e,n,r){if(!e)return Promise.resolve();var o=O.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 k="accumulation";function q(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===k)return n[r]}function N(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===k)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 h=E.getDimComp(u,1),m=E.getDimComp(u,0),g=E.getAggrComp(f,h,m);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(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=q(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=q(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(k))return!1;var i=q(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 G(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const H={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),h=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",h);else{var m=E.getRangeComp("RangeSum",h),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(m," / ").concat(g)}var b=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,B)},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(G(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(G(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(G(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(G(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(G(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(G(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var W="timeSeriesDecomposition";function V(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===W)return n[r]}function Y(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===W)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var U={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,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,U),""===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(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,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(W))return!1;var i=V(t,e);return i&&!i.disabled}};return n}};var X="difference";function J(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Z(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 Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,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),h=E.getDimComp(u,0),m=E.getAggrComp(p,f,h);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},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(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t,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",he="qLibraryId",me="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,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Le="qDef.base.qAggrFunc",Ae={initBase:function(e,t){(t||Ae.isValid(e))&&(n(e,ve,i(e,be)),n(e,xe,i(e,ye)),n(e,Ce,i(e,Se)),n(e,we,i(e,Ee)))},restoreBase:function(e){Ae.isValid(e)&&(n(e,be,i(e,ve)),n(e,ye,i(e,xe)),n(e,Se,i(e,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,ve),n=i(e,xe);return void 0!==t||void 0!==n}};const Ie=Ae;function Me(e){return Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(e)}var De={accumulation:z,movingAverage:H,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Pe={modifiers:De,apply:Oe,applyModifiers:Te,cleanUpMeasure:ke,destroy:function(e){e&&_e[e.id]&&_e[e.id].masterItemSubscriber&&(_e[e.id].masterItemSubscriber&&_e[e.id].masterItemSubscriber.unsubscribe(),delete _e[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:Ie.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return De[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return De[e]&&De[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);Ye({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Ze({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Fe};var _e={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;_e[n.id]=_e[n.id]||{isFirstTime:!0};var u=_e[n.id].isFirstTime;if(_e[n.id].isFirstTime=!1,r&&"object"===Me(r))return Te({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=_e[n.id].lastReloadTime;if(_e[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var h=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 h||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 Ye({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);Ge(r);var o=Qe(r);return Ue({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return h&&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"===Me(e)&&!e.disabled){if(n++,"object"!==Me(De[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=De[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&He(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"===Me(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Qe(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return ze(r).forEach((function(e){return ke(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function Te(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?t()(!0,{},o):o),Ge(o);var p=Qe(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(!qe({measures:n,properties:r}))return n.forEach((function(e){return ke(e)})),Promise.resolve();var s=a?void 0:Qe(r);return Ue({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ye({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"===Me(e)&&!e.disabled){if(l++,"object"!==Me(De[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");De[e.type].initModifier(e,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:De[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 De[r.type].updateModifier&&De[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:De[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}),Be(n)):ke(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function ke(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Me(e)&&!e.disabled&&!De[e.type]}))}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function qe(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ye({modifiers:je(e),properties:n,layout:r})}))}function Ne(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(De[r.type]&&!r.disabled)return r}}function Fe(e){var t=Ne(e);return!t||De[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 Ge(e){ze(e).forEach((function(e){return function(e){var n=Ne(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 Be(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Me(t)&&(t.disabled||!De[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function He(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=He(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,n=e.properties,r=e.layout;return!We(t)&&Ye({modifiers:je(t),properties:n,layout:r})}function Ye(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Me(e)||e.disabled||!De[e.type])&&(void 0===o[e.type]&&(o[e.type]=De[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ue(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):T(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Me(e)&&!e.disabled&&De[e.type]&&De[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(e){var t=ze(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ye({modifiers:r,properties:e})){var i=We(t);i&&n.push(i),o=o||Ze({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(_e[t.id].masterItemSubscriber=_e[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),_e[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),o=Math.floor(n/62);return o>0?t(o)+r:r}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(r,{default:()=>Ge});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 h=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))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,s(r.qMeasures));var a,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!i.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(r=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(r)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=a}var S=n(229),E=n.n(S);function 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 A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function 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 M=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},D=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},_=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},O=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},T=function(e){var t,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)}},k=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)}},q=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}},N=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 A(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},G=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)}))}},B=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 H(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){i.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const W={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,n||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:s}),m({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),n&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),r||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=F({exportFormat:t,initialProperties:r,hypercubePath:u}),b=i.getValue(r,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?_():w,L=s.defaultMeasure,A=void 0===L?O():L;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),T({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),k({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:A}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),G({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),D("qMaxStackedCells",b,v),D("qNoOfLeftDims",b,v),P("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),P("qMode",b,v,"S"),P("qReductionMode",b,v,"N"),P("qSortbyYValue",b,v),P("qIndentMode",b,v),P("qShowTotalsAbove",b,v),M(g,t,r),m.qProperty=g;var I=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:I}),p&&H(m.qProperty,"storedFilters"),"S"===v.qMode&&h&&H(m.qProperty,"dynamicScript"),m}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function Y(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 U(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!V[e])throw new Error("Attribute Expressions Util: ID required");var 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(Y(a,t,r,o),U(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,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=(Q[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},de=function(e,t){var n,r=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(n={auto:o,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?le(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==l&&!o.length)}({auto:o,colorMode:r,dimensions:a,measures:l,properties:e})?function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qMeasures"),[]),r=i.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var o=oe("measure",!1,n[r.activeMeasureIndex],!0);o.activeMeasureIndex=r.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||r[0])),!!l}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=i.getValue(e,"color.mode"),r=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&o.length<2&&i.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=i.getValue(n,"qHyperCubeDef.qMeasures",[]),o=i.getValue(n,"color.mode","");return!t&&"byExpression"===o&&r.length>0},he=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)},me=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n},be={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=W.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=W.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:b,properties:d})&&he(d):me(d),b&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?H(n,"unsupportedAutoMinMax")||E()(n.measureAxis,t.measureAxis):H(n,"supportedAutoMinMax")||E()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,o=n.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[o].type[r]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,n.properties.measureAxes[t[0].axis])):E()(l,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},Ee={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function 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",Ae="conditionalColoring",Ie="measures",Me="qDef.conditionalColoring";const De={quarantine:function(e){we({properties:e,arrayPath:Le,quarantineName:Ae,arrayName:Ie,itemPath:Me})},unquarantine:function(e){Re({properties:e,arrayPath:Le,itemPath:Me,arrayName:Ie,quarantineName:Ae})}};var Pe="qHyperCubeDef.qMeasures",_e="measures",Oe="qHyperCubeDef.qDimensions",Te="dimensions",ke="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",ze="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){we({properties:e,arrayPath:Pe,quarantineName:je,arrayName:_e,itemPath:ze}),we({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Te,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,quarantineName:je,arrayName:_e,itemPath:ze}),Re({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Te,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:ke,quarantineName:je,arrayName:qe,itemPath:ze}),we({properties:e,arrayPath:Ne,quarantineName:je,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:ke,quarantineName:je,arrayName:qe,itemPath:ze}),Re({properties:e,arrayPath:Ne,quarantineName:je,arrayName:Fe,itemPath:ze})}},Ge={hypercube:W,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:H,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:De,conditionalShow:$e}})(),r.default})();var $=F(j.exports);const G="qHyperCubeDef.qDimensions",B="dimensions",H="qDef.representation",W="tableRepresentation",V=e=>{$.unquarantineArrayProp({properties:e,arrayPath:G,itemPath:H,arrayName:B,quarantineName:W})},Y=e=>{$.quarantineArrayProp({properties:e,arrayPath:G,itemPath:H,arrayName:B,quarantineName:W})};var U=["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"],K=["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 X(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?K:U}var J=Object.prototype.hasOwnProperty,Z=Object.prototype.toString,Q=Object.defineProperty,ee=Object.getOwnPropertyDescriptor,te=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Z.call(e)},ne=function(e){if(!e||"[object Object]"!==Z.call(e))return!1;var t,n=J.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&J.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||J.call(e,t)},re=function(e,t){Q&&"__proto__"===t.name?Q(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},oe=function(e,t){if("__proto__"===t){if(!J.call(e,t))return;if(ee)return ee(e,t).value}return e[t]};function ie(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ae(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function le(){}!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=oe(l,n),l!==(o=oe(t,n))&&(c&&o&&(ne(o)||(i=te(o)))?(i?(i=!1,a=r&&te(r)?r:[]):a=r&&ne(r)?r:{},re(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&re(l,{name:n,newValue:o}));return l}));var se=1/.7,ue="\\s*([+-]?\\d+)\\s*",ce="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",de="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",pe=/^#([0-9a-f]{3,8})$/,fe=new RegExp(`^rgb\\(${ue},${ue},${ue}\\)$`),he=new RegExp(`^rgb\\(${de},${de},${de}\\)$`),me=new RegExp(`^rgba\\(${ue},${ue},${ue},${ce}\\)$`),ge=new RegExp(`^rgba\\(${de},${de},${de},${ce}\\)$`),be=new RegExp(`^hsl\\(${ce},${de},${de}\\)$`),ve=new RegExp(`^hsla\\(${ce},${de},${de},${ce}\\)$`),ye={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 xe(){return this.rgb().formatHex()}function Se(){return this.rgb().formatRgb()}function Ee(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=pe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Ce(t):3===n?new Ae(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?we(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?we(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=fe.exec(e))?new Ae(t[1],t[2],t[3],1):(t=he.exec(e))?new Ae(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=me.exec(e))?we(t[1],t[2],t[3],t[4]):(t=ge.exec(e))?we(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=be.exec(e))?Oe(t[1],t[2]/100,t[3]/100,1):(t=ve.exec(e))?Oe(t[1],t[2]/100,t[3]/100,t[4]):ye.hasOwnProperty(e)?Ce(ye[e]):"transparent"===e?new Ae(NaN,NaN,NaN,0):null}function Ce(e){return new Ae(e>>16&255,e>>8&255,255&e,1)}function we(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ae(e,t,n,r)}function Re(e){return e instanceof le||(e=Ee(e)),e?new Ae((e=e.rgb()).r,e.g,e.b,e.opacity):new Ae}function Le(e,t,n,r){return 1===arguments.length?Re(e):new Ae(e,t,n,null==r?1:r)}function Ae(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ie(){return`#${_e(this.r)}${_e(this.g)}${_e(this.b)}`}function Me(){const e=De(this.opacity);return`${1===e?"rgb(":"rgba("}${Pe(this.r)}, ${Pe(this.g)}, ${Pe(this.b)}${1===e?")":`, ${e})`}`}function De(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Pe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function _e(e){return((e=Pe(e))<16?"0":"")+e.toString(16)}function Oe(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ke(e,t,n,r)}function Te(e){if(e instanceof ke)return new ke(e.h,e.s,e.l,e.opacity);if(e instanceof le||(e=Ee(e)),!e)return new ke;if(e instanceof ke)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 ke(a,l,s,e.opacity)}function ke(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function qe(e){return(e=(e||0)%360)<0?e+360:e}function Ne(e){return Math.max(0,Math.min(1,e||0))}function Fe(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ie(le,Ee,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:xe,formatHex:xe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Te(this).formatHsl()},formatRgb:Se,toString:Se}),ie(Ae,Le,ae(le,{brighter(e){return e=null==e?se:Math.pow(se,e),new Ae(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ae(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ae(Pe(this.r),Pe(this.g),Pe(this.b),De(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:Ie,formatHex:Ie,formatHex8:function(){return`#${_e(this.r)}${_e(this.g)}${_e(this.b)}${_e(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Me,toString:Me})),ie(ke,(function(e,t,n,r){return 1===arguments.length?Te(e):new ke(e,t,n,null==r?1:r)}),ae(le,{brighter(e){return e=null==e?se:Math.pow(se,e),new ke(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ke(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 Ae(Fe(e>=240?e-240:e+120,o,r),Fe(e,o,r),Fe(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ke(qe(this.h),Ne(this.s),Ne(this.l),De(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=De(this.opacity);return`${1===e?"hsl(":"hsla("}${qe(this.h)}, ${100*Ne(this.s)}%, ${100*Ne(this.l)}%${1===e?")":`, ${e})`}`}}));const ze=Math.PI/180,je=180/Math.PI,$e=4/29,Ge=6/29,Be=3*Ge*Ge;function He(e){if(e instanceof We)return new We(e.l,e.a,e.b,e.opacity);if(e instanceof Xe)return Je(e);e instanceof Ae||(e=Re(e));var t,n,r=Ke(e.r),o=Ke(e.g),i=Ke(e.b),a=Ve((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=Ve((.4360747*r+.3850649*o+.1430804*i)/.96422),n=Ve((.0139322*r+.0971045*o+.7141733*i)/.82521)),new We(116*a-16,500*(t-a),200*(a-n),e.opacity)}function We(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Ve(e){return e>.008856451679035631?Math.pow(e,1/3):e/Be+$e}function Ye(e){return e>Ge?e*e*e:Be*(e-$e)}function Ue(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Ke(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Xe(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Je(e){if(isNaN(e.h))return new We(e.l,0,0,e.opacity);var t=e.h*ze;return new We(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ie(We,(function(e,t,n,r){return 1===arguments.length?He(e):new We(e,t,n,null==r?1:r)}),ae(le,{brighter(e){return new We(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new We(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 Ae(Ue(3.1338561*(t=.96422*Ye(t))-1.6168667*(e=1*Ye(e))-.4906146*(n=.82521*Ye(n))),Ue(-.9787684*t+1.9161415*e+.033454*n),Ue(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),ie(Xe,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Xe)return new Xe(e.h,e.c,e.l,e.opacity);if(e instanceof We||(e=He(e)),0===e.a&&0===e.b)return new Xe(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*je;return new Xe(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Xe(e,t,n,null==r?1:r)}),ae(le,{brighter(e){return new Xe(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Xe(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Je(this).rgb()}}));var Ze=e=>()=>e;function Qe(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Ze(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?Qe: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):Ze(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Le(e)).r,(t=Le(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Qe(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 et="center",tt="bottom";[{key:"NoDataExist",alignment:et,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:et,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:et,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:et},{key:"DataRangeIncludingZero",alignment:tt},{key:"LimitedData",alignment:tt},{key:"NegativeOrZeroValues",alignment:tt}].reduce((function(e,t){return e[t.key]=t,e}),{});var nt,rt=["__proto__","constructor"];function ot(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!rt.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 it(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 at(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 lt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=ut)):void 0===t&&(t=st);for(var n,r,o,i,a,l=new pt(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 pt(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(dt)}function st(e){return e.children}function ut(e){return Array.isArray(e)?e[1]:null}function ct(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function dt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function pt(e){this.data=e,this.depth=this.height=0,this.parent=null}function ft(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")}}]}}pt.prototype=lt.prototype={constructor:pt,count:function(){return this.eachAfter(at)},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 lt(this).eachBefore(ct)},[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)}},nt=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\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},nt({exports:{}});const ht="qHyperCubeDef.qDimensions",mt="dimensions",gt="qOtherTotalSpec.qTotalMode",bt="totalMode",vt={quarantine(e){$.quarantineArrayProp({properties:e,arrayPath:ht,quarantineName:bt,arrayName:mt,itemPath:gt})},unquarantine(e){$.unquarantineArrayProp({properties:e,arrayPath:ht,quarantineName:bt,arrayName:mt,itemPath:gt})}};function yt(e){const t=ft(e);return(e,n,r,o)=>{var i,a,l,s,u,c;const d=$.hypercube.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t.targets[0],hypercubePath:o}),p=((null===(i=d.qProperty)||void 0===i||null===(i=i.qHyperCubeDef)||void 0===i?void 0:i.qDimensions)||[]).length,f=(null===(a=d.qProperty)||void 0===a||null===(a=a.qHyperCubeDef)||void 0===a||null===(a=a.qMeasures)||void 0===a?void 0:a.length)||0;let h,m=(null===(l=d.qProperty)||void 0===l||null===(l=l.qHyperCubeDef)||void 0===l?void 0:l.qInterColumnSortOrder)||[],g=!0;p+f===m.length&&ot(d,"qProperty.qLayoutExclude.quarantine.interColSortOrder",m.concat());const b=(null==d||null===(s=d.qProperty)||void 0===s||null===(s=s.qLayoutExclude)||void 0===s||null===(s=s.quarantine)||void 0===s?void 0:s.pivotInterColSortOrder)||void 0;b?(m=b,h=[...b],ot(d,"qProperty.qHyperCubeDef.qInterColumnSortOrder",m),delete d.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):m.length=0;const v=+(m.indexOf(-1)>-1),y=p+v;if(y>m.length)for(let e=m.length;e<y;e++)m.indexOf(e)<0&&m.push(e-v);for(let e=m.length-1;e>=0;e--)m[e]>=p&&m.splice(e,1);f>1&&m.indexOf(-1)<0?m.push(-1):f<2&&m.indexOf(-1)>-1&&m.splice(m.indexOf(-1),1);const x=null!==(u=null==d||null===(c=d.qProperty)||void 0===c||null===(c=c.qHyperCubeDef)||void 0===c?void 0:c.qNoOfLeftDims)&&void 0!==u?u:-1;if(p>0&&-1===x&&ot(d,"qProperty.qHyperCubeDef.qNoOfLeftDims",p),h&&m&&h.length===m.length){for(let e=0;e<h.length;e++)if(h[e]!==m[e]){g=!1;break}g&&$.unquarantineProperty(d.qProperty,"noOfLeftDims")}return $.conditionalShow.unquarantine(d.qProperty),vt.unquarantine(d.qProperty),V(d.qProperty),$.unquarantineProperty(d.qProperty,"pivotTableIndentMode"),d}}function xt(e,t){var n,r,o;const i=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:[],a=i.slice(),l=i.indexOf(-1);l>-1&&i.splice(l,1);const s=$.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),u=s.properties.qHyperCubeDef,c=u.qDimensions.length,d=u.qMeasures.length;let p=u.qInterColumnSortOrder;ot(s,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",a),$.quarantineProperty(s.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete s.properties.qHyperCubeDef.qNoOfLeftDims;const f=null==s||null===(o=s.properties)||void 0===o||null===(o=o.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.interColSortOrder;f&&(p=f,ot(s,"properties.qHyperCubeDef.qInterColumnSortOrder",p),ot(s,"data.0.interColumnSortOrder",p),delete s.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=p.length;e<c+d;e++)p.length<=e&&p.push(e);return $.quarantineProperty(s.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),$.conditionalShow.quarantine(s.properties),vt.quarantine(s.properties),Y(s.properties),s}const St={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},Et=(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}}},Ct=e=>{if(e)return{representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition"},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel"},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl"}}},wt=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"}]}}}}},Rt=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:Et(a,i),...Ct(i),...wt(a)}},Lt=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 At,It,Mt,Dt;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(At||(At={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(It||(It={})),function(e){e.LEFT_GRID="leftGrid",e.DATA_GRID="dataGrid",e.CONTAINER_GRID="containerGrid"}(Mt||(Mt={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(Dt||(Dt={}));const Pt="12px",_t="nebula-table-utils-head-menu-button",Ot="sn-copy-cell";let Tt=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 kt="nebula-table-utils-column-adjuster",qt=`${kt}-border`;let Nt=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}({}),Ft=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});var zt,jt;!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"}(zt||(zt={})),function(e){e.NX_CELL_DATA="D",e.NX_CELL_TOP="T",e.NX_CELL_LEFT="L"}(jt||(jt={}));var $t=zt;const Gt="image",Bt=(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},Ht=(e,t)=>!e.properties.qHyperCubeDef.qIndentMode||!t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),Wt=e=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:Ft.Auto,translation:"Common.Auto"},{value:Ft.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:Ft.Pixels,translation:"Object.Table.Column.Pixels"},{value:Ft.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:Ft.Auto,show:(t,n,r)=>Ht(r,e)},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:Nt.PixelsDefault,show:(t,n,r)=>{var o;return Ht(r,e)&&(null===(o=t.qDef.columnWidth)||void 0===o?void 0:o.type)===Ft.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(Nt.PixelsMin,Math.min(Nt.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:Nt.PercentageDefault,show:(t,n,r)=>{var o;return Ht(r,e)&&(null===(o=t.qDef.columnWidth)||void 0===o?void 0:o.type)===Ft.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(Nt.PercentageMin,Math.min(Nt.PercentageMax,e.qDef.columnWidth.percentage)))}}}),Vt=({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)!==Gt}},[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)!==Gt)}}}},Yt="TOTAL_OFF",Ut={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:It.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:It.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:It.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:It.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:It.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:It.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},Kt="TOTAL_OFF",Xt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:It.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:It.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:It.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:It.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:It.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:It.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},Jt=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:Yt,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:Yt,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&Bt},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)!==Yt&&Bt(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:Ut,...Vt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Vt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Rt(e),...Wt(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:Ut,...Vt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Vt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Lt(e),...Wt(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:Kt,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:Kt,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&Bt},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)!==Kt&&Bt(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:Xt,...Vt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Vt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Rt(e),...Wt(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:Xt,...Vt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Vt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Lt(e),...Wt(i)}}}}},Zt="12px",Qt="Source Sans Pro, sans-serif",en="600",tn=15e3,nn=4/3,rn=1;var on,an;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(on||(on={})),function(e){e.Solid="solid",e.None="none"}(an||(an={}));const ln={display:"flex",justifyContent:"center",alignItems:"center"},sn={borderStyle:"solid"},un={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},cn={lineHeight:nn,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},dn=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),pn=(e,t)=>e>0?`${e}px ${an.Solid} ${t}`:an.None,fn=(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:pn(o,n),borderBottom:pn(i,n),borderLeft:an.None,borderTop:an.None}},hn=(e,t,n,r,o,i)=>{const a=fn(t,r,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=pn(2,o)),n||(a.borderLeft=pn(1,o))),a},mn=({bottomDivider:e,rightDivider:t,borderColor:n})=>{const r={};return e&&(r.borderBottom=pn(1,n)),t&&(r.borderRight=pn(1,n)),r},gn=(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===on.Transparent.toString()?"none":i}}}),bn=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),vn=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:bn("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?bn("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:gn("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:on.DividerLight})),divider:gn("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:on.DividerDark})),background:gn("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:on.Transparent}))}}}}),yn=(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},xn=({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:Qt,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=>yn(e,!0)))],c=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...X(r).filter((e=>!s.includes(e))).map((e=>yn(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),Sn=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],En=({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=>yn(e,!1)))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...Sn.filter((e=>!a.includes(e))).map((e=>yn(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),Cn=(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}},wn=({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:xn({ref:`${e}.fontFamily`,themeAccessor:t=>{var n;return null!==(n=Cn(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:En({ref:`${e}.fontSize`,themeAccessor:t=>{var n;return null!==(n=Cn(t,e,"fontSize"))&&void 0!==n?n:t.fontSize},translator:n}),fontColor:gn(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=Cn(t,e,"color"))&&void 0!==n?n:t.color}))}},background:gn(`${e}.background`,"properties.background",(t=>{var n;return null!==(n=Cn(t,e,"backgroundColor"))&&void 0!==n?n:on.Transparent}))}}}}),Rn=({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:gn(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=Cn(t,e,"color"))&&void 0!==n?n:t.color}))}},background:gn(`${e}.background`,"properties.background",(t=>{var r,o;return null!==(r=null!==(o=Cn(t,e,"backgroundColor"))&&void 0!==o?o:n)&&void 0!==r?r:on.Transparent}))}}}}),Ln=(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:wn({section:"header",defaultFontStyle:["bold"],translator:e,flags:t}),dimensionValueSection:wn({section:"dimensionValues",translator:e,flags:t}),measureValueSection:wn({section:"measureValues",translator:e,flags:t}),measureLabelSection:Rn({section:"measureLabels"}),totalValuesSection:Rn({section:"totalValues",defaultFontStyle:["bold"]}),nullValuesSection:Rn({section:"nullValues",fallbackBackground:on.NullValueBackground}),gridSection:vn(t)}}]}),An=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:Ft.Auto,translation:"Common.Auto"},{value:Ft.Pixels,translation:"Object.Table.Column.Pixels"},{value:Ft.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:Ft.Auto,show:e=>e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:Nt.PixelsDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===Ft.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(Nt.PixelsMin,Math.min(Nt.PixelsMax,n.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:Nt.PercentageDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===Ft.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(Nt.PercentageMin,Math.min(Nt.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)}}}}),In=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[Ln(e,t),An(t)]}}}),Mn="auto",Dn={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:Mn,translation:"Object.Table.SortingInSearch",options:[{value:Mn,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function Pn(e){const{translator:t,flags:n}=e;return{type:"items",component:"accordion",items:{data:Jt(e),sorting:Dn,addons:St,settings:In(t,n)}}}function _n(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:Pn(e),importProperties:yt(e),exportProperties:xt}}function On(){return On=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},On.apply(this,arguments)}var Tn={exports:{}};function kn(){}function qn(){}qn.resetWarningCache=kn;Tn.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:qn,resetWarningCache:kn};return n.PropTypes=n,n}();var Nn=F(Tn.exports);function Fn(e){if(e.type)return e;if("#"===e.charAt(0))return Fn(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 zn(e,t){return e=Fn(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 jn(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 $n(e,t){return $n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$n(e,t)}function Gn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$n(e,t)}const Bn={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"},Hn={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",...Bn,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)"},Wn=12,Vn=14,Yn=16,Un=24,Kn=3,Xn=300,Jn=400,Zn=600,Qn=700,er={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};zn(Hn.GREYSCALE_0,.05),zn(Hn.GREEN_PALE,.5),zn(Hn.BLUE_PALE,.5),zn(Hn.GREEN_PALE,.5),zn(Hn.BLUE_PALE,.5),zn(Hn.GREEN_PALE,.5),zn(Hn.BLUE_PALE,.5);var tr;function nr(){return nr=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},nr.apply(this,arguments)}zn(Hn.GREEN_PALE,.5),zn(Hn.BLUE_PALE,.5),zn(Hn.GREEN_PALE,.5),zn(Hn.BLUE_PALE,.5);var rr,or=function(e){return y.createElement("svg",nr({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),tr||(tr=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};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)}var ar=function(e){return y.createElement("svg",ir({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),rr||(rr=y.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function lr({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return x.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 sr=(e={})=>x.createElement(lr,{...e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},x.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),x.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),ur=(e={})=>x.createElement(lr,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),x.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),cr=(e={})=>x.createElement(lr,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},x.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),dr=(e={})=>x.createElement(lr,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),x.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),pr=({className:e})=>x.createElement(lr,{fontSize:"small",className:e},x.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},x.createElement("g",{transform:"translate(4.324187, 1.300372)"},x.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),x.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"}))))));var fr={black:"#000",white:"#fff"};var hr={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 mr={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 gr={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 br={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 vr={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 yr={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 xr={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 Sr(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 Er="$$material";function Cr(){return Cr=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},Cr.apply(this,arguments)}function wr(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 Rr(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 Lr=Object.freeze({__proto__:null,default:Rr}),Ar=function(){return Ar=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},Ar.apply(this,arguments)};function Ir(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 Mr="-ms-",Dr="-moz-",Pr="-webkit-",_r="comm",Or="rule",Tr="decl",kr="@import",qr="@keyframes",Nr="@layer",Fr=Math.abs,zr=String.fromCharCode,jr=Object.assign;function $r(e){return e.trim()}function Gr(e,t){return(e=t.exec(e))?e[0]:e}function Br(e,t,n){return e.replace(t,n)}function Hr(e,t,n){return e.indexOf(t,n)}function Wr(e,t){return 0|e.charCodeAt(t)}function Vr(e,t,n){return e.slice(t,n)}function Yr(e){return e.length}function Ur(e){return e.length}function Kr(e,t){return t.push(e),e}function Xr(e,t){return e.filter((function(e){return!Gr(e,t)}))}var Jr=1,Zr=1,Qr=0,eo=0,to=0,no="";function ro(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Jr,column:Zr,length:a,return:"",siblings:l}}function oo(e,t){return jr(ro("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function io(e){for(;e.root;)e=oo(e.root,{children:[e]});Kr(e,e.siblings)}function ao(){return to=eo>0?Wr(no,--eo):0,Zr--,10===to&&(Zr=1,Jr--),to}function lo(){return to=eo<Qr?Wr(no,eo++):0,Zr++,10===to&&(Zr=1,Jr++),to}function so(){return Wr(no,eo)}function uo(){return eo}function co(e,t){return Vr(no,e,t)}function po(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 fo(e){return $r(co(eo-1,go(91===e?e+2:40===e?e+1:e)))}function ho(e){for(;(to=so())&&to<33;)lo();return po(e)>2||po(to)>3?"":" "}function mo(e,t){for(;--t&&lo()&&!(to<48||to>102||to>57&&to<65||to>70&&to<97););return co(e,uo()+(t<6&&32==so()&&32==lo()))}function go(e){for(;lo();)switch(to){case e:return eo;case 34:case 39:34!==e&&39!==e&&go(to);break;case 40:41===e&&go(e);break;case 92:lo()}return eo}function bo(e,t){for(;lo()&&e+to!==57&&(e+to!==84||47!==so()););return"/*"+co(t,eo-1)+"*"+zr(47===e?e:lo())}function vo(e){for(;!po(so());)lo();return co(e,eo)}function yo(e){return function(e){return no="",e}(xo("",null,null,null,[""],e=function(e){return Jr=Zr=1,Qr=Yr(no=e),eo=0,[]}(e),0,[0],e))}function xo(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",x=o,S=i,E=r,C=y;g;)switch(h=v,v=lo()){case 40:if(108!=h&&58==Wr(C,d-1)){-1!=Hr(C+=Br(fo(v),"&","&\f"),"&\f",Fr(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=fo(v);break;case 9:case 10:case 13:case 32:C+=ho(h);break;case 92:C+=mo(uo()-1,7);continue;case 47:switch(so()){case 42:case 47:Kr(Eo(bo(lo(),uo()),t,n,s),s);break;default:C+="/"}break;case 123*m:l[u++]=Yr(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=Br(C,/\f/g,"")),f>0&&Yr(C)-d&&Kr(f>32?Co(C+";",r,n,d-1,s):Co(Br(C," ","")+";",r,n,d-2,s),s);break;case 59:C+=";";default:if(Kr(E=So(C,t,n,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)xo(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===Wr(C,3)?100:p){case 100:case 108:case 109:case 115:xo(e,E,E,r&&Kr(So(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,r?x:S);break;default:xo(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+Yr(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==ao())continue;switch(C+=zr(v),v*m){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Yr(C)-1)*b,b=1;break;case 64:45===so()&&(C+=fo(lo())),p=so(),c=d=Yr(y=C+=vo(uo())),v++;break;case 45:45===h&&2==Yr(C)&&(m=0)}}return i}function So(e,t,n,r,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],h=Ur(f),m=0,g=0,b=0;m<r;++m)for(var v=0,y=Vr(e,p+1,p=Fr(g=a[m])),x=e;v<h;++v)(x=$r(g>0?f[v]+" "+y:Br(y,/&\f/g,f[v])))&&(s[b++]=x);return ro(e,t,n,0===o?Or:l,s,u,c,d)}function Eo(e,t,n,r){return ro(e,t,n,_r,zr(to),Vr(e,2,-2),0,r)}function Co(e,t,n,r,o){return ro(e,t,n,Tr,Vr(e,0,r),Vr(e,r+1,-1),r,o)}function wo(e,t,n){switch(function(e,t){return 45^Wr(e,0)?(((t<<2^Wr(e,0))<<2^Wr(e,1))<<2^Wr(e,2))<<2^Wr(e,3):0}(e,t)){case 5103:return Pr+"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 Pr+e+e;case 4789:return Dr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Pr+e+Dr+e+Mr+e+e;case 5936:switch(Wr(e,t+11)){case 114:return Pr+e+Mr+Br(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Pr+e+Mr+Br(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Pr+e+Mr+Br(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Pr+e+Mr+e+e;case 6165:return Pr+e+Mr+"flex-"+e+e;case 5187:return Pr+e+Br(e,/(\w+).+(:[^]+)/,Pr+"box-$1$2"+Mr+"flex-$1$2")+e;case 5443:return Pr+e+Mr+"flex-item-"+Br(e,/flex-|-self/g,"")+(Gr(e,/flex-|baseline/)?"":Mr+"grid-row-"+Br(e,/flex-|-self/g,""))+e;case 4675:return Pr+e+Mr+"flex-line-pack"+Br(e,/align-content|flex-|-self/g,"")+e;case 5548:return Pr+e+Mr+Br(e,"shrink","negative")+e;case 5292:return Pr+e+Mr+Br(e,"basis","preferred-size")+e;case 6060:return Pr+"box-"+Br(e,"-grow","")+Pr+e+Mr+Br(e,"grow","positive")+e;case 4554:return Pr+Br(e,/([^-])(transform)/g,"$1"+Pr+"$2")+e;case 6187:return Br(Br(Br(e,/(zoom-|grab)/,Pr+"$1"),/(image-set)/,Pr+"$1"),e,"")+e;case 5495:case 3959:return Br(e,/(image-set\([^]*)/,Pr+"$1$`$1");case 4968:return Br(Br(e,/(.+:)(flex-)?(.*)/,Pr+"box-pack:$3"+Mr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Pr+e+e;case 4200:if(!Gr(e,/flex-|baseline/))return Mr+"grid-column-align"+Vr(e,t)+e;break;case 2592:case 3360:return Mr+Br(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,Gr(e.props,/grid-\w+-end/)}))?~Hr(e+(n=n[t].value),"span",0)?e:Mr+Br(e,"-start","")+e+Mr+"grid-row-span:"+(~Hr(n,"span",0)?Gr(n,/\d+/):+Gr(n,/\d+/)-+Gr(e,/\d+/))+";":Mr+Br(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return Gr(e.props,/grid-\w+-start/)}))?e:Mr+Br(Br(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Br(e,/(.+)-inline(.+)/,Pr+"$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(Yr(e)-1-t>6)switch(Wr(e,t+1)){case 109:if(45!==Wr(e,t+4))break;case 102:return Br(e,/(.+:)(.+)-([^]+)/,"$1"+Pr+"$2-$3$1"+Dr+(108==Wr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Hr(e,"stretch",0)?wo(Br(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Br(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,l){return Mr+n+":"+r+l+(o?Mr+n+"-span:"+(i?a:+a-+r)+l:"")+e}));case 4949:if(121===Wr(e,t+6))return Br(e,":",":"+Pr)+e;break;case 6444:switch(Wr(e,45===Wr(e,14)?18:11)){case 120:return Br(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Pr+(45===Wr(e,14)?"inline-":"")+"box$3$1"+Pr+"$2$3$1"+Mr+"$2box$3")+e;case 100:return Br(e,":",":"+Mr)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Br(e,"scroll-","scroll-snap-")+e}return e}function Ro(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Lo(e,t,n,r){switch(e.type){case Nr:if(e.children.length)break;case kr:case Tr:return e.return=e.return||e.value;case _r:return"";case qr:return e.return=e.value+"{"+Ro(e.children,r)+"}";case Or:if(!Yr(e.value=e.props.join(",")))return""}return Yr(n=Ro(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ao(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Tr:return void(e.return=wo(e.value,e.length,n));case qr:return Ro([oo(e,{value:Br(e.value,"@","@"+Pr)})],r);case Or: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":io(oo(e,{props:[Br(t,/:(read-\w+)/,":"+Dr+"$1")]})),io(oo(e,{props:[t]})),jr(e,{props:Xr(n,r)});break;case"::placeholder":io(oo(e,{props:[Br(t,/:(plac\w+)/,":"+Pr+"input-$1")]})),io(oo(e,{props:[Br(t,/:(plac\w+)/,":"+Dr+"$1")]})),io(oo(e,{props:[Br(t,/:(plac\w+)/,Mr+"input-$1")]})),io(oo(e,{props:[t]})),jr(e,{props:Xr(n,r)})}return""}))}}var Io={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},Mo="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Do="active",Po="data-styled-version",_o="6.1.11",Oo="/*!sc*/\n",To="undefined"!=typeof window&&"HTMLElement"in window,ko=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)),qo={},No=Object.freeze([]),Fo=Object.freeze({});function zo(e,t,n){return void 0===n&&(n=Fo),e.theme!==n.theme&&e.theme||t||n.theme}var jo=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"]),$o=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Go=/(^-|-$)/g;function Bo(e){return e.replace($o,"-").replace(Go,"")}var Ho=/(a)(d)/gi,Wo=52,Vo=function(e){return String.fromCharCode(e+(e>25?39:97))};function Yo(e){var t,n="";for(t=Math.abs(e);t>Wo;t=t/Wo|0)n=Vo(t%Wo)+n;return(Vo(t%Wo)+n).replace(Ho,"$1-$2")}var Uo,Ko=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Xo=function(e){return Ko(5381,e)};function Jo(e){return Yo(Xo(e)>>>0)}function Zo(e){return"string"==typeof e&&!0}var Qo="function"==typeof Symbol&&Symbol.for,ei=Qo?Symbol.for("react.memo"):60115,ti=Qo?Symbol.for("react.forward_ref"):60112,ni={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ri={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},oi={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ii=((Uo={})[ti]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Uo[ei]=oi,Uo);function ai(e){return("type"in(t=e)&&t.type.$$typeof)===ei?oi:"$$typeof"in e?ii[e.$$typeof]:ni;var t}var li=Object.defineProperty,si=Object.getOwnPropertyNames,ui=Object.getOwnPropertySymbols,ci=Object.getOwnPropertyDescriptor,di=Object.getPrototypeOf,pi=Object.prototype;function fi(e,t,n){if("string"!=typeof t){if(pi){var r=di(t);r&&r!==pi&&fi(e,r,n)}var o=si(t);ui&&(o=o.concat(ui(t)));for(var i=ai(e),a=ai(t),l=0;l<o.length;++l){var s=o[l];if(!(s in ri||n&&n[s]||a&&s in a||i&&s in i)){var u=ci(t,s);try{li(e,s,u)}catch(e){}}}}return e}function hi(e){return"function"==typeof e}function mi(e){return"object"==typeof e&&"styledComponentId"in e}function gi(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function bi(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 vi(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function yi(e,t,n){if(void 0===n&&(n=!1),!n&&!vi(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=yi(e[r],t[r]);else if(vi(t))for(var r in t)e[r]=yi(e[r],t[r]);return e}function xi(e,t){Object.defineProperty(e,"toString",{value:t})}function Si(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 Ei=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 Si(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(Oo);return t},e}(),Ci=new Map,wi=new Map,Ri=1,Li=function(e){if(Ci.has(e))return Ci.get(e);for(;wi.has(Ri);)Ri++;var t=Ri++;return Ci.set(e,t),wi.set(t,e),t},Ai=function(e,t){Ri=t+1,Ci.set(e,t),wi.set(t,e)},Ii="style[".concat(Mo,"][").concat(Po,'="').concat(_o,'"]'),Mi=new RegExp("^".concat(Mo,'\\.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)},Pi=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Oo),o=[],i=0,a=r.length;i<a;i++){var l=r[i].trim();if(l){var s=l.match(Mi);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(Ai(c,u),Di(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}};var _i=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Mo,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Mo,Do),r.setAttribute(Po,_o);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},Oi=function(){function e(e){this.element=_i(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 Si(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}(),Ti=function(){function e(e){this.element=_i(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}(),ki=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}(),qi=To,Ni={isServer:!To,useCSSOMInjection:!ko},Fi=function(){function e(e,t,n){void 0===e&&(e=Fo),void 0===t&&(t={});var r=this;this.options=Ar(Ar({},Ni),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&To&&qi&&(qi=!1,function(e){for(var t=document.querySelectorAll(Ii),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Mo)!==Do&&(Pi(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),xi(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return wi.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(Mo,".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(Oo)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return Li(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Ar(Ar({},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 ki(n):t?new Oi(n):new Ti(n)}(this.options),new Ei(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(Li(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(Li(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Li(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),zi=/&/g,ji=/^\s*\/\/.*$/gm;function $i(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=$i(e.children,t)),e}))}var Gi=new Fi,Bi=function(e){var t,n,r,o=void 0===e?Fo:e,i=o.options,a=void 0===i?Fo:i,l=o.plugins,s=void 0===l?No: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===Or&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(zi,n).replace(r,u))})),a.prefix&&c.push(Ao),c.push(Lo);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(ji,""),u=yo(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=$i(u,a.namespace));var d,p=[];return Ro(u,function(e){var t=Ur(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||Si(15),Ko(e,t.name)}),5381).toString():"",d}(),Hi=x.createContext({shouldForwardProp:void 0,styleSheet:Gi,stylis:Bi});function Wi(){return S(Hi)}Hi.Consumer;var Vi=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Bi);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,xi(this,(function(){throw Si(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Bi),this.name+e.hash},e}(),Yi=function(e){return e>="A"&&e<="Z"};function Ui(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Yi(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Ki=function(e){return null==e||!1===e||""===e},Xi=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Ki(i)&&(Array.isArray(i)&&i.isCss||hi(i)?r.push("".concat(Ui(o),":"),i,";"):vi(i)?r.push.apply(r,Ir(Ir(["".concat(o," {")],Xi(i),!1),["}"],!1)):r.push("".concat(Ui(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Io||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Ji(e,t,n,r){return Ki(e)?[]:mi(e)?[".".concat(e.styledComponentId)]:hi(e)?!hi(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Ji(e(t),t,n,r):e instanceof Vi?n?(e.inject(n,r),[e.getName(r)]):[e]:vi(e)?Xi(e):Array.isArray(e)?Array.prototype.concat.apply(No,e.map((function(e){return Ji(e,t,n,r)}))):[e.toString()];var o}function Zi(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(hi(n)&&!mi(n))return!1}return!0}var Qi=Xo(_o),ea=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Zi(e),this.componentId=t,this.baseHash=Ko(Qi,t),this.baseStyle=n,Fi.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=gi(r,this.staticRulesId);else{var o=bi(Ji(this.rules,e,t,n)),i=Yo(Ko(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=gi(r,i),this.staticRulesId=i}else{for(var l=Ko(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=bi(Ji(c,e,t,n));l=Ko(l,d+u),s+=d}}if(s){var p=Yo(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=gi(r,p)}}return r},e}(),ta=x.createContext(void 0);ta.Consumer;var na={};new Set;function ra(e,t,n){var r=mi(e),o=e,i=!Zo(e),a=t.attrs,l=void 0===a?No:a,s=t.componentId,u=void 0===s?function(e,t){var n="string"!=typeof e?"sc":Bo(e);na[n]=(na[n]||0)+1;var r="".concat(n,"-").concat(Jo(_o+n+na[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return Zo(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Bo(t.displayName),"-").concat(t.componentId):t.componentId||u,f=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,h=t.shouldForwardProp;if(r&&o.shouldForwardProp){var m=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;h=function(e,t){return m(e,t)&&g(e,t)}}else h=m}var b=new ea(n,p,r?o.componentStyle:void 0);function v(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=x.useContext(ta),c=Wi(),d=e.shouldForwardProp||c.shouldForwardProp,p=zo(t,u,i)||Fo,f=function(e,t,n){for(var r,o=Ar(Ar({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=hi(r=e[i])?r(o):r;for(var l in a)o[l]="className"===l?gi(o[l],a[l]):"style"===l?Ar(Ar({},o[l]),a[l]):a[l]}return t.className&&(o.className=gi(o.className,t.className)),o}(r,t,p),h=f.as||s,m={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?m.as=f.forwardedAs:d&&!d(g,h)||(m[g]=f[g]));var b=function(e,t){var n=Wi();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,f),v=gi(a,l);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),m[Zo(h)&&!jo.has(h)?"class":"className"]=v,m.ref=n,E(h,m)}(y,e,t)}v.displayName=d;var y=x.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=h,y.foldedComponentIds=r?gi(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++)yi(e,o[r],!0);return e}({},o.defaultProps,e):e}}),xi(y,(function(){return".".concat(y.styledComponentId)})),i&&fi(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function oa(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 ia=function(e){return Object.assign(e,{isCss:!0})};function aa(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(hi(e)||vi(e))return ia(Ji(oa(No,Ir([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Ji(r):ia(Ji(oa(r,t)))}function la(e,t,n){if(void 0===n&&(n=Fo),!t)throw Si(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,aa.apply(void 0,Ir([r],o,!1)))};return r.attrs=function(r){return la(e,t,Ar(Ar({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return la(e,t,Ar(Ar({},n),r))},r}var sa=function(e){return la(ra,e)},ua=sa;jo.forEach((function(e){ua[e]=sa(e)}));var ca=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Zi(e),Fi.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(bi(Ji(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&&Fi.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function da(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=aa.apply(void 0,Ir([e],t,!1)),o="sc-global-".concat(Jo(JSON.stringify(r))),i=new ca(r,o),a=function(e){var t=Wi(),n=x.useContext(ta),r=x.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,qo,n,o);else{var l=Ar(Ar({},t),{theme:zo(t,r,a.defaultProps)});i.renderStyles(e,l,n,o)}}(r,e,t.styleSheet,n,t.stylis),null};return x.memo(a)}function pa(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=bi(aa.apply(void 0,Ir([e],t,!1))),o=Jo(r);return new Vi(o,r)}const fa=da((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 ha=fa;
|
|
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\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},nt({exports:{}});const ht="qHyperCubeDef.qDimensions",mt="dimensions",gt="qOtherTotalSpec.qTotalMode",bt="totalMode",vt={quarantine(e){$.quarantineArrayProp({properties:e,arrayPath:ht,quarantineName:bt,arrayName:mt,itemPath:gt})},unquarantine(e){$.unquarantineArrayProp({properties:e,arrayPath:ht,quarantineName:bt,arrayName:mt,itemPath:gt})}};function yt(e){const t=ft(e);return(e,n,r,o)=>{var i,a,l,s,u,c;const d=$.hypercube.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t.targets[0],hypercubePath:o}),p=((null===(i=d.qProperty)||void 0===i||null===(i=i.qHyperCubeDef)||void 0===i?void 0:i.qDimensions)||[]).length,f=(null===(a=d.qProperty)||void 0===a||null===(a=a.qHyperCubeDef)||void 0===a||null===(a=a.qMeasures)||void 0===a?void 0:a.length)||0;let h,m=(null===(l=d.qProperty)||void 0===l||null===(l=l.qHyperCubeDef)||void 0===l?void 0:l.qInterColumnSortOrder)||[],g=!0;p+f===m.length&&ot(d,"qProperty.qLayoutExclude.quarantine.interColSortOrder",m.concat());const b=(null==d||null===(s=d.qProperty)||void 0===s||null===(s=s.qLayoutExclude)||void 0===s||null===(s=s.quarantine)||void 0===s?void 0:s.pivotInterColSortOrder)||void 0;b?(m=b,h=[...b],ot(d,"qProperty.qHyperCubeDef.qInterColumnSortOrder",m),delete d.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):m.length=0;const v=+(m.indexOf(-1)>-1),y=p+v;if(y>m.length)for(let e=m.length;e<y;e++)m.indexOf(e)<0&&m.push(e-v);for(let e=m.length-1;e>=0;e--)m[e]>=p&&m.splice(e,1);f>1&&m.indexOf(-1)<0?m.push(-1):f<2&&m.indexOf(-1)>-1&&m.splice(m.indexOf(-1),1);const x=null!==(u=null==d||null===(c=d.qProperty)||void 0===c||null===(c=c.qHyperCubeDef)||void 0===c?void 0:c.qNoOfLeftDims)&&void 0!==u?u:-1;if(p>0&&-1===x&&ot(d,"qProperty.qHyperCubeDef.qNoOfLeftDims",p),h&&m&&h.length===m.length){for(let e=0;e<h.length;e++)if(h[e]!==m[e]){g=!1;break}g&&$.unquarantineProperty(d.qProperty,"noOfLeftDims")}return $.conditionalShow.unquarantine(d.qProperty),vt.unquarantine(d.qProperty),V(d.qProperty),$.unquarantineProperty(d.qProperty,"pivotTableIndentMode"),d}}function xt(e,t){var n,r,o;const i=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:[],a=i.slice(),l=i.indexOf(-1);l>-1&&i.splice(l,1);const s=$.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),u=s.properties.qHyperCubeDef,c=u.qDimensions.length,d=u.qMeasures.length;let p=u.qInterColumnSortOrder;ot(s,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",a),$.quarantineProperty(s.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete s.properties.qHyperCubeDef.qNoOfLeftDims;const f=null==s||null===(o=s.properties)||void 0===o||null===(o=o.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.interColSortOrder;f&&(p=f,ot(s,"properties.qHyperCubeDef.qInterColumnSortOrder",p),ot(s,"data.0.interColumnSortOrder",p),delete s.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=p.length;e<c+d;e++)p.length<=e&&p.push(e);return $.quarantineProperty(s.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),$.conditionalShow.quarantine(s.properties),vt.quarantine(s.properties),Y(s.properties),s}const St={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},Et=(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}}},Ct=e=>{if(e)return{representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition"},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel"},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl"}}},wt=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"}]}}}}},Rt=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:Et(a,i),...Ct(i),...wt(a)}},Lt=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 At,It,Mt,Dt;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(At||(At={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(It||(It={})),function(e){e.LEFT_GRID="leftGrid",e.DATA_GRID="dataGrid",e.CONTAINER_GRID="containerGrid"}(Mt||(Mt={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(Dt||(Dt={}));const Pt="12px",_t="nebula-table-utils-head-menu-button",Ot="sn-copy-cell";let Tt=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 kt="nebula-table-utils-column-adjuster",qt=`${kt}-border`;let Nt=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}({}),Ft=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});var zt,jt;!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"}(zt||(zt={})),function(e){e.NX_CELL_DATA="D",e.NX_CELL_TOP="T",e.NX_CELL_LEFT="L"}(jt||(jt={}));var $t=zt;const Gt="image",Bt=(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},Ht=(e,t)=>!e.properties.qHyperCubeDef.qIndentMode||!t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),Wt=e=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:Ft.Auto,translation:"Common.Auto"},{value:Ft.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:Ft.Pixels,translation:"Object.Table.Column.Pixels"},{value:Ft.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:Ft.Auto,show:(t,n,r)=>Ht(r,e)},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:Nt.PixelsDefault,show:(t,n,r)=>{var o;return Ht(r,e)&&(null===(o=t.qDef.columnWidth)||void 0===o?void 0:o.type)===Ft.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(Nt.PixelsMin,Math.min(Nt.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:Nt.PercentageDefault,show:(t,n,r)=>{var o;return Ht(r,e)&&(null===(o=t.qDef.columnWidth)||void 0===o?void 0:o.type)===Ft.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(Nt.PercentageMin,Math.min(Nt.PercentageMax,e.qDef.columnWidth.percentage)))}}}),Vt=({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)!==Gt}},[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)!==Gt)}}}},Yt="TOTAL_OFF",Ut={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:It.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:It.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:It.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:It.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:It.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:It.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},Kt="TOTAL_OFF",Xt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:It.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:It.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:It.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:It.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:It.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:It.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},Jt=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:Yt,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:Yt,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&Bt},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)!==Yt&&Bt(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:Ut,...Vt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Vt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Rt(e),...Wt(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:Ut,...Vt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Vt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Lt(e),...Wt(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:Kt,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:Kt,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&Bt},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)!==Kt&&Bt(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:Xt,...Vt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Vt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Rt(e),...Wt(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:Xt,...Vt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Vt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Lt(e),...Wt(i)}}}}},Zt="12px",Qt="Source Sans Pro, sans-serif",en="600",tn=15e3,nn=4/3,rn=1;var on,an;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(on||(on={})),function(e){e.Solid="solid",e.None="none"}(an||(an={}));const ln={display:"flex",justifyContent:"center",alignItems:"center"},sn={borderStyle:"solid"},un={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},cn={lineHeight:nn,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},dn=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),pn=(e,t)=>e>0?`${e}px ${an.Solid} ${t}`:an.None,fn=(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:pn(o,n),borderBottom:pn(i,n),borderLeft:an.None,borderTop:an.None}},hn=(e,t,n,r,o,i)=>{const a=fn(t,r,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=pn(2,o)),n||(a.borderLeft=pn(1,o))),a},mn=({bottomDivider:e,rightDivider:t,borderColor:n})=>{const r={};return e&&(r.borderBottom=pn(1,n)),t&&(r.borderRight=pn(1,n)),r},gn=(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===on.Transparent.toString()?"none":i}}}),bn=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),vn=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:bn("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?bn("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:gn("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:on.DividerLight})),divider:gn("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:on.DividerDark})),background:gn("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:on.Transparent}))}}}}),yn=(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},xn=({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:Qt,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=>yn(e,!0)))],c=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...X(r).filter((e=>!s.includes(e))).map((e=>yn(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),Sn=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],En=({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=>yn(e,!1)))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...Sn.filter((e=>!a.includes(e))).map((e=>yn(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),Cn=(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}},wn=({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:xn({ref:`${e}.fontFamily`,themeAccessor:t=>{var n;return null!==(n=Cn(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:En({ref:`${e}.fontSize`,themeAccessor:t=>{var n;return null!==(n=Cn(t,e,"fontSize"))&&void 0!==n?n:t.fontSize},translator:n}),fontColor:gn(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=Cn(t,e,"color"))&&void 0!==n?n:t.color}))}},background:gn(`${e}.background`,"properties.background",(t=>{var n;return null!==(n=Cn(t,e,"backgroundColor"))&&void 0!==n?n:on.Transparent}))}}}}),Rn=({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:gn(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=Cn(t,e,"color"))&&void 0!==n?n:t.color}))}},background:gn(`${e}.background`,"properties.background",(t=>{var r,o;return null!==(r=null!==(o=Cn(t,e,"backgroundColor"))&&void 0!==o?o:n)&&void 0!==r?r:on.Transparent}))}}}}),Ln=(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:wn({section:"header",defaultFontStyle:["bold"],translator:e,flags:t}),dimensionValueSection:wn({section:"dimensionValues",translator:e,flags:t}),measureValueSection:wn({section:"measureValues",translator:e,flags:t}),measureLabelSection:Rn({section:"measureLabels"}),totalValuesSection:Rn({section:"totalValues",defaultFontStyle:["bold"]}),nullValuesSection:Rn({section:"nullValues",fallbackBackground:on.NullValueBackground}),gridSection:vn(t)}}]}),An=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:Ft.Auto,translation:"Common.Auto"},{value:Ft.Pixels,translation:"Object.Table.Column.Pixels"},{value:Ft.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:Ft.Auto,show:e=>e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:Nt.PixelsDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===Ft.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(Nt.PixelsMin,Math.min(Nt.PixelsMax,n.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:Nt.PercentageDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===Ft.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(Nt.PercentageMin,Math.min(Nt.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)}}}}),In=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[Ln(e,t),An(t)]}}}),Mn="auto",Dn={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:Mn,translation:"Object.Table.SortingInSearch",options:[{value:Mn,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function Pn(e){const{translator:t,flags:n}=e;return{type:"items",component:"accordion",items:{data:Jt(e),sorting:Dn,addons:St,settings:In(t,n)}}}function _n(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:Pn(e),importProperties:yt(e),exportProperties:xt}}function On(){return On=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},On.apply(this,arguments)}var Tn={exports:{}};function kn(){}function qn(){}qn.resetWarningCache=kn;Tn.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:qn,resetWarningCache:kn};return n.PropTypes=n,n}();var Nn=F(Tn.exports);function Fn(e){if(e.type)return e;if("#"===e.charAt(0))return Fn(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 zn(e,t){return e=Fn(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 jn(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 $n(e,t){return $n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$n(e,t)}function Gn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$n(e,t)}const Bn={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"},Hn={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",...Bn,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)"},Wn=12,Vn=14,Yn=16,Un=24,Kn=3,Xn=300,Jn=400,Zn=600,Qn=700,er={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};zn(Hn.GREYSCALE_0,.05),zn(Hn.GREEN_PALE,.5),zn(Hn.BLUE_PALE,.5),zn(Hn.GREEN_PALE,.5),zn(Hn.BLUE_PALE,.5),zn(Hn.GREEN_PALE,.5),zn(Hn.BLUE_PALE,.5);var tr;function nr(){return nr=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},nr.apply(this,arguments)}zn(Hn.GREEN_PALE,.5),zn(Hn.BLUE_PALE,.5),zn(Hn.GREEN_PALE,.5),zn(Hn.BLUE_PALE,.5);var rr,or=function(e){return y.createElement("svg",nr({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),tr||(tr=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};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)}var ar=function(e){return y.createElement("svg",ir({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),rr||(rr=y.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function lr({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return x.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 sr=(e={})=>x.createElement(lr,{...e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},x.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),x.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),ur=(e={})=>x.createElement(lr,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),x.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),cr=(e={})=>x.createElement(lr,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},x.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),dr=(e={})=>x.createElement(lr,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),x.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),pr=({className:e})=>x.createElement(lr,{fontSize:"small",className:e},x.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},x.createElement("g",{transform:"translate(4.324187, 1.300372)"},x.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),x.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"}))))));var fr={black:"#000",white:"#fff"};var hr={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 mr={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 gr={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 br={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 vr={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 yr={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 xr={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 Sr(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 Er="$$material";function Cr(){return Cr=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},Cr.apply(this,arguments)}function wr(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 Rr(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 Lr=Object.freeze({__proto__:null,default:Rr}),Ar=function(){return Ar=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},Ar.apply(this,arguments)};function Ir(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 Mr="-ms-",Dr="-moz-",Pr="-webkit-",_r="comm",Or="rule",Tr="decl",kr="@import",qr="@keyframes",Nr="@layer",Fr=Math.abs,zr=String.fromCharCode,jr=Object.assign;function $r(e){return e.trim()}function Gr(e,t){return(e=t.exec(e))?e[0]:e}function Br(e,t,n){return e.replace(t,n)}function Hr(e,t,n){return e.indexOf(t,n)}function Wr(e,t){return 0|e.charCodeAt(t)}function Vr(e,t,n){return e.slice(t,n)}function Yr(e){return e.length}function Ur(e){return e.length}function Kr(e,t){return t.push(e),e}function Xr(e,t){return e.filter((function(e){return!Gr(e,t)}))}var Jr=1,Zr=1,Qr=0,eo=0,to=0,no="";function ro(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Jr,column:Zr,length:a,return:"",siblings:l}}function oo(e,t){return jr(ro("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function io(e){for(;e.root;)e=oo(e.root,{children:[e]});Kr(e,e.siblings)}function ao(){return to=eo>0?Wr(no,--eo):0,Zr--,10===to&&(Zr=1,Jr--),to}function lo(){return to=eo<Qr?Wr(no,eo++):0,Zr++,10===to&&(Zr=1,Jr++),to}function so(){return Wr(no,eo)}function uo(){return eo}function co(e,t){return Vr(no,e,t)}function po(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 fo(e){return $r(co(eo-1,go(91===e?e+2:40===e?e+1:e)))}function ho(e){for(;(to=so())&&to<33;)lo();return po(e)>2||po(to)>3?"":" "}function mo(e,t){for(;--t&&lo()&&!(to<48||to>102||to>57&&to<65||to>70&&to<97););return co(e,uo()+(t<6&&32==so()&&32==lo()))}function go(e){for(;lo();)switch(to){case e:return eo;case 34:case 39:34!==e&&39!==e&&go(to);break;case 40:41===e&&go(e);break;case 92:lo()}return eo}function bo(e,t){for(;lo()&&e+to!==57&&(e+to!==84||47!==so()););return"/*"+co(t,eo-1)+"*"+zr(47===e?e:lo())}function vo(e){for(;!po(so());)lo();return co(e,eo)}function yo(e){return function(e){return no="",e}(xo("",null,null,null,[""],e=function(e){return Jr=Zr=1,Qr=Yr(no=e),eo=0,[]}(e),0,[0],e))}function xo(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",x=o,S=i,E=r,C=y;g;)switch(h=v,v=lo()){case 40:if(108!=h&&58==Wr(C,d-1)){-1!=Hr(C+=Br(fo(v),"&","&\f"),"&\f",Fr(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=fo(v);break;case 9:case 10:case 13:case 32:C+=ho(h);break;case 92:C+=mo(uo()-1,7);continue;case 47:switch(so()){case 42:case 47:Kr(Eo(bo(lo(),uo()),t,n,s),s);break;default:C+="/"}break;case 123*m:l[u++]=Yr(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=Br(C,/\f/g,"")),f>0&&Yr(C)-d&&Kr(f>32?Co(C+";",r,n,d-1,s):Co(Br(C," ","")+";",r,n,d-2,s),s);break;case 59:C+=";";default:if(Kr(E=So(C,t,n,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)xo(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===Wr(C,3)?100:p){case 100:case 108:case 109:case 115:xo(e,E,E,r&&Kr(So(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,r?x:S);break;default:xo(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+Yr(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==ao())continue;switch(C+=zr(v),v*m){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Yr(C)-1)*b,b=1;break;case 64:45===so()&&(C+=fo(lo())),p=so(),c=d=Yr(y=C+=vo(uo())),v++;break;case 45:45===h&&2==Yr(C)&&(m=0)}}return i}function So(e,t,n,r,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],h=Ur(f),m=0,g=0,b=0;m<r;++m)for(var v=0,y=Vr(e,p+1,p=Fr(g=a[m])),x=e;v<h;++v)(x=$r(g>0?f[v]+" "+y:Br(y,/&\f/g,f[v])))&&(s[b++]=x);return ro(e,t,n,0===o?Or:l,s,u,c,d)}function Eo(e,t,n,r){return ro(e,t,n,_r,zr(to),Vr(e,2,-2),0,r)}function Co(e,t,n,r,o){return ro(e,t,n,Tr,Vr(e,0,r),Vr(e,r+1,-1),r,o)}function wo(e,t,n){switch(function(e,t){return 45^Wr(e,0)?(((t<<2^Wr(e,0))<<2^Wr(e,1))<<2^Wr(e,2))<<2^Wr(e,3):0}(e,t)){case 5103:return Pr+"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 Pr+e+e;case 4789:return Dr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Pr+e+Dr+e+Mr+e+e;case 5936:switch(Wr(e,t+11)){case 114:return Pr+e+Mr+Br(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Pr+e+Mr+Br(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Pr+e+Mr+Br(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Pr+e+Mr+e+e;case 6165:return Pr+e+Mr+"flex-"+e+e;case 5187:return Pr+e+Br(e,/(\w+).+(:[^]+)/,Pr+"box-$1$2"+Mr+"flex-$1$2")+e;case 5443:return Pr+e+Mr+"flex-item-"+Br(e,/flex-|-self/g,"")+(Gr(e,/flex-|baseline/)?"":Mr+"grid-row-"+Br(e,/flex-|-self/g,""))+e;case 4675:return Pr+e+Mr+"flex-line-pack"+Br(e,/align-content|flex-|-self/g,"")+e;case 5548:return Pr+e+Mr+Br(e,"shrink","negative")+e;case 5292:return Pr+e+Mr+Br(e,"basis","preferred-size")+e;case 6060:return Pr+"box-"+Br(e,"-grow","")+Pr+e+Mr+Br(e,"grow","positive")+e;case 4554:return Pr+Br(e,/([^-])(transform)/g,"$1"+Pr+"$2")+e;case 6187:return Br(Br(Br(e,/(zoom-|grab)/,Pr+"$1"),/(image-set)/,Pr+"$1"),e,"")+e;case 5495:case 3959:return Br(e,/(image-set\([^]*)/,Pr+"$1$`$1");case 4968:return Br(Br(e,/(.+:)(flex-)?(.*)/,Pr+"box-pack:$3"+Mr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Pr+e+e;case 4200:if(!Gr(e,/flex-|baseline/))return Mr+"grid-column-align"+Vr(e,t)+e;break;case 2592:case 3360:return Mr+Br(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,Gr(e.props,/grid-\w+-end/)}))?~Hr(e+(n=n[t].value),"span",0)?e:Mr+Br(e,"-start","")+e+Mr+"grid-row-span:"+(~Hr(n,"span",0)?Gr(n,/\d+/):+Gr(n,/\d+/)-+Gr(e,/\d+/))+";":Mr+Br(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return Gr(e.props,/grid-\w+-start/)}))?e:Mr+Br(Br(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Br(e,/(.+)-inline(.+)/,Pr+"$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(Yr(e)-1-t>6)switch(Wr(e,t+1)){case 109:if(45!==Wr(e,t+4))break;case 102:return Br(e,/(.+:)(.+)-([^]+)/,"$1"+Pr+"$2-$3$1"+Dr+(108==Wr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Hr(e,"stretch",0)?wo(Br(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Br(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,l){return Mr+n+":"+r+l+(o?Mr+n+"-span:"+(i?a:+a-+r)+l:"")+e}));case 4949:if(121===Wr(e,t+6))return Br(e,":",":"+Pr)+e;break;case 6444:switch(Wr(e,45===Wr(e,14)?18:11)){case 120:return Br(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Pr+(45===Wr(e,14)?"inline-":"")+"box$3$1"+Pr+"$2$3$1"+Mr+"$2box$3")+e;case 100:return Br(e,":",":"+Mr)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Br(e,"scroll-","scroll-snap-")+e}return e}function Ro(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Lo(e,t,n,r){switch(e.type){case Nr:if(e.children.length)break;case kr:case Tr:return e.return=e.return||e.value;case _r:return"";case qr:return e.return=e.value+"{"+Ro(e.children,r)+"}";case Or:if(!Yr(e.value=e.props.join(",")))return""}return Yr(n=Ro(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ao(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Tr:return void(e.return=wo(e.value,e.length,n));case qr:return Ro([oo(e,{value:Br(e.value,"@","@"+Pr)})],r);case Or: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":io(oo(e,{props:[Br(t,/:(read-\w+)/,":"+Dr+"$1")]})),io(oo(e,{props:[t]})),jr(e,{props:Xr(n,r)});break;case"::placeholder":io(oo(e,{props:[Br(t,/:(plac\w+)/,":"+Pr+"input-$1")]})),io(oo(e,{props:[Br(t,/:(plac\w+)/,":"+Dr+"$1")]})),io(oo(e,{props:[Br(t,/:(plac\w+)/,Mr+"input-$1")]})),io(oo(e,{props:[t]})),jr(e,{props:Xr(n,r)})}return""}))}}var Io={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},Mo="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Do="active",Po="data-styled-version",_o="6.1.11",Oo="/*!sc*/\n",To="undefined"!=typeof window&&"HTMLElement"in window,ko=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)),qo={},No=Object.freeze([]),Fo=Object.freeze({});function zo(e,t,n){return void 0===n&&(n=Fo),e.theme!==n.theme&&e.theme||t||n.theme}var jo=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"]),$o=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Go=/(^-|-$)/g;function Bo(e){return e.replace($o,"-").replace(Go,"")}var Ho=/(a)(d)/gi,Wo=52,Vo=function(e){return String.fromCharCode(e+(e>25?39:97))};function Yo(e){var t,n="";for(t=Math.abs(e);t>Wo;t=t/Wo|0)n=Vo(t%Wo)+n;return(Vo(t%Wo)+n).replace(Ho,"$1-$2")}var Uo,Ko=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Xo=function(e){return Ko(5381,e)};function Jo(e){return Yo(Xo(e)>>>0)}function Zo(e){return"string"==typeof e&&!0}var Qo="function"==typeof Symbol&&Symbol.for,ei=Qo?Symbol.for("react.memo"):60115,ti=Qo?Symbol.for("react.forward_ref"):60112,ni={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ri={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},oi={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ii=((Uo={})[ti]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Uo[ei]=oi,Uo);function ai(e){return("type"in(t=e)&&t.type.$$typeof)===ei?oi:"$$typeof"in e?ii[e.$$typeof]:ni;var t}var li=Object.defineProperty,si=Object.getOwnPropertyNames,ui=Object.getOwnPropertySymbols,ci=Object.getOwnPropertyDescriptor,di=Object.getPrototypeOf,pi=Object.prototype;function fi(e,t,n){if("string"!=typeof t){if(pi){var r=di(t);r&&r!==pi&&fi(e,r,n)}var o=si(t);ui&&(o=o.concat(ui(t)));for(var i=ai(e),a=ai(t),l=0;l<o.length;++l){var s=o[l];if(!(s in ri||n&&n[s]||a&&s in a||i&&s in i)){var u=ci(t,s);try{li(e,s,u)}catch(e){}}}}return e}function hi(e){return"function"==typeof e}function mi(e){return"object"==typeof e&&"styledComponentId"in e}function gi(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function bi(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 vi(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function yi(e,t,n){if(void 0===n&&(n=!1),!n&&!vi(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=yi(e[r],t[r]);else if(vi(t))for(var r in t)e[r]=yi(e[r],t[r]);return e}function xi(e,t){Object.defineProperty(e,"toString",{value:t})}function Si(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 Ei=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 Si(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(Oo);return t},e}(),Ci=new Map,wi=new Map,Ri=1,Li=function(e){if(Ci.has(e))return Ci.get(e);for(;wi.has(Ri);)Ri++;var t=Ri++;return Ci.set(e,t),wi.set(t,e),t},Ai=function(e,t){Ri=t+1,Ci.set(e,t),wi.set(t,e)},Ii="style[".concat(Mo,"][").concat(Po,'="').concat(_o,'"]'),Mi=new RegExp("^".concat(Mo,'\\.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)},Pi=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Oo),o=[],i=0,a=r.length;i<a;i++){var l=r[i].trim();if(l){var s=l.match(Mi);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(Ai(c,u),Di(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}};var _i=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Mo,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Mo,Do),r.setAttribute(Po,_o);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},Oi=function(){function e(e){this.element=_i(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 Si(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}(),Ti=function(){function e(e){this.element=_i(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}(),ki=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}(),qi=To,Ni={isServer:!To,useCSSOMInjection:!ko},Fi=function(){function e(e,t,n){void 0===e&&(e=Fo),void 0===t&&(t={});var r=this;this.options=Ar(Ar({},Ni),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&To&&qi&&(qi=!1,function(e){for(var t=document.querySelectorAll(Ii),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Mo)!==Do&&(Pi(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),xi(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return wi.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(Mo,".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(Oo)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return Li(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Ar(Ar({},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 ki(n):t?new Oi(n):new Ti(n)}(this.options),new Ei(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(Li(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(Li(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Li(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),zi=/&/g,ji=/^\s*\/\/.*$/gm;function $i(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=$i(e.children,t)),e}))}var Gi=new Fi,Bi=function(e){var t,n,r,o=void 0===e?Fo:e,i=o.options,a=void 0===i?Fo:i,l=o.plugins,s=void 0===l?No: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===Or&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(zi,n).replace(r,u))})),a.prefix&&c.push(Ao),c.push(Lo);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(ji,""),u=yo(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=$i(u,a.namespace));var d,p=[];return Ro(u,function(e){var t=Ur(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||Si(15),Ko(e,t.name)}),5381).toString():"",d}(),Hi=x.createContext({shouldForwardProp:void 0,styleSheet:Gi,stylis:Bi});function Wi(){return S(Hi)}Hi.Consumer;var Vi=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Bi);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,xi(this,(function(){throw Si(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Bi),this.name+e.hash},e}(),Yi=function(e){return e>="A"&&e<="Z"};function Ui(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Yi(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Ki=function(e){return null==e||!1===e||""===e},Xi=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Ki(i)&&(Array.isArray(i)&&i.isCss||hi(i)?r.push("".concat(Ui(o),":"),i,";"):vi(i)?r.push.apply(r,Ir(Ir(["".concat(o," {")],Xi(i),!1),["}"],!1)):r.push("".concat(Ui(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Io||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Ji(e,t,n,r){return Ki(e)?[]:mi(e)?[".".concat(e.styledComponentId)]:hi(e)?!hi(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Ji(e(t),t,n,r):e instanceof Vi?n?(e.inject(n,r),[e.getName(r)]):[e]:vi(e)?Xi(e):Array.isArray(e)?Array.prototype.concat.apply(No,e.map((function(e){return Ji(e,t,n,r)}))):[e.toString()];var o}function Zi(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(hi(n)&&!mi(n))return!1}return!0}var Qi=Xo(_o),ea=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Zi(e),this.componentId=t,this.baseHash=Ko(Qi,t),this.baseStyle=n,Fi.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=gi(r,this.staticRulesId);else{var o=bi(Ji(this.rules,e,t,n)),i=Yo(Ko(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=gi(r,i),this.staticRulesId=i}else{for(var l=Ko(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=bi(Ji(c,e,t,n));l=Ko(l,d+u),s+=d}}if(s){var p=Yo(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=gi(r,p)}}return r},e}(),ta=x.createContext(void 0);ta.Consumer;var na={};new Set;function ra(e,t,n){var r=mi(e),o=e,i=!Zo(e),a=t.attrs,l=void 0===a?No:a,s=t.componentId,u=void 0===s?function(e,t){var n="string"!=typeof e?"sc":Bo(e);na[n]=(na[n]||0)+1;var r="".concat(n,"-").concat(Jo(_o+n+na[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return Zo(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Bo(t.displayName),"-").concat(t.componentId):t.componentId||u,f=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,h=t.shouldForwardProp;if(r&&o.shouldForwardProp){var m=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;h=function(e,t){return m(e,t)&&g(e,t)}}else h=m}var b=new ea(n,p,r?o.componentStyle:void 0);function v(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=x.useContext(ta),c=Wi(),d=e.shouldForwardProp||c.shouldForwardProp,p=zo(t,u,i)||Fo,f=function(e,t,n){for(var r,o=Ar(Ar({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=hi(r=e[i])?r(o):r;for(var l in a)o[l]="className"===l?gi(o[l],a[l]):"style"===l?Ar(Ar({},o[l]),a[l]):a[l]}return t.className&&(o.className=gi(o.className,t.className)),o}(r,t,p),h=f.as||s,m={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?m.as=f.forwardedAs:d&&!d(g,h)||(m[g]=f[g]));var b=function(e,t){var n=Wi();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,f),v=gi(a,l);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),m[Zo(h)&&!jo.has(h)?"class":"className"]=v,m.ref=n,E(h,m)}(y,e,t)}v.displayName=d;var y=x.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=h,y.foldedComponentIds=r?gi(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++)yi(e,o[r],!0);return e}({},o.defaultProps,e):e}}),xi(y,(function(){return".".concat(y.styledComponentId)})),i&&fi(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function oa(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 ia=function(e){return Object.assign(e,{isCss:!0})};function aa(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(hi(e)||vi(e))return ia(Ji(oa(No,Ir([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Ji(r):ia(Ji(oa(r,t)))}function la(e,t,n){if(void 0===n&&(n=Fo),!t)throw Si(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,aa.apply(void 0,Ir([r],o,!1)))};return r.attrs=function(r){return la(e,t,Ar(Ar({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return la(e,t,Ar(Ar({},n),r))},r}var sa=function(e){return la(ra,e)},ua=sa;jo.forEach((function(e){ua[e]=sa(e)}));var ca=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Zi(e),Fi.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(bi(Ji(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&&Fi.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function da(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=aa.apply(void 0,Ir([e],t,!1)),o="sc-global-".concat(Jo(JSON.stringify(r))),i=new ca(r,o),a=function(e){var t=Wi(),n=x.useContext(ta),r=x.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,qo,n,o);else{var l=Ar(Ar({},t),{theme:zo(t,r,a.defaultProps)});i.renderStyles(e,l,n,o)}}(r,e,t.styleSheet,n,t.stylis),null};return x.memo(a)}function pa(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=bi(aa.apply(void 0,Ir([e],t,!1))),o=Jo(r);return new Vi(o,r)}const fa=da((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 ha=fa;
|
|
10
10
|
/**
|
|
11
11
|
* @mui/styled-engine-sc v6.0.0-alpha.17
|
|
12
12
|
*
|
|
@@ -96,7 +96,7 @@ function ma(e,t){let n;return n=t?ua(e).withConfig({displayName:t.label,shouldFo
|
|
|
96
96
|
animation-iteration-count: infinite;
|
|
97
97
|
animation-delay: 200ms;
|
|
98
98
|
}
|
|
99
|
-
`),cd.rippleVisible,bd,550,(({theme:e})=>e.transitions.easing.easeInOut),cd.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),cd.child,cd.childLeaving,vd,550,(({theme:e})=>e.transitions.easing.easeInOut),cd.childPulsate,yd,(({theme:e})=>e.transitions.easing.easeInOut));var Ed=y.forwardRef((function(e,t){const n=lc({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=wr(n,dd),[l,s]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=y.useRef(!1),p=y.useRef(0),f=y.useRef(null),h=y.useRef(null);y.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const m=y.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Ns.jsx(Sd,{classes:{ripple:hc(o.ripple,cd.ripple),rippleVisible:hc(o.rippleVisible,cd.rippleVisible),ripplePulsate:hc(o.ripplePulsate,cd.ripplePulsate),child:hc(o.child,cd.child),childLeaving:hc(o.childLeaving,cd.childLeaving),childPulsate:hc(o.childPulsate,cd.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.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:h.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=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,m]),b=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{v(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Ns.jsx(xd,Cr({className:hc(cd.root,o.root,i),ref:h},a,{children:Ns.jsx(Zc,{component:null,exit:!0,children:l})}))}));function Cd(e){return Nu("MuiButtonBase",e)}var wd=Fu("MuiButtonBase",["root","disabled","focusVisible"]);const Rd=["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"],Ld=dc("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"},[`&.${wd.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ad=y.forwardRef((function(e,t){const n=lc({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:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:A,tabIndex:I=0,TouchRippleProps:M,touchRippleRef:D,type:P}=n,_=wr(n,Rd),O=y.useRef(null),T=y.useRef(null),k=Eu(T,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=_u(),[j,$]=y.useState(!1);s&&j&&$(!1),y.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),O.current.focus()}})),[]);const[G,B]=y.useState(!1);y.useEffect((()=>{B(!0)}),[]);const H=G&&!u&&!s;function W(e,t,n=c){return Su((r=>{t&&t(r);return!n&&T.current&&T.current[e](r),!0}))}y.useEffect((()=>{j&&d&&!u&&G&&T.current.pulsate()}),[u,d,j,G]);const V=W("start",E),Y=W("stop",m),U=W("stop",g),K=W("stop",w),X=W("stop",(e=>{j&&e.preventDefault(),C&&C(e)})),J=W("start",A),Z=W("stop",R),Q=W("stop",L),ee=W("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=Su((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=y.useRef(!1),oe=Su((e=>{d&&!re.current&&j&&T.current&&" "===e.key&&(re.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=Su((e=>{d&&" "===e.key&&T.current&&j&&!e.defaultPrevented&&(re.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(_.href||_.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=s):(_.href||_.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Eu(t,z,O),ue=Cr({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=ml({root:["root",t&&"disabled",n&&"focusVisible"]},Cd,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Ns.jsxs(Ld,Cr({as:ae,className:hc(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:U,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:I,type:P},le,_,{children:[i,H?Ns.jsx(Ed,Cr({ref:k,center:o},M)):null]}))}));var Id=Ad;function Md(e){return Nu("MuiTypography",e)}Fu("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Dd=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Pd=dc("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${fu(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Cr({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}))),_d={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Od={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Td=y.forwardRef((function(e,t){const n=lc({props:e,name:"MuiTypography"}),r=(e=>Od[e]||e)(n.color),o=$s(Cr({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=_d}=o,f=wr(o,Dd),h=Cr({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=l||(c?"p":p[d]||_d[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return ml({root:["root",i,"inherit"!==e.align&&`align${fu(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Md,a)})(h);return Ns.jsx(Pd,Cr({as:m,ref:t,ownerState:h,className:hc(g.root,a)},f))}));var kd=Td;const qd=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Nd(e){const t=[],n=[];return Array.from(e.querySelectorAll(qd)).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 Fd(){return!0}function zd(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Nd,isEnabled:a=Fd,open:l}=e,s=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),h=y.useRef(null),m=Qa(t.ref,h),g=y.useRef(null);y.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),y.useEffect((()=>{if(!l||!h.current)return;const e=Ua(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),y.useEffect((()=>{if(!l||!h.current)return;const e=Ua(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=h.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(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Ns.jsxs(y.Fragment,{children:[Ns.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Ns.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const jd=y.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=y.useState(null),l=Qa(y.isValidElement(n)?n.ref:null,t);if(Ja((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Ja((()=>{if(i&&!o)return Xa(t,i),()=>{Xa(t,null)}}),[t,i,o]),o){if(y.isValidElement(n)){const e={ref:l};return y.cloneElement(n,e)}return Ns.jsx(y.Fragment,{children:n})}return Ns.jsx(y.Fragment,{children:i?q.createPortal(n,i):i})}));function $d(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Gd(e){return parseInt(Ka(e).getComputedStyle(e).paddingRight,10)||0}function Bd(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&&$d(e,o)}))}function Hd(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Wd(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Ua(e);return t.body===e?Ka(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=fl(Ua(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Gd(r)+e}px`;const t=Ua(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Gd(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Ua(r).body;else{const t=r.parentElement,n=Ka(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 Vd=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&&$d(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);Bd(t,e.mount,e.modalRef,r,!0);const o=Hd(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=Hd(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Wd(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Hd(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&&$d(e.modalRef,t),Bd(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&&$d(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Yd(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Vd,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),h=y.useRef(null),m=Qa(h,d),[g,b]=y.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},C=Za((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Ua(f.current).body;o.add(S(),e),h.current&&E()})),w=y.useCallback((()=>o.isTopModal(S())),[o]),R=Za((e=>{f.current=e,e&&(c&&w()?E():h.current&&$d(h.current,x))})),L=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{L()}),[L]),y.useEffect((()=>{c?C():v&&i||L()}),[c,L,v,i,C]);const A=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=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=ad(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=On({},n,t);return On({role:"presentation"},r,{onKeyDown:A(r),ref:m})},getBackdropProps:(e={})=>On({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:Va((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Va((()=>{b(!0),l&&l(),i&&L()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const Ud=["onChange","maxRows","minRows","style","value"];function Kd(e){return parseInt(e,10)||0}const Xd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Jd(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Zd=y.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=jn(e,Ud),{current:s}=y.useRef(null!=a),u=y.useRef(null),c=Qa(t,u),d=y.useRef(null),p=y.useRef(0),[f,h]=y.useState({outerHeightStyle:0}),m=y.useCallback((()=>{const t=u.current,n=Ka(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=Kd(n.paddingBottom)+Kd(n.paddingTop),s=Kd(n.borderBottomWidth)+Kd(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},b=y.useCallback((()=>{const e=m();Jd(e)||h((t=>g(t,e)))}),[m]);Ja((()=>{const e=()=>{p.current=0,(()=>{const e=m();Jd(e)||q.flushSync((()=>{h((t=>g(t,e)))}))})()};const t=Ya(e),n=u.current,r=Ka(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()}}),[m]),Ja((()=>{b()})),y.useEffect((()=>{p.current=0}),[a]);return Ns.jsxs(y.Fragment,{children:[Ns.jsx("textarea",On({value:a,onChange:e=>{p.current=0,s||b(),n&&n(e)},ref:c,rows:o,style:On({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),Ns.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:On({},Xd,i,{paddingTop:0,paddingBottom:0})})]})}));function Qd({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 ep=y.createContext(void 0);function tp(){return y.useContext(ep)}function np(e){return Ns.jsx(Fs,Cr({},e,{defaultTheme:ic,themeId:Er}))}function rp(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function op(e,t=!1){return e&&(rp(e.value)&&""!==e.value||t&&rp(e.defaultValue)&&""!==e.defaultValue)}function ip(e){return Nu("MuiInputBase",e)}var ap=Fu("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const lp=["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"],sp=(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${fu(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},up=(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]},cp=dc("div",{name:"MuiInputBase",slot:"Root",overridesResolver:sp})((({theme:e,ownerState:t})=>Cr({},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",[`&.${ap.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Cr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),dp=dc("input",{name:"MuiInputBase",slot:"Input",overridesResolver:up})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Cr({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 Cr({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] + .${ap.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},[`&.${ap.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"})})),pp=Ns.jsx(np,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),fp=y.forwardRef((function(e,t){var n;const r=lc({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:h=!1,id:m,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:x,minRows:S,multiline:E=!1,name:C,onBlur:w,onChange:R,onClick:L,onFocus:A,onKeyDown:I,onKeyUp:M,placeholder:D,readOnly:P,renderSuffix:_,rows:O,slotProps:T={},slots:k={},startAdornment:q,type:N="text",value:F}=r,z=wr(r,lp),j=null!=b.value?b.value:F,{current:$}=y.useRef(null!=j),G=y.useRef(),B=y.useCallback((e=>{}),[]),H=Eu(G,v,b.ref,B),[W,V]=y.useState(!1),Y=tp(),U=Qd({props:r,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=Y?Y.focused:W,y.useEffect((()=>{!Y&&d&&W&&(V(!1),w&&w())}),[Y,d,W,w]);const K=Y&&Y.onFilled,X=Y&&Y.onEmpty,J=y.useCallback((e=>{op(e)?K&&K():X&&X()}),[K,X]);gu((()=>{$&&J({value:j})}),[j,J,$]);y.useEffect((()=>{J(G.current)}),[]);let Z=g,Q=b;E&&"input"===Z&&(Q=Cr(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:x,minRows:S},Q),Z=Zd);y.useEffect((()=>{Y&&Y.setAdornedStart(Boolean(q))}),[Y,q]);const ee=Cr({},r,{color:U.color||"primary",disabled:U.disabled,endAdornment:f,error:U.error,focused:U.focused,formControl:Y,fullWidth:h,hiddenLabel:U.hiddenLabel,multiline:E,size:U.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return ml({root:["root",`color${fu(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${fu(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},ip,t)})(ee),ne=k.root||s.Root||cp,re=T.root||u.root||{},oe=k.input||s.Input||dp;return Q=Cr({},Q,null!=(n=T.input)?n:u.input),Ns.jsxs(y.Fragment,{children:[!p&&pp,Ns.jsxs(ne,Cr({},re,!id(ne)&&{ownerState:Cr({},ee,re.ownerState)},{ref:t,onClick:e=>{G.current&&e.currentTarget===e.target&&G.current.focus(),L&&L(e)}},z,{className:hc(te.root,re.className,l,P&&"MuiInputBase-readOnly"),children:[q,Ns.jsx(ep.Provider,{value:null,children:Ns.jsx(oe,Cr({ownerState:ee,"aria-invalid":U.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:U.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?G.current:{value:"x"})},name:C,placeholder:D,readOnly:P,required:U.required,rows:O,value:j,onKeyDown:I,onKeyUp:M,type:N},Q,!id(oe)&&{as:Z,ownerState:Cr({},ee,Q.ownerState)},{ref:H,className:hc(te.input,Q.className,P&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||G.current;if(null==t)throw new Error(Sr(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(A&&A(e),b.onFocus&&b.onFocus(e),Y&&Y.onFocus?Y.onFocus(e):V(!0))}}))}),f,_?_(Cr({},U,{startAdornment:q})):null]}))]})}));var hp=fp;function mp(e){return Nu("MuiInput",e)}var gp=Cr({},ap,Fu("MuiInput",["root","underline","input"]));function bp(e){return Nu("MuiOutlinedInput",e)}var vp=Cr({},ap,Fu("MuiOutlinedInput",["root","notchedOutline","input"]));function yp(e){return Nu("MuiFilledInput",e)}var xp=Cr({},ap,Fu("MuiFilledInput",["root","underline","input"])),Sp=function(e,t){function n(n,r){return Ns.jsx(yc,Cr({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=yc.muiName,y.memo(y.forwardRef(n))}(Ns.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Ep=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Cp={entering:{opacity:1},entered:{opacity:1}},wp=y.forwardRef((function(e,t){const n=ac(),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:h,style:m,timeout:g=r,TransitionComponent:b=Vc}=e,v=wr(e,Ep),x=y.useRef(null),S=Eu(x,a.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(d),w=E(((e,t)=>{Qc(e);const r=ed({style:m,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)})),R=E(c),L=E(h),A=E((e=>{const t=ed({style:m,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)})),I=E(f);return Ns.jsx(b,Cr({appear:i,in:s,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:A,onExited:I,onExiting:L,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,Cr({style:Cr({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},Cp[e],m,a.props.style),ref:S},t))}))}));var Rp=wp;function Lp(e){return Nu("MuiBackdrop",e)}Fu("MuiBackdrop",["root","invisible"]);const Ap=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Ip=dc("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Cr({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"}))),Mp=y.forwardRef((function(e,t){var n,r,o;const i=lc({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=Rp,transitionDuration:g}=i,b=wr(i,Ap),v=Cr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return ml({root:["root",n&&"invisible"]},Lp,t)})(v),x=null!=(n=f.root)?n:c.root;return Ns.jsx(m,Cr({in:p,timeout:g},b,{children:Ns.jsx(Ip,Cr({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:u.Root)?r:s,className:hc(y.root,l,null==x?void 0:x.className),ownerState:Cr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var Dp=Mp;var Pp=Fu("MuiBox",["root"]);const _p=oc(),Op=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=ma("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Ss);return y.forwardRef((function(e,a){const l=As(n),s=$s(e),{className:u,component:c="div"}=s,d=jn(s,Hs);return Ns.jsx(i,On({as:c,ref:a,className:Bs(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:Er,defaultTheme:_p,defaultClassName:Pp.root,generateClassName:ku.generate});var Tp=Op;function kp(e){return Nu("MuiButton",e)}var qp=Fu("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 Np=y.createContext({});var Fp=y.createContext(void 0);const zp=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],jp=e=>Cr({},"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}}),$p=dc(Id,{shouldForwardProp:e=>sc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${fu(n.color)}`],t[`size${fu(n.size)}`],t[`${n.variant}Size${fu(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 Cr({},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":Cr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:iu(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})`:iu(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})`:iu(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":Cr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${qp.focusVisible}`]:Cr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${qp.disabled}`]:Cr({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 ${iu(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"},[`&.${qp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${qp.disabled}`]:{boxShadow:"none"}})),Gp=dc("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${fu(n.size)}`]]}})((({ownerState:e})=>Cr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},jp(e)))),Bp=dc("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${fu(n.size)}`]]}})((({ownerState:e})=>Cr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},jp(e)))),Hp=y.forwardRef((function(e,t){const n=y.useContext(Np),r=y.useContext(Fp),o=lc({props:Ou(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:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,x=wr(o,zp),S=Cr({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),E=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Cr({},a,ml({root:["root",i,`${i}${fu(t)}`,`size${fu(o)}`,`${i}Size${fu(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${fu(o)}`],endIcon:["endIcon",`iconSize${fu(o)}`]},kp,a))})(S),C=g&&Ns.jsx(Gp,{className:E.startIcon,ownerState:S,children:g}),w=p&&Ns.jsx(Bp,{className:E.endIcon,ownerState:S,children:p}),R=r||"";return Ns.jsxs($p,Cr({ownerState:S,className:hc(n.className,E.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:hc(E.focusVisible,f),ref:t,type:b},x,{classes:E,children:[C,i,w]}))}));var Wp=Hp;function Vp(e){return Nu("MuiModal",e)}Fu("MuiModal",["root","hidden","backdrop"]);const Yp=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Up=dc("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})=>Cr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Kp=dc(Dp,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Xp=y.forwardRef((function(e,t){var n,r,o,i,a,l;const s=lc({name:"MuiModal",props:e}),{BackdropComponent:u=Kp,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:A,open:I,slotProps:M,slots:D}=s,P=wr(s,Yp),_=Cr({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:O,getBackdropProps:T,getTransitionProps:k,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=Yd(Cr({},_,{rootRef:t})),j=Cr({},_,{exited:F}),$=(e=>{const{open:t,exited:n,classes:r}=e;return ml({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Vp,r)})(j),G={};if(void 0===f.props.tabIndex&&(G.tabIndex="-1"),z){const{onEnter:e,onExited:t}=k();G.onEnter=e,G.onExited=t}const B=null!=(n=null!=(r=null==D?void 0:D.root)?r:g.Root)?n:Up,H=null!=(o=null!=(i=null==D?void 0:D.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==M?void 0:M.root)?a:b.root,V=null!=(l=null==M?void 0:M.backdrop)?l:b.backdrop,Y=ud({elementType:B,externalSlotProps:W,externalForwardedProps:P,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:j,className:hc(d,null==W?void 0:W.className,null==$?void 0:$.root,!j.open&&j.exited&&(null==$?void 0:$.hidden))}),U=ud({elementType:H,externalSlotProps:V,additionalProps:c,getSlotProps:e=>T(Cr({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:hc(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:j});return L||I||z&&!F?Ns.jsx(jd,{ref:q,container:h,disablePortal:E,children:Ns.jsxs(B,Cr({},Y,{children:[!R&&u?Ns.jsx(H,Cr({},U)):null,Ns.jsx(zd,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:I,children:y.cloneElement(f,G)})]}))}):null}));var Jp=Xp;function Zp(e){return Nu("MuiDivider",e)}var Qp=Fu("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const ef=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],tf=dc("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})=>Cr({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)`:iu(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})=>Cr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Cr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Cr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Cr({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),nf=dc("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Cr({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)`}))),rf=y.forwardRef((function(e,t){const n=lc({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=wr(n,ef),h=Cr({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return ml({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"]},Zp,r)})(h);return Ns.jsx(tf,Cr({as:a,className:hc(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?Ns.jsx(nf,{className:m.wrapper,ownerState:h,children:o}):null}))}));rf.muiSkipListHighlight=!0;var of=rf;const af=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],lf=dc(cp,{shouldForwardProp:e=>sc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...sp(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 Cr({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}},[`&.${xp.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${xp.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"},[`&.${xp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xp.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(.${xp.disabled}, .${xp.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${xp.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Cr({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}))})),sf=dc(dp,{name:"MuiFilledInput",slot:"Input",overridesResolver:up})((({theme:e,ownerState:t})=>Cr({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}))),uf=y.forwardRef((function(e,t){var n,r,o,i;const a=lc({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=wr(a,af),g=Cr({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:n}=e;return Cr({},t,ml({root:["root",!n&&"underline"],input:["input"]},yp,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?pu(v,null!=p?p:s):v,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:lf,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:sf;return Ns.jsx(hp,Cr({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))}));uf.muiName="Input";var cf=uf;const df=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function pf(e){return`scale(${e}, ${e**2})`}const ff={entering:{opacity:1,transform:pf(1)},entered:{opacity:1,transform:"none"}},hf="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),mf=y.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:h="auto",TransitionComponent:m=Vc}=e,g=wr(e,df),b=y.useRef(),v=y.useRef(),x=ac(),S=y.useRef(null),E=Eu(S,o.ref,t),C=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},w=C(u),R=C(((e,t)=>{Qc(e);const{duration:n,delay:r,easing:o}=ed({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:hf?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),L=C(s),A=C(p),I=C((e=>{const{duration:t,delay:n,easing:r}=ed({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:hf?o:.666*o,delay:hf?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=pf(.75),c&&c(e)})),M=C(d);return y.useEffect((()=>()=>{clearTimeout(b.current)}),[]),Ns.jsx(m,Cr({appear:r,in:a,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:I,onExited:M,onExiting:A,addEndListener:e=>{"auto"===h&&(b.current=setTimeout(e,v.current||0)),n&&n(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>y.cloneElement(o,Cr({style:Cr({opacity:0,transform:pf(.75),visibility:"exited"!==e||a?void 0:"hidden"},ff[e],f,o.props.style),ref:E},t))}))}));mf.muiSupportAuto=!0;var gf=mf;const bf=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],vf=dc(cp,{shouldForwardProp:e=>sc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...sp(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})`),Cr({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"},[`&.${gp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${gp.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(.${gp.disabled}, .${gp.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${gp.disabled}:before`]:{borderBottomStyle:"dotted"}})})),yf=dc(dp,{name:"MuiInput",slot:"Input",overridesResolver:up})({}),xf=y.forwardRef((function(e,t){var n,r,o,i;const a=lc({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=wr(a,bf),b=(e=>{const{classes:t,disableUnderline:n}=e;return Cr({},t,ml({root:["root",!n&&"underline"],input:["input"]},mp,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?pu(null!=f?f:u,v):v,x=null!=(n=null!=(r=h.root)?r:s.Root)?n:vf,S=null!=(o=null!=(i=h.input)?i:s.Input)?o:yf;return Ns.jsx(hp,Cr({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));xf.muiName="Input";var Sf=xf;function Ef(e){return Nu("MuiLink",e)}var Cf=Fu("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const wf={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var Rf=({theme:e,ownerState:t})=>{const n=(e=>wf[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)`:iu(r,.4)};const Lf=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Af=dc(kd,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${fu(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>Cr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Cr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Rf({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"},[`&.${Cf.focusVisible}`]:{outline:"auto"}}))),If=y.forwardRef((function(e,t){const n=lc({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=wr(n,Lf),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=_u(),[b,v]=y.useState(!1),x=Eu(t,g),S=Cr({},n,{color:o,component:i,focusVisible:b,underline:u,variant:c}),E=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return ml({root:["root",`underline${fu(o)}`,"button"===n&&"button",r&&"focusVisible"]},Ef,t)})(S);return Ns.jsx(Af,Cr({color:o,className:hc(E.root,r),classes:s,component:i,onBlur:e=>{h(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&v(!0),l&&l(e)},ref:x,ownerState:S,variant:c,sx:[...Object.keys(wf).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var Mf=If;var Df=y.createContext({});function Pf(e){return Nu("MuiList",e)}Fu("MuiList",["root","padding","dense","subheader"]);const _f=["children","className","component","dense","disablePadding","subheader"],Of=dc("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})=>Cr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var Tf=y.forwardRef((function(e,t){const n=lc({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=wr(n,_f),c=y.useMemo((()=>({dense:a})),[a]),d=Cr({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ml({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Pf,t)})(d);return Ns.jsx(Df.Provider,{value:c,children:Ns.jsxs(Of,Cr({as:i,className:hc(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function kf(e){return Nu("MuiListItemIcon",e)}var qf=Fu("MuiListItemIcon",["root","alignItemsFlexStart"]);const Nf=["className"],Ff=dc("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})=>Cr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var zf=y.forwardRef((function(e,t){const n=lc({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=wr(n,Nf),i=Cr({},n,{alignItems:y.useContext(Df).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return ml({root:["root","flex-start"===t&&"alignItemsFlexStart"]},kf,n)})(i);return Ns.jsx(Ff,Cr({className:hc(a.root,r),ownerState:i,ref:t},o))}));var jf=Fu("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const $f=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Gf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Bf(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Hf(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 Wf(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")&&Hf(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var Vf=y.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=wr(e,$f),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});gu((()=>{r&&p.current.focus()}),[r]),y.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)}(hu(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=Eu(p,t);let m=-1;y.Children.forEach(i,((e,t)=>{y.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=y.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),y.cloneElement(e,t)}return e}));return Ns.jsx(Tf,Cr({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=hu(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Wf(t,r,s,l,Gf);else if("ArrowUp"===n)e.preventDefault(),Wf(t,r,s,l,Bf);else if("Home"===n)e.preventDefault(),Wf(t,null,s,l,Gf);else if("End"===n)e.preventDefault(),Wf(t,null,s,l,Bf);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&&Hf(r,o);o.previousKeyMatched&&(s||Wf(t,r,!1,l,Gf,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function Yf(e){return Nu("MuiPopover",e)}Fu("MuiPopover",["root","paper"]);const Uf=["onEntering"],Kf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Xf=["slotProps"];function Jf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Zf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Qf(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function eh(e){return"function"==typeof e?e():e}const th=dc(Jp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nh=dc(od,{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 rh=y.forwardRef((function(e,t){var n,r,o;const i=lc({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:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=gf,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,L=wr(i.TransitionProps,Uf),A=wr(i,Kf),I=null!=(n=null==x?void 0:x.paper)?n:b,M=y.useRef(),D=Eu(M,I.ref),P=Cr({},i,{anchorOrigin:s,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),_=(e=>{const{classes:t}=e;return ml({root:["root"],paper:["paper"]},Yf,t)})(P),O=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=eh(l),t=(e&&1===e.nodeType?e:hu(M.current).body).getBoundingClientRect();return{top:t.top+Jf(t,s.vertical),left:t.left+Zf(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),T=y.useCallback((e=>({vertical:Jf(e,S.vertical),horizontal:Zf(e,S.horizontal)})),[S.horizontal,S.vertical]),k=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===c)return{top:null,left:null,transformOrigin:Qf(n)};const r=O();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=mu(eh(l)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;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:Qf(n)}}),[l,c,O,T,m]),[q,N]=y.useState(g),F=y.useCallback((()=>{const e=M.current;if(!e)return;const t=k(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[k]);y.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);y.useEffect((()=>{g&&F()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),y.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{F()})),t=mu(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let z=C;"auto"!==C||E.muiSupportAuto||(z=void 0);const j=f||(l?hu(eh(l)).body:void 0),$=null!=(r=null==v?void 0:v.root)?r:th,G=null!=(o=null==v?void 0:v.paper)?o:nh,B=ud({elementType:G,externalSlotProps:Cr({},I,{style:q?I.style:Cr({},I.style,{opacity:0})}),additionalProps:{elevation:h,ref:D},ownerState:P,className:hc(_.paper,null==I?void 0:I.className)}),H=ud({elementType:$,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:P,className:hc(_.root,p)}),{slotProps:W}=H,V=wr(H,Xf);return Ns.jsx($,Cr({},V,!id($)&&{slotProps:W,disableScrollLock:R},{children:Ns.jsx(E,Cr({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:z},L,{children:Ns.jsx(G,Cr({},B,{children:d}))}))}))}));function oh(e){return Nu("MuiMenu",e)}Fu("MuiMenu",["root","paper","list"]);const ih=["onEntering"],ah=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],lh={vertical:"top",horizontal:"right"},sh={vertical:"top",horizontal:"left"},uh=dc(rh,{shouldForwardProp:e=>sc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ch=dc(nh,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),dh=dc(Vf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var ph=y.forwardRef((function(e,t){var n,r;const o=lc({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:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,x=wr(o.TransitionProps,ih),S=wr(o,ah),E=ac(),C="rtl"===E.direction,w=Cr({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:x,variant:g}),R=(e=>{const{classes:t}=e;return ml({root:["root"],paper:["paper"],list:["list"]},oh,t)})(w),L=i&&!s&&d,A=y.useRef(null);let I=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===I)&&(I=t))}));const M=null!=(n=b.paper)?n:ch,D=null!=(r=v.paper)?r:p,P=ud({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[R.root,l]}),_=ud({elementType:M,externalSlotProps:D,ownerState:w,className:R.paper});return Ns.jsx(uh,Cr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?lh:sh,slots:{paper:M,root:b.root},slotProps:{root:P,paper:_},open:d,ref:t,transitionDuration:h,TransitionProps:Cr({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,E),m&&m(e,t)}},x),ownerState:w},S,{classes:f,children:Ns.jsx(dh,Cr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===I||s),autoFocusItem:L,variant:g},u,{className:hc(R.list,u.className),children:a}))}))}));function fh(e){return Nu("MuiMenuItem",e)}var hh=Fu("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const mh=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],gh=dc(Id,{shouldForwardProp:e=>sc(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})=>Cr({},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"}},[`&.${hh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:iu(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${hh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:iu(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${hh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:iu(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})`:iu(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${hh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${hh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Qp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Qp.inset}`]:{marginLeft:52},[`& .${jf.root}`]:{marginTop:0,marginBottom:0},[`& .${jf.inset}`]:{paddingLeft:36},[`& .${qf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Cr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${qf.root} svg`]:{fontSize:"1.25rem"}}))));var bh=y.forwardRef((function(e,t){const n=lc({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=wr(n,mh),f=y.useContext(Df),h=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=y.useRef(null);gu((()=>{r&&m.current&&m.current.focus()}),[r]);const g=Cr({},n,{dense:h.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Cr({},a,ml({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},fh,a))})(n),v=Eu(m,t);let x;return n.disabled||(x=void 0!==c?c:-1),Ns.jsx(Df.Provider,{value:h,children:Ns.jsx(gh,Cr({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:hc(b.focusVisible,s),className:hc(b.root,d)},p,{ownerState:g,classes:b}))})}));function vh(e){return Nu("MuiNativeSelect",e)}var yh=Fu("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const xh=["className","disabled","error","IconComponent","inputRef","variant"],Sh=({ownerState:e,theme:t})=>Cr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Cr({},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"},[`&.${yh.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}}),Eh=dc("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:sc,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${yh.multiple}`]:t.multiple}]}})(Sh),Ch=({ownerState:e,theme:t})=>Cr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${yh.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),wh=dc("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fu(n.variant)}`],n.open&&t.iconOpen]}})(Ch),Rh=y.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=wr(e,xh),u=Cr({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return ml({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${fu(n)}`,i&&"iconOpen",r&&"disabled"]},vh,t)})(u);return Ns.jsxs(y.Fragment,{children:[Ns.jsx(Eh,Cr({ownerState:u,className:hc(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:Ns.jsx(wh,{as:i,ownerState:u,className:c.icon})]})}));var Lh,Ah=Rh;const Ih=["children","classes","className","label","notched"],Mh=dc("fieldset",{shouldForwardProp:sc})({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%"}),Dh=dc("legend",{shouldForwardProp:sc})((({ownerState:e,theme:t})=>Cr({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&&Cr({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 Ph=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],_h=dc(cp,{shouldForwardProp:e=>sc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:sp})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Cr({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${vp.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${vp.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${vp.focused} .${vp.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${vp.error} .${vp.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${vp.disabled} .${vp.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Cr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Oh=dc((function(e){const{className:t,label:n,notched:r}=e,o=wr(e,Ih),i=null!=n&&""!==n,a=Cr({},e,{notched:r,withLabel:i});return Ns.jsx(Mh,Cr({"aria-hidden":!0,className:t,ownerState:a},o,{children:Ns.jsx(Dh,{ownerState:a,children:i?Ns.jsx("span",{children:n}):Lh||(Lh=Ns.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}})),Th=dc(dp,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:up})((({theme:e,ownerState:t})=>Cr({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}))),kh=y.forwardRef((function(e,t){var n,r,o,i,a;const l=lc({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=l,g=wr(l,Ph),b=(e=>{const{classes:t}=e;return Cr({},t,ml({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},bp,t))})(l),v=tp(),x=Qd({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=Cr({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:v,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:m}),E=null!=(n=null!=(r=h.root)?r:s.Root)?n:_h,C=null!=(o=null!=(i=h.input)?i:s.Input)?o:Th;return Ns.jsx(hp,Cr({slots:{root:E,input:C},renderSuffix:e=>Ns.jsx(Oh,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=Ns.jsxs(y.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:m},g,{classes:Cr({},b,{notchedOutline:null})}))}));kh.muiName="Input";var qh=kh;function Nh(e){return Nu("MuiSelect",e)}var Fh,zh=Fu("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const jh=["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"],$h=dc("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${zh.select}`]:t.select},{[`&.${zh.select}`]:t[n.variant]},{[`&.${zh.error}`]:t.error},{[`&.${zh.multiple}`]:t.multiple}]}})(Sh,{[`&.${zh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Gh=dc("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fu(n.variant)}`],n.open&&t.iconOpen]}})(Ch),Bh=dc("input",{shouldForwardProp:e=>uc(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 Hh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Wh(e){return null==e||"string"==typeof e&&!e.trim()}const Vh=y.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:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:x,onBlur:S,onChange:E,onClose:C,onFocus:w,onOpen:R,open:L,readOnly:A,renderValue:I,SelectDisplayProps:M={},tabIndex:D,value:P,variant:_="standard"}=e,O=wr(e,jh),[T,k]=xu({controlled:P,default:c,name:"Select"}),[q,N]=xu({controlled:L,default:u,name:"Select"}),F=y.useRef(null),z=y.useRef(null),[j,$]=y.useState(null),{current:G}=y.useRef(null!=L),[B,H]=y.useState(),W=Eu(t,m),V=y.useCallback((e=>{z.current=e,e&&$(e)}),[]),Y=null==j?void 0:j.parentNode;y.useImperativeHandle(W,(()=>({focus:()=>{z.current.focus()},node:F.current,value:T})),[T]),y.useEffect((()=>{u&&q&&j&&!G&&(H(a?null:Y.clientWidth),z.current.focus())}),[j,a]),y.useEffect((()=>{i&&z.current.focus()}),[i]),y.useEffect((()=>{if(!g)return;const e=hu(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const U=(e,t)=>{e?R&&R(t):C&&C(t),G||(H(a?null:Y.clientWidth),N(e))},K=y.Children.toArray(l),X=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(T)?T.slice():[];const t=T.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),T!==n&&(k(n),E)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:x}}),E(o,e)}v||U(!1,t)}},J=null!==j&&q;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(op({value:T})||p)&&(I?Z=I(T):te=!0);const ne=K.map((e=>{if(!y.isValidElement(e))return null;let t;if(v){if(!Array.isArray(T))throw new Error(Sr(2));t=T.some((t=>Hh(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Hh(T,e.props.value),t&&te&&(Q=e.props.children);return y.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=v?0===ee.length?null:ee.reduce(((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e)),[]):Q);let re,oe=B;!a&&G&&j&&(oe=Y.clientWidth),re=void 0!==D?D:d?null:0;const ie=M.id||(x?`mui-component-select-${x}`:void 0),ae=Cr({},e,{variant:_,value:T,open:J,error:f}),le=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return ml({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${fu(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},Nh,t)})(ae),se=Cr({},b.PaperProps,null==(n=b.slotProps)?void 0:n.paper),ue=yu();return Ns.jsxs(y.Fragment,{children:[Ns.jsx($h,Cr({ref:V,tabIndex:re,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!A){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:d||A?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),U(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:T,name:x}}),S(e))},onFocus:w},M,{ownerState:ae,className:hc(M.className,le.select,s),id:ie,children:Wh(Z)?Fh||(Fh=Ns.jsx("span",{className:"notranslate",children:""})):Z})),Ns.jsx(Bh,Cr({"aria-invalid":f,value:Array.isArray(T)?T.join(","):T,name:x,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(k(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},O)),Ns.jsx(Gh,{as:h,className:le.icon,ownerState:ae}),Ns.jsx(ph,Cr({id:`menu-${x||""}`,anchorEl:Y,open:J,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Cr({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:Cr({},b.slotProps,{paper:Cr({},se,{style:Cr({minWidth:oe},null!=se?se.style:null)})}),children:ne}))]})}));var Yh=Vh;const Uh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Kh=["root"],Xh={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>sc(e)&&"variant"!==e,slot:"Root"},Jh=dc(Sf,Xh)(""),Zh=dc(qh,Xh)(""),Qh=dc(cf,Xh)(""),em=y.forwardRef((function(e,t){const n=lc({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=Sp,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:x,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=n,R=wr(n,Uh),L=b?Ah:Yh,A=Qd({props:n,muiFormControl:tp(),states:["variant","error"]}),I=A.variant||w,M=Cr({},n,{variant:I,classes:i}),D=(e=>{const{classes:t}=e;return t})(M),P=wr(D,Kh),_=d||{standard:Ns.jsx(Jh,{ownerState:M}),outlined:Ns.jsx(Zh,{label:f,ownerState:M}),filled:Ns.jsx(Qh,{ownerState:M})}[I],O=Eu(t,_.ref);return Ns.jsx(y.Fragment,{children:y.cloneElement(_,Cr({inputComponent:L,inputProps:Cr({children:o,error:A.error,IconComponent:u,variant:I,type:void 0,multiple:g},b?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:h,MenuProps:m,onClose:v,onOpen:x,open:S,renderValue:E,SelectDisplayProps:Cr({id:c},C)},p,{classes:p?pu(P,p.classes):P},d?d.props.inputProps:{})},g&&b&&"outlined"===I?{notched:!0}:{},{ref:O,className:hc(_.props.className,a,D.root)},!d&&{variant:I},R))})}));em.muiName="Select";var tm=em,nm=(e={})=>x.createElement(lr,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{stroke:Hn.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const rm={MuiAccordion:{styleOverrides:{root:{backgroundColor:Hn.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Hn.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement(or,{"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 ${Hn.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Hn.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Hn.MISC_FOCUS_BORDER}`,borderRadius:Kn,backgroundColor:Hn.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 ${Hn.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Hn.WHITE,color:Hn.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:Kn},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Hn.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Hn.GREYSCALE_0_15,backgroundColor:Hn.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Hn.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Hn.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Hn.GREEN_PALE},"&:active":{backgroundColor:Hn.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Hn.GREEN_PALE,boxShadow:`0 0 0 3px ${iu(Hn.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Hn.BLUE_PALE},"&:active":{backgroundColor:Hn.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Hn.BLUE_PALE,boxShadow:`0 0 0 3px ${iu(Hn.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:Kn,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Hn.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Hn.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Hn.GREYSCALE_0_15,backgroundColor:Hn.GREYSCALE_100_60,"&:active":{backgroundColor:Hn.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Hn.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Hn.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Hn.PURPLE,"&.Mui-focusVisible":{borderColor:Hn.PURPLE,boxShadow:`0 0 0 3px ${iu(Hn.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Hn.GREEN,"&.Mui-focusVisible":{borderColor:Hn.GREEN,boxShadow:`0 0 0 3px ${iu(Hn.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Hn.BLUE,"&.Mui-focusVisible":{borderColor:Hn.BLUE,boxShadow:`0 0 0 3px ${iu(Hn.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Hn.ORANGE,"&.Mui-focusVisible":{borderColor:Hn.ORANGE,boxShadow:`0 0 0 3px ${iu(Hn.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Hn.RED,"&.Mui-focusVisible":{borderColor:Hn.RED,boxShadow:`0 0 0 3px ${iu(Hn.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Hn.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Hn.PURPLE_PALE},"&:active":{backgroundColor:Hn.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Hn.PURPLE_PALE,boxShadow:`0 0 0 3px ${iu(Hn.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Hn.GREEN_PALE},"&:active":{backgroundColor:Hn.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Hn.GREEN_PALE,boxShadow:`0 0 0 3px ${iu(Hn.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Hn.BLUE_PALE},"&:active":{backgroundColor:Hn.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Hn.BLUE_PALE,boxShadow:`0 0 0 3px ${iu(Hn.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Hn.ORANGE_PALE},"&:active":{backgroundColor:Hn.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Hn.ORANGE_PALE,boxShadow:`0 0 0 3px ${iu(Hn.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Hn.RED_PALE},"&:active":{backgroundColor:Hn.RED_DARK},"&.Mui-focusVisible":{borderColor:Hn.RED_PALE,boxShadow:`0 0 0 3px ${iu(Hn.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:Hn.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Hn.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Kn,boxShadow:`inset 0 0 0 2px ${Hn.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement(ar,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Wn,borderRadius:Kn,color:Hn.TEXT_PRIMARY,backgroundColor:Hn.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Hn.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Hn.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Hn.GREYSCALE_0_05,color:Hn.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Hn.GREEN,borderColor:Hn.GREEN},"&.MuiChip-outlinedInfo":{color:Hn.BLUE,borderColor:Hn.BLUE},"&.MuiChip-outlinedWarning":{color:Hn.ORANGE,borderColor:Hn.ORANGE},"&.MuiChip-outlinedError":{color:Hn.RED,borderColor:Hn.RED}},outlined:{border:`solid 1px ${Hn.GREYSCALE_0_15}`,backgroundColor:Hn.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Kn,boxShadow:"none",backgroundColor:Hn.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Hn.GREEN,borderColor:Hn.GREEN},outlinedSecondary:{color:Hn.BLUE,borderColor:Hn.BLUE},label:{fontFamily:er.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement(ar,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement(or,{"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:Kn},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Kn,fontSize:Vn,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Hn.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Hn.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Hn.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Hn.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Hn.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:Kn,border:`solid 1px ${Hn.GREYSCALE_0_15}`,color:Hn.GREYSCALE_0_60,marginRight:0,width:Un,height:Un},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Hn.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Kn,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Hn.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Vn}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Wn,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Hn.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Hn.GREYSCALE_25,fontSize:Wn,fontFamily:er.FONT_FAMILY,fontWeight:Zn,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Hn.TEXT_PRIMARY},"&.Mui-error":{color:Hn.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Hn.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Jn,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Hn.TEXT_SECONDARY,content:"'(required)'",fontWeight:Jn,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Vn,lineHeight:"16px",backgroundColor:Hn.WHITE,borderRadius:Kn,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Hn.GREYSCALE_0_05}`,borderColor:Hn.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Hn.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Hn.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Hn.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Hn.RED}`,boxShadow:`0px 0px 0px 1px ${Hn.RED}, inset 0 2px 0 0 ${Hn.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Hn.GREYSCALE_0_10}`,borderColor:Hn.GREYSCALE_0_10,backgroundColor:Hn.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Hn.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Hn.GREYSCALE_0_15,borderRadius:Kn,boxShadow:`inset 0 2px 0 0 ${Hn.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement(or,{...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:Hn.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Hn.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Hn.GREYSCALE_0_03},"&:active":{backgroundColor:Hn.GREYSCALE_0_10},"&:focus":{backgroundColor:Hn.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Hn.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Hn.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Hn.GREYSCALE_0_30,"&:hover":{backgroundColor:Hn.GREYSCALE_0_0,borderColor:Hn.GREYSCALE_0_15},"& ~svg":{color:Hn.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Hn.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Kn}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Hn.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Hn.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Hn.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:Vn,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Wn,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Wn,fontWeight:Zn,color:Hn.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Zn}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Hn.GREYSCALE_0_15}, 0px 0px 0px 1px ${Hn.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement(cr,null),checkedIcon:x.createElement(dr,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Hn.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Hn.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Hn.GREEN_PALE,boxShadow:`0 0 0 3px ${iu(Hn.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Hn.BLUE_PALE,boxShadow:`0 0 0 3px ${iu(Hn.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Hn.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Hn.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(nm,null),checkedIcon:x.createElement(sr,null),indeterminateIcon:x.createElement(ur,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Kn,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Hn.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Hn.GREYSCALE_0_55,color:Hn.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:Hn.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Hn.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Hn.GREYSCALE_0_55,"&:hover":{color:Hn.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:Hn.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Hn.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Vn,color:Hn.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Zn},secondary:{fontSize:Wn,color:Hn.GREYSCALE_45,fontWeight:Jn,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Vn,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Hn.GREYSCALE_0_03},"&:active":{backgroundColor:Hn.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Vn,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Hn.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Wn,borderBottom:`solid 1px ${Hn.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Vn,color:Hn.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Hn.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Hn.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Hn.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:Hn.RED}}},"&.Mui-focusVisible":{backgroundColor:Hn.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:Hn.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:Hn.GREEN,height:"24px","&.Mui-disabled":{color:Hn.GREYSCALE_0_15}},rail:{backgroundColor:Hn.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Hn.GREYSCALE_0_05}`,borderRadius:Kn,boxShadow:`inset 0px 0px 0px 1px ${Hn.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Hn.GREYSCALE_0_05}`,borderRadius:Kn},thumb:{height:"16px",width:"16px",borderRadius:Kn,backgroundColor:Hn.WHITE,boxShadow:`0px 1px 2px 0px ${Hn.GREYSCALE_0_15}, 0px 0px 0px 1px ${Hn.GREYSCALE_0_05}`,"&:hover":{borderRadius:Kn,boxShadow:`0 2px 4px 0 ${Hn.GREYSCALE_0_30}, 0 0 0 1px ${Hn.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Hn.GREYSCALE_0_15}, 0 0 0 1px ${Hn.GREYSCALE_0_06}, 0 0 0 2px ${Hn.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Hn.GREYSCALE_0_15}, 0 0 0 1px ${Hn.GREYSCALE_0_06}, 0 0 0 2px ${Hn.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Hn.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Hn.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Hn.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Hn.GREYSCALE_0_15},markLabel:{color:Hn.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Hn.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Hn.WHITE,color:Hn.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:Hn.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:Hn.GREEN_PALE,boxShadow:`0 0 0 3px ${iu(Hn.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Hn.BLUE_PALE,boxShadow:`0 0 0 3px ${iu(Hn.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Hn.GREYSCALE_0_15,borderRadius:Kn},thumb:{height:"16px",width:"16px",borderRadius:Kn,backgroundColor:Hn.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:Vn,fontWeight:Zn,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Hn.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Hn.MISC_FOCUS_BORDER}`,backgroundColor:Hn.GREYSCALE_0_03,borderRadius:Kn},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Hn.GREYSCALE_25,"&.Mui-selected":{color:Hn.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Vn,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${Hn.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${Hn.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Hn.GREYSCALE_85}`,borderRight:`1px solid ${Hn.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Zn,backgroundColor:Hn.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:Hn.GREYSCALE_98,borderBottom:`1px solid ${Hn.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Hn.GREYSCALE_85}`,borderTop:`1px solid ${Hn.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Hn.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Hn.GREYSCALE_0_05,"&:hover":{backgroundColor:Hn.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Hn.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(pr,{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 ${Hn.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Vn,borderRadius:Kn,padding:"7px 16px",border:`1px solid ${Hn.GREYSCALE_0_15}`,backgroundColor:Hn.GREYSCALE_100_60,color:Hn.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Hn.GREYSCALE_0_10,border:`1px solid ${Hn.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Hn.GREYSCALE_0_03,border:`1px solid ${Hn.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Hn.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Hn.MISC_FOCUS_BORDER}`,border:`1px solid ${Hn.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Hn.GREYSCALE_25,backgroundColor:Hn.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Hn.GREYSCALE_0_10,border:`1px solid ${Hn.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Wn,height:24,width:24,padding:7},sizeLarge:{fontSize:Yn,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Vn,borderRadius:Kn}}},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:Hn.GREYSCALE_20},tooltip:{backgroundColor:Hn.GREYSCALE_20,fontSize:Wn,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const om={mode:"light",primary:{light:Hn.GREEN_PALE,main:Hn.GREEN,dark:Hn.GREEN_DARK,contrastText:Hn.WHITE},secondary:{light:Hn.BLUE_PALE,main:Hn.BLUE,dark:Hn.BLUE_DARK,contrastText:Hn.WHITE},error:{light:Hn.RED_PALE,main:Hn.RED,dark:Hn.RED_DARK,contrastText:Hn.WHITE},warning:{light:Hn.ORANGE_PALE,main:Hn.ORANGE,dark:Hn.ORANGE_DARK,contrastText:Hn.WHITE},success:{light:Hn.GREEN_PALE,main:Hn.GREEN,dark:Hn.GREEN_DARK,contrastText:Hn.WHITE},info:{light:Hn.BLUE_PALE,main:Hn.BLUE,dark:Hn.BLUE_DARK,contrastText:Hn.WHITE},text:{primary:Hn.TEXT_PRIMARY,secondary:Hn.TEXT_SECONDARY,disabled:Hn.GREYSCALE_0_30},action:{hover:Hn.GREYSCALE_0_03,hoverOpacity:.05,selected:Hn.GREYSCALE_0_05,focus:Hn.MISC_FOCUS_BORDER},amethyst:{main:Hn.PURPLE,light:Hn.PURPLE_PALE,dark:Hn.PURPLE_DARK,contrastText:Hn.WHITE},background:{paper:Hn.WHITE,default:Hn.GREYSCALE_95},divider:Hn.GREYSCALE_0_15},im=e=>({components:rm,palette:om,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:Vn,fontWeightLight:Xn,fontWeightRegular:Jn,fontWeightMedium:Zn,fontWeightBold:Qn,htmlFontSize:Vn,fontFamily:er.FONT_FAMILY,button:{fontWeight:Zn,fontSize:Vn,textTransform:"none"},body1:{fontSize:Yn,lineHeight:"24px"},body2:{fontSize:Vn,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Un,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Yn,fontWeight:Zn,lineHeight:"16px"},h6:{fontSize:Vn,fontWeight:Zn,lineHeight:"16px"},caption:{color:Hn.TEXT_SECONDARY},subtitle1:{fontSize:Vn,color:Hn.TEXT_SECONDARY},subtitle2:{fontSize:Wn,color:Hn.TEXT_SECONDARY}},shape:{borderRadius:Kn}}),am={...Bn,MISC_FOCUS_BORDER:Hn.MISC_FOCUS_BORDER},lm=im().palette,sm={TEXT:lm.text.primary,DISABLED:lm.text.disabled,HOVER:lm.action.hover,WHITE:am.GREYSCALE_100,BORDER_LIGHT:am.GREYSCALE_90,BORDER_MEDIUM:am.GREYSCALE_85,BORDER_HEAVY:am.GREYSCALE_50,DARK_MODE_TEXT:am.GREYSCALE_95,DARK_MODE_BORDER:am.GREYSCALE_95,DARK_MODE_DISABLED:am.GREYSCALE_70,DARK_MODE_BACKGROUND:am.GREYSCALE_20};function um(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function cm(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function dm(){}var pm=.7,fm=1/pm,hm="\\s*([+-]?\\d+)\\s*",mm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",gm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",bm=/^#([0-9a-f]{3,8})$/,vm=new RegExp(`^rgb\\(${hm},${hm},${hm}\\)$`),ym=new RegExp(`^rgb\\(${gm},${gm},${gm}\\)$`),xm=new RegExp(`^rgba\\(${hm},${hm},${hm},${mm}\\)$`),Sm=new RegExp(`^rgba\\(${gm},${gm},${gm},${mm}\\)$`),Em=new RegExp(`^hsl\\(${mm},${gm},${gm}\\)$`),Cm=new RegExp(`^hsla\\(${mm},${gm},${gm},${mm}\\)$`),wm={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 Rm(){return this.rgb().formatHex()}function Lm(){return this.rgb().formatRgb()}function Am(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=bm.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Im(t):3===n?new _m(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Mm(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Mm(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=vm.exec(e))?new _m(t[1],t[2],t[3],1):(t=ym.exec(e))?new _m(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=xm.exec(e))?Mm(t[1],t[2],t[3],t[4]):(t=Sm.exec(e))?Mm(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Em.exec(e))?Fm(t[1],t[2]/100,t[3]/100,1):(t=Cm.exec(e))?Fm(t[1],t[2]/100,t[3]/100,t[4]):wm.hasOwnProperty(e)?Im(wm[e]):"transparent"===e?new _m(NaN,NaN,NaN,0):null}function Im(e){return new _m(e>>16&255,e>>8&255,255&e,1)}function Mm(e,t,n,r){return r<=0&&(e=t=n=NaN),new _m(e,t,n,r)}function Dm(e){return e instanceof dm||(e=Am(e)),e?new _m((e=e.rgb()).r,e.g,e.b,e.opacity):new _m}function Pm(e,t,n,r){return 1===arguments.length?Dm(e):new _m(e,t,n,null==r?1:r)}function _m(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Om(){return`#${Nm(this.r)}${Nm(this.g)}${Nm(this.b)}`}function Tm(){const e=km(this.opacity);return`${1===e?"rgb(":"rgba("}${qm(this.r)}, ${qm(this.g)}, ${qm(this.b)}${1===e?")":`, ${e})`}`}function km(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function qm(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Nm(e){return((e=qm(e))<16?"0":"")+e.toString(16)}function Fm(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new jm(e,t,n,r)}function zm(e){if(e instanceof jm)return new jm(e.h,e.s,e.l,e.opacity);if(e instanceof dm||(e=Am(e)),!e)return new jm;if(e instanceof jm)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 jm(a,l,s,e.opacity)}function jm(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function $m(e){return(e=(e||0)%360)<0?e+360:e}function Gm(e){return Math.max(0,Math.min(1,e||0))}function Bm(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}um(dm,Am,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Rm,formatHex:Rm,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return zm(this).formatHsl()},formatRgb:Lm,toString:Lm}),um(_m,Pm,cm(dm,{brighter(e){return e=null==e?fm:Math.pow(fm,e),new _m(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?pm:Math.pow(pm,e),new _m(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _m(qm(this.r),qm(this.g),qm(this.b),km(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:Om,formatHex:Om,formatHex8:function(){return`#${Nm(this.r)}${Nm(this.g)}${Nm(this.b)}${Nm(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Tm,toString:Tm})),um(jm,(function(e,t,n,r){return 1===arguments.length?zm(e):new jm(e,t,n,null==r?1:r)}),cm(dm,{brighter(e){return e=null==e?fm:Math.pow(fm,e),new jm(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?pm:Math.pow(pm,e),new jm(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 _m(Bm(e>=240?e-240:e+120,o,r),Bm(e,o,r),Bm(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new jm($m(this.h),Gm(this.s),Gm(this.l),km(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=km(this.opacity);return`${1===e?"hsl(":"hsla("}${$m(this.h)}, ${100*Gm(this.s)}%, ${100*Gm(this.l)}%${1===e?")":`, ${e})`}`}}));const Hm=Math.PI/180,Wm=180/Math.PI,Vm=.96422,Ym=1,Um=.82521,Km=4/29,Xm=6/29,Jm=3*Xm*Xm,Zm=Xm*Xm*Xm;function Qm(e){if(e instanceof eg)return new eg(e.l,e.a,e.b,e.opacity);if(e instanceof ag)return lg(e);e instanceof _m||(e=Dm(e));var t,n,r=og(e.r),o=og(e.g),i=og(e.b),a=tg((.2225045*r+.7168786*o+.0606169*i)/Ym);return r===o&&o===i?t=n=a:(t=tg((.4360747*r+.3850649*o+.1430804*i)/Vm),n=tg((.0139322*r+.0971045*o+.7141733*i)/Um)),new eg(116*a-16,500*(t-a),200*(a-n),e.opacity)}function eg(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function tg(e){return e>Zm?Math.pow(e,1/3):e/Jm+Km}function ng(e){return e>Xm?e*e*e:Jm*(e-Km)}function rg(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function og(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ig(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof ag)return new ag(e.h,e.c,e.l,e.opacity);if(e instanceof eg||(e=Qm(e)),0===e.a&&0===e.b)return new ag(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Wm;return new ag(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new ag(e,t,n,null==r?1:r)}function ag(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function lg(e){if(isNaN(e.h))return new eg(e.l,0,0,e.opacity);var t=e.h*Hm;return new eg(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}um(eg,(function(e,t,n,r){return 1===arguments.length?Qm(e):new eg(e,t,n,null==r?1:r)}),cm(dm,{brighter(e){return new eg(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new eg(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 _m(rg(3.1338561*(t=Vm*ng(t))-1.6168667*(e=Ym*ng(e))-.4906146*(n=Um*ng(n))),rg(-.9787684*t+1.9161415*e+.033454*n),rg(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),um(ag,ig,cm(dm,{brighter(e){return new ag(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ag(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return lg(this).rgb()}}));const sg=(e,t)=>{const n=ig(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()},ug=e=>{if(e){const t=Pm(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},cg=e=>!!e&&0===Pm(e).opacity,dg=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,pg=e=>{const t=dg.exec(e);if(t){const[,e,n,r,o]=t;return Pm(+n,+r,+o,+e/255)}return Pm(e)},fg=e=>{const t=pg(e);return Number.isNaN(t.r)?null:t.toString()},hg=e=>{e.stopPropagation(),e.preventDefault()},mg="#grid",gg=(e,t)=>{const n=null==t?void 0:t.closest(e);return n&&window.getComputedStyle(n).backgroundColor},bg=(e,t,n,r,o)=>{const i=gg(".qv-object .qv-inner-object",n),a=gg(".qv-panel-sheet",n),l=gg(mg,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 fg(s);if("none"===u)return"transparent";if(void 0===u)return;const c=pg(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=cg(p),h=ug(f?s:p),m=((e,t,n)=>cg(e)||!e?cg(t)?null!=n?n:sm.WHITE:t:e)(u,p,s);return{color:p,headerColor:m,isDark:h}},vg=(o,i,a,l)=>{const s=n(),u=((n,r={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[o,i]=e([]);return t((()=>{let e;return n&&(e=new MutationObserver((e=>{i(e)})),e.observe(n,r)),()=>{var t;null===(t=e)||void 0===t||t.disconnect()}}),[n,r]),o})(null==i?void 0:i.closest(mg),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return r((()=>({...s,background:bg(o,s,i,a,l)})),[s.name(),i,a,l,o,u])};function yg(e,t){const n=r((()=>({isLoading:!0})),t),[i,a]=o((async()=>{try{return await e()}finally{n.isLoading=!1}}),t);return[i,n.isLoading,a]}var xg=Object.prototype.hasOwnProperty,Sg=Object.prototype.toString,Eg=Object.defineProperty,Cg=Object.getOwnPropertyDescriptor,wg=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Sg.call(e)},Rg=function(e){if(!e||"[object Object]"!==Sg.call(e))return!1;var t,n=xg.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&xg.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||xg.call(e,t)},Lg=function(e,t){Eg&&"__proto__"===t.name?Eg(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Ag=function(e,t){if("__proto__"===t){if(!xg.call(e,t))return;if(Cg)return Cg(e,t).value}return e[t]};function Ig(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Mg(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Dg(){}!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=Ag(l,n),l!==(o=Ag(t,n))&&(c&&o&&(Rg(o)||(i=wg(o)))?(i?(i=!1,a=r&&wg(r)?r:[]):a=r&&Rg(r)?r:{},Lg(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&Lg(l,{name:n,newValue:o}));return l}));var Pg=1/.7,_g="\\s*([+-]?\\d+)\\s*",Og="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Tg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",kg=/^#([0-9a-f]{3,8})$/,qg=new RegExp(`^rgb\\(${_g},${_g},${_g}\\)$`),Ng=new RegExp(`^rgb\\(${Tg},${Tg},${Tg}\\)$`),Fg=new RegExp(`^rgba\\(${_g},${_g},${_g},${Og}\\)$`),zg=new RegExp(`^rgba\\(${Tg},${Tg},${Tg},${Og}\\)$`),jg=new RegExp(`^hsl\\(${Og},${Tg},${Tg}\\)$`),$g=new RegExp(`^hsla\\(${Og},${Tg},${Tg},${Og}\\)$`),Gg={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 Bg(){return this.rgb().formatHex()}function Hg(){return this.rgb().formatRgb()}function Wg(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=kg.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Vg(t):3===n?new Xg(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Yg(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Yg(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=qg.exec(e))?new Xg(t[1],t[2],t[3],1):(t=Ng.exec(e))?new Xg(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Fg.exec(e))?Yg(t[1],t[2],t[3],t[4]):(t=zg.exec(e))?Yg(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=jg.exec(e))?nb(t[1],t[2]/100,t[3]/100,1):(t=$g.exec(e))?nb(t[1],t[2]/100,t[3]/100,t[4]):Gg.hasOwnProperty(e)?Vg(Gg[e]):"transparent"===e?new Xg(NaN,NaN,NaN,0):null}function Vg(e){return new Xg(e>>16&255,e>>8&255,255&e,1)}function Yg(e,t,n,r){return r<=0&&(e=t=n=NaN),new Xg(e,t,n,r)}function Ug(e){return e instanceof Dg||(e=Wg(e)),e?new Xg((e=e.rgb()).r,e.g,e.b,e.opacity):new Xg}function Kg(e,t,n,r){return 1===arguments.length?Ug(e):new Xg(e,t,n,null==r?1:r)}function Xg(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Jg(){return`#${tb(this.r)}${tb(this.g)}${tb(this.b)}`}function Zg(){const e=Qg(this.opacity);return`${1===e?"rgb(":"rgba("}${eb(this.r)}, ${eb(this.g)}, ${eb(this.b)}${1===e?")":`, ${e})`}`}function Qg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function eb(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function tb(e){return((e=eb(e))<16?"0":"")+e.toString(16)}function nb(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ob(e,t,n,r)}function rb(e){if(e instanceof ob)return new ob(e.h,e.s,e.l,e.opacity);if(e instanceof Dg||(e=Wg(e)),!e)return new ob;if(e instanceof ob)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 ob(a,l,s,e.opacity)}function ob(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ib(e){return(e=(e||0)%360)<0?e+360:e}function ab(e){return Math.max(0,Math.min(1,e||0))}function lb(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ig(Dg,Wg,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Bg,formatHex:Bg,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return rb(this).formatHsl()},formatRgb:Hg,toString:Hg}),Ig(Xg,Kg,Mg(Dg,{brighter(e){return e=null==e?Pg:Math.pow(Pg,e),new Xg(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Xg(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Xg(eb(this.r),eb(this.g),eb(this.b),Qg(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:Jg,formatHex:Jg,formatHex8:function(){return`#${tb(this.r)}${tb(this.g)}${tb(this.b)}${tb(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Zg,toString:Zg})),Ig(ob,(function(e,t,n,r){return 1===arguments.length?rb(e):new ob(e,t,n,null==r?1:r)}),Mg(Dg,{brighter(e){return e=null==e?Pg:Math.pow(Pg,e),new ob(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ob(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 Xg(lb(e>=240?e-240:e+120,o,r),lb(e,o,r),lb(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ob(ib(this.h),ab(this.s),ab(this.l),Qg(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=Qg(this.opacity);return`${1===e?"hsl(":"hsla("}${ib(this.h)}, ${100*ab(this.s)}%, ${100*ab(this.l)}%${1===e?")":`, ${e})`}`}}));const sb=Math.PI/180,ub=180/Math.PI,cb=4/29,db=6/29,pb=3*db*db;function fb(e){if(e instanceof hb)return new hb(e.l,e.a,e.b,e.opacity);if(e instanceof yb)return xb(e);e instanceof Xg||(e=Ug(e));var t,n,r=vb(e.r),o=vb(e.g),i=vb(e.b),a=mb((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=mb((.4360747*r+.3850649*o+.1430804*i)/.96422),n=mb((.0139322*r+.0971045*o+.7141733*i)/.82521)),new hb(116*a-16,500*(t-a),200*(a-n),e.opacity)}function hb(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function mb(e){return e>.008856451679035631?Math.pow(e,1/3):e/pb+cb}function gb(e){return e>db?e*e*e:pb*(e-cb)}function bb(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function vb(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function yb(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function xb(e){if(isNaN(e.h))return new hb(e.l,0,0,e.opacity);var t=e.h*sb;return new hb(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ig(hb,(function(e,t,n,r){return 1===arguments.length?fb(e):new hb(e,t,n,null==r?1:r)}),Mg(Dg,{brighter(e){return new hb(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new hb(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 Xg(bb(3.1338561*(t=.96422*gb(t))-1.6168667*(e=1*gb(e))-.4906146*(n=.82521*gb(n))),bb(-.9787684*t+1.9161415*e+.033454*n),bb(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ig(yb,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof yb)return new yb(e.h,e.c,e.l,e.opacity);if(e instanceof hb||(e=fb(e)),0===e.a&&0===e.b)return new yb(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ub;return new yb(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new yb(e,t,n,null==r?1:r)}),Mg(Dg,{brighter(e){return new yb(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new yb(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return xb(this).rgb()}}));var Sb,Eb=e=>()=>e;function Cb(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Eb(isNaN(e)?t:e)}function wb(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 Rb(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 Lb(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Ib)):void 0===t&&(t=Ab);for(var n,r,o,i,a,l=new Pb(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 Pb(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Db)}function Ab(e){return e.children}function Ib(e){return Array.isArray(e)?e[1]:null}function Mb(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Db(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Pb(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var n=function(e){return 1==(e=+e)?Cb: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):Eb(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Kg(e)).r,(t=Kg(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Cb(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),Pb.prototype=Lb.prototype={constructor:Pb,count:function(){return this.eachAfter(Rb)},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 Lb(this).eachBefore(Mb)},[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)}},Sb=function(e){
|
|
99
|
+
`),cd.rippleVisible,bd,550,(({theme:e})=>e.transitions.easing.easeInOut),cd.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),cd.child,cd.childLeaving,vd,550,(({theme:e})=>e.transitions.easing.easeInOut),cd.childPulsate,yd,(({theme:e})=>e.transitions.easing.easeInOut));var Ed=y.forwardRef((function(e,t){const n=lc({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=wr(n,dd),[l,s]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=y.useRef(!1),p=y.useRef(0),f=y.useRef(null),h=y.useRef(null);y.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const m=y.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Ns.jsx(Sd,{classes:{ripple:hc(o.ripple,cd.ripple),rippleVisible:hc(o.rippleVisible,cd.rippleVisible),ripplePulsate:hc(o.ripplePulsate,cd.ripplePulsate),child:hc(o.child,cd.child),childLeaving:hc(o.childLeaving,cd.childLeaving),childPulsate:hc(o.childPulsate,cd.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.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:h.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=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,m]),b=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{v(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Ns.jsx(xd,Cr({className:hc(cd.root,o.root,i),ref:h},a,{children:Ns.jsx(Zc,{component:null,exit:!0,children:l})}))}));function Cd(e){return Nu("MuiButtonBase",e)}var wd=Fu("MuiButtonBase",["root","disabled","focusVisible"]);const Rd=["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"],Ld=dc("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"},[`&.${wd.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ad=y.forwardRef((function(e,t){const n=lc({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:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:A,tabIndex:I=0,TouchRippleProps:M,touchRippleRef:D,type:P}=n,_=wr(n,Rd),O=y.useRef(null),T=y.useRef(null),k=Eu(T,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=_u(),[j,$]=y.useState(!1);s&&j&&$(!1),y.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),O.current.focus()}})),[]);const[G,B]=y.useState(!1);y.useEffect((()=>{B(!0)}),[]);const H=G&&!u&&!s;function W(e,t,n=c){return Su((r=>{t&&t(r);return!n&&T.current&&T.current[e](r),!0}))}y.useEffect((()=>{j&&d&&!u&&G&&T.current.pulsate()}),[u,d,j,G]);const V=W("start",E),Y=W("stop",m),U=W("stop",g),K=W("stop",w),X=W("stop",(e=>{j&&e.preventDefault(),C&&C(e)})),J=W("start",A),Z=W("stop",R),Q=W("stop",L),ee=W("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=Su((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=y.useRef(!1),oe=Su((e=>{d&&!re.current&&j&&T.current&&" "===e.key&&(re.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=Su((e=>{d&&" "===e.key&&T.current&&j&&!e.defaultPrevented&&(re.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(_.href||_.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=s):(_.href||_.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Eu(t,z,O),ue=Cr({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=ml({root:["root",t&&"disabled",n&&"focusVisible"]},Cd,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Ns.jsxs(Ld,Cr({as:ae,className:hc(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:U,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:I,type:P},le,_,{children:[i,H?Ns.jsx(Ed,Cr({ref:k,center:o},M)):null]}))}));var Id=Ad;function Md(e){return Nu("MuiTypography",e)}Fu("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Dd=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Pd=dc("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${fu(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Cr({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}))),_d={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Od={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Td=y.forwardRef((function(e,t){const n=lc({props:e,name:"MuiTypography"}),r=(e=>Od[e]||e)(n.color),o=$s(Cr({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=_d}=o,f=wr(o,Dd),h=Cr({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=l||(c?"p":p[d]||_d[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return ml({root:["root",i,"inherit"!==e.align&&`align${fu(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Md,a)})(h);return Ns.jsx(Pd,Cr({as:m,ref:t,ownerState:h,className:hc(g.root,a)},f))}));var kd=Td;const qd=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Nd(e){const t=[],n=[];return Array.from(e.querySelectorAll(qd)).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 Fd(){return!0}function zd(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Nd,isEnabled:a=Fd,open:l}=e,s=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),h=y.useRef(null),m=Qa(t.ref,h),g=y.useRef(null);y.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),y.useEffect((()=>{if(!l||!h.current)return;const e=Ua(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),y.useEffect((()=>{if(!l||!h.current)return;const e=Ua(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=h.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(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Ns.jsxs(y.Fragment,{children:[Ns.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Ns.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const jd=y.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=y.useState(null),l=Qa(y.isValidElement(n)?n.ref:null,t);if(Ja((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Ja((()=>{if(i&&!o)return Xa(t,i),()=>{Xa(t,null)}}),[t,i,o]),o){if(y.isValidElement(n)){const e={ref:l};return y.cloneElement(n,e)}return Ns.jsx(y.Fragment,{children:n})}return Ns.jsx(y.Fragment,{children:i?q.createPortal(n,i):i})}));function $d(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Gd(e){return parseInt(Ka(e).getComputedStyle(e).paddingRight,10)||0}function Bd(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&&$d(e,o)}))}function Hd(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Wd(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Ua(e);return t.body===e?Ka(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=fl(Ua(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Gd(r)+e}px`;const t=Ua(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Gd(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Ua(r).body;else{const t=r.parentElement,n=Ka(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 Vd=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&&$d(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);Bd(t,e.mount,e.modalRef,r,!0);const o=Hd(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=Hd(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Wd(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Hd(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&&$d(e.modalRef,t),Bd(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&&$d(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Yd(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Vd,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),h=y.useRef(null),m=Qa(h,d),[g,b]=y.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},C=Za((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Ua(f.current).body;o.add(S(),e),h.current&&E()})),w=y.useCallback((()=>o.isTopModal(S())),[o]),R=Za((e=>{f.current=e,e&&(c&&w()?E():h.current&&$d(h.current,x))})),L=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{L()}),[L]),y.useEffect((()=>{c?C():v&&i||L()}),[c,L,v,i,C]);const A=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=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=ad(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=On({},n,t);return On({role:"presentation"},r,{onKeyDown:A(r),ref:m})},getBackdropProps:(e={})=>On({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:Va((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Va((()=>{b(!0),l&&l(),i&&L()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const Ud=["onChange","maxRows","minRows","style","value"];function Kd(e){return parseInt(e,10)||0}const Xd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Jd(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Zd=y.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=jn(e,Ud),{current:s}=y.useRef(null!=a),u=y.useRef(null),c=Qa(t,u),d=y.useRef(null),p=y.useRef(0),[f,h]=y.useState({outerHeightStyle:0}),m=y.useCallback((()=>{const t=u.current,n=Ka(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=Kd(n.paddingBottom)+Kd(n.paddingTop),s=Kd(n.borderBottomWidth)+Kd(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},b=y.useCallback((()=>{const e=m();Jd(e)||h((t=>g(t,e)))}),[m]);Ja((()=>{const e=()=>{p.current=0,(()=>{const e=m();Jd(e)||q.flushSync((()=>{h((t=>g(t,e)))}))})()};const t=Ya(e),n=u.current,r=Ka(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()}}),[m]),Ja((()=>{b()})),y.useEffect((()=>{p.current=0}),[a]);return Ns.jsxs(y.Fragment,{children:[Ns.jsx("textarea",On({value:a,onChange:e=>{p.current=0,s||b(),n&&n(e)},ref:c,rows:o,style:On({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),Ns.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:On({},Xd,i,{paddingTop:0,paddingBottom:0})})]})}));function Qd({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 ep=y.createContext(void 0);function tp(){return y.useContext(ep)}function np(e){return Ns.jsx(Fs,Cr({},e,{defaultTheme:ic,themeId:Er}))}function rp(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function op(e,t=!1){return e&&(rp(e.value)&&""!==e.value||t&&rp(e.defaultValue)&&""!==e.defaultValue)}function ip(e){return Nu("MuiInputBase",e)}var ap=Fu("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const lp=["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"],sp=(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${fu(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},up=(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]},cp=dc("div",{name:"MuiInputBase",slot:"Root",overridesResolver:sp})((({theme:e,ownerState:t})=>Cr({},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",[`&.${ap.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Cr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),dp=dc("input",{name:"MuiInputBase",slot:"Input",overridesResolver:up})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Cr({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 Cr({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] + .${ap.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},[`&.${ap.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"})})),pp=Ns.jsx(np,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),fp=y.forwardRef((function(e,t){var n;const r=lc({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:h=!1,id:m,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:x,minRows:S,multiline:E=!1,name:C,onBlur:w,onChange:R,onClick:L,onFocus:A,onKeyDown:I,onKeyUp:M,placeholder:D,readOnly:P,renderSuffix:_,rows:O,slotProps:T={},slots:k={},startAdornment:q,type:N="text",value:F}=r,z=wr(r,lp),j=null!=b.value?b.value:F,{current:$}=y.useRef(null!=j),G=y.useRef(),B=y.useCallback((e=>{}),[]),H=Eu(G,v,b.ref,B),[W,V]=y.useState(!1),Y=tp(),U=Qd({props:r,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=Y?Y.focused:W,y.useEffect((()=>{!Y&&d&&W&&(V(!1),w&&w())}),[Y,d,W,w]);const K=Y&&Y.onFilled,X=Y&&Y.onEmpty,J=y.useCallback((e=>{op(e)?K&&K():X&&X()}),[K,X]);gu((()=>{$&&J({value:j})}),[j,J,$]);y.useEffect((()=>{J(G.current)}),[]);let Z=g,Q=b;E&&"input"===Z&&(Q=Cr(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:x,minRows:S},Q),Z=Zd);y.useEffect((()=>{Y&&Y.setAdornedStart(Boolean(q))}),[Y,q]);const ee=Cr({},r,{color:U.color||"primary",disabled:U.disabled,endAdornment:f,error:U.error,focused:U.focused,formControl:Y,fullWidth:h,hiddenLabel:U.hiddenLabel,multiline:E,size:U.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return ml({root:["root",`color${fu(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${fu(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},ip,t)})(ee),ne=k.root||s.Root||cp,re=T.root||u.root||{},oe=k.input||s.Input||dp;return Q=Cr({},Q,null!=(n=T.input)?n:u.input),Ns.jsxs(y.Fragment,{children:[!p&&pp,Ns.jsxs(ne,Cr({},re,!id(ne)&&{ownerState:Cr({},ee,re.ownerState)},{ref:t,onClick:e=>{G.current&&e.currentTarget===e.target&&G.current.focus(),L&&L(e)}},z,{className:hc(te.root,re.className,l,P&&"MuiInputBase-readOnly"),children:[q,Ns.jsx(ep.Provider,{value:null,children:Ns.jsx(oe,Cr({ownerState:ee,"aria-invalid":U.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:U.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?G.current:{value:"x"})},name:C,placeholder:D,readOnly:P,required:U.required,rows:O,value:j,onKeyDown:I,onKeyUp:M,type:N},Q,!id(oe)&&{as:Z,ownerState:Cr({},ee,Q.ownerState)},{ref:H,className:hc(te.input,Q.className,P&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||G.current;if(null==t)throw new Error(Sr(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(A&&A(e),b.onFocus&&b.onFocus(e),Y&&Y.onFocus?Y.onFocus(e):V(!0))}}))}),f,_?_(Cr({},U,{startAdornment:q})):null]}))]})}));var hp=fp;function mp(e){return Nu("MuiInput",e)}var gp=Cr({},ap,Fu("MuiInput",["root","underline","input"]));function bp(e){return Nu("MuiOutlinedInput",e)}var vp=Cr({},ap,Fu("MuiOutlinedInput",["root","notchedOutline","input"]));function yp(e){return Nu("MuiFilledInput",e)}var xp=Cr({},ap,Fu("MuiFilledInput",["root","underline","input"])),Sp=function(e,t){function n(n,r){return Ns.jsx(yc,Cr({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=yc.muiName,y.memo(y.forwardRef(n))}(Ns.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Ep=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Cp={entering:{opacity:1},entered:{opacity:1}},wp=y.forwardRef((function(e,t){const n=ac(),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:h,style:m,timeout:g=r,TransitionComponent:b=Vc}=e,v=wr(e,Ep),x=y.useRef(null),S=Eu(x,a.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(d),w=E(((e,t)=>{Qc(e);const r=ed({style:m,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)})),R=E(c),L=E(h),A=E((e=>{const t=ed({style:m,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)})),I=E(f);return Ns.jsx(b,Cr({appear:i,in:s,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:A,onExited:I,onExiting:L,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,Cr({style:Cr({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},Cp[e],m,a.props.style),ref:S},t))}))}));var Rp=wp;function Lp(e){return Nu("MuiBackdrop",e)}Fu("MuiBackdrop",["root","invisible"]);const Ap=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Ip=dc("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Cr({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"}))),Mp=y.forwardRef((function(e,t){var n,r,o;const i=lc({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=Rp,transitionDuration:g}=i,b=wr(i,Ap),v=Cr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return ml({root:["root",n&&"invisible"]},Lp,t)})(v),x=null!=(n=f.root)?n:c.root;return Ns.jsx(m,Cr({in:p,timeout:g},b,{children:Ns.jsx(Ip,Cr({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:u.Root)?r:s,className:hc(y.root,l,null==x?void 0:x.className),ownerState:Cr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var Dp=Mp;var Pp=Fu("MuiBox",["root"]);const _p=oc(),Op=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=ma("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Ss);return y.forwardRef((function(e,a){const l=As(n),s=$s(e),{className:u,component:c="div"}=s,d=jn(s,Hs);return Ns.jsx(i,On({as:c,ref:a,className:Bs(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:Er,defaultTheme:_p,defaultClassName:Pp.root,generateClassName:ku.generate});var Tp=Op;function kp(e){return Nu("MuiButton",e)}var qp=Fu("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 Np=y.createContext({});var Fp=y.createContext(void 0);const zp=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],jp=e=>Cr({},"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}}),$p=dc(Id,{shouldForwardProp:e=>sc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${fu(n.color)}`],t[`size${fu(n.size)}`],t[`${n.variant}Size${fu(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 Cr({},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":Cr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:iu(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})`:iu(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})`:iu(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":Cr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${qp.focusVisible}`]:Cr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${qp.disabled}`]:Cr({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 ${iu(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"},[`&.${qp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${qp.disabled}`]:{boxShadow:"none"}})),Gp=dc("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${fu(n.size)}`]]}})((({ownerState:e})=>Cr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},jp(e)))),Bp=dc("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${fu(n.size)}`]]}})((({ownerState:e})=>Cr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},jp(e)))),Hp=y.forwardRef((function(e,t){const n=y.useContext(Np),r=y.useContext(Fp),o=lc({props:Ou(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:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,x=wr(o,zp),S=Cr({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),E=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Cr({},a,ml({root:["root",i,`${i}${fu(t)}`,`size${fu(o)}`,`${i}Size${fu(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${fu(o)}`],endIcon:["endIcon",`iconSize${fu(o)}`]},kp,a))})(S),C=g&&Ns.jsx(Gp,{className:E.startIcon,ownerState:S,children:g}),w=p&&Ns.jsx(Bp,{className:E.endIcon,ownerState:S,children:p}),R=r||"";return Ns.jsxs($p,Cr({ownerState:S,className:hc(n.className,E.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:hc(E.focusVisible,f),ref:t,type:b},x,{classes:E,children:[C,i,w]}))}));var Wp=Hp;function Vp(e){return Nu("MuiModal",e)}Fu("MuiModal",["root","hidden","backdrop"]);const Yp=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Up=dc("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})=>Cr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Kp=dc(Dp,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Xp=y.forwardRef((function(e,t){var n,r,o,i,a,l;const s=lc({name:"MuiModal",props:e}),{BackdropComponent:u=Kp,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:A,open:I,slotProps:M,slots:D}=s,P=wr(s,Yp),_=Cr({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:O,getBackdropProps:T,getTransitionProps:k,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=Yd(Cr({},_,{rootRef:t})),j=Cr({},_,{exited:F}),$=(e=>{const{open:t,exited:n,classes:r}=e;return ml({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Vp,r)})(j),G={};if(void 0===f.props.tabIndex&&(G.tabIndex="-1"),z){const{onEnter:e,onExited:t}=k();G.onEnter=e,G.onExited=t}const B=null!=(n=null!=(r=null==D?void 0:D.root)?r:g.Root)?n:Up,H=null!=(o=null!=(i=null==D?void 0:D.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==M?void 0:M.root)?a:b.root,V=null!=(l=null==M?void 0:M.backdrop)?l:b.backdrop,Y=ud({elementType:B,externalSlotProps:W,externalForwardedProps:P,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:j,className:hc(d,null==W?void 0:W.className,null==$?void 0:$.root,!j.open&&j.exited&&(null==$?void 0:$.hidden))}),U=ud({elementType:H,externalSlotProps:V,additionalProps:c,getSlotProps:e=>T(Cr({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:hc(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:j});return L||I||z&&!F?Ns.jsx(jd,{ref:q,container:h,disablePortal:E,children:Ns.jsxs(B,Cr({},Y,{children:[!R&&u?Ns.jsx(H,Cr({},U)):null,Ns.jsx(zd,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:I,children:y.cloneElement(f,G)})]}))}):null}));var Jp=Xp;function Zp(e){return Nu("MuiDivider",e)}var Qp=Fu("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const ef=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],tf=dc("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})=>Cr({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)`:iu(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})=>Cr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Cr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Cr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Cr({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),nf=dc("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Cr({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)`}))),rf=y.forwardRef((function(e,t){const n=lc({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=wr(n,ef),h=Cr({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return ml({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"]},Zp,r)})(h);return Ns.jsx(tf,Cr({as:a,className:hc(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?Ns.jsx(nf,{className:m.wrapper,ownerState:h,children:o}):null}))}));rf.muiSkipListHighlight=!0;var of=rf;const af=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],lf=dc(cp,{shouldForwardProp:e=>sc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...sp(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 Cr({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}},[`&.${xp.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${xp.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"},[`&.${xp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xp.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(.${xp.disabled}, .${xp.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${xp.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Cr({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}))})),sf=dc(dp,{name:"MuiFilledInput",slot:"Input",overridesResolver:up})((({theme:e,ownerState:t})=>Cr({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}))),uf=y.forwardRef((function(e,t){var n,r,o,i;const a=lc({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=wr(a,af),g=Cr({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:n}=e;return Cr({},t,ml({root:["root",!n&&"underline"],input:["input"]},yp,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?pu(v,null!=p?p:s):v,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:lf,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:sf;return Ns.jsx(hp,Cr({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))}));uf.muiName="Input";var cf=uf;const df=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function pf(e){return`scale(${e}, ${e**2})`}const ff={entering:{opacity:1,transform:pf(1)},entered:{opacity:1,transform:"none"}},hf="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),mf=y.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:h="auto",TransitionComponent:m=Vc}=e,g=wr(e,df),b=y.useRef(),v=y.useRef(),x=ac(),S=y.useRef(null),E=Eu(S,o.ref,t),C=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},w=C(u),R=C(((e,t)=>{Qc(e);const{duration:n,delay:r,easing:o}=ed({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:hf?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),L=C(s),A=C(p),I=C((e=>{const{duration:t,delay:n,easing:r}=ed({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:hf?o:.666*o,delay:hf?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=pf(.75),c&&c(e)})),M=C(d);return y.useEffect((()=>()=>{clearTimeout(b.current)}),[]),Ns.jsx(m,Cr({appear:r,in:a,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:I,onExited:M,onExiting:A,addEndListener:e=>{"auto"===h&&(b.current=setTimeout(e,v.current||0)),n&&n(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>y.cloneElement(o,Cr({style:Cr({opacity:0,transform:pf(.75),visibility:"exited"!==e||a?void 0:"hidden"},ff[e],f,o.props.style),ref:E},t))}))}));mf.muiSupportAuto=!0;var gf=mf;const bf=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],vf=dc(cp,{shouldForwardProp:e=>sc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...sp(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})`),Cr({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"},[`&.${gp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${gp.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(.${gp.disabled}, .${gp.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${gp.disabled}:before`]:{borderBottomStyle:"dotted"}})})),yf=dc(dp,{name:"MuiInput",slot:"Input",overridesResolver:up})({}),xf=y.forwardRef((function(e,t){var n,r,o,i;const a=lc({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=wr(a,bf),b=(e=>{const{classes:t,disableUnderline:n}=e;return Cr({},t,ml({root:["root",!n&&"underline"],input:["input"]},mp,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?pu(null!=f?f:u,v):v,x=null!=(n=null!=(r=h.root)?r:s.Root)?n:vf,S=null!=(o=null!=(i=h.input)?i:s.Input)?o:yf;return Ns.jsx(hp,Cr({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));xf.muiName="Input";var Sf=xf;function Ef(e){return Nu("MuiLink",e)}var Cf=Fu("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const wf={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var Rf=({theme:e,ownerState:t})=>{const n=(e=>wf[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)`:iu(r,.4)};const Lf=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Af=dc(kd,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${fu(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>Cr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Cr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Rf({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"},[`&.${Cf.focusVisible}`]:{outline:"auto"}}))),If=y.forwardRef((function(e,t){const n=lc({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=wr(n,Lf),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=_u(),[b,v]=y.useState(!1),x=Eu(t,g),S=Cr({},n,{color:o,component:i,focusVisible:b,underline:u,variant:c}),E=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return ml({root:["root",`underline${fu(o)}`,"button"===n&&"button",r&&"focusVisible"]},Ef,t)})(S);return Ns.jsx(Af,Cr({color:o,className:hc(E.root,r),classes:s,component:i,onBlur:e=>{h(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&v(!0),l&&l(e)},ref:x,ownerState:S,variant:c,sx:[...Object.keys(wf).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var Mf=If;var Df=y.createContext({});function Pf(e){return Nu("MuiList",e)}Fu("MuiList",["root","padding","dense","subheader"]);const _f=["children","className","component","dense","disablePadding","subheader"],Of=dc("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})=>Cr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var Tf=y.forwardRef((function(e,t){const n=lc({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=wr(n,_f),c=y.useMemo((()=>({dense:a})),[a]),d=Cr({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ml({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Pf,t)})(d);return Ns.jsx(Df.Provider,{value:c,children:Ns.jsxs(Of,Cr({as:i,className:hc(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function kf(e){return Nu("MuiListItemIcon",e)}var qf=Fu("MuiListItemIcon",["root","alignItemsFlexStart"]);const Nf=["className"],Ff=dc("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})=>Cr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var zf=y.forwardRef((function(e,t){const n=lc({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=wr(n,Nf),i=Cr({},n,{alignItems:y.useContext(Df).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return ml({root:["root","flex-start"===t&&"alignItemsFlexStart"]},kf,n)})(i);return Ns.jsx(Ff,Cr({className:hc(a.root,r),ownerState:i,ref:t},o))}));var jf=Fu("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const $f=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Gf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Bf(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Hf(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 Wf(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")&&Hf(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var Vf=y.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=wr(e,$f),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});gu((()=>{r&&p.current.focus()}),[r]),y.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)}(hu(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=Eu(p,t);let m=-1;y.Children.forEach(i,((e,t)=>{y.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=y.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),y.cloneElement(e,t)}return e}));return Ns.jsx(Tf,Cr({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=hu(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Wf(t,r,s,l,Gf);else if("ArrowUp"===n)e.preventDefault(),Wf(t,r,s,l,Bf);else if("Home"===n)e.preventDefault(),Wf(t,null,s,l,Gf);else if("End"===n)e.preventDefault(),Wf(t,null,s,l,Bf);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&&Hf(r,o);o.previousKeyMatched&&(s||Wf(t,r,!1,l,Gf,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function Yf(e){return Nu("MuiPopover",e)}Fu("MuiPopover",["root","paper"]);const Uf=["onEntering"],Kf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Xf=["slotProps"];function Jf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Zf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Qf(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function eh(e){return"function"==typeof e?e():e}const th=dc(Jp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nh=dc(od,{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 rh=y.forwardRef((function(e,t){var n,r,o;const i=lc({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:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=gf,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,L=wr(i.TransitionProps,Uf),A=wr(i,Kf),I=null!=(n=null==x?void 0:x.paper)?n:b,M=y.useRef(),D=Eu(M,I.ref),P=Cr({},i,{anchorOrigin:s,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),_=(e=>{const{classes:t}=e;return ml({root:["root"],paper:["paper"]},Yf,t)})(P),O=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=eh(l),t=(e&&1===e.nodeType?e:hu(M.current).body).getBoundingClientRect();return{top:t.top+Jf(t,s.vertical),left:t.left+Zf(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),T=y.useCallback((e=>({vertical:Jf(e,S.vertical),horizontal:Zf(e,S.horizontal)})),[S.horizontal,S.vertical]),k=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===c)return{top:null,left:null,transformOrigin:Qf(n)};const r=O();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=mu(eh(l)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;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:Qf(n)}}),[l,c,O,T,m]),[q,N]=y.useState(g),F=y.useCallback((()=>{const e=M.current;if(!e)return;const t=k(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[k]);y.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);y.useEffect((()=>{g&&F()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),y.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{F()})),t=mu(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let z=C;"auto"!==C||E.muiSupportAuto||(z=void 0);const j=f||(l?hu(eh(l)).body:void 0),$=null!=(r=null==v?void 0:v.root)?r:th,G=null!=(o=null==v?void 0:v.paper)?o:nh,B=ud({elementType:G,externalSlotProps:Cr({},I,{style:q?I.style:Cr({},I.style,{opacity:0})}),additionalProps:{elevation:h,ref:D},ownerState:P,className:hc(_.paper,null==I?void 0:I.className)}),H=ud({elementType:$,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:P,className:hc(_.root,p)}),{slotProps:W}=H,V=wr(H,Xf);return Ns.jsx($,Cr({},V,!id($)&&{slotProps:W,disableScrollLock:R},{children:Ns.jsx(E,Cr({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:z},L,{children:Ns.jsx(G,Cr({},B,{children:d}))}))}))}));function oh(e){return Nu("MuiMenu",e)}Fu("MuiMenu",["root","paper","list"]);const ih=["onEntering"],ah=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],lh={vertical:"top",horizontal:"right"},sh={vertical:"top",horizontal:"left"},uh=dc(rh,{shouldForwardProp:e=>sc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ch=dc(nh,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),dh=dc(Vf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var ph=y.forwardRef((function(e,t){var n,r;const o=lc({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:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,x=wr(o.TransitionProps,ih),S=wr(o,ah),E=ac(),C="rtl"===E.direction,w=Cr({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:x,variant:g}),R=(e=>{const{classes:t}=e;return ml({root:["root"],paper:["paper"],list:["list"]},oh,t)})(w),L=i&&!s&&d,A=y.useRef(null);let I=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===I)&&(I=t))}));const M=null!=(n=b.paper)?n:ch,D=null!=(r=v.paper)?r:p,P=ud({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[R.root,l]}),_=ud({elementType:M,externalSlotProps:D,ownerState:w,className:R.paper});return Ns.jsx(uh,Cr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?lh:sh,slots:{paper:M,root:b.root},slotProps:{root:P,paper:_},open:d,ref:t,transitionDuration:h,TransitionProps:Cr({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,E),m&&m(e,t)}},x),ownerState:w},S,{classes:f,children:Ns.jsx(dh,Cr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===I||s),autoFocusItem:L,variant:g},u,{className:hc(R.list,u.className),children:a}))}))}));function fh(e){return Nu("MuiMenuItem",e)}var hh=Fu("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const mh=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],gh=dc(Id,{shouldForwardProp:e=>sc(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})=>Cr({},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"}},[`&.${hh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:iu(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${hh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:iu(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${hh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:iu(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})`:iu(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${hh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${hh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Qp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Qp.inset}`]:{marginLeft:52},[`& .${jf.root}`]:{marginTop:0,marginBottom:0},[`& .${jf.inset}`]:{paddingLeft:36},[`& .${qf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Cr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${qf.root} svg`]:{fontSize:"1.25rem"}}))));var bh=y.forwardRef((function(e,t){const n=lc({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=wr(n,mh),f=y.useContext(Df),h=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=y.useRef(null);gu((()=>{r&&m.current&&m.current.focus()}),[r]);const g=Cr({},n,{dense:h.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Cr({},a,ml({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},fh,a))})(n),v=Eu(m,t);let x;return n.disabled||(x=void 0!==c?c:-1),Ns.jsx(Df.Provider,{value:h,children:Ns.jsx(gh,Cr({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:hc(b.focusVisible,s),className:hc(b.root,d)},p,{ownerState:g,classes:b}))})}));function vh(e){return Nu("MuiNativeSelect",e)}var yh=Fu("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const xh=["className","disabled","error","IconComponent","inputRef","variant"],Sh=({ownerState:e,theme:t})=>Cr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Cr({},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"},[`&.${yh.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}}),Eh=dc("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:sc,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${yh.multiple}`]:t.multiple}]}})(Sh),Ch=({ownerState:e,theme:t})=>Cr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${yh.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),wh=dc("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fu(n.variant)}`],n.open&&t.iconOpen]}})(Ch),Rh=y.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=wr(e,xh),u=Cr({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return ml({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${fu(n)}`,i&&"iconOpen",r&&"disabled"]},vh,t)})(u);return Ns.jsxs(y.Fragment,{children:[Ns.jsx(Eh,Cr({ownerState:u,className:hc(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:Ns.jsx(wh,{as:i,ownerState:u,className:c.icon})]})}));var Lh,Ah=Rh;const Ih=["children","classes","className","label","notched"],Mh=dc("fieldset",{shouldForwardProp:sc})({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%"}),Dh=dc("legend",{shouldForwardProp:sc})((({ownerState:e,theme:t})=>Cr({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&&Cr({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 Ph=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],_h=dc(cp,{shouldForwardProp:e=>sc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:sp})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Cr({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${vp.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${vp.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${vp.focused} .${vp.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${vp.error} .${vp.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${vp.disabled} .${vp.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Cr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Oh=dc((function(e){const{className:t,label:n,notched:r}=e,o=wr(e,Ih),i=null!=n&&""!==n,a=Cr({},e,{notched:r,withLabel:i});return Ns.jsx(Mh,Cr({"aria-hidden":!0,className:t,ownerState:a},o,{children:Ns.jsx(Dh,{ownerState:a,children:i?Ns.jsx("span",{children:n}):Lh||(Lh=Ns.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}})),Th=dc(dp,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:up})((({theme:e,ownerState:t})=>Cr({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}))),kh=y.forwardRef((function(e,t){var n,r,o,i,a;const l=lc({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=l,g=wr(l,Ph),b=(e=>{const{classes:t}=e;return Cr({},t,ml({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},bp,t))})(l),v=tp(),x=Qd({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=Cr({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:v,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:m}),E=null!=(n=null!=(r=h.root)?r:s.Root)?n:_h,C=null!=(o=null!=(i=h.input)?i:s.Input)?o:Th;return Ns.jsx(hp,Cr({slots:{root:E,input:C},renderSuffix:e=>Ns.jsx(Oh,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=Ns.jsxs(y.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:m},g,{classes:Cr({},b,{notchedOutline:null})}))}));kh.muiName="Input";var qh=kh;function Nh(e){return Nu("MuiSelect",e)}var Fh,zh=Fu("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const jh=["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"],$h=dc("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${zh.select}`]:t.select},{[`&.${zh.select}`]:t[n.variant]},{[`&.${zh.error}`]:t.error},{[`&.${zh.multiple}`]:t.multiple}]}})(Sh,{[`&.${zh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Gh=dc("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fu(n.variant)}`],n.open&&t.iconOpen]}})(Ch),Bh=dc("input",{shouldForwardProp:e=>uc(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 Hh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Wh(e){return null==e||"string"==typeof e&&!e.trim()}const Vh=y.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:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:x,onBlur:S,onChange:E,onClose:C,onFocus:w,onOpen:R,open:L,readOnly:A,renderValue:I,SelectDisplayProps:M={},tabIndex:D,value:P,variant:_="standard"}=e,O=wr(e,jh),[T,k]=xu({controlled:P,default:c,name:"Select"}),[q,N]=xu({controlled:L,default:u,name:"Select"}),F=y.useRef(null),z=y.useRef(null),[j,$]=y.useState(null),{current:G}=y.useRef(null!=L),[B,H]=y.useState(),W=Eu(t,m),V=y.useCallback((e=>{z.current=e,e&&$(e)}),[]),Y=null==j?void 0:j.parentNode;y.useImperativeHandle(W,(()=>({focus:()=>{z.current.focus()},node:F.current,value:T})),[T]),y.useEffect((()=>{u&&q&&j&&!G&&(H(a?null:Y.clientWidth),z.current.focus())}),[j,a]),y.useEffect((()=>{i&&z.current.focus()}),[i]),y.useEffect((()=>{if(!g)return;const e=hu(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const U=(e,t)=>{e?R&&R(t):C&&C(t),G||(H(a?null:Y.clientWidth),N(e))},K=y.Children.toArray(l),X=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(T)?T.slice():[];const t=T.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),T!==n&&(k(n),E)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:x}}),E(o,e)}v||U(!1,t)}},J=null!==j&&q;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(op({value:T})||p)&&(I?Z=I(T):te=!0);const ne=K.map((e=>{if(!y.isValidElement(e))return null;let t;if(v){if(!Array.isArray(T))throw new Error(Sr(2));t=T.some((t=>Hh(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Hh(T,e.props.value),t&&te&&(Q=e.props.children);return y.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=v?0===ee.length?null:ee.reduce(((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e)),[]):Q);let re,oe=B;!a&&G&&j&&(oe=Y.clientWidth),re=void 0!==D?D:d?null:0;const ie=M.id||(x?`mui-component-select-${x}`:void 0),ae=Cr({},e,{variant:_,value:T,open:J,error:f}),le=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return ml({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${fu(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},Nh,t)})(ae),se=Cr({},b.PaperProps,null==(n=b.slotProps)?void 0:n.paper),ue=yu();return Ns.jsxs(y.Fragment,{children:[Ns.jsx($h,Cr({ref:V,tabIndex:re,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!A){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:d||A?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),U(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:T,name:x}}),S(e))},onFocus:w},M,{ownerState:ae,className:hc(M.className,le.select,s),id:ie,children:Wh(Z)?Fh||(Fh=Ns.jsx("span",{className:"notranslate",children:""})):Z})),Ns.jsx(Bh,Cr({"aria-invalid":f,value:Array.isArray(T)?T.join(","):T,name:x,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(k(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},O)),Ns.jsx(Gh,{as:h,className:le.icon,ownerState:ae}),Ns.jsx(ph,Cr({id:`menu-${x||""}`,anchorEl:Y,open:J,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Cr({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:Cr({},b.slotProps,{paper:Cr({},se,{style:Cr({minWidth:oe},null!=se?se.style:null)})}),children:ne}))]})}));var Yh=Vh;const Uh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Kh=["root"],Xh={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>sc(e)&&"variant"!==e,slot:"Root"},Jh=dc(Sf,Xh)(""),Zh=dc(qh,Xh)(""),Qh=dc(cf,Xh)(""),em=y.forwardRef((function(e,t){const n=lc({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=Sp,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:x,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=n,R=wr(n,Uh),L=b?Ah:Yh,A=Qd({props:n,muiFormControl:tp(),states:["variant","error"]}),I=A.variant||w,M=Cr({},n,{variant:I,classes:i}),D=(e=>{const{classes:t}=e;return t})(M),P=wr(D,Kh),_=d||{standard:Ns.jsx(Jh,{ownerState:M}),outlined:Ns.jsx(Zh,{label:f,ownerState:M}),filled:Ns.jsx(Qh,{ownerState:M})}[I],O=Eu(t,_.ref);return Ns.jsx(y.Fragment,{children:y.cloneElement(_,Cr({inputComponent:L,inputProps:Cr({children:o,error:A.error,IconComponent:u,variant:I,type:void 0,multiple:g},b?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:h,MenuProps:m,onClose:v,onOpen:x,open:S,renderValue:E,SelectDisplayProps:Cr({id:c},C)},p,{classes:p?pu(P,p.classes):P},d?d.props.inputProps:{})},g&&b&&"outlined"===I?{notched:!0}:{},{ref:O,className:hc(_.props.className,a,D.root)},!d&&{variant:I},R))})}));em.muiName="Select";var tm=em,nm=(e={})=>x.createElement(lr,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{stroke:Hn.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const rm={MuiAccordion:{styleOverrides:{root:{backgroundColor:Hn.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Hn.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement(or,{"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 ${Hn.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Hn.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Hn.MISC_FOCUS_BORDER}`,borderRadius:Kn,backgroundColor:Hn.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 ${Hn.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Hn.WHITE,color:Hn.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:Kn},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Hn.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Hn.GREYSCALE_0_15,backgroundColor:Hn.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Hn.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Hn.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Hn.GREEN_PALE},"&:active":{backgroundColor:Hn.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Hn.GREEN_PALE,boxShadow:`0 0 0 3px ${iu(Hn.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Hn.BLUE_PALE},"&:active":{backgroundColor:Hn.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Hn.BLUE_PALE,boxShadow:`0 0 0 3px ${iu(Hn.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:Kn,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Hn.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Hn.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Hn.GREYSCALE_0_15,backgroundColor:Hn.GREYSCALE_100_60,"&:active":{backgroundColor:Hn.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Hn.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Hn.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Hn.PURPLE,"&.Mui-focusVisible":{borderColor:Hn.PURPLE,boxShadow:`0 0 0 3px ${iu(Hn.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Hn.GREEN,"&.Mui-focusVisible":{borderColor:Hn.GREEN,boxShadow:`0 0 0 3px ${iu(Hn.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Hn.BLUE,"&.Mui-focusVisible":{borderColor:Hn.BLUE,boxShadow:`0 0 0 3px ${iu(Hn.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Hn.ORANGE,"&.Mui-focusVisible":{borderColor:Hn.ORANGE,boxShadow:`0 0 0 3px ${iu(Hn.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Hn.RED,"&.Mui-focusVisible":{borderColor:Hn.RED,boxShadow:`0 0 0 3px ${iu(Hn.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Hn.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Hn.PURPLE_PALE},"&:active":{backgroundColor:Hn.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Hn.PURPLE_PALE,boxShadow:`0 0 0 3px ${iu(Hn.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Hn.GREEN_PALE},"&:active":{backgroundColor:Hn.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Hn.GREEN_PALE,boxShadow:`0 0 0 3px ${iu(Hn.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Hn.BLUE_PALE},"&:active":{backgroundColor:Hn.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Hn.BLUE_PALE,boxShadow:`0 0 0 3px ${iu(Hn.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Hn.ORANGE_PALE},"&:active":{backgroundColor:Hn.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Hn.ORANGE_PALE,boxShadow:`0 0 0 3px ${iu(Hn.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Hn.RED_PALE},"&:active":{backgroundColor:Hn.RED_DARK},"&.Mui-focusVisible":{borderColor:Hn.RED_PALE,boxShadow:`0 0 0 3px ${iu(Hn.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:Hn.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Hn.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Kn,boxShadow:`inset 0 0 0 2px ${Hn.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement(ar,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Wn,borderRadius:Kn,color:Hn.TEXT_PRIMARY,backgroundColor:Hn.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Hn.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Hn.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Hn.GREYSCALE_0_05,color:Hn.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Hn.GREEN,borderColor:Hn.GREEN},"&.MuiChip-outlinedInfo":{color:Hn.BLUE,borderColor:Hn.BLUE},"&.MuiChip-outlinedWarning":{color:Hn.ORANGE,borderColor:Hn.ORANGE},"&.MuiChip-outlinedError":{color:Hn.RED,borderColor:Hn.RED}},outlined:{border:`solid 1px ${Hn.GREYSCALE_0_15}`,backgroundColor:Hn.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Kn,boxShadow:"none",backgroundColor:Hn.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Hn.GREEN,borderColor:Hn.GREEN},outlinedSecondary:{color:Hn.BLUE,borderColor:Hn.BLUE},label:{fontFamily:er.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement(ar,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement(or,{"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:Kn},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Kn,fontSize:Vn,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Hn.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Hn.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Hn.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Hn.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Hn.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:Kn,border:`solid 1px ${Hn.GREYSCALE_0_15}`,color:Hn.GREYSCALE_0_60,marginRight:0,width:Un,height:Un},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Hn.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Kn,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Hn.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Vn}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Wn,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Hn.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Hn.GREYSCALE_25,fontSize:Wn,fontFamily:er.FONT_FAMILY,fontWeight:Zn,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Hn.TEXT_PRIMARY},"&.Mui-error":{color:Hn.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Hn.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Jn,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Hn.TEXT_SECONDARY,content:"'(required)'",fontWeight:Jn,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Vn,lineHeight:"16px",backgroundColor:Hn.WHITE,borderRadius:Kn,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Hn.GREYSCALE_0_05}`,borderColor:Hn.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Hn.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Hn.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Hn.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Hn.RED}`,boxShadow:`0px 0px 0px 1px ${Hn.RED}, inset 0 2px 0 0 ${Hn.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Hn.GREYSCALE_0_10}`,borderColor:Hn.GREYSCALE_0_10,backgroundColor:Hn.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Hn.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Hn.GREYSCALE_0_15,borderRadius:Kn,boxShadow:`inset 0 2px 0 0 ${Hn.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement(or,{...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:Hn.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Hn.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Hn.GREYSCALE_0_03},"&:active":{backgroundColor:Hn.GREYSCALE_0_10},"&:focus":{backgroundColor:Hn.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Hn.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Hn.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Hn.GREYSCALE_0_30,"&:hover":{backgroundColor:Hn.GREYSCALE_0_0,borderColor:Hn.GREYSCALE_0_15},"& ~svg":{color:Hn.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Hn.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Kn}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Hn.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Hn.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Hn.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:Vn,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Wn,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Wn,fontWeight:Zn,color:Hn.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Zn}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Hn.GREYSCALE_0_15}, 0px 0px 0px 1px ${Hn.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement(cr,null),checkedIcon:x.createElement(dr,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Hn.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Hn.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Hn.GREEN_PALE,boxShadow:`0 0 0 3px ${iu(Hn.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Hn.BLUE_PALE,boxShadow:`0 0 0 3px ${iu(Hn.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Hn.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Hn.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(nm,null),checkedIcon:x.createElement(sr,null),indeterminateIcon:x.createElement(ur,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Kn,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Hn.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Hn.GREYSCALE_0_55,color:Hn.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:Hn.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Hn.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Hn.GREYSCALE_0_55,"&:hover":{color:Hn.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:Hn.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Hn.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Vn,color:Hn.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Zn},secondary:{fontSize:Wn,color:Hn.GREYSCALE_45,fontWeight:Jn,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Vn,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Hn.GREYSCALE_0_03},"&:active":{backgroundColor:Hn.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Vn,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Hn.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Wn,borderBottom:`solid 1px ${Hn.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Vn,color:Hn.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Hn.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Hn.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Hn.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:Hn.RED}}},"&.Mui-focusVisible":{backgroundColor:Hn.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:Hn.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:Hn.GREEN,height:"24px","&.Mui-disabled":{color:Hn.GREYSCALE_0_15}},rail:{backgroundColor:Hn.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Hn.GREYSCALE_0_05}`,borderRadius:Kn,boxShadow:`inset 0px 0px 0px 1px ${Hn.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Hn.GREYSCALE_0_05}`,borderRadius:Kn},thumb:{height:"16px",width:"16px",borderRadius:Kn,backgroundColor:Hn.WHITE,boxShadow:`0px 1px 2px 0px ${Hn.GREYSCALE_0_15}, 0px 0px 0px 1px ${Hn.GREYSCALE_0_05}`,"&:hover":{borderRadius:Kn,boxShadow:`0 2px 4px 0 ${Hn.GREYSCALE_0_30}, 0 0 0 1px ${Hn.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Hn.GREYSCALE_0_15}, 0 0 0 1px ${Hn.GREYSCALE_0_06}, 0 0 0 2px ${Hn.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Hn.GREYSCALE_0_15}, 0 0 0 1px ${Hn.GREYSCALE_0_06}, 0 0 0 2px ${Hn.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Hn.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Hn.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Hn.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Hn.GREYSCALE_0_15},markLabel:{color:Hn.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Hn.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Hn.WHITE,color:Hn.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:Hn.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:Hn.GREEN_PALE,boxShadow:`0 0 0 3px ${iu(Hn.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Hn.BLUE_PALE,boxShadow:`0 0 0 3px ${iu(Hn.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Hn.GREYSCALE_0_15,borderRadius:Kn},thumb:{height:"16px",width:"16px",borderRadius:Kn,backgroundColor:Hn.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:Vn,fontWeight:Zn,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Hn.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Hn.MISC_FOCUS_BORDER}`,backgroundColor:Hn.GREYSCALE_0_03,borderRadius:Kn},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Hn.GREYSCALE_25,"&.Mui-selected":{color:Hn.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Vn,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${Hn.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${Hn.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Hn.GREYSCALE_85}`,borderRight:`1px solid ${Hn.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Zn,backgroundColor:Hn.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:Hn.GREYSCALE_98,borderBottom:`1px solid ${Hn.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Hn.GREYSCALE_85}`,borderTop:`1px solid ${Hn.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Hn.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Hn.GREYSCALE_0_05,"&:hover":{backgroundColor:Hn.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Hn.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(pr,{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 ${Hn.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Vn,borderRadius:Kn,padding:"7px 16px",border:`1px solid ${Hn.GREYSCALE_0_15}`,backgroundColor:Hn.GREYSCALE_100_60,color:Hn.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Hn.GREYSCALE_0_10,border:`1px solid ${Hn.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Hn.GREYSCALE_0_03,border:`1px solid ${Hn.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Hn.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Hn.MISC_FOCUS_BORDER}`,border:`1px solid ${Hn.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Hn.GREYSCALE_25,backgroundColor:Hn.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Hn.GREYSCALE_0_10,border:`1px solid ${Hn.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Wn,height:24,width:24,padding:7},sizeLarge:{fontSize:Yn,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Vn,borderRadius:Kn}}},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:Hn.GREYSCALE_20},tooltip:{backgroundColor:Hn.GREYSCALE_20,fontSize:Wn,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const om={mode:"light",primary:{light:Hn.GREEN_PALE,main:Hn.GREEN,dark:Hn.GREEN_DARK,contrastText:Hn.WHITE},secondary:{light:Hn.BLUE_PALE,main:Hn.BLUE,dark:Hn.BLUE_DARK,contrastText:Hn.WHITE},error:{light:Hn.RED_PALE,main:Hn.RED,dark:Hn.RED_DARK,contrastText:Hn.WHITE},warning:{light:Hn.ORANGE_PALE,main:Hn.ORANGE,dark:Hn.ORANGE_DARK,contrastText:Hn.WHITE},success:{light:Hn.GREEN_PALE,main:Hn.GREEN,dark:Hn.GREEN_DARK,contrastText:Hn.WHITE},info:{light:Hn.BLUE_PALE,main:Hn.BLUE,dark:Hn.BLUE_DARK,contrastText:Hn.WHITE},text:{primary:Hn.TEXT_PRIMARY,secondary:Hn.TEXT_SECONDARY,disabled:Hn.GREYSCALE_0_30},action:{hover:Hn.GREYSCALE_0_03,hoverOpacity:.05,selected:Hn.GREYSCALE_0_05,focus:Hn.MISC_FOCUS_BORDER},amethyst:{main:Hn.PURPLE,light:Hn.PURPLE_PALE,dark:Hn.PURPLE_DARK,contrastText:Hn.WHITE},background:{paper:Hn.WHITE,default:Hn.GREYSCALE_95},divider:Hn.GREYSCALE_0_15},im=e=>({components:rm,palette:om,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:Vn,fontWeightLight:Xn,fontWeightRegular:Jn,fontWeightMedium:Zn,fontWeightBold:Qn,htmlFontSize:Vn,fontFamily:er.FONT_FAMILY,button:{fontWeight:Zn,fontSize:Vn,textTransform:"none"},body1:{fontSize:Yn,lineHeight:"24px"},body2:{fontSize:Vn,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Un,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Yn,fontWeight:Zn,lineHeight:"16px"},h6:{fontSize:Vn,fontWeight:Zn,lineHeight:"16px"},caption:{color:Hn.TEXT_SECONDARY},subtitle1:{fontSize:Vn,color:Hn.TEXT_SECONDARY},subtitle2:{fontSize:Wn,color:Hn.TEXT_SECONDARY}},shape:{borderRadius:Kn}}),am={...Bn,MISC_FOCUS_BORDER:Hn.MISC_FOCUS_BORDER},lm=im().palette,sm={TEXT:lm.text.primary,DISABLED:lm.text.disabled,HOVER:lm.action.hover,WHITE:am.GREYSCALE_100,BORDER_LIGHT:am.GREYSCALE_90,BORDER_MEDIUM:am.GREYSCALE_85,BORDER_HEAVY:am.GREYSCALE_50,DARK_MODE_TEXT:am.GREYSCALE_95,DARK_MODE_BORDER:am.GREYSCALE_95,DARK_MODE_DISABLED:am.GREYSCALE_70,DARK_MODE_BACKGROUND:am.GREYSCALE_20};function um(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function cm(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function dm(){}var pm=.7,fm=1/pm,hm="\\s*([+-]?\\d+)\\s*",mm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",gm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",bm=/^#([0-9a-f]{3,8})$/,vm=new RegExp(`^rgb\\(${hm},${hm},${hm}\\)$`),ym=new RegExp(`^rgb\\(${gm},${gm},${gm}\\)$`),xm=new RegExp(`^rgba\\(${hm},${hm},${hm},${mm}\\)$`),Sm=new RegExp(`^rgba\\(${gm},${gm},${gm},${mm}\\)$`),Em=new RegExp(`^hsl\\(${mm},${gm},${gm}\\)$`),Cm=new RegExp(`^hsla\\(${mm},${gm},${gm},${mm}\\)$`),wm={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 Rm(){return this.rgb().formatHex()}function Lm(){return this.rgb().formatRgb()}function Am(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=bm.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Im(t):3===n?new _m(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Mm(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Mm(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=vm.exec(e))?new _m(t[1],t[2],t[3],1):(t=ym.exec(e))?new _m(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=xm.exec(e))?Mm(t[1],t[2],t[3],t[4]):(t=Sm.exec(e))?Mm(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Em.exec(e))?Fm(t[1],t[2]/100,t[3]/100,1):(t=Cm.exec(e))?Fm(t[1],t[2]/100,t[3]/100,t[4]):wm.hasOwnProperty(e)?Im(wm[e]):"transparent"===e?new _m(NaN,NaN,NaN,0):null}function Im(e){return new _m(e>>16&255,e>>8&255,255&e,1)}function Mm(e,t,n,r){return r<=0&&(e=t=n=NaN),new _m(e,t,n,r)}function Dm(e){return e instanceof dm||(e=Am(e)),e?new _m((e=e.rgb()).r,e.g,e.b,e.opacity):new _m}function Pm(e,t,n,r){return 1===arguments.length?Dm(e):new _m(e,t,n,null==r?1:r)}function _m(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Om(){return`#${Nm(this.r)}${Nm(this.g)}${Nm(this.b)}`}function Tm(){const e=km(this.opacity);return`${1===e?"rgb(":"rgba("}${qm(this.r)}, ${qm(this.g)}, ${qm(this.b)}${1===e?")":`, ${e})`}`}function km(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function qm(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Nm(e){return((e=qm(e))<16?"0":"")+e.toString(16)}function Fm(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new jm(e,t,n,r)}function zm(e){if(e instanceof jm)return new jm(e.h,e.s,e.l,e.opacity);if(e instanceof dm||(e=Am(e)),!e)return new jm;if(e instanceof jm)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 jm(a,l,s,e.opacity)}function jm(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function $m(e){return(e=(e||0)%360)<0?e+360:e}function Gm(e){return Math.max(0,Math.min(1,e||0))}function Bm(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}um(dm,Am,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Rm,formatHex:Rm,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return zm(this).formatHsl()},formatRgb:Lm,toString:Lm}),um(_m,Pm,cm(dm,{brighter(e){return e=null==e?fm:Math.pow(fm,e),new _m(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?pm:Math.pow(pm,e),new _m(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _m(qm(this.r),qm(this.g),qm(this.b),km(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:Om,formatHex:Om,formatHex8:function(){return`#${Nm(this.r)}${Nm(this.g)}${Nm(this.b)}${Nm(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Tm,toString:Tm})),um(jm,(function(e,t,n,r){return 1===arguments.length?zm(e):new jm(e,t,n,null==r?1:r)}),cm(dm,{brighter(e){return e=null==e?fm:Math.pow(fm,e),new jm(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?pm:Math.pow(pm,e),new jm(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 _m(Bm(e>=240?e-240:e+120,o,r),Bm(e,o,r),Bm(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new jm($m(this.h),Gm(this.s),Gm(this.l),km(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=km(this.opacity);return`${1===e?"hsl(":"hsla("}${$m(this.h)}, ${100*Gm(this.s)}%, ${100*Gm(this.l)}%${1===e?")":`, ${e})`}`}}));const Hm=Math.PI/180,Wm=180/Math.PI,Vm=.96422,Ym=1,Um=.82521,Km=4/29,Xm=6/29,Jm=3*Xm*Xm,Zm=Xm*Xm*Xm;function Qm(e){if(e instanceof eg)return new eg(e.l,e.a,e.b,e.opacity);if(e instanceof ag)return lg(e);e instanceof _m||(e=Dm(e));var t,n,r=og(e.r),o=og(e.g),i=og(e.b),a=tg((.2225045*r+.7168786*o+.0606169*i)/Ym);return r===o&&o===i?t=n=a:(t=tg((.4360747*r+.3850649*o+.1430804*i)/Vm),n=tg((.0139322*r+.0971045*o+.7141733*i)/Um)),new eg(116*a-16,500*(t-a),200*(a-n),e.opacity)}function eg(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function tg(e){return e>Zm?Math.pow(e,1/3):e/Jm+Km}function ng(e){return e>Xm?e*e*e:Jm*(e-Km)}function rg(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function og(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ig(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof ag)return new ag(e.h,e.c,e.l,e.opacity);if(e instanceof eg||(e=Qm(e)),0===e.a&&0===e.b)return new ag(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Wm;return new ag(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new ag(e,t,n,null==r?1:r)}function ag(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function lg(e){if(isNaN(e.h))return new eg(e.l,0,0,e.opacity);var t=e.h*Hm;return new eg(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}um(eg,(function(e,t,n,r){return 1===arguments.length?Qm(e):new eg(e,t,n,null==r?1:r)}),cm(dm,{brighter(e){return new eg(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new eg(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 _m(rg(3.1338561*(t=Vm*ng(t))-1.6168667*(e=Ym*ng(e))-.4906146*(n=Um*ng(n))),rg(-.9787684*t+1.9161415*e+.033454*n),rg(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),um(ag,ig,cm(dm,{brighter(e){return new ag(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ag(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return lg(this).rgb()}}));const sg=(e,t)=>{const n=ig(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()},ug=e=>{if(e){const t=Pm(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},cg=e=>!!e&&0===Pm(e).opacity,dg=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,pg=e=>{const t=dg.exec(e);if(t){const[,e,n,r,o]=t;return Pm(+n,+r,+o,+e/255)}return Pm(e)},fg=e=>{const t=pg(e);return Number.isNaN(t.r)?null:t.toString()},hg=e=>{e.stopPropagation(),e.preventDefault()},mg="#grid",gg=(e,t)=>{const n=null==t?void 0:t.closest(e);return n&&window.getComputedStyle(n).backgroundColor},bg=(e,t,n,r,o)=>{const i=gg(".qv-object .qv-inner-object",n),a=gg(".qv-panel-sheet",n),l=gg(mg,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 fg(s);if("none"===u)return"transparent";if(void 0===u)return;const c=pg(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=cg(p),h=ug(f?s:p),m=((e,t,n)=>e&&!cg(e)?e:cg(t)?n&&!cg(n)?n:sm.WHITE:t)(u,p,s);return{color:p,headerColor:m,isDark:h}},vg=(o,i,a,l)=>{const s=n(),u=((n,r={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[o,i]=e([]);return t((()=>{let e;return n&&(e=new MutationObserver((e=>{i(e)})),e.observe(n,r)),()=>{var t;null===(t=e)||void 0===t||t.disconnect()}}),[n,r]),o})(null==i?void 0:i.closest(mg),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return r((()=>({...s,background:bg(o,s,i,a,l)})),[s.name(),i,a,l,o,u])};function yg(e,t){const n=r((()=>({isLoading:!0})),t),[i,a]=o((async()=>{try{return await e()}finally{n.isLoading=!1}}),t);return[i,n.isLoading,a]}var xg=Object.prototype.hasOwnProperty,Sg=Object.prototype.toString,Eg=Object.defineProperty,Cg=Object.getOwnPropertyDescriptor,wg=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Sg.call(e)},Rg=function(e){if(!e||"[object Object]"!==Sg.call(e))return!1;var t,n=xg.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&xg.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||xg.call(e,t)},Lg=function(e,t){Eg&&"__proto__"===t.name?Eg(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Ag=function(e,t){if("__proto__"===t){if(!xg.call(e,t))return;if(Cg)return Cg(e,t).value}return e[t]};function Ig(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Mg(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Dg(){}!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=Ag(l,n),l!==(o=Ag(t,n))&&(c&&o&&(Rg(o)||(i=wg(o)))?(i?(i=!1,a=r&&wg(r)?r:[]):a=r&&Rg(r)?r:{},Lg(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&Lg(l,{name:n,newValue:o}));return l}));var Pg=1/.7,_g="\\s*([+-]?\\d+)\\s*",Og="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Tg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",kg=/^#([0-9a-f]{3,8})$/,qg=new RegExp(`^rgb\\(${_g},${_g},${_g}\\)$`),Ng=new RegExp(`^rgb\\(${Tg},${Tg},${Tg}\\)$`),Fg=new RegExp(`^rgba\\(${_g},${_g},${_g},${Og}\\)$`),zg=new RegExp(`^rgba\\(${Tg},${Tg},${Tg},${Og}\\)$`),jg=new RegExp(`^hsl\\(${Og},${Tg},${Tg}\\)$`),$g=new RegExp(`^hsla\\(${Og},${Tg},${Tg},${Og}\\)$`),Gg={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 Bg(){return this.rgb().formatHex()}function Hg(){return this.rgb().formatRgb()}function Wg(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=kg.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Vg(t):3===n?new Xg(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Yg(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Yg(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=qg.exec(e))?new Xg(t[1],t[2],t[3],1):(t=Ng.exec(e))?new Xg(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Fg.exec(e))?Yg(t[1],t[2],t[3],t[4]):(t=zg.exec(e))?Yg(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=jg.exec(e))?nb(t[1],t[2]/100,t[3]/100,1):(t=$g.exec(e))?nb(t[1],t[2]/100,t[3]/100,t[4]):Gg.hasOwnProperty(e)?Vg(Gg[e]):"transparent"===e?new Xg(NaN,NaN,NaN,0):null}function Vg(e){return new Xg(e>>16&255,e>>8&255,255&e,1)}function Yg(e,t,n,r){return r<=0&&(e=t=n=NaN),new Xg(e,t,n,r)}function Ug(e){return e instanceof Dg||(e=Wg(e)),e?new Xg((e=e.rgb()).r,e.g,e.b,e.opacity):new Xg}function Kg(e,t,n,r){return 1===arguments.length?Ug(e):new Xg(e,t,n,null==r?1:r)}function Xg(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Jg(){return`#${tb(this.r)}${tb(this.g)}${tb(this.b)}`}function Zg(){const e=Qg(this.opacity);return`${1===e?"rgb(":"rgba("}${eb(this.r)}, ${eb(this.g)}, ${eb(this.b)}${1===e?")":`, ${e})`}`}function Qg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function eb(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function tb(e){return((e=eb(e))<16?"0":"")+e.toString(16)}function nb(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ob(e,t,n,r)}function rb(e){if(e instanceof ob)return new ob(e.h,e.s,e.l,e.opacity);if(e instanceof Dg||(e=Wg(e)),!e)return new ob;if(e instanceof ob)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 ob(a,l,s,e.opacity)}function ob(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ib(e){return(e=(e||0)%360)<0?e+360:e}function ab(e){return Math.max(0,Math.min(1,e||0))}function lb(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ig(Dg,Wg,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Bg,formatHex:Bg,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return rb(this).formatHsl()},formatRgb:Hg,toString:Hg}),Ig(Xg,Kg,Mg(Dg,{brighter(e){return e=null==e?Pg:Math.pow(Pg,e),new Xg(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Xg(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Xg(eb(this.r),eb(this.g),eb(this.b),Qg(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:Jg,formatHex:Jg,formatHex8:function(){return`#${tb(this.r)}${tb(this.g)}${tb(this.b)}${tb(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Zg,toString:Zg})),Ig(ob,(function(e,t,n,r){return 1===arguments.length?rb(e):new ob(e,t,n,null==r?1:r)}),Mg(Dg,{brighter(e){return e=null==e?Pg:Math.pow(Pg,e),new ob(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ob(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 Xg(lb(e>=240?e-240:e+120,o,r),lb(e,o,r),lb(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ob(ib(this.h),ab(this.s),ab(this.l),Qg(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=Qg(this.opacity);return`${1===e?"hsl(":"hsla("}${ib(this.h)}, ${100*ab(this.s)}%, ${100*ab(this.l)}%${1===e?")":`, ${e})`}`}}));const sb=Math.PI/180,ub=180/Math.PI,cb=4/29,db=6/29,pb=3*db*db;function fb(e){if(e instanceof hb)return new hb(e.l,e.a,e.b,e.opacity);if(e instanceof yb)return xb(e);e instanceof Xg||(e=Ug(e));var t,n,r=vb(e.r),o=vb(e.g),i=vb(e.b),a=mb((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=mb((.4360747*r+.3850649*o+.1430804*i)/.96422),n=mb((.0139322*r+.0971045*o+.7141733*i)/.82521)),new hb(116*a-16,500*(t-a),200*(a-n),e.opacity)}function hb(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function mb(e){return e>.008856451679035631?Math.pow(e,1/3):e/pb+cb}function gb(e){return e>db?e*e*e:pb*(e-cb)}function bb(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function vb(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function yb(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function xb(e){if(isNaN(e.h))return new hb(e.l,0,0,e.opacity);var t=e.h*sb;return new hb(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ig(hb,(function(e,t,n,r){return 1===arguments.length?fb(e):new hb(e,t,n,null==r?1:r)}),Mg(Dg,{brighter(e){return new hb(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new hb(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 Xg(bb(3.1338561*(t=.96422*gb(t))-1.6168667*(e=1*gb(e))-.4906146*(n=.82521*gb(n))),bb(-.9787684*t+1.9161415*e+.033454*n),bb(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ig(yb,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof yb)return new yb(e.h,e.c,e.l,e.opacity);if(e instanceof hb||(e=fb(e)),0===e.a&&0===e.b)return new yb(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ub;return new yb(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new yb(e,t,n,null==r?1:r)}),Mg(Dg,{brighter(e){return new yb(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new yb(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return xb(this).rgb()}}));var Sb,Eb=e=>()=>e;function Cb(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Eb(isNaN(e)?t:e)}function wb(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 Rb(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 Lb(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Ib)):void 0===t&&(t=Ab);for(var n,r,o,i,a,l=new Pb(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 Pb(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Db)}function Ab(e){return e.children}function Ib(e){return Array.isArray(e)?e[1]:null}function Mb(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Db(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Pb(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var n=function(e){return 1==(e=+e)?Cb: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):Eb(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Kg(e)).r,(t=Kg(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Cb(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),Pb.prototype=Lb.prototype={constructor:Pb,count:function(){return this.eachAfter(Rb)},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 Lb(this).eachBefore(Mb)},[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)}},Sb=function(e){
|
|
100
100
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
101
101
|
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\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},Sb({exports:{}});const _b=3,Ob="N";function Tb(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 kb({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=_b}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=L((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const a=wb(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=wb((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,o=e;do{r+=1,o=Tb(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(Ob).width*e,estimateLineCount:s}}),[n,r,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var qb,Nb=N;qb=Nb.createRoot,Nb.hydrateRoot;function Fb(e,t){const[n,r]=A(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}var zb={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 jb=({translator:e})=>(L((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(zb).forEach((t=>{e.add(zb[t])}))}}(e)),[e]),e),$b=document.createElement("textarea");function Gb(e){$b.value=e,document.body.appendChild($b),$b.select(),$b.setSelectionRange(0,$b.value.length),document.execCommand("copy"),document.body.removeChild($b)}$b.style.position="absolute",$b.style.left="-9999px",$b.setAttribute("readonly","");function Bb(){null==i||i(((e,t)=>{const n=t.target,r=null==n?void 0:n.closest(`.${Ot}`);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((()=>Gb(n))):Gb(n))})(r)}})}))}var Hb="$$material";function Wb(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}Wb.propTypes={children:Nn.node,injectFirst:Nn.bool};const Vb=da((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 Yb=Vb;
|
|
102
102
|
/**
|
|
@@ -179,4 +179,4 @@ function Ub(e,t){let n;return n=t?ua(e).withConfig({displayName:t.label,shouldFo
|
|
|
179
179
|
animation-iteration-count: infinite;
|
|
180
180
|
animation-delay: 200ms;
|
|
181
181
|
}
|
|
182
|
-
`),XL.rippleVisible,rA,550,(({theme:e})=>e.transitions.easing.easeInOut),XL.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),XL.child,XL.childLeaving,oA,550,(({theme:e})=>e.transitions.easing.easeInOut),XL.childPulsate,iA,(({theme:e})=>e.transitions.easing.easeInOut));var sA=y.forwardRef((function(e,t){const n=vx({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=jn(n,JL),[l,s]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=y.useRef(!1),p=rl(),f=y.useRef(null),h=y.useRef(null),m=y.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Ns.jsx(lA,{classes:{ripple:Bs(o.ripple,XL.ripple),rippleVisible:Bs(o.rippleVisible,XL.rippleVisible),ripplePulsate:Bs(o.ripplePulsate,XL.ripplePulsate),child:Bs(o.child,XL.child),childLeaving:Bs(o.childLeaving,XL.childLeaving),childPulsate:Bs(o.childPulsate,XL.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.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:h.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=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,m,p]),b=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Ns.jsx(aA,On({className:Bs(XL.root,o.root,i),ref:h},a,{children:Ns.jsx(Zc,{component:null,exit:!0,children:l})}))}));function uA(e){return yl("MuiButtonBase",e)}var cA=xl("MuiButtonBase",["root","disabled","focusVisible"]);const dA=["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"],pA=Kx("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"},[`&.${cA.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),fA=y.forwardRef((function(e,t){const n=vx({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:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:A,tabIndex:I=0,TouchRippleProps:M,touchRippleRef:D,type:P}=n,_=jn(n,dA),O=y.useRef(null),T=y.useRef(null),k=Qa(T,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=pl(),[j,$]=y.useState(!1);s&&j&&$(!1),y.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),O.current.focus()}})),[]);const[G,B]=y.useState(!1);y.useEffect((()=>{B(!0)}),[]);const H=G&&!u&&!s;function W(e,t,n=c){return Za((r=>{t&&t(r);return!n&&T.current&&T.current[e](r),!0}))}y.useEffect((()=>{j&&d&&!u&&G&&T.current.pulsate()}),[u,d,j,G]);const V=W("start",E),Y=W("stop",m),U=W("stop",g),K=W("stop",w),X=W("stop",(e=>{j&&e.preventDefault(),C&&C(e)})),J=W("start",A),Z=W("stop",R),Q=W("stop",L),ee=W("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=Za((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=y.useRef(!1),oe=Za((e=>{d&&!re.current&&j&&T.current&&" "===e.key&&(re.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=Za((e=>{d&&" "===e.key&&T.current&&j&&!e.defaultPrevented&&(re.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(_.href||_.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=s):(_.href||_.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Qa(t,z,O),ue=On({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=ml({root:["root",t&&"disabled",n&&"focusVisible"]},uA,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Ns.jsxs(pA,On({as:ae,className:Bs(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:U,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:I,type:P},le,_,{children:[i,H?Ns.jsx(sA,On({ref:k,center:o},M)):null]}))}));var hA=fA;const mA=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function gA(e){const t=[],n=[];return Array.from(e.querySelectorAll(mA)).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 bA(){return!0}function vA(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=gA,isEnabled:a=bA,open:l}=e,s=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),h=y.useRef(null),m=Qa(t.ref,h),g=y.useRef(null);y.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),y.useEffect((()=>{if(!l||!h.current)return;const e=Ua(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),y.useEffect((()=>{if(!l||!h.current)return;const e=Ua(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=h.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(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Ns.jsxs(y.Fragment,{children:[Ns.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Ns.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const yA=y.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=y.useState(null),l=Qa(y.isValidElement(n)?n.ref:null,t);if(Ja((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Ja((()=>{if(i&&!o)return Xa(t,i),()=>{Xa(t,null)}}),[t,i,o]),o){if(y.isValidElement(n)){const e={ref:l};return y.cloneElement(n,e)}return Ns.jsx(y.Fragment,{children:n})}return Ns.jsx(y.Fragment,{children:i?q.createPortal(n,i):i})}));function xA(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function SA(e){return parseInt(Ka(e).getComputedStyle(e).paddingRight,10)||0}function EA(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&&xA(e,o)}))}function CA(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function wA(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Ua(e);return t.body===e?Ka(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=fl(Ua(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${SA(r)+e}px`;const t=Ua(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${SA(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Ua(r).body;else{const t=r.parentElement,n=Ka(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 RA=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&&xA(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);EA(t,e.mount,e.modalRef,r,!0);const o=CA(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=CA(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=wA(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=CA(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&&xA(e.modalRef,t),EA(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&&xA(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function LA(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=RA,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),h=y.useRef(null),m=Qa(h,d),[g,b]=y.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},C=Za((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Ua(f.current).body;o.add(S(),e),h.current&&E()})),w=y.useCallback((()=>o.isTopModal(S())),[o]),R=Za((e=>{f.current=e,e&&(c&&w()?E():h.current&&xA(h.current,x))})),L=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{L()}),[L]),y.useEffect((()=>{c?C():v&&i||L()}),[c,L,v,i,C]);const A=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=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=VL(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=On({},n,t);return On({role:"presentation"},r,{onKeyDown:A(r),ref:m})},getBackdropProps:(e={})=>On({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:Va((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Va((()=>{b(!0),l&&l(),i&&L()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const AA=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],IA={entering:{opacity:1},entered:{opacity:1}},MA=y.forwardRef((function(e,t){const n=bx(),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:h,style:m,timeout:g=r,TransitionComponent:b=Vc}=e,v=jn(e,AA),x=y.useRef(null),S=Qa(x,a.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(d),w=E(((e,t)=>{zL(e);const r=jL({style:m,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)})),R=E(c),L=E(h),A=E((e=>{const t=jL({style:m,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)})),I=E(f);return Ns.jsx(b,On({appear:i,in:s,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:A,onExited:I,onExiting:L,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,On({style:On({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},IA[e],m,a.props.style),ref:S},t))}))}));var DA=MA;function PA(e){return yl("MuiBackdrop",e)}xl("MuiBackdrop",["root","invisible"]);const _A=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],OA=Kx("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>On({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),TA=y.forwardRef((function(e,t){var n,r,o;const i=vx({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=DA,transitionDuration:g}=i,b=jn(i,_A),v=On({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return ml({root:["root",n&&"invisible"]},PA,t)})(v),x=null!=(n=f.root)?n:c.root;return Ns.jsx(m,On({in:p,timeout:g},b,{children:Ns.jsx(OA,On({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:u.Root)?r:s,className:Bs(y.root,l,null==x?void 0:x.className),ownerState:On({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var kA=TA;var qA=xl("MuiBox",["root"]);const NA=mx(),FA=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Ub("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Xv);return y.forwardRef((function(e,a){const l=ry(n),s=ay(e),{className:u,component:c="div"}=s,d=jn(s,sy);return Ns.jsx(i,On({as:c,ref:a,className:Bs(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:Hb,defaultTheme:NA,defaultClassName:qA.root,generateClassName:bl.generate});var zA=FA;function jA(e){return yl("MuiModal",e)}xl("MuiModal",["root","hidden","backdrop"]);const $A=["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"],GA=Kx("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})=>On({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),BA=Kx(kA,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),HA=y.forwardRef((function(e,t){var n,r,o,i,a,l;const s=vx({name:"MuiModal",props:e}),{BackdropComponent:u=BA,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:A,open:I,slotProps:M,slots:D}=s,P=jn(s,$A),_=On({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:O,getBackdropProps:T,getTransitionProps:k,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=LA(On({},_,{rootRef:t})),j=On({},_,{exited:F}),$=(e=>{const{open:t,exited:n,classes:r}=e;return ml({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},jA,r)})(j),G={};if(void 0===f.props.tabIndex&&(G.tabIndex="-1"),z){const{onEnter:e,onExited:t}=k();G.onEnter=e,G.onExited=t}const B=null!=(n=null!=(r=null==D?void 0:D.root)?r:g.Root)?n:GA,H=null!=(o=null!=(i=null==D?void 0:D.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==M?void 0:M.root)?a:b.root,V=null!=(l=null==M?void 0:M.backdrop)?l:b.backdrop,Y=KL({elementType:B,externalSlotProps:W,externalForwardedProps:P,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:j,className:Bs(d,null==W?void 0:W.className,null==$?void 0:$.root,!j.open&&j.exited&&(null==$?void 0:$.hidden))}),U=KL({elementType:H,externalSlotProps:V,additionalProps:c,getSlotProps:e=>T(On({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Bs(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:j});return L||I||z&&!F?Ns.jsx(yA,{ref:q,container:h,disablePortal:E,children:Ns.jsxs(B,On({},Y,{children:[!R&&u?Ns.jsx(H,On({},U)):null,Ns.jsx(vA,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:I,children:y.cloneElement(f,G)})]}))}):null}));var WA=HA;var VA=xl("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const YA=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function UA(e){return`scale(${e}, ${e**2})`}const KA={entering:{opacity:1,transform:UA(1)},entered:{opacity:1,transform:"none"}},XA="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),JA=y.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:h="auto",TransitionComponent:m=Vc}=e,g=jn(e,YA),b=rl(),v=y.useRef(),x=bx(),S=y.useRef(null),E=Qa(S,o.ref,t),C=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},w=C(u),R=C(((e,t)=>{zL(e);const{duration:n,delay:r,easing:o}=jL({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:XA?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),L=C(s),A=C(p),I=C((e=>{const{duration:t,delay:n,easing:r}=jL({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:XA?o:.666*o,delay:XA?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=UA(.75),c&&c(e)})),M=C(d);return Ns.jsx(m,On({appear:r,in:a,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:I,onExited:M,onExiting:A,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),n&&n(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>y.cloneElement(o,On({style:On({opacity:0,transform:UA(.75),visibility:"exited"!==e||a?void 0:"hidden"},KA[e],f,o.props.style),ref:E},t))}))}));JA.muiSupportAuto=!0;var ZA=JA;var QA=y.createContext({});function eI(e){return yl("MuiList",e)}xl("MuiList",["root","padding","dense","subheader"]);const tI=["children","className","component","dense","disablePadding","subheader"],nI=Kx("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})=>On({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var rI=y.forwardRef((function(e,t){const n=vx({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=jn(n,tI),c=y.useMemo((()=>({dense:a})),[a]),d=On({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ml({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},eI,t)})(d);return Ns.jsx(QA.Provider,{value:c,children:Ns.jsxs(nI,On({as:i,className:Bs(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));var oI=xl("MuiListItemIcon",["root","alignItemsFlexStart"]);var iI=xl("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const aI=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function lI(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function sI(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function uI(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 cI(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")&&uI(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var dI=y.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=jn(e,aI),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ja((()=>{r&&p.current.focus()}),[r]),y.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${fl(Ua(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=Qa(p,t);let m=-1;y.Children.forEach(i,((e,t)=>{y.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=y.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),y.cloneElement(e,t)}return e}));return Ns.jsx(rI,On({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Ua(t).activeElement;if("ArrowDown"===n)e.preventDefault(),cI(t,r,s,l,lI);else if("ArrowUp"===n)e.preventDefault(),cI(t,r,s,l,sI);else if("Home"===n)e.preventDefault(),cI(t,null,s,l,lI);else if("End"===n)e.preventDefault(),cI(t,null,s,l,sI);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&&uI(r,o);o.previousKeyMatched&&(s||cI(t,r,!1,l,lI,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function pI(e){return yl("MuiPopover",e)}xl("MuiPopover",["root","paper"]);const fI=["onEntering"],hI=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],mI=["slotProps"];function gI(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function bI(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function vI(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function yI(e){return"function"==typeof e?e():e}const xI=Kx(WA,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),SI=Kx(HL,{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 EI=y.forwardRef((function(e,t){var n,r,o;const i=vx({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:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=ZA,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,L=jn(i.TransitionProps,fI),A=jn(i,hI),I=null!=(n=null==x?void 0:x.paper)?n:b,M=y.useRef(),D=Qa(M,I.ref),P=On({},i,{anchorOrigin:s,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),_=(e=>{const{classes:t}=e;return ml({root:["root"],paper:["paper"]},pI,t)})(P),O=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=yI(l),t=(e&&1===e.nodeType?e:Ua(M.current).body).getBoundingClientRect();return{top:t.top+gI(t,s.vertical),left:t.left+bI(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),T=y.useCallback((e=>({vertical:gI(e,S.vertical),horizontal:bI(e,S.horizontal)})),[S.horizontal,S.vertical]),k=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===c)return{top:null,left:null,transformOrigin:vI(n)};const r=O();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=Ka(yI(l)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;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:vI(n)}}),[l,c,O,T,m]),[q,N]=y.useState(g),F=y.useCallback((()=>{const e=M.current;if(!e)return;const t=k(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[k]);y.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);y.useEffect((()=>{g&&F()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),y.useEffect((()=>{if(!g)return;const e=Ya((()=>{F()})),t=Ka(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let z=C;"auto"!==C||E.muiSupportAuto||(z=void 0);const j=f||(l?Ua(yI(l)).body:void 0),$=null!=(r=null==v?void 0:v.root)?r:xI,G=null!=(o=null==v?void 0:v.paper)?o:SI,B=KL({elementType:G,externalSlotProps:On({},I,{style:q?I.style:On({},I.style,{opacity:0})}),additionalProps:{elevation:h,ref:D},ownerState:P,className:Bs(_.paper,null==I?void 0:I.className)}),H=KL({elementType:$,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:P,className:Bs(_.root,p)}),{slotProps:W}=H,V=jn(H,mI);return Ns.jsx($,On({},V,!WL($)&&{slotProps:W,disableScrollLock:R},{children:Ns.jsx(E,On({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:z},L,{children:Ns.jsx(G,On({},B,{children:d}))}))}))}));function CI(e){return yl("MuiMenu",e)}xl("MuiMenu",["root","paper","list"]);const wI=["onEntering"],RI=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],LI={vertical:"top",horizontal:"right"},AI={vertical:"top",horizontal:"left"},II=Kx(EI,{shouldForwardProp:e=>Ux(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),MI=Kx(SI,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),DI=Kx(dI,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var PI=y.forwardRef((function(e,t){var n,r;const o=vx({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:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,x=jn(o.TransitionProps,wI),S=jn(o,RI),E=(()=>{const e=y.useContext(fy);return null!=e&&e})(),C=On({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:x,variant:g}),w=(e=>{const{classes:t}=e;return ml({root:["root"],paper:["paper"],list:["list"]},CI,t)})(C),R=i&&!s&&d,L=y.useRef(null);let A=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===A)&&(A=t))}));const I=null!=(n=b.paper)?n:MI,M=null!=(r=v.paper)?r:p,D=KL({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[w.root,l]}),P=KL({elementType:I,externalSlotProps:M,ownerState:C,className:w.paper});return Ns.jsx(II,On({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?LI:AI,slots:{paper:I,root:b.root},slotProps:{root:D,paper:P},open:d,ref:t,transitionDuration:h,TransitionProps:On({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,{direction:E?"rtl":"ltr"}),m&&m(e,t)}},x),ownerState:C},S,{classes:f,children:Ns.jsx(DI,On({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:L,autoFocus:i&&(-1===A||s),autoFocusItem:R,variant:g},u,{className:Bs(w.list,u.className),children:a}))}))}));function _I(e){return yl("MuiMenuItem",e)}var OI=xl("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const TI=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],kI=Kx(hA,{shouldForwardProp:e=>Ux(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})=>On({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${OI.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ry(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${OI.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ry(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${OI.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ry(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})`:Ry(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${OI.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${OI.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${VA.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${VA.inset}`]:{marginLeft:52},[`& .${iI.root}`]:{marginTop:0,marginBottom:0},[`& .${iI.inset}`]:{paddingLeft:36},[`& .${oI.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&On({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${oI.root} svg`]:{fontSize:"1.25rem"}}))));var qI=y.forwardRef((function(e,t){const n=vx({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=jn(n,TI),f=y.useContext(QA),h=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=y.useRef(null);Ja((()=>{r&&m.current&&m.current.focus()}),[r]);const g=On({},n,{dense:h.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return On({},a,ml({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},_I,a))})(n),v=Qa(m,t);let x;return n.disabled||(x=void 0!==c?c:-1),Ns.jsx(QA.Provider,{value:h,children:Ns.jsx(kI,On({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:Bs(b.focusVisible,s),className:Bs(b.root,d)},p,{ownerState:g,classes:b}))})}));const NI=Kx(zA,{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}}))),FI=Kx("div")({position:"absolute",left:0,bottom:0}),zI=Kx("div")({...ln,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}),jI=Kx("div")((()=>({...ln}))),$I=Kx("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}))),GI=Kx(PI)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),BI=Kx(qI,{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}}}))),HI=Kx("span")({textOverflow:"ellipsis",overflow:"hidden"}),WI=Kx("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:TE,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),VI={[HS.SORTING]:!0,[HS.SELECTIONS]:!0,[HS.SEARCHING]:!0},YI=({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 h=I(null),m=PE(),{app:g,model:b,interactions:v,embed:y,env:{flags:x}}=AE(),{fontSize:S,fontFamily:E,fontStyle:C,fontWeight:w,textDecoration:R,color:L,background:A,hoverBackground:M,activeBackground:D}=m.header,P=I(null),{shouldShowLockIcon:_,shouldShowMenuIcon:O}=s,{open:T,setOpen:k,handleOpenMenu:q,setIsAdjustingWidth:N}=qL({interactions:v,dataModel:e}),F={sortFromMenu:async e=>{e.stopPropagation(),await l(t)}},z={embed:y,listboxRef:h},j={model:b,app:g},{labelTextAlign:$}=null!==(f=d.getDimensionInfo(t.dimensionInfoIndex))&&void 0!==f?f:{},G=gL($,"flex-start",x);return Ns.jsxs(NI,{className:Ot,title:t.label,interactions:v,background:T?D:A,hoverBackground:M,shouldShowMenuIcon:O,isDimension:t.isDim,style:{...n,...un,...hn(t,i,r,o,m.grid.border),color:L},"data-testid":"title-cell",onClick:q,children:[Ns.jsxs(zI,{children:[_&&Ns.jsx(jI,{children:Ns.jsx(TL,{height:12})}),Ns.jsx($I,{fontFamily:E,fontSize:S,fontStyle:C,fontWeight:w,textDecoration:R,justifyContent:G,children:Ns.jsx("span",{style:cn,children:t.label})})]}),t.isDim&&Ns.jsxs(Ns.Fragment,{children:[Ns.jsx(VS,{headerData:t,translator:a,anchorRef:P,open:T,setOpen:k,interactions:v,menuAvailabilityFlags:VI,sortRelatedArgs:F,searchRelatedArgs:z,selectionRelatedArgs:j,shouldShowMenuIcon:O}),Ns.jsx(FI,{ref:h}),Ns.jsx(FI,{ref:P})]}),Ns.jsx(FL,{cellInfo:{...t,isLeftColumn:!0},columnWidth:u,dataModel:e,isLastColumn:o,overrideLeftGridWidth:c,setIsAdjustingWidth:N,shouldApplyIndentModeColumnWidth:p})]})},UI=({rowSpan:e,columnSpan:t})=>{const n=PE();return e>0&&t>0?Ns.jsx("div",{style:{...sn,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 KI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const XI=M(((e,t)=>x.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){KI(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),x.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"}))));function JI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ZI=M(((e,t)=>x.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){JI(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),x.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),x.createElement("use",{fillRule:"evenodd"})))),QI=({dataModel:e,tableWidth:t,leftGridWidth:n,overrideLeftGridWidth:r})=>{const o=PE(),{interactions:i}=AE(),{isActive:a}=XR(),{setIsAdjustingWidth:l}=kL([e]);if(!(!!i.active&&!a))return null;const s=NL(o,{isLeftColumn:!0});return Ns.jsx(tS,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:s,columnWidth:n,updateWidthCallback:e=>{r(Math.min(e,t*NE))},confirmWidthCallback:o=>{var i;if(o.type===Ft.FitToContent)return void e.applyIndentModeColumnWidth({type:Ft.Auto});const a=Math.min(null!==(i=o.pixels)&&void 0!==i?i:n,t*NE);r(a),e.applyIndentModeColumnWidth({type:Ft.Pixels,pixels:a})},setIsAdjustingWidth:l})};function eM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const tM=M(((e,t)=>x.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){eM(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),x.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"})))),nM=({cell:e,translator:t,dataModel:n,changeSortOrder:r})=>{const o=I(null),i=I(null),{app:a,model:l,interactions:s,embed:u}=AE(),{open:c,setOpen:d,handleOpenMenu:p}=qL({interactions:s,dataModel:n});return Ns.jsxs(BI,{component:"div",onClick:p,isActive:c,children:[Ns.jsx(HI,{children:e.label}),Ns.jsxs(WI,{className:"indent-mode-dropdown-more",visible:c,children:[Ns.jsx(tM,{}),e.isDim&&Ns.jsxs(Ns.Fragment,{children:[Ns.jsx(VS,{headerData:e,translator:t,anchorRef:o,open:c,setOpen:d,interactions:s,menuAvailabilityFlags:VI,sortRelatedArgs:{sortFromMenu:async t=>{t.stopPropagation(),await r(e)}},searchRelatedArgs:{embed:u,listboxRef:i},selectionRelatedArgs:{model:l,app:a},shouldShowMenuIcon:!1}),Ns.jsx(FI,{ref:i}),Ns.jsx(FI,{ref:o})]})]})]})},rM=({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)===BE,l=e+1<n.length&&(null===(i=n[e+1])||void 0===i?void 0:i.id)===BE;return!(r&&a&&l)&&((null==t?void 0:t.id)!==BE&&e<n.length-1)},oM=({headersData:e,menuItems:t,dataModel:n,translator:r,changeSortOrder:o,overrideLeftGridWidth:i,leftGridWidth:a,tableWidth:l})=>{const s=PE(),{interactions:u}=AE(),[c,d]=A(!1),p=I(null),{headerCellHeight:f}=s,{color:h,background:m,hoverBackground:g,activeBackground:b,fontFamily:v,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E}=s.header,{isAdjustingWidth:C}=kL([n]),w=e=>e.stopPropagation(),R={height:f,gridColumn:`1 / span ${e.size.x}`,gridRow:e.size.y,zIndex:e.size.x-0};return Ns.jsxs(NI,{isDimension:!0,background:c?b:m,interactions:u,hoverBackground:g,style:{...R,...un,color:h},onClick:e=>u.active&&!YR(e)&&!C&&d(!c),children:[Ns.jsxs(zI,{children:[Ns.jsx($I,{fontFamily:v,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E,justifyContent:"flex-start",children:Ns.jsx("span",{style:cn,children:r.get("SNPivotTable.IndentMode.Rows")})}),c?Ns.jsx(ZI,{}):Ns.jsx(XI,{}),Ns.jsx(FI,{ref:p})]}),Ns.jsx(GI,{open:c,anchorEl:p.current,children:t.map(((i,a)=>[i&&(null==i?void 0:i.id)!==BE&&Ns.jsx("li",{role:"presentation",onClick:w,onKeyDown:w,children:Ns.jsx(nM,{cell:i,translator:r,dataModel:n,changeSortOrder:o})}),rM({idx:a,menu:i,menuItems:t,isOnlyOneRow:1===e.size.y})&&Ns.jsx(sS,{"data-testid":"group-divider",variant:"middle"},"divider")]))}),Ns.jsx(QI,{dataModel:n,tableWidth:l,leftGridWidth:a,overrideLeftGridWidth:i})]})},iM={display:"grid",width:"fit-content"},aM=({dataModel:e,tableWidth:t,leftGridWidth:n,columnWidths:r,rowHight:o,headersData:i,translator:a,changeSortOrder:l,getHeaderCellsIconsVisibilityStatus:s,height:u,overrideLeftGridWidth:c,layoutService:d})=>Ns.jsxs("div",{style:{...iM,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:i.data.map((()=>`${o}px`)).join(" "),height:u},children:[i.size.y>1&&Ns.jsx(UI,{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(Ns.jsx(oM,{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),h=d.isIndentModeEnabled&&1===i.size.x;t.push(Ns.jsx(YI,{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:h},n.id))}return t}),[]),f}))]});var lM=O(aM);const sM=(e,t,n,r,o)=>{T((()=>{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])},uM=(e,t)=>{Fb((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},cM=(e,t,n,r)=>{var o;const i=n?"flex-start":"center";var a,l;if(e.representation.type===FE.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 gL(n,i,r)}const{textAlign:u}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return gL(u,i,r)},dM=()=>{},pM=({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=PE(),{interactions:f,env:{flags:h}}=AE(),{select:m,isLocked:g}=XR(),{layoutService:b,showLastBorder:v}=o,y=g(r)||r.isLockedByDimension,x=!(y||!f.active||!f.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||c),S=x?m(r):void 0;return Ns.jsx("div",{className:Ot,title:f.passive?t:void 0,style:{...n,...fn(a,l,p.grid.border,v),...mn({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:p.grid.divider}),...un,padding:"0px 4px",cursor:aL(x),background:tL({styleService:p,isCellSelected:u,cell:r,isCellLocked:y}),zIndex:s?void 0:b.size.x-r.x,justifyContent:cM(r,b,s,h),display:"flex",...b.isIndentModeEnabled&&s&&{paddingLeft:24*(null!==(d=r.indentLevel)&&void 0!==d?d:0)}},"aria-hidden":"true",onClick:S,onKeyUp:dM,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})},fM=e=>e.stopPropagation(),hM=({href:e,text:t,interactions:n,color:r})=>x.createElement(Mf,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:fM,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),mM=({children:e,textStyle:t})=>Ns.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),gM=({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>{const{isActive:o}=XR(),{interactions:i}=AE();let a=e.representation.text;if(e.isEmpty)return null;const l=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>({...cn,...dn(r?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:nL({cell:e,styleService:t,isCellSelected:n}),fontWeight:rL({cell:e,styleService:t}),fontStyle:oL({cell:e,styleService:t}),textDecoration:iL({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r});return e.representation.type!==FE.Image||e.isTotal?(e.representation.type!==FE.Link||o||e.isTotal||(a=Ns.jsx(hM,{text:e.representation.text,href:e.representation.url,interactions:i,color:e.expressionColor.color})),Ns.jsx(mM,{textStyle:l,children:a})):Ns.jsx(mL,{representation:e.representation,isLeftColumn:r,styleService:t,textStyle:l,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand})},bM=e=>{const t=e.isLeftColumn?"flex-start":"center";var n;return e.representation.type!==FE.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(n=e.representation.resolvedImagePosition)||void 0===n?void 0:n.vertical},vM=({index:e,style:t,data:n})=>{const r=PE(),{isSelected:o}=XR(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=kL([n]),{dataModel:l,isLeftColumn:s=!1,showLastBorder:u,itemCount:c,isLast:d,totalDividerIndex:p,layoutService:f}=n,h=((e,t)=>{const{isLast:n,list:r,listValues:o}=t;return n?r[e]:o[e]})(e,n),m=s?e===c-1:d,g=s?d:e===c-1,b=wR(h,p,f.isIndentModeEnabled);if(void 0===h){const{background:n}=r.dimensionValues;return Ns.jsx(zR,{style:{...t,background:n},index:e,isLastRow:m,isLastColumn:g,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:b})}const v=o(h);return Ns.jsxs(pM,{text:h.representation.text,reactWindowStyle:t,isLeftColumn:s,isLastRow:m,isLastColumn:g,isCellSelected:v,showTotalCellDivider:b,cell:h,data:n,isAdjustingWidth:i,children:[Ns.jsxs(jR,{verticalAlign:bM(h),width:$R(h.representation),right:h.isLeftColumn?void 0:4,children:[Ns.jsx(uL,{isLeftColumn:s,isCellSelected:v,cell:h,dataModel:l}),Ns.jsx(gM,{isLeftColumn:s,isCellSelected:v,cell:h,styleService:r})]}),Ns.jsx(FL,{cellInfo:{...h,columnWidthLocation:h.isPseudoDimension?At.Measures:At.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:g,setIsAdjustingWidth:a})]})};var yM=x.memo(vM,CR);const xM=({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()},SM=(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}},EM=(e,t)=>n=>{e.current&&(e.current[t]=n)},CM={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...sn},wM={overflow:"hidden",willChange:"auto",flexShrink:0},RM=({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}}=PE();uM(t,a),sM(t,n,o,d,i);const f=u.rowsOnCurrentPage*d;return Ns.jsx("div",{style:{...CM,borderColor:p},children:a.grid.map(((n,p)=>{const h=p===a.columnCount-1,m=cC(s[p]),{itemCount:g,estimatedItemSize:b,listValues:v}=SM(n,f,u.rowsOnCurrentPage,h),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,v,d,h,c.qcy);return Ns.jsx(yR,{ref:EM(t,p),style:{...wM,flexGrow:h?1:0},height:o,width:r[p],itemCount:g,itemSize:y,layout:"vertical",itemData:{layoutService:i,dataModel:e,list:n,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:l,listValues:v,totalDividerIndex:a.totalDividerIndex},itemKey:IL,estimatedItemSize:b,children:yM},m)}))})};var LM=O(RM);const AM={overflow:"hidden",willChange:"auto"},IM={...sn,borderWidth:"0px 0px 0px 1px"},MM=({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}=PE(),p={...IM,borderColor:c,height:o};uM(t,a),sM(t,r,o,d,i);const f=i.size.x*s();return 0===a.rowCount?Ns.jsx("div",{style:{width:r,height:o,...IM}}):Ns.jsx("div",{style:p,children:a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=SM(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}),b=g?cC(g):`empty ${c}`;return Ns.jsx(yR,{ref:EM(t,c),style:AM,height:n(),width:r,itemCount:p,itemSize:xM({list:o,listValues:m,isLastRow:d,getRightGridColumnWidth:s}),layout:"horizontal",itemData:{layoutService:i,dataModel:e,list:o,isLast:d,itemCount:p,showLastBorder:l,listValues:m,totalDividerIndex:a.totalDividerIndex},itemKey:IL,estimatedItemSize:h,children:yM},b)}))})};var DM=O(MM);const PM=({model:e,rect:t,viewService:n,layoutService:r,qPivotDataPages:o,pageInfo:i,translator:a})=>{const{headerCellHeight:l,contentCellHeight:s}=PE(),u=((e,t,n)=>L((()=>{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 L((()=>{var e,n,a,l;const s=Tw(null!==(e=null===(n=t[0])||void 0===n?void 0:n.qLeft)&&void 0!==e?e:[]),u=Tw(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(Ow(i,o,0)),visibleTopDimensionInfo:u.map(Ow(i,o,r))}}),[i,o,r,t])})(r,o),p=(e=>{const t=D((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:h,topDimensionData:m,leftDimensionData:g,attrExprInfoIndexes:b,nextPageHandler:v}=Aw(o,r,i,c,d),y=Pw({model:e,nextPageHandler:v,pageInfo:i,layoutService:r}),{onHorizontalScrollHandler:x,onVerticalScrollHandler:S,verticalScrollableContainerRef:E,leftGridHorizontalScrollableContainerRef:C,dataGridHorizontalScrollableContainerRef:w,dataGridRef:R,leftGridRef:M,topGridRef:_,verticalScrollbarWidth:O,horizontalScrollbarHeight:k,horizontalScrollbarHeightSetter:q,verticalScrollDirection:N,horizontalScrollDirection:F}=(({layoutService:e,viewService:t,pageInfo:n,tableRect:r,mockedRefs:o})=>{var i,a,l,s,u,c;const{theme:d,downloadService:p}=AE(),f=I(null!==(i=null==o?void 0:o.verticalScrollableContainerRef)&&void 0!==i?i:null),h=I(null!==(a=null==o?void 0:o.leftGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),m=I(null!==(l=null==o?void 0:o.dataGridHorizontalScrollableContainerRef)&&void 0!==l?l:null),g=I(null!==(s=null==o?void 0:o.topGridRef)&&void 0!==s?s:[]),b=I(null!==(u=null==o?void 0:o.leftGridRef)&&void 0!==u?u:[]),v=I(null!==(c=null==o?void 0:o.dataGridRef)&&void 0!==c?c:null),y=I(0),x=I(0),S=I(Dt.None),E=I(Dt.None),[C,w]=A(0),[R,L]=A(0),M=e=>{E.current=_w(e.currentTarget.scrollLeft,y.current),y.current=e.currentTarget.scrollLeft,S.current=_w(e.currentTarget.scrollTop,x.current),x.current=e.currentTarget.scrollTop};T((()=>{e.triggerdByExpandOrCollapse||(h.current&&(h.current.scrollLeft=0),m.current&&(m.current.scrollLeft=0),f.current&&(f.current.scrollTop=0))}),[e]),T((()=>{if(e.triggerdByExpandOrCollapse){var t,n,r,o,i,a;const e=null!==(t=null===(n=m.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=b.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]),T((()=>{h.current&&(h.current.scrollLeft=0),m.current&&(m.current.scrollLeft=0),f.current&&(f.current.scrollTop=0)}),[n.page]);const P=D((e=>{if(e)return void L(0);let t=0;if(h.current){const e=h.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}if(m.current){const e=m.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}L(t)}),[L]);return T((()=>{if(f.current){const e=f.current,t=e.offsetWidth-e.clientWidth;w(t)}P()}),[P,e,t,r.width,r.height,d,p]),T((()=>{(p.isDownloadedAsPDForImage||e.isSnapshot)&&f.current&&m.current&&h.current&&(f.current.scrollTop=t.scrollTop,m.current.scrollLeft=t.scrollLeft,h.current.scrollLeft=t.leftGridScrollLeft)}),[t,f,m,h,p,e]),{onHorizontalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(e.target.dataset.key===`scrollable-container--${Mt.LEFT_GRID}`&&(t.leftGridScrollLeft=e.currentTarget.scrollLeft),e.target.dataset.key===`scrollable-container--${Mt.DATA_GRID}`&&(M(e),null===(n=g.current)||void 0===n||n.forEach((t=>null==t?void 0:t.scrollTo(e.currentTarget.scrollLeft))),null===(r=v.current)||void 0===r||r.scrollTo({scrollLeft:e.currentTarget.scrollLeft}),t.scrollLeft=e.currentTarget.scrollLeft))},onVerticalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(M(e),null===(n=b.current)||void 0===n||n.filter(Boolean).forEach((t=>t.scrollTo(e.currentTarget.scrollTop))),null===(r=v.current)||void 0===r||r.scrollTo({scrollTop:e.currentTarget.scrollTop}),t.scrollTop=e.currentTarget.scrollTop)},verticalScrollableContainerRef:f,leftGridHorizontalScrollableContainerRef:h,dataGridHorizontalScrollableContainerRef:m,dataGridRef:v,leftGridRef:b,topGridRef:g,verticalScrollbarWidth:C,horizontalScrollbarHeight:R,horizontalScrollbarHeightSetter:P,verticalScrollDirection:S,horizontalScrollDirection:E}})({layoutService:r,viewService:n,pageInfo:i,tableRect:u}),{containerHeight:z,headerGridHeight:j,topGridHeight:$,leftGridHeight:G,dataGridHeight:B,allRowsVisible:H}=function({pageInfo:e,headersData:t,topDimensionData:n,tableRect:r,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=PE(),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-rn,l),dataGridHeight:Math.min(r.height-c-rn,l),allRowsVisible:c+rn+l+o<=r.height}}({pageInfo:i,headersData:f,topDimensionData:m,tableRect:u,horizontalScrollbarHeight:k}),{leftGridWidth:W,leftGridColumnWidths:V,rightGridWidth:Y,totalWidth:U,showLastRightBorder:K,getRightGridColumnWidth:X,getHeaderCellsIconsVisibilityStatus:J,overrideLeftGridWidth:Z}=function({layoutService:e,tableWidth:t,headersData:n,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i}){const a=PE(),{measureText:l}=kb(a.header),s=tC({layoutService:e,tableWidth:t,headersData:n}),u=nC({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,leftGridWidth:s.leftGridWidth}),c=s.leftGridWidth+u.rightGridFullWidth+rn,d=c<t,p=D(((e,t,n="")=>{const r=s.leftGridColumnWidths[e];let o=!1,i=!1,a=l(n)+qE;return t&&a+kE<=r&&(i=!0,a+=kE),a+TE<=r&&(o=!0),{shouldShowMenuIcon:o,shouldShowLockIcon:i}}),[s.leftGridColumnWidths,l]);return P((()=>{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:O,horizontalScrollbarHeightSetter:q}),{rootWrapper:Q,leftWrapper:ee,rightWrapper:te}=(({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+rn,f=a?0:Math.max(0,e.height-p),h=c*(a?0:1),m=d*(a?0:1),g=a?p+d:e.height,b=e.height-m,v=l-s-h,y=e.width-s-h;return{rootWrapper:{scrollable:e,fullSize:{width:l-h,height:t+m},sticky:{width:e.width-h,height:e.height}},leftWrapper:{containers:{scrollable:{width:s,height:g},fullSize:{width:s,height:t},sticky:{width:s,height:b}},headerGrid:{width:-1,height:n},leftGrid:{width:s,height:r-m+f}},rightWrapper:{containers:{scrollable:{width:u+rn-h,height:g},fullSize:{width:v,height:t},sticky:{width:v<y?v:y,height:b}},topGrid:{width:u-h,height:o},dataGrid:{width:u-h,height:i-m+f}}}})({tableRect:u,containerHeight:z,headerGridHeight:j,leftGridHeight:G,topGridHeight:$,dataGridHeight:B,allRowsVisible:H,totalWidth:U,leftGridWidth:W,rightGridWidth:Y,verticalScrollbarWidth:O,horizontalScrollbarHeight:k}),ne=D((()=>l),[l]),re=D((()=>s),[s]);return(()=>{const{downloadService:e}=AE();P((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),Ns.jsx(Fw,{ref:E,...Q.scrollable,onScroll:S,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:Mt.CONTAINER_GRID,children:Ns.jsx(kw,{...Q.fullSize,children:Ns.jsxs(zw,{...Q.sticky,style:{display:"grid",gridTemplateColumns:W?`${ee.containers.scrollable.width}px ${te.containers.scrollable.width}px`:`${te.containers.scrollable.width}px`},children:[Boolean(W)&&Ns.jsx(Fw,{ref:C,...ee.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Mt.LEFT_GRID,children:Ns.jsx(kw,{isLeftGrid:!0,...ee.containers.fullSize,children:Ns.jsxs(zw,{isLeftGrid:!0,...ee.containers.sticky,children:[Ns.jsx(lM,{dataModel:y,tableWidth:u.width,leftGridWidth:W,columnWidths:V,getHeaderCellsIconsVisibilityStatus:J,rowHight:l,height:ee.headerGrid.height,headersData:f,translator:a,changeSortOrder:p,overrideLeftGridWidth:Z,layoutService:r}),Ns.jsx(LM,{dataModel:y,leftGridRef:M,...ee.leftGrid,columnWidths:V,layoutService:r,leftDimensionData:g,showLastBorder:{right:!1,bottom:H},visibleLeftDimensionInfo:c,pageInfo:i})]})})}),Ns.jsx(Fw,{ref:w,...te.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Mt.DATA_GRID,children:Ns.jsx(kw,{...te.containers.fullSize,children:Ns.jsxs(zw,{...te.containers.sticky,children:[Ns.jsx(DM,{dataModel:y,topGridRef:_,rowHightCallback:ne,...te.topGrid,layoutService:r,topDimensionData:m,showLastBorder:{right:K,bottom:!1},getRightGridColumnWidth:X,headersData:f}),Ns.jsx(_L,{dataModel:y,dataGridRef:R,rowHightCallback:re,...te.dataGrid,viewService:n,layoutService:r,measureData:h,leftDimensionData:g,topDimensionData:m,visibleTopDimensionInfo:d,visibleLeftDimensionInfo:c,attrExprInfoIndexes:b.measures,showLastBorder:{right:K,bottom:H},getRightGridColumnWidth:X,pageInfo:i,verticalScrollDirection:N,horizontalScrollDirection:F})]})})})]})})})},_M=e=>{const{layoutService:t,translator:n,pageInfo:r,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=AE(),{layout:u,hasData:c}=t;return Ns.jsxs(Ns.Fragment,{children:[c&&Ns.jsx(PM,{...e}),Ns.jsx(ME,{translator:n,layoutService:t}),Ns.jsx(RE,{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})]})},OM={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)"},TM=12,kM=14,qM=16,NM=24,FM=3,zM=300,jM=400,$M=600,GM=700,BM={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};zn(OM.GREYSCALE_0,.05),zn(OM.GREEN_PALE,.5),zn(OM.BLUE_PALE,.5),zn(OM.GREEN_PALE,.5),zn(OM.BLUE_PALE,.5),zn(OM.GREEN_PALE,.5),zn(OM.BLUE_PALE,.5);var HM;function WM(){return WM=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},WM.apply(this,arguments)}zn(OM.GREEN_PALE,.5),zn(OM.BLUE_PALE,.5),zn(OM.GREEN_PALE,.5),zn(OM.BLUE_PALE,.5);var VM,YM=function(e){return y.createElement("svg",WM({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),HM||(HM=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function UM(){return UM=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},UM.apply(this,arguments)}var KM=function(e){return y.createElement("svg",UM({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),VM||(VM=y.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function XM({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return x.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 JM=(e={})=>x.createElement(XM,{...e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},x.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),x.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),ZM=(e={})=>x.createElement(XM,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),x.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),QM=(e={})=>x.createElement(XM,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},x.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),eD=(e={})=>x.createElement(XM,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),x.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),tD=({className:e})=>x.createElement(XM,{fontSize:"small",className:e},x.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},x.createElement("g",{transform:"translate(4.324187, 1.300372)"},x.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),x.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})))))),nD=(e={})=>x.createElement(XM,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{stroke:OM.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const rD={MuiAccordion:{styleOverrides:{root:{backgroundColor:OM.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:OM.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement(YM,{"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 ${OM.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:OM.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${OM.MISC_FOCUS_BORDER}`,borderRadius:FM,backgroundColor:OM.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 ${OM.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:OM.WHITE,color:OM.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:FM},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${OM.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:OM.GREYSCALE_0_15,backgroundColor:OM.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:OM.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${OM.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:OM.GREEN_PALE},"&:active":{backgroundColor:OM.GREEN_DARK},"&.Mui-focusVisible":{borderColor:OM.GREEN_PALE,boxShadow:`0 0 0 3px ${dy(OM.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:OM.BLUE_PALE},"&:active":{backgroundColor:OM.BLUE_DARK},"&.Mui-focusVisible":{borderColor:OM.BLUE_PALE,boxShadow:`0 0 0 3px ${dy(OM.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:FM,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:OM.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${OM.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:OM.GREYSCALE_0_15,backgroundColor:OM.GREYSCALE_100_60,"&:active":{backgroundColor:OM.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:OM.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${OM.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:OM.PURPLE,"&.Mui-focusVisible":{borderColor:OM.PURPLE,boxShadow:`0 0 0 3px ${dy(OM.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:OM.GREEN,"&.Mui-focusVisible":{borderColor:OM.GREEN,boxShadow:`0 0 0 3px ${dy(OM.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:OM.BLUE,"&.Mui-focusVisible":{borderColor:OM.BLUE,boxShadow:`0 0 0 3px ${dy(OM.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:OM.ORANGE,"&.Mui-focusVisible":{borderColor:OM.ORANGE,boxShadow:`0 0 0 3px ${dy(OM.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:OM.RED,"&.Mui-focusVisible":{borderColor:OM.RED,boxShadow:`0 0 0 3px ${dy(OM.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:OM.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:OM.PURPLE_PALE},"&:active":{backgroundColor:OM.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:OM.PURPLE_PALE,boxShadow:`0 0 0 3px ${dy(OM.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:OM.GREEN_PALE},"&:active":{backgroundColor:OM.GREEN_DARK},"&.Mui-focusVisible":{borderColor:OM.GREEN_PALE,boxShadow:`0 0 0 3px ${dy(OM.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:OM.BLUE_PALE},"&:active":{backgroundColor:OM.BLUE_DARK},"&.Mui-focusVisible":{borderColor:OM.BLUE_PALE,boxShadow:`0 0 0 3px ${dy(OM.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:OM.ORANGE_PALE},"&:active":{backgroundColor:OM.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:OM.ORANGE_PALE,boxShadow:`0 0 0 3px ${dy(OM.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:OM.RED_PALE},"&:active":{backgroundColor:OM.RED_DARK},"&.Mui-focusVisible":{borderColor:OM.RED_PALE,boxShadow:`0 0 0 3px ${dy(OM.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:OM.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:OM.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:FM,boxShadow:`inset 0 0 0 2px ${OM.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement(KM,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:TM,borderRadius:FM,color:OM.TEXT_PRIMARY,backgroundColor:OM.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:OM.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${OM.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:OM.GREYSCALE_0_05,color:OM.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:OM.GREEN,borderColor:OM.GREEN},"&.MuiChip-outlinedInfo":{color:OM.BLUE,borderColor:OM.BLUE},"&.MuiChip-outlinedWarning":{color:OM.ORANGE,borderColor:OM.ORANGE},"&.MuiChip-outlinedError":{color:OM.RED,borderColor:OM.RED}},outlined:{border:`solid 1px ${OM.GREYSCALE_0_15}`,backgroundColor:OM.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:FM,boxShadow:"none",backgroundColor:OM.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:OM.GREEN,borderColor:OM.GREEN},outlinedSecondary:{color:OM.BLUE,borderColor:OM.BLUE},label:{fontFamily:BM.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement(KM,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement(YM,{"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:FM},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:FM,fontSize:kM,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:OM.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${OM.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:OM.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:OM.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:OM.GREYSCALE_0_05}}},popupIndicator:{borderRadius:FM,border:`solid 1px ${OM.GREYSCALE_0_15}`,color:OM.GREYSCALE_0_60,marginRight:0,width:NM,height:NM},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${OM.GREYSCALE_0_15}`},clearIndicator:{borderRadius:FM,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:OM.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:kM}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:TM,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:OM.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:OM.GREYSCALE_25,fontSize:TM,fontFamily:BM.FONT_FAMILY,fontWeight:$M,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:OM.TEXT_PRIMARY},"&.Mui-error":{color:OM.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:OM.TEXT_SECONDARY,content:"'(optional)'",fontWeight:jM,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:OM.TEXT_SECONDARY,content:"'(required)'",fontWeight:jM,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:kM,lineHeight:"16px",backgroundColor:OM.WHITE,borderRadius:FM,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${OM.GREYSCALE_0_05}`,borderColor:OM.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${OM.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${OM.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${OM.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${OM.RED}`,boxShadow:`0px 0px 0px 1px ${OM.RED}, inset 0 2px 0 0 ${OM.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${OM.GREYSCALE_0_10}`,borderColor:OM.GREYSCALE_0_10,backgroundColor:OM.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:OM.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:OM.GREYSCALE_0_15,borderRadius:FM,boxShadow:`inset 0 2px 0 0 ${OM.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement(YM,{...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:OM.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:OM.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:OM.GREYSCALE_0_03},"&:active":{backgroundColor:OM.GREYSCALE_0_10},"&:focus":{backgroundColor:OM.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${OM.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${OM.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:OM.GREYSCALE_0_30,"&:hover":{backgroundColor:OM.GREYSCALE_0_0,borderColor:OM.GREYSCALE_0_15},"& ~svg":{color:OM.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${OM.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:FM}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:OM.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${OM.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:OM.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:kM,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:TM,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:TM,fontWeight:$M,color:OM.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:$M}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${OM.GREYSCALE_0_15}, 0px 0px 0px 1px ${OM.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement(QM,null),checkedIcon:x.createElement(eD,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:OM.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${OM.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:OM.GREEN_PALE,boxShadow:`0 0 0 3px ${dy(OM.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:OM.BLUE_PALE,boxShadow:`0 0 0 3px ${dy(OM.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:OM.GREYSCALE_0_20}},"&.Mui-disabled":{fill:OM.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(nD,null),checkedIcon:x.createElement(JM,null),indeterminateIcon:x.createElement(ZM,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:FM,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:OM.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:OM.GREYSCALE_0_55,color:OM.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:OM.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:OM.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:OM.GREYSCALE_0_55,"&:hover":{color:OM.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:OM.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:OM.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:kM,color:OM.TEXT_PRIMARY,lineHeight:"16px",fontWeight:$M},secondary:{fontSize:TM,color:OM.GREYSCALE_45,fontWeight:jM,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:kM,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:OM.GREYSCALE_0_03},"&:active":{backgroundColor:OM.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:kM,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:OM.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:TM,borderBottom:`solid 1px ${OM.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:kM,color:OM.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:OM.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:OM.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:OM.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:OM.RED}}},"&.Mui-focusVisible":{backgroundColor:OM.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:OM.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:OM.GREEN,height:"24px","&.Mui-disabled":{color:OM.GREYSCALE_0_15}},rail:{backgroundColor:OM.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${OM.GREYSCALE_0_05}`,borderRadius:FM,boxShadow:`inset 0px 0px 0px 1px ${OM.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${OM.GREYSCALE_0_05}`,borderRadius:FM},thumb:{height:"16px",width:"16px",borderRadius:FM,backgroundColor:OM.WHITE,boxShadow:`0px 1px 2px 0px ${OM.GREYSCALE_0_15}, 0px 0px 0px 1px ${OM.GREYSCALE_0_05}`,"&:hover":{borderRadius:FM,boxShadow:`0 2px 4px 0 ${OM.GREYSCALE_0_30}, 0 0 0 1px ${OM.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${OM.GREYSCALE_0_15}, 0 0 0 1px ${OM.GREYSCALE_0_06}, 0 0 0 2px ${OM.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${OM.GREYSCALE_0_15}, 0 0 0 1px ${OM.GREYSCALE_0_06}, 0 0 0 2px ${OM.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:OM.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:OM.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:OM.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:OM.GREYSCALE_0_15},markLabel:{color:OM.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:OM.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:OM.WHITE,color:OM.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:OM.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:OM.GREEN_PALE,boxShadow:`0 0 0 3px ${dy(OM.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:OM.BLUE_PALE,boxShadow:`0 0 0 3px ${dy(OM.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:OM.GREYSCALE_0_15,borderRadius:FM},thumb:{height:"16px",width:"16px",borderRadius:FM,backgroundColor:OM.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:kM,fontWeight:$M,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${OM.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${OM.MISC_FOCUS_BORDER}`,backgroundColor:OM.GREYSCALE_0_03,borderRadius:FM},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:OM.GREYSCALE_25,"&.Mui-selected":{color:OM.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:kM,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},scrollableY:{marginBlock:"4px"},scrollButtons:{borderRadius:FM,"&:hover":{backgroundColor:`${OM.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 ${OM.GREYSCALE_0_15}`,borderBottom:`1px solid ${OM.GREYSCALE_0_15}`},"& .MuiTab-root":{fontWeight:"normal",borderRadius:FM,marginBlock:"4px","&.Mui-selected":{backgroundColor:OM.GREYSCALE_0_05},"&:hover":{backgroundColor:`${OM.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${OM.GREYSCALE_85}`,borderRight:`1px solid ${OM.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:$M,backgroundColor:OM.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:OM.GREYSCALE_98,borderBottom:`1px solid ${OM.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${OM.GREYSCALE_85}`,borderTop:`1px solid ${OM.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:OM.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:OM.GREYSCALE_0_05,"&:hover":{backgroundColor:OM.GREYSCALE_0_03}},"&&:hover":{backgroundColor:OM.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(tD,{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 ${OM.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:kM,borderRadius:FM,padding:"7px 16px",border:`1px solid ${OM.GREYSCALE_0_15}`,backgroundColor:OM.GREYSCALE_100_60,color:OM.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:OM.GREYSCALE_0_10,border:`1px solid ${OM.GREYSCALE_0_30}`},"&:hover":{backgroundColor:OM.GREYSCALE_0_03,border:`1px solid ${OM.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:OM.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${OM.MISC_FOCUS_BORDER}`,border:`1px solid ${OM.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:OM.GREYSCALE_25,backgroundColor:OM.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:OM.GREYSCALE_0_10,border:`1px solid ${OM.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:TM,height:24,width:24,padding:7},sizeLarge:{fontSize:qM,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:kM,borderRadius:FM}}},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:OM.GREYSCALE_20},tooltip:{backgroundColor:OM.GREYSCALE_20,fontSize:TM,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var oD=e=>rD;const iD={mode:"light",primary:{ultraLight:OM.GREEN_ULTRA_LIGHT,light:OM.GREEN_PALE,main:OM.GREEN,dark:OM.GREEN_DARK,extraDark:OM.GREEN_EXTRA_DARK,contrastText:OM.WHITE},secondary:{ultraLight:OM.BLUE_ULTRA_LIGHT,light:OM.BLUE_PALE,main:OM.BLUE,dark:OM.BLUE_DARK,extraDark:OM.BLUE_EXTRA_DARK,contrastText:OM.WHITE},error:{ultraLight:OM.RED_ULTRA_LIGHT,light:OM.RED_PALE,main:OM.RED,dark:OM.RED_DARK,extraDark:OM.RED_EXTRA_DARK,contrastText:OM.WHITE},warning:{ultraLight:OM.ORANGE_ULTRA_LIGHT,light:OM.ORANGE_PALE,main:OM.ORANGE,dark:OM.ORANGE_DARK,extraDark:OM.ORANGE_EXTRA_DARK,contrastText:OM.WHITE},success:{ultraLight:OM.GREEN_ULTRA_LIGHT,light:OM.GREEN_PALE,main:OM.GREEN,dark:OM.GREEN_DARK,extraDark:OM.GREEN_EXTRA_DARK,contrastText:OM.WHITE},info:{ultraLight:OM.BLUE_ULTRA_LIGHT,light:OM.BLUE_PALE,main:OM.BLUE,dark:OM.BLUE_DARK,extraDark:OM.BLUE_EXTRA_DARK,contrastText:OM.WHITE},text:{primary:OM.TEXT_PRIMARY,secondary:OM.TEXT_SECONDARY,disabled:OM.GREYSCALE_0_30},action:{hover:OM.GREYSCALE_0_03,hoverOpacity:.03,selected:OM.GREYSCALE_0_05,selectedOpacity:.05,focus:OM.MISC_FOCUS_BORDER},amethyst:{ultraLight:OM.WHITE,main:OM.PURPLE,light:OM.PURPLE_PALE,dark:OM.PURPLE_DARK,extraDark:OM.GREYSCALE_0_0,contrastText:OM.WHITE},background:{paper:OM.WHITE,default:OM.GREYSCALE_95},divider:OM.GREYSCALE_0_15},aD=e=>iD,lD=(e="light")=>({components:oD(),palette:aD(),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:kM,fontWeightLight:zM,fontWeightRegular:jM,fontWeightMedium:$M,fontWeightBold:GM,htmlFontSize:kM,fontFamily:BM.FONT_FAMILY,button:{fontWeight:$M,fontSize:kM,textTransform:"none"},body1:{fontSize:qM,lineHeight:"24px"},body2:{fontSize:kM,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:NM,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:qM,fontWeight:$M,lineHeight:"16px"},h6:{fontSize:kM,fontWeight:$M,lineHeight:"16px"},caption:{color:OM.TEXT_SECONDARY},subtitle1:{fontSize:kM,color:OM.TEXT_SECONDARY},subtitle2:{fontSize:TM,color:OM.TEXT_SECONDARY}},shape:{borderRadius:FM}});const sD=(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=lD();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),mx({...n,direction:e})}("ltr");e.render(Ns.jsx(x.StrictMode,{children:Ns.jsx(Jx,{theme:p,children:Ns.jsx(IE,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d,children:Ns.jsx(JR,{selections:n,updatePageInfo:t.updatePageInfo,children:Ns.jsx(_E,{styleService:r,children:Ns.jsx(_M,{...t})})})})})}))},uD={darker:.15,brighter:.3,opacity:.03},cD={darker:.3,brighter:.5,opacity:.05};var dD,pD,fD,hD;!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"}(dD||(dD={})),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"}(pD||(pD={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(fD||(fD={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(hD||(hD={}));const mD=e=>e?`${parseInt(e,10)}px`:void 0,gD=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?on.Transparent:n}},bD=(e,t)=>+(parseInt(e,10)*nn*t+8).toFixed(2),vD=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?en:"normal",yD=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",xD=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none";function SD(e,t){return r((()=>e),t)}const ED={},CD=e=>{const t=r((()=>({current:ED})),[]);return t.current=t.current===ED?e:t.current,t},wD=({fontStyle:e,fontWeight:t,fontSize:n,fontFamily:r})=>t?`${e} ${t} ${n} ${r}`:`${e} ${n} ${r}`,RD=(e,t,n)=>{var o,i;const a=null!==(o=null==n?void 0:n.qHyperCubeDef.qShowTotalsAbove)&&void 0!==o&&o,l=null!==(i=null==n?void 0:n.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==i&&i;return r((()=>(({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,h=!!u,m=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,tn),y:Math.min(e.qHyperCube.qSize.qcy,m)},b=d.slice(0,c),v=e=>b.some((t=>t===e)),y=v(GE),x=new Map(d.map((e=>{var t;return[null!==(t=f[e])&&void 0!==t?t:GE,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===GE?GE:f[e],getDimensionInfoIndex:e=>{var t;return null!==(t=x.get(e))&&void 0!==t?t:-1},size:g,isSnapshot:h,hasLimitedData:!h&&g.x<e.qHyperCube.qSize.qcx,hasData:g.x>0&&g.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:n,hasPseudoDimOnLeft:y,leftDimensionInfoIndexes:b,isLeftDimension:v,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:Ft.Auto,pixels:Nt.PixelsDefault,percentage:Nt.PercentageDefault}}})({layout:e,flags:t,qShowTotalsAbove:a,qAlwaysFullyExpanded:l})),[e,a,l,t])},LD=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=CD(e);return t.current=e,t})(Mw(o));return yg((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(tn,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($E,Dw(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,n,r.page,r.rowsPerPage,s,l])},AD=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),ID=(e,t,n=15e3)=>({rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:AD({rowsPerPage:n,totalRowCount:e,page:t})}),MD=15,DD=({layoutService:e,viewService:t,rect:n,model:r,pageInfo:o})=>{var i;return l((async e=>{if(!e.snapshotData||!r||e.snapshotData.content)return e;if(null!=r&&r.getHyperCubePivotData){const{scrollTop:i,scrollLeft:a,leftGridScrollLeft:l}=t,s=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,l=t.page*t.rowsPerPage,s=Math.max(r-MD,0),u=Math.max(l+o-MD,l,0);if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=Mw(n);return{qLeft:s,qTop:u,qWidth:e+30,qHeight:t+30}}return{qLeft:s,qTop:u,qWidth:i+30,qHeight:a+30}})(t,o,n),u=Dw(s),c={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};e.snapshotData.content={qPivotDataPages:await r.getHyperCubePivotData($E,[c,...u]),scrollTop:i,scrollLeft:a,leftGridScrollLeft:l,page:o.page,rowsPerPage:o.rowsPerPage},e.snapshotData.object.size.w=n.width,e.snapshotData.object.size.h=n.height}return e})),s((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,renderPage:t.page}))(t,o)})),[t]),null!==(i=e.layout.snapshotData)&&void 0!==i&&i.content?{left:n.left,top:n.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:n};var PD={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 _D=()=>{const e=u(),t=e.language();return r((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(PD).forEach((t=>{e.add(PD[t])}))}}(e)),[e]),{translator:e,language:t}},OD=n=>{const{flags:i}=n,l=c(),s=(e=>{const n=r((()=>qb(e)),[e]);return t((()=>()=>n.unmount()),[n]),n})(l),u=d(),y=p(),x=f(),S=h(),E=m(),C=g(),w=(e=>{const{viewState:t}=a(),n=CD(new Set),i=void 0!==t&&e.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),{promise:l,resolve:s}=r((()=>GR()),[]),u=SD((e=>{n.current.add(e)}),[n]),c=SD(it((async()=>{await Promise.all(n.current),s()}),1e3),[s,n]);return o((async()=>{i&&await l}),[l,i]),r((()=>({viewState:t,isDownloadedAsPDForImage:i,notifyIsDoneRendering:c,waitForPromise:u})),[c,i,t,u])})(n),[R,L]=((e,t)=>yg((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(y,u),A=RD(u,i,R),I=b(),M=vg(u,l),{translator:D,language:P}=_D(),{pageInfo:_,updatePageInfo:O}=((n,r)=>{const{size:o,layout:{qHyperCube:{qSize:i}}}=n,a=r.isDownloadedAsPDForImage||n.isSnapshot,l=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(n),[s,u]=e((()=>{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})(n,r);return{page:e,shouldShowPagination:i.qcy>o.y&&!a,...ID(i.qcy,e,l)}}));return t((()=>{u((e=>({...e,...ID(n.layout.qHyperCube.qSize.qcy,e.page,l),shouldShowPagination:n.layout.qHyperCube.qSize.qcy>n.size.y&&!a})))}),[n.layout.qHyperCube.qSize.qcy,n.size.y,u,a,l]),t((()=>{const{page:e,totalPages:t}=s;if(e+1>t){const e=t-1,n=AD({...s,page:e});u({...s,page:e,rowsOnCurrentPage:n})}}),[s]),{pageInfo:s,updatePageInfo:e=>u({...s,...e,rowsOnCurrentPage:AD({...s,...e})})}})(A,w),T=((e,t,n)=>r((()=>((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}})(n,t.snapshotData)),[n,e.page,t.snapshotData]))(_,u,w),k=DD({rect:v(),layoutService:A,viewService:T,model:y,pageInfo:_}),[q,N]=LD({model:y,layoutService:A,viewService:T,pageInfo:_,rect:k}),F=r((()=>((e,t,n)=>{var r,o,i,a,l,s,u,c,d,p,f,h,m,g,b,v,y,x,S,E,C,w,R,L,A,I,M,D,P,_,O,T,k,q,N,F,z,j,$,G,B,H,W,V,Y,U,K;const X=null===(r=t.layout.components)||void 0===r?void 0:r.find((e=>"theme"===e.key)),J=null==X?void 0:X.header,Z=null==X?void 0:X.dimensionValues,Q=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,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[dD.LineClamp])&&void 0!==i?i:oe(pD.Grid,fD.Grid,hD.LineClamp))&&void 0!==o?o:1),ae=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==re?void 0:re[dD.ColumnLineClamp])&&void 0!==l?l:oe(pD.Grid,fD.Grid,hD.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=gD(e,null==J?void 0:J[dD.Background]))&&void 0!==u?u:oe(pD.Dimension,fD.LabelName,hD.BackgroundColor))&&void 0!==s?s:on.Transparent,se={header:{fontSize:null!==(c=null!==(d=mD(null==J?void 0:J[dD.FontSize]))&&void 0!==d?d:oe(pD.Dimension,fD.LabelName,hD.FontSize))&&void 0!==c?c:Zt,fontFamily:null!==(p=null!==(f=null==J?void 0:J[dD.FontFamily])&&void 0!==f?f:oe(pD.Dimension,fD.LabelName,hD.FontFamily))&&void 0!==p?p:Qt,fontWeight:vD(null==J?void 0:J[dD.FontStyle],en),fontStyle:yD(null==J?void 0:J[dD.FontStyle]),textDecoration:xD(null==J?void 0:J[dD.FontStyle]),color:null!==(h=null!==(m=gD(e,null==J?void 0:J[dD.FontColor]))&&void 0!==m?m:oe(pD.Dimension,fD.LabelName,hD.Color))&&void 0!==h?h:sm.TEXT,background:le,hoverBackground:sg(le,uD),activeBackground:sg(le,cD)},dimensionValues:{fontSize:null!==(g=null!==(b=mD(null==Z?void 0:Z[dD.FontSize]))&&void 0!==b?b:oe(pD.Dimension,fD.LabelValue,hD.FontSize))&&void 0!==g?g:Zt,fontFamily:null!==(v=null!==(y=null==Z?void 0:Z[dD.FontFamily])&&void 0!==y?y:oe(pD.Dimension,fD.LabelValue,hD.FontFamily))&&void 0!==v?v:Qt,fontWeight:vD(null==Z?void 0:Z[dD.FontStyle],void 0),fontStyle:yD(null==Z?void 0:Z[dD.FontStyle]),textDecoration:xD(null==Z?void 0:Z[dD.FontStyle]),color:null!==(x=null!==(S=gD(e,null==Z?void 0:Z[dD.FontColor]))&&void 0!==S?S:oe(pD.Dimension,fD.LabelValue,hD.Color))&&void 0!==x?x:sm.TEXT,background:null!==(E=null!==(C=gD(e,null==Z?void 0:Z[dD.Background]))&&void 0!==C?C:oe(pD.Dimension,fD.LabelValue,hD.BackgroundColor))&&void 0!==E?E:on.Transparent},measureValues:{fontSize:null!==(w=null!==(R=mD(null==Q?void 0:Q[dD.FontSize]))&&void 0!==R?R:oe(pD.Measure,fD.LabelValue,hD.FontSize))&&void 0!==w?w:Zt,fontFamily:null!==(L=null!==(A=null==Q?void 0:Q[dD.FontFamily])&&void 0!==A?A:oe(pD.Measure,fD.LabelValue,hD.FontFamily))&&void 0!==L?L:Qt,fontWeight:vD(null==Q?void 0:Q[dD.FontStyle],"normal"),fontStyle:yD(null==Q?void 0:Q[dD.FontStyle]),textDecoration:xD(null==Q?void 0:Q[dD.FontStyle]),color:null!==(I=null!==(M=gD(e,null==Q?void 0:Q[dD.FontColor]))&&void 0!==M?M:oe(pD.Measure,fD.LabelValue,hD.Color))&&void 0!==I?I:on.FontSecondary,background:null!==(D=null!==(P=gD(e,null==Q?void 0:Q[dD.Background]))&&void 0!==P?P:oe(pD.Measure,fD.LabelValue,hD.BackgroundColor))&&void 0!==D?D:on.Transparent},measureLabels:{fontWeight:vD(null==ee?void 0:ee[dD.FontStyle],"normal"),fontStyle:yD(null==ee?void 0:ee[dD.FontStyle]),textDecoration:xD(null==ee?void 0:ee[dD.FontStyle]),color:null!==(_=null!==(O=gD(e,null==ee?void 0:ee[dD.FontColor]))&&void 0!==O?O:oe(pD.Measure,fD.LabelName,hD.Color))&&void 0!==_?_:on.FontSecondary,background:null!==(T=null!==(k=gD(e,null==ee?void 0:ee[dD.Background]))&&void 0!==k?k:oe(pD.Measure,fD.LabelName,hD.BackgroundColor))&&void 0!==T?T:on.Transparent},totalValues:{fontWeight:vD(null==te?void 0:te[dD.FontStyle],en),fontStyle:yD(null==te?void 0:te[dD.FontStyle]),textDecoration:xD(null==te?void 0:te[dD.FontStyle]),color:null!==(q=null!==(N=gD(e,null==te?void 0:te[dD.FontColor]))&&void 0!==N?N:oe(pD.Total,fD.LabelValue,hD.Color))&&void 0!==q?q:sm.TEXT,background:null!==(F=null!==(z=gD(e,null==te?void 0:te[dD.Background]))&&void 0!==z?z:oe(pD.Total,fD.LabelValue,hD.BackgroundColor))&&void 0!==F?F:on.Transparent},nullValues:{fontWeight:vD(null==ne?void 0:ne[dD.FontStyle],"normal"),fontStyle:yD(null==ne?void 0:ne[dD.FontStyle]),textDecoration:xD(null==ne?void 0:ne[dD.FontStyle]),color:null!==(j=null!==($=gD(e,null==ne?void 0:ne[dD.FontColor]))&&void 0!==$?$:oe(pD.Null,fD.LabelValue,hD.Color))&&void 0!==j?j:sm.TEXT,background:null!==(G=null!==(B=gD(e,null==ne?void 0:ne[dD.Background]))&&void 0!==B?B:oe(pD.Null,fD.LabelValue,hD.BackgroundColor))&&void 0!==G?G:on.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(H=null!==(W=gD(e,null==re?void 0:re[dD.Border]))&&void 0!==W?W:oe(pD.Grid,fD.Grid,hD.BorderColor))&&void 0!==H?H:on.DividerLight,divider:null!==(V=null!==(Y=gD(e,null==re?void 0:re[dD.Divider]))&&void 0!==Y?Y:oe(pD.Grid,fD.Divider,hD.BorderColor))&&void 0!==V?V:on.DividerDark,background:null!==(U=null!==(K=gD(e,null==re?void 0:re[dD.Background]))&&void 0!==K?K:oe(pD.Grid,fD.Grid,hD.BackgroundColor))&&void 0!==U?U:on.Transparent}};return se.headerCellHeight=Math.max(bD(se.header.fontSize,ae),bD(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(bD(se.measureValues.fontSize,ie),bD(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=bD(se.dimensionValues.fontSize,1),se})(M,A,i)),[M,A,i]),z=(e=>r((()=>[...new Set([wD(e.header),wD(e.dimensionValues),wD({...e.dimensionValues,...e.measureLabels}),wD({...e.dimensionValues,...e.nullValues}),wD({...e.dimensionValues,...e.totalValues}),wD(e.measureValues),wD({...e.measureValues,...e.nullValues}),wD({...e.measureValues,...e.totalValues})])]),[e]))(F),j=(e=>{const[t,n]=o((()=>Promise.all(e.map((e=>document.fonts.load(e))))),[e]);return n?(console.warn("Failed to load font:",n),!0):!!t})(z);i.isEnabled("CLIENT_IM6278_PIVOT_COPYCELL")&&Bb(),t((()=>{!N&&y&&(null==k?void 0:k.width)&&(null==k?void 0:k.height)&&I&&T&&A&&F&&!!q&&!L&&j&&sD(s,{model:y,app:x,rect:k,selections:I,viewService:T,layoutService:A,downloadService:w,qPivotDataPages:q,styleService:F,translator:D,pageInfo:_,updatePageInfo:O,interactions:C,embed:S,keyboard:E,theme:M,env:n})}),[y,x,k,null==k?void 0:k.width,null==k?void 0:k.height,C,I,T,A,w,N,q,F,s,j,D,P,_,O,R,L,S,E,M,n])},TD={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:[]};function kD(e){return{qae:{properties:{initial:TD},data:ft(e)},ext:_n(e),component(){OD(e)}}}export{kD as default};
|
|
182
|
+
`),XL.rippleVisible,rA,550,(({theme:e})=>e.transitions.easing.easeInOut),XL.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),XL.child,XL.childLeaving,oA,550,(({theme:e})=>e.transitions.easing.easeInOut),XL.childPulsate,iA,(({theme:e})=>e.transitions.easing.easeInOut));var sA=y.forwardRef((function(e,t){const n=vx({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=jn(n,JL),[l,s]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=y.useRef(!1),p=rl(),f=y.useRef(null),h=y.useRef(null),m=y.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Ns.jsx(lA,{classes:{ripple:Bs(o.ripple,XL.ripple),rippleVisible:Bs(o.rippleVisible,XL.rippleVisible),ripplePulsate:Bs(o.ripplePulsate,XL.ripplePulsate),child:Bs(o.child,XL.child),childLeaving:Bs(o.childLeaving,XL.childLeaving),childPulsate:Bs(o.childPulsate,XL.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.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:h.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=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,m,p]),b=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Ns.jsx(aA,On({className:Bs(XL.root,o.root,i),ref:h},a,{children:Ns.jsx(Zc,{component:null,exit:!0,children:l})}))}));function uA(e){return yl("MuiButtonBase",e)}var cA=xl("MuiButtonBase",["root","disabled","focusVisible"]);const dA=["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"],pA=Kx("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"},[`&.${cA.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),fA=y.forwardRef((function(e,t){const n=vx({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:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:A,tabIndex:I=0,TouchRippleProps:M,touchRippleRef:D,type:P}=n,_=jn(n,dA),O=y.useRef(null),T=y.useRef(null),k=Qa(T,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=pl(),[j,$]=y.useState(!1);s&&j&&$(!1),y.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),O.current.focus()}})),[]);const[G,B]=y.useState(!1);y.useEffect((()=>{B(!0)}),[]);const H=G&&!u&&!s;function W(e,t,n=c){return Za((r=>{t&&t(r);return!n&&T.current&&T.current[e](r),!0}))}y.useEffect((()=>{j&&d&&!u&&G&&T.current.pulsate()}),[u,d,j,G]);const V=W("start",E),Y=W("stop",m),U=W("stop",g),K=W("stop",w),X=W("stop",(e=>{j&&e.preventDefault(),C&&C(e)})),J=W("start",A),Z=W("stop",R),Q=W("stop",L),ee=W("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=Za((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=y.useRef(!1),oe=Za((e=>{d&&!re.current&&j&&T.current&&" "===e.key&&(re.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=Za((e=>{d&&" "===e.key&&T.current&&j&&!e.defaultPrevented&&(re.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(_.href||_.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=s):(_.href||_.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Qa(t,z,O),ue=On({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=ml({root:["root",t&&"disabled",n&&"focusVisible"]},uA,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Ns.jsxs(pA,On({as:ae,className:Bs(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:U,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:I,type:P},le,_,{children:[i,H?Ns.jsx(sA,On({ref:k,center:o},M)):null]}))}));var hA=fA;const mA=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function gA(e){const t=[],n=[];return Array.from(e.querySelectorAll(mA)).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 bA(){return!0}function vA(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=gA,isEnabled:a=bA,open:l}=e,s=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),h=y.useRef(null),m=Qa(t.ref,h),g=y.useRef(null);y.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),y.useEffect((()=>{if(!l||!h.current)return;const e=Ua(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),y.useEffect((()=>{if(!l||!h.current)return;const e=Ua(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=h.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(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Ns.jsxs(y.Fragment,{children:[Ns.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Ns.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const yA=y.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=y.useState(null),l=Qa(y.isValidElement(n)?n.ref:null,t);if(Ja((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Ja((()=>{if(i&&!o)return Xa(t,i),()=>{Xa(t,null)}}),[t,i,o]),o){if(y.isValidElement(n)){const e={ref:l};return y.cloneElement(n,e)}return Ns.jsx(y.Fragment,{children:n})}return Ns.jsx(y.Fragment,{children:i?q.createPortal(n,i):i})}));function xA(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function SA(e){return parseInt(Ka(e).getComputedStyle(e).paddingRight,10)||0}function EA(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&&xA(e,o)}))}function CA(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function wA(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Ua(e);return t.body===e?Ka(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=fl(Ua(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${SA(r)+e}px`;const t=Ua(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${SA(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Ua(r).body;else{const t=r.parentElement,n=Ka(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 RA=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&&xA(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);EA(t,e.mount,e.modalRef,r,!0);const o=CA(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=CA(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=wA(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=CA(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&&xA(e.modalRef,t),EA(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&&xA(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function LA(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=RA,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),h=y.useRef(null),m=Qa(h,d),[g,b]=y.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},C=Za((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Ua(f.current).body;o.add(S(),e),h.current&&E()})),w=y.useCallback((()=>o.isTopModal(S())),[o]),R=Za((e=>{f.current=e,e&&(c&&w()?E():h.current&&xA(h.current,x))})),L=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{L()}),[L]),y.useEffect((()=>{c?C():v&&i||L()}),[c,L,v,i,C]);const A=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=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=VL(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=On({},n,t);return On({role:"presentation"},r,{onKeyDown:A(r),ref:m})},getBackdropProps:(e={})=>On({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:Va((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Va((()=>{b(!0),l&&l(),i&&L()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const AA=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],IA={entering:{opacity:1},entered:{opacity:1}},MA=y.forwardRef((function(e,t){const n=bx(),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:h,style:m,timeout:g=r,TransitionComponent:b=Vc}=e,v=jn(e,AA),x=y.useRef(null),S=Qa(x,a.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(d),w=E(((e,t)=>{zL(e);const r=jL({style:m,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)})),R=E(c),L=E(h),A=E((e=>{const t=jL({style:m,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)})),I=E(f);return Ns.jsx(b,On({appear:i,in:s,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:A,onExited:I,onExiting:L,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,On({style:On({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},IA[e],m,a.props.style),ref:S},t))}))}));var DA=MA;function PA(e){return yl("MuiBackdrop",e)}xl("MuiBackdrop",["root","invisible"]);const _A=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],OA=Kx("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>On({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),TA=y.forwardRef((function(e,t){var n,r,o;const i=vx({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=DA,transitionDuration:g}=i,b=jn(i,_A),v=On({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return ml({root:["root",n&&"invisible"]},PA,t)})(v),x=null!=(n=f.root)?n:c.root;return Ns.jsx(m,On({in:p,timeout:g},b,{children:Ns.jsx(OA,On({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:u.Root)?r:s,className:Bs(y.root,l,null==x?void 0:x.className),ownerState:On({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var kA=TA;var qA=xl("MuiBox",["root"]);const NA=mx(),FA=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Ub("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Xv);return y.forwardRef((function(e,a){const l=ry(n),s=ay(e),{className:u,component:c="div"}=s,d=jn(s,sy);return Ns.jsx(i,On({as:c,ref:a,className:Bs(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:Hb,defaultTheme:NA,defaultClassName:qA.root,generateClassName:bl.generate});var zA=FA;function jA(e){return yl("MuiModal",e)}xl("MuiModal",["root","hidden","backdrop"]);const $A=["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"],GA=Kx("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})=>On({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),BA=Kx(kA,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),HA=y.forwardRef((function(e,t){var n,r,o,i,a,l;const s=vx({name:"MuiModal",props:e}),{BackdropComponent:u=BA,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:A,open:I,slotProps:M,slots:D}=s,P=jn(s,$A),_=On({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:O,getBackdropProps:T,getTransitionProps:k,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=LA(On({},_,{rootRef:t})),j=On({},_,{exited:F}),$=(e=>{const{open:t,exited:n,classes:r}=e;return ml({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},jA,r)})(j),G={};if(void 0===f.props.tabIndex&&(G.tabIndex="-1"),z){const{onEnter:e,onExited:t}=k();G.onEnter=e,G.onExited=t}const B=null!=(n=null!=(r=null==D?void 0:D.root)?r:g.Root)?n:GA,H=null!=(o=null!=(i=null==D?void 0:D.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==M?void 0:M.root)?a:b.root,V=null!=(l=null==M?void 0:M.backdrop)?l:b.backdrop,Y=KL({elementType:B,externalSlotProps:W,externalForwardedProps:P,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:j,className:Bs(d,null==W?void 0:W.className,null==$?void 0:$.root,!j.open&&j.exited&&(null==$?void 0:$.hidden))}),U=KL({elementType:H,externalSlotProps:V,additionalProps:c,getSlotProps:e=>T(On({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Bs(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:j});return L||I||z&&!F?Ns.jsx(yA,{ref:q,container:h,disablePortal:E,children:Ns.jsxs(B,On({},Y,{children:[!R&&u?Ns.jsx(H,On({},U)):null,Ns.jsx(vA,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:I,children:y.cloneElement(f,G)})]}))}):null}));var WA=HA;var VA=xl("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const YA=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function UA(e){return`scale(${e}, ${e**2})`}const KA={entering:{opacity:1,transform:UA(1)},entered:{opacity:1,transform:"none"}},XA="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),JA=y.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:h="auto",TransitionComponent:m=Vc}=e,g=jn(e,YA),b=rl(),v=y.useRef(),x=bx(),S=y.useRef(null),E=Qa(S,o.ref,t),C=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},w=C(u),R=C(((e,t)=>{zL(e);const{duration:n,delay:r,easing:o}=jL({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:XA?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),L=C(s),A=C(p),I=C((e=>{const{duration:t,delay:n,easing:r}=jL({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:XA?o:.666*o,delay:XA?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=UA(.75),c&&c(e)})),M=C(d);return Ns.jsx(m,On({appear:r,in:a,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:I,onExited:M,onExiting:A,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),n&&n(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>y.cloneElement(o,On({style:On({opacity:0,transform:UA(.75),visibility:"exited"!==e||a?void 0:"hidden"},KA[e],f,o.props.style),ref:E},t))}))}));JA.muiSupportAuto=!0;var ZA=JA;var QA=y.createContext({});function eI(e){return yl("MuiList",e)}xl("MuiList",["root","padding","dense","subheader"]);const tI=["children","className","component","dense","disablePadding","subheader"],nI=Kx("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})=>On({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var rI=y.forwardRef((function(e,t){const n=vx({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=jn(n,tI),c=y.useMemo((()=>({dense:a})),[a]),d=On({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ml({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},eI,t)})(d);return Ns.jsx(QA.Provider,{value:c,children:Ns.jsxs(nI,On({as:i,className:Bs(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));var oI=xl("MuiListItemIcon",["root","alignItemsFlexStart"]);var iI=xl("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const aI=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function lI(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function sI(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function uI(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 cI(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")&&uI(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var dI=y.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=jn(e,aI),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ja((()=>{r&&p.current.focus()}),[r]),y.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${fl(Ua(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=Qa(p,t);let m=-1;y.Children.forEach(i,((e,t)=>{y.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=y.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),y.cloneElement(e,t)}return e}));return Ns.jsx(rI,On({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Ua(t).activeElement;if("ArrowDown"===n)e.preventDefault(),cI(t,r,s,l,lI);else if("ArrowUp"===n)e.preventDefault(),cI(t,r,s,l,sI);else if("Home"===n)e.preventDefault(),cI(t,null,s,l,lI);else if("End"===n)e.preventDefault(),cI(t,null,s,l,sI);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&&uI(r,o);o.previousKeyMatched&&(s||cI(t,r,!1,l,lI,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function pI(e){return yl("MuiPopover",e)}xl("MuiPopover",["root","paper"]);const fI=["onEntering"],hI=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],mI=["slotProps"];function gI(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function bI(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function vI(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function yI(e){return"function"==typeof e?e():e}const xI=Kx(WA,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),SI=Kx(HL,{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 EI=y.forwardRef((function(e,t){var n,r,o;const i=vx({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:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=ZA,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,L=jn(i.TransitionProps,fI),A=jn(i,hI),I=null!=(n=null==x?void 0:x.paper)?n:b,M=y.useRef(),D=Qa(M,I.ref),P=On({},i,{anchorOrigin:s,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),_=(e=>{const{classes:t}=e;return ml({root:["root"],paper:["paper"]},pI,t)})(P),O=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=yI(l),t=(e&&1===e.nodeType?e:Ua(M.current).body).getBoundingClientRect();return{top:t.top+gI(t,s.vertical),left:t.left+bI(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),T=y.useCallback((e=>({vertical:gI(e,S.vertical),horizontal:bI(e,S.horizontal)})),[S.horizontal,S.vertical]),k=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===c)return{top:null,left:null,transformOrigin:vI(n)};const r=O();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=Ka(yI(l)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;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:vI(n)}}),[l,c,O,T,m]),[q,N]=y.useState(g),F=y.useCallback((()=>{const e=M.current;if(!e)return;const t=k(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[k]);y.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);y.useEffect((()=>{g&&F()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),y.useEffect((()=>{if(!g)return;const e=Ya((()=>{F()})),t=Ka(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let z=C;"auto"!==C||E.muiSupportAuto||(z=void 0);const j=f||(l?Ua(yI(l)).body:void 0),$=null!=(r=null==v?void 0:v.root)?r:xI,G=null!=(o=null==v?void 0:v.paper)?o:SI,B=KL({elementType:G,externalSlotProps:On({},I,{style:q?I.style:On({},I.style,{opacity:0})}),additionalProps:{elevation:h,ref:D},ownerState:P,className:Bs(_.paper,null==I?void 0:I.className)}),H=KL({elementType:$,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:P,className:Bs(_.root,p)}),{slotProps:W}=H,V=jn(H,mI);return Ns.jsx($,On({},V,!WL($)&&{slotProps:W,disableScrollLock:R},{children:Ns.jsx(E,On({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:z},L,{children:Ns.jsx(G,On({},B,{children:d}))}))}))}));function CI(e){return yl("MuiMenu",e)}xl("MuiMenu",["root","paper","list"]);const wI=["onEntering"],RI=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],LI={vertical:"top",horizontal:"right"},AI={vertical:"top",horizontal:"left"},II=Kx(EI,{shouldForwardProp:e=>Ux(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),MI=Kx(SI,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),DI=Kx(dI,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var PI=y.forwardRef((function(e,t){var n,r;const o=vx({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:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,x=jn(o.TransitionProps,wI),S=jn(o,RI),E=(()=>{const e=y.useContext(fy);return null!=e&&e})(),C=On({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:x,variant:g}),w=(e=>{const{classes:t}=e;return ml({root:["root"],paper:["paper"],list:["list"]},CI,t)})(C),R=i&&!s&&d,L=y.useRef(null);let A=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===A)&&(A=t))}));const I=null!=(n=b.paper)?n:MI,M=null!=(r=v.paper)?r:p,D=KL({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[w.root,l]}),P=KL({elementType:I,externalSlotProps:M,ownerState:C,className:w.paper});return Ns.jsx(II,On({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?LI:AI,slots:{paper:I,root:b.root},slotProps:{root:D,paper:P},open:d,ref:t,transitionDuration:h,TransitionProps:On({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,{direction:E?"rtl":"ltr"}),m&&m(e,t)}},x),ownerState:C},S,{classes:f,children:Ns.jsx(DI,On({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:L,autoFocus:i&&(-1===A||s),autoFocusItem:R,variant:g},u,{className:Bs(w.list,u.className),children:a}))}))}));function _I(e){return yl("MuiMenuItem",e)}var OI=xl("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const TI=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],kI=Kx(hA,{shouldForwardProp:e=>Ux(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})=>On({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${OI.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ry(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${OI.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ry(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${OI.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ry(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})`:Ry(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${OI.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${OI.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${VA.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${VA.inset}`]:{marginLeft:52},[`& .${iI.root}`]:{marginTop:0,marginBottom:0},[`& .${iI.inset}`]:{paddingLeft:36},[`& .${oI.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&On({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${oI.root} svg`]:{fontSize:"1.25rem"}}))));var qI=y.forwardRef((function(e,t){const n=vx({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=jn(n,TI),f=y.useContext(QA),h=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=y.useRef(null);Ja((()=>{r&&m.current&&m.current.focus()}),[r]);const g=On({},n,{dense:h.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return On({},a,ml({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},_I,a))})(n),v=Qa(m,t);let x;return n.disabled||(x=void 0!==c?c:-1),Ns.jsx(QA.Provider,{value:h,children:Ns.jsx(kI,On({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:Bs(b.focusVisible,s),className:Bs(b.root,d)},p,{ownerState:g,classes:b}))})}));const NI=Kx(zA,{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}}))),FI=Kx("div")({position:"absolute",left:0,bottom:0}),zI=Kx("div")({...ln,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}),jI=Kx("div")((()=>({...ln}))),$I=Kx("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}))),GI=Kx(PI)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),BI=Kx(qI,{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}}}))),HI=Kx("span")({textOverflow:"ellipsis",overflow:"hidden"}),WI=Kx("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:TE,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),VI={[HS.SORTING]:!0,[HS.SELECTIONS]:!0,[HS.SEARCHING]:!0},YI=({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 h=I(null),m=PE(),{app:g,model:b,interactions:v,embed:y,env:{flags:x}}=AE(),{fontSize:S,fontFamily:E,fontStyle:C,fontWeight:w,textDecoration:R,color:L,background:A,hoverBackground:M,activeBackground:D}=m.header,P=I(null),{shouldShowLockIcon:_,shouldShowMenuIcon:O}=s,{open:T,setOpen:k,handleOpenMenu:q,setIsAdjustingWidth:N}=qL({interactions:v,dataModel:e}),F={sortFromMenu:async e=>{e.stopPropagation(),await l(t)}},z={embed:y,listboxRef:h},j={model:b,app:g},{labelTextAlign:$}=null!==(f=d.getDimensionInfo(t.dimensionInfoIndex))&&void 0!==f?f:{},G=gL($,"flex-start",x);return Ns.jsxs(NI,{className:Ot,title:t.label,interactions:v,background:T?D:A,hoverBackground:M,shouldShowMenuIcon:O,isDimension:t.isDim,style:{...n,...un,...hn(t,i,r,o,m.grid.border),color:L},"data-testid":"title-cell",onClick:q,children:[Ns.jsxs(zI,{children:[_&&Ns.jsx(jI,{children:Ns.jsx(TL,{height:12})}),Ns.jsx($I,{fontFamily:E,fontSize:S,fontStyle:C,fontWeight:w,textDecoration:R,justifyContent:G,children:Ns.jsx("span",{style:cn,children:t.label})})]}),t.isDim&&Ns.jsxs(Ns.Fragment,{children:[Ns.jsx(VS,{headerData:t,translator:a,anchorRef:P,open:T,setOpen:k,interactions:v,menuAvailabilityFlags:VI,sortRelatedArgs:F,searchRelatedArgs:z,selectionRelatedArgs:j,shouldShowMenuIcon:O}),Ns.jsx(FI,{ref:h}),Ns.jsx(FI,{ref:P})]}),Ns.jsx(FL,{cellInfo:{...t,isLeftColumn:!0},columnWidth:u,dataModel:e,isLastColumn:o,overrideLeftGridWidth:c,setIsAdjustingWidth:N,shouldApplyIndentModeColumnWidth:p})]})},UI=({rowSpan:e,columnSpan:t})=>{const n=PE();return e>0&&t>0?Ns.jsx("div",{style:{...sn,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 KI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const XI=M(((e,t)=>x.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){KI(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),x.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"}))));function JI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ZI=M(((e,t)=>x.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){JI(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),x.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),x.createElement("use",{fillRule:"evenodd"})))),QI=({dataModel:e,tableWidth:t,leftGridWidth:n,overrideLeftGridWidth:r})=>{const o=PE(),{interactions:i}=AE(),{isActive:a}=XR(),{setIsAdjustingWidth:l}=kL([e]);if(!(!!i.active&&!a))return null;const s=NL(o,{isLeftColumn:!0});return Ns.jsx(tS,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:s,columnWidth:n,updateWidthCallback:e=>{r(Math.min(e,t*NE))},confirmWidthCallback:o=>{var i;if(o.type===Ft.FitToContent)return void e.applyIndentModeColumnWidth({type:Ft.Auto});const a=Math.min(null!==(i=o.pixels)&&void 0!==i?i:n,t*NE);r(a),e.applyIndentModeColumnWidth({type:Ft.Pixels,pixels:a})},setIsAdjustingWidth:l})};function eM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const tM=M(((e,t)=>x.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){eM(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),x.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"})))),nM=({cell:e,translator:t,dataModel:n,changeSortOrder:r})=>{const o=I(null),i=I(null),{app:a,model:l,interactions:s,embed:u}=AE(),{open:c,setOpen:d,handleOpenMenu:p}=qL({interactions:s,dataModel:n});return Ns.jsxs(BI,{component:"div",onClick:p,isActive:c,children:[Ns.jsx(HI,{children:e.label}),Ns.jsxs(WI,{className:"indent-mode-dropdown-more",visible:c,children:[Ns.jsx(tM,{}),e.isDim&&Ns.jsxs(Ns.Fragment,{children:[Ns.jsx(VS,{headerData:e,translator:t,anchorRef:o,open:c,setOpen:d,interactions:s,menuAvailabilityFlags:VI,sortRelatedArgs:{sortFromMenu:async t=>{t.stopPropagation(),await r(e)}},searchRelatedArgs:{embed:u,listboxRef:i},selectionRelatedArgs:{model:l,app:a},shouldShowMenuIcon:!1}),Ns.jsx(FI,{ref:i}),Ns.jsx(FI,{ref:o})]})]})]})},rM=({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)===BE,l=e+1<n.length&&(null===(i=n[e+1])||void 0===i?void 0:i.id)===BE;return!(r&&a&&l)&&((null==t?void 0:t.id)!==BE&&e<n.length-1)},oM=({headersData:e,menuItems:t,dataModel:n,translator:r,changeSortOrder:o,overrideLeftGridWidth:i,leftGridWidth:a,tableWidth:l})=>{const s=PE(),{interactions:u}=AE(),[c,d]=A(!1),p=I(null),{headerCellHeight:f}=s,{color:h,background:m,hoverBackground:g,activeBackground:b,fontFamily:v,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E}=s.header,{isAdjustingWidth:C}=kL([n]),w=e=>e.stopPropagation(),R={height:f,gridColumn:`1 / span ${e.size.x}`,gridRow:e.size.y,zIndex:e.size.x-0};return Ns.jsxs(NI,{isDimension:!0,background:c?b:m,interactions:u,hoverBackground:g,style:{...R,...un,color:h},onClick:e=>u.active&&!YR(e)&&!C&&d(!c),children:[Ns.jsxs(zI,{children:[Ns.jsx($I,{fontFamily:v,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E,justifyContent:"flex-start",children:Ns.jsx("span",{style:cn,children:r.get("SNPivotTable.IndentMode.Rows")})}),c?Ns.jsx(ZI,{}):Ns.jsx(XI,{}),Ns.jsx(FI,{ref:p})]}),Ns.jsx(GI,{open:c,anchorEl:p.current,children:t.map(((i,a)=>[i&&(null==i?void 0:i.id)!==BE&&Ns.jsx("li",{role:"presentation",onClick:w,onKeyDown:w,children:Ns.jsx(nM,{cell:i,translator:r,dataModel:n,changeSortOrder:o})}),rM({idx:a,menu:i,menuItems:t,isOnlyOneRow:1===e.size.y})&&Ns.jsx(sS,{"data-testid":"group-divider",variant:"middle"},"divider")]))}),Ns.jsx(QI,{dataModel:n,tableWidth:l,leftGridWidth:a,overrideLeftGridWidth:i})]})},iM={display:"grid",width:"fit-content"},aM=({dataModel:e,tableWidth:t,leftGridWidth:n,columnWidths:r,rowHight:o,headersData:i,translator:a,changeSortOrder:l,getHeaderCellsIconsVisibilityStatus:s,height:u,overrideLeftGridWidth:c,layoutService:d})=>Ns.jsxs("div",{style:{...iM,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:i.data.map((()=>`${o}px`)).join(" "),height:u},children:[i.size.y>1&&Ns.jsx(UI,{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(Ns.jsx(oM,{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),h=d.isIndentModeEnabled&&1===i.size.x;t.push(Ns.jsx(YI,{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:h},n.id))}return t}),[]),f}))]});var lM=O(aM);const sM=(e,t,n,r,o)=>{T((()=>{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])},uM=(e,t)=>{Fb((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},cM=(e,t,n,r)=>{var o;const i=n?"flex-start":"center";var a,l;if(e.representation.type===FE.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 gL(n,i,r)}const{textAlign:u}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return gL(u,i,r)},dM=()=>{},pM=({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=PE(),{interactions:f,env:{flags:h}}=AE(),{select:m,isLocked:g}=XR(),{layoutService:b,showLastBorder:v}=o,y=g(r)||r.isLockedByDimension,x=!(y||!f.active||!f.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||c),S=x?m(r):void 0;return Ns.jsx("div",{className:Ot,title:f.passive?t:void 0,style:{...n,...fn(a,l,p.grid.border,v),...mn({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:p.grid.divider}),...un,padding:"0px 4px",cursor:aL(x),background:tL({styleService:p,isCellSelected:u,cell:r,isCellLocked:y}),zIndex:s?void 0:b.size.x-r.x,justifyContent:cM(r,b,s,h),display:"flex",...b.isIndentModeEnabled&&s&&{paddingLeft:24*(null!==(d=r.indentLevel)&&void 0!==d?d:0)}},"aria-hidden":"true",onClick:S,onKeyUp:dM,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})},fM=e=>e.stopPropagation(),hM=({href:e,text:t,interactions:n,color:r})=>x.createElement(Mf,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:fM,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),mM=({children:e,textStyle:t})=>Ns.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),gM=({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>{const{isActive:o}=XR(),{interactions:i}=AE();let a=e.representation.text;if(e.isEmpty)return null;const l=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>({...cn,...dn(r?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:nL({cell:e,styleService:t,isCellSelected:n}),fontWeight:rL({cell:e,styleService:t}),fontStyle:oL({cell:e,styleService:t}),textDecoration:iL({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r});return e.representation.type!==FE.Image||e.isTotal?(e.representation.type!==FE.Link||o||e.isTotal||(a=Ns.jsx(hM,{text:e.representation.text,href:e.representation.url,interactions:i,color:e.expressionColor.color})),Ns.jsx(mM,{textStyle:l,children:a})):Ns.jsx(mL,{representation:e.representation,isLeftColumn:r,styleService:t,textStyle:l,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand})},bM=e=>{const t=e.isLeftColumn?"flex-start":"center";var n;return e.representation.type!==FE.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(n=e.representation.resolvedImagePosition)||void 0===n?void 0:n.vertical},vM=({index:e,style:t,data:n})=>{const r=PE(),{isSelected:o}=XR(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=kL([n]),{dataModel:l,isLeftColumn:s=!1,showLastBorder:u,itemCount:c,isLast:d,totalDividerIndex:p,layoutService:f}=n,h=((e,t)=>{const{isLast:n,list:r,listValues:o}=t;return n?r[e]:o[e]})(e,n),m=s?e===c-1:d,g=s?d:e===c-1,b=wR(h,p,f.isIndentModeEnabled);if(void 0===h){const{background:n}=r.dimensionValues;return Ns.jsx(zR,{style:{...t,background:n},index:e,isLastRow:m,isLastColumn:g,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:b})}const v=o(h);return Ns.jsxs(pM,{text:h.representation.text,reactWindowStyle:t,isLeftColumn:s,isLastRow:m,isLastColumn:g,isCellSelected:v,showTotalCellDivider:b,cell:h,data:n,isAdjustingWidth:i,children:[Ns.jsxs(jR,{verticalAlign:bM(h),width:$R(h.representation),right:h.isLeftColumn?void 0:4,children:[Ns.jsx(uL,{isLeftColumn:s,isCellSelected:v,cell:h,dataModel:l}),Ns.jsx(gM,{isLeftColumn:s,isCellSelected:v,cell:h,styleService:r})]}),Ns.jsx(FL,{cellInfo:{...h,columnWidthLocation:h.isPseudoDimension?At.Measures:At.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:g,setIsAdjustingWidth:a})]})};var yM=x.memo(vM,CR);const xM=({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()},SM=(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}},EM=(e,t)=>n=>{e.current&&(e.current[t]=n)},CM={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...sn},wM={overflow:"hidden",willChange:"auto",flexShrink:0},RM=({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}}=PE();uM(t,a),sM(t,n,o,d,i);const f=u.rowsOnCurrentPage*d;return Ns.jsx("div",{style:{...CM,borderColor:p},children:a.grid.map(((n,p)=>{const h=p===a.columnCount-1,m=cC(s[p]),{itemCount:g,estimatedItemSize:b,listValues:v}=SM(n,f,u.rowsOnCurrentPage,h),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,v,d,h,c.qcy);return Ns.jsx(yR,{ref:EM(t,p),style:{...wM,flexGrow:h?1:0},height:o,width:r[p],itemCount:g,itemSize:y,layout:"vertical",itemData:{layoutService:i,dataModel:e,list:n,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:l,listValues:v,totalDividerIndex:a.totalDividerIndex},itemKey:IL,estimatedItemSize:b,children:yM},m)}))})};var LM=O(RM);const AM={overflow:"hidden",willChange:"auto"},IM={...sn,borderWidth:"0px 0px 0px 1px"},MM=({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}=PE(),p={...IM,borderColor:c,height:o};uM(t,a),sM(t,r,o,d,i);const f=i.size.x*s();return 0===a.rowCount?Ns.jsx("div",{style:{width:r,height:o,...IM}}):Ns.jsx("div",{style:p,children:a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=SM(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}),b=g?cC(g):`empty ${c}`;return Ns.jsx(yR,{ref:EM(t,c),style:AM,height:n(),width:r,itemCount:p,itemSize:xM({list:o,listValues:m,isLastRow:d,getRightGridColumnWidth:s}),layout:"horizontal",itemData:{layoutService:i,dataModel:e,list:o,isLast:d,itemCount:p,showLastBorder:l,listValues:m,totalDividerIndex:a.totalDividerIndex},itemKey:IL,estimatedItemSize:h,children:yM},b)}))})};var DM=O(MM);const PM=({model:e,rect:t,viewService:n,layoutService:r,qPivotDataPages:o,pageInfo:i,translator:a})=>{const{headerCellHeight:l,contentCellHeight:s}=PE(),u=((e,t,n)=>L((()=>{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 L((()=>{var e,n,a,l;const s=Tw(null!==(e=null===(n=t[0])||void 0===n?void 0:n.qLeft)&&void 0!==e?e:[]),u=Tw(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(Ow(i,o,0)),visibleTopDimensionInfo:u.map(Ow(i,o,r))}}),[i,o,r,t])})(r,o),p=(e=>{const t=D((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:h,topDimensionData:m,leftDimensionData:g,attrExprInfoIndexes:b,nextPageHandler:v}=Aw(o,r,i,c,d),y=Pw({model:e,nextPageHandler:v,pageInfo:i,layoutService:r}),{onHorizontalScrollHandler:x,onVerticalScrollHandler:S,verticalScrollableContainerRef:E,leftGridHorizontalScrollableContainerRef:C,dataGridHorizontalScrollableContainerRef:w,dataGridRef:R,leftGridRef:M,topGridRef:_,verticalScrollbarWidth:O,horizontalScrollbarHeight:k,horizontalScrollbarHeightSetter:q,verticalScrollDirection:N,horizontalScrollDirection:F}=(({layoutService:e,viewService:t,pageInfo:n,tableRect:r,mockedRefs:o})=>{var i,a,l,s,u,c;const{theme:d,downloadService:p}=AE(),f=I(null!==(i=null==o?void 0:o.verticalScrollableContainerRef)&&void 0!==i?i:null),h=I(null!==(a=null==o?void 0:o.leftGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),m=I(null!==(l=null==o?void 0:o.dataGridHorizontalScrollableContainerRef)&&void 0!==l?l:null),g=I(null!==(s=null==o?void 0:o.topGridRef)&&void 0!==s?s:[]),b=I(null!==(u=null==o?void 0:o.leftGridRef)&&void 0!==u?u:[]),v=I(null!==(c=null==o?void 0:o.dataGridRef)&&void 0!==c?c:null),y=I(0),x=I(0),S=I(Dt.None),E=I(Dt.None),[C,w]=A(0),[R,L]=A(0),M=e=>{E.current=_w(e.currentTarget.scrollLeft,y.current),y.current=e.currentTarget.scrollLeft,S.current=_w(e.currentTarget.scrollTop,x.current),x.current=e.currentTarget.scrollTop};T((()=>{e.triggerdByExpandOrCollapse||(h.current&&(h.current.scrollLeft=0),m.current&&(m.current.scrollLeft=0),f.current&&(f.current.scrollTop=0))}),[e]),T((()=>{if(e.triggerdByExpandOrCollapse){var t,n,r,o,i,a;const e=null!==(t=null===(n=m.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=b.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]),T((()=>{h.current&&(h.current.scrollLeft=0),m.current&&(m.current.scrollLeft=0),f.current&&(f.current.scrollTop=0)}),[n.page]);const P=D((e=>{if(e)return void L(0);let t=0;if(h.current){const e=h.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}if(m.current){const e=m.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}L(t)}),[L]);return T((()=>{if(f.current){const e=f.current,t=e.offsetWidth-e.clientWidth;w(t)}P()}),[P,e,t,r.width,r.height,d,p]),T((()=>{(p.isDownloadedAsPDForImage||e.isSnapshot)&&f.current&&m.current&&h.current&&(f.current.scrollTop=t.scrollTop,m.current.scrollLeft=t.scrollLeft,h.current.scrollLeft=t.leftGridScrollLeft)}),[t,f,m,h,p,e]),{onHorizontalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(e.target.dataset.key===`scrollable-container--${Mt.LEFT_GRID}`&&(t.leftGridScrollLeft=e.currentTarget.scrollLeft),e.target.dataset.key===`scrollable-container--${Mt.DATA_GRID}`&&(M(e),null===(n=g.current)||void 0===n||n.forEach((t=>null==t?void 0:t.scrollTo(e.currentTarget.scrollLeft))),null===(r=v.current)||void 0===r||r.scrollTo({scrollLeft:e.currentTarget.scrollLeft}),t.scrollLeft=e.currentTarget.scrollLeft))},onVerticalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(M(e),null===(n=b.current)||void 0===n||n.filter(Boolean).forEach((t=>t.scrollTo(e.currentTarget.scrollTop))),null===(r=v.current)||void 0===r||r.scrollTo({scrollTop:e.currentTarget.scrollTop}),t.scrollTop=e.currentTarget.scrollTop)},verticalScrollableContainerRef:f,leftGridHorizontalScrollableContainerRef:h,dataGridHorizontalScrollableContainerRef:m,dataGridRef:v,leftGridRef:b,topGridRef:g,verticalScrollbarWidth:C,horizontalScrollbarHeight:R,horizontalScrollbarHeightSetter:P,verticalScrollDirection:S,horizontalScrollDirection:E}})({layoutService:r,viewService:n,pageInfo:i,tableRect:u}),{containerHeight:z,headerGridHeight:j,topGridHeight:$,leftGridHeight:G,dataGridHeight:B,allRowsVisible:H}=function({pageInfo:e,headersData:t,topDimensionData:n,tableRect:r,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=PE(),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-rn,l),dataGridHeight:Math.min(r.height-c-rn,l),allRowsVisible:c+rn+l+o<=r.height}}({pageInfo:i,headersData:f,topDimensionData:m,tableRect:u,horizontalScrollbarHeight:k}),{leftGridWidth:W,leftGridColumnWidths:V,rightGridWidth:Y,totalWidth:U,showLastRightBorder:K,getRightGridColumnWidth:X,getHeaderCellsIconsVisibilityStatus:J,overrideLeftGridWidth:Z}=function({layoutService:e,tableWidth:t,headersData:n,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i}){const a=PE(),{measureText:l}=kb(a.header),s=tC({layoutService:e,tableWidth:t,headersData:n}),u=nC({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,leftGridWidth:s.leftGridWidth}),c=s.leftGridWidth+u.rightGridFullWidth+rn,d=c<t,p=D(((e,t,n="")=>{const r=s.leftGridColumnWidths[e];let o=!1,i=!1,a=l(n)+qE;return t&&a+kE<=r&&(i=!0,a+=kE),a+TE<=r&&(o=!0),{shouldShowMenuIcon:o,shouldShowLockIcon:i}}),[s.leftGridColumnWidths,l]);return P((()=>{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:O,horizontalScrollbarHeightSetter:q}),{rootWrapper:Q,leftWrapper:ee,rightWrapper:te}=(({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+rn,f=a?0:Math.max(0,e.height-p),h=c*(a?0:1),m=d*(a?0:1),g=a?p+d:e.height,b=e.height-m,v=l-s-h,y=e.width-s-h;return{rootWrapper:{scrollable:e,fullSize:{width:l-h,height:t+m},sticky:{width:e.width-h,height:e.height}},leftWrapper:{containers:{scrollable:{width:s,height:g},fullSize:{width:s,height:t},sticky:{width:s,height:b}},headerGrid:{width:-1,height:n},leftGrid:{width:s,height:r-m+f}},rightWrapper:{containers:{scrollable:{width:u+rn-h,height:g},fullSize:{width:v,height:t},sticky:{width:v<y?v:y,height:b}},topGrid:{width:u-h,height:o},dataGrid:{width:u-h,height:i-m+f}}}})({tableRect:u,containerHeight:z,headerGridHeight:j,leftGridHeight:G,topGridHeight:$,dataGridHeight:B,allRowsVisible:H,totalWidth:U,leftGridWidth:W,rightGridWidth:Y,verticalScrollbarWidth:O,horizontalScrollbarHeight:k}),ne=D((()=>l),[l]),re=D((()=>s),[s]);return(()=>{const{downloadService:e}=AE();P((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),Ns.jsx(Fw,{ref:E,...Q.scrollable,onScroll:S,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:Mt.CONTAINER_GRID,children:Ns.jsx(kw,{...Q.fullSize,children:Ns.jsxs(zw,{...Q.sticky,style:{display:"grid",gridTemplateColumns:W?`${ee.containers.scrollable.width}px ${te.containers.scrollable.width}px`:`${te.containers.scrollable.width}px`},children:[Boolean(W)&&Ns.jsx(Fw,{ref:C,...ee.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Mt.LEFT_GRID,children:Ns.jsx(kw,{isLeftGrid:!0,...ee.containers.fullSize,children:Ns.jsxs(zw,{isLeftGrid:!0,...ee.containers.sticky,children:[Ns.jsx(lM,{dataModel:y,tableWidth:u.width,leftGridWidth:W,columnWidths:V,getHeaderCellsIconsVisibilityStatus:J,rowHight:l,height:ee.headerGrid.height,headersData:f,translator:a,changeSortOrder:p,overrideLeftGridWidth:Z,layoutService:r}),Ns.jsx(LM,{dataModel:y,leftGridRef:M,...ee.leftGrid,columnWidths:V,layoutService:r,leftDimensionData:g,showLastBorder:{right:!1,bottom:H},visibleLeftDimensionInfo:c,pageInfo:i})]})})}),Ns.jsx(Fw,{ref:w,...te.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Mt.DATA_GRID,children:Ns.jsx(kw,{...te.containers.fullSize,children:Ns.jsxs(zw,{...te.containers.sticky,children:[Ns.jsx(DM,{dataModel:y,topGridRef:_,rowHightCallback:ne,...te.topGrid,layoutService:r,topDimensionData:m,showLastBorder:{right:K,bottom:!1},getRightGridColumnWidth:X,headersData:f}),Ns.jsx(_L,{dataModel:y,dataGridRef:R,rowHightCallback:re,...te.dataGrid,viewService:n,layoutService:r,measureData:h,leftDimensionData:g,topDimensionData:m,visibleTopDimensionInfo:d,visibleLeftDimensionInfo:c,attrExprInfoIndexes:b.measures,showLastBorder:{right:K,bottom:H},getRightGridColumnWidth:X,pageInfo:i,verticalScrollDirection:N,horizontalScrollDirection:F})]})})})]})})})},_M=e=>{const{layoutService:t,translator:n,pageInfo:r,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=AE(),{layout:u,hasData:c}=t;return Ns.jsxs(Ns.Fragment,{children:[c&&Ns.jsx(PM,{...e}),Ns.jsx(ME,{translator:n,layoutService:t}),Ns.jsx(RE,{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})]})},OM={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)"},TM=12,kM=14,qM=16,NM=24,FM=3,zM=300,jM=400,$M=600,GM=700,BM={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};zn(OM.GREYSCALE_0,.05),zn(OM.GREEN_PALE,.5),zn(OM.BLUE_PALE,.5),zn(OM.GREEN_PALE,.5),zn(OM.BLUE_PALE,.5),zn(OM.GREEN_PALE,.5),zn(OM.BLUE_PALE,.5);var HM;function WM(){return WM=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},WM.apply(this,arguments)}zn(OM.GREEN_PALE,.5),zn(OM.BLUE_PALE,.5),zn(OM.GREEN_PALE,.5),zn(OM.BLUE_PALE,.5);var VM,YM=function(e){return y.createElement("svg",WM({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),HM||(HM=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function UM(){return UM=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},UM.apply(this,arguments)}var KM=function(e){return y.createElement("svg",UM({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),VM||(VM=y.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function XM({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return x.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 JM=(e={})=>x.createElement(XM,{...e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},x.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),x.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),ZM=(e={})=>x.createElement(XM,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),x.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),QM=(e={})=>x.createElement(XM,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},x.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),eD=(e={})=>x.createElement(XM,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),x.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),tD=({className:e})=>x.createElement(XM,{fontSize:"small",className:e},x.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},x.createElement("g",{transform:"translate(4.324187, 1.300372)"},x.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),x.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})))))),nD=(e={})=>x.createElement(XM,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{stroke:OM.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const rD={MuiAccordion:{styleOverrides:{root:{backgroundColor:OM.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:OM.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement(YM,{"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 ${OM.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:OM.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${OM.MISC_FOCUS_BORDER}`,borderRadius:FM,backgroundColor:OM.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 ${OM.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:OM.WHITE,color:OM.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:FM},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${OM.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:OM.GREYSCALE_0_15,backgroundColor:OM.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:OM.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${OM.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:OM.GREEN_PALE},"&:active":{backgroundColor:OM.GREEN_DARK},"&.Mui-focusVisible":{borderColor:OM.GREEN_PALE,boxShadow:`0 0 0 3px ${dy(OM.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:OM.BLUE_PALE},"&:active":{backgroundColor:OM.BLUE_DARK},"&.Mui-focusVisible":{borderColor:OM.BLUE_PALE,boxShadow:`0 0 0 3px ${dy(OM.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:FM,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:OM.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${OM.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:OM.GREYSCALE_0_15,backgroundColor:OM.GREYSCALE_100_60,"&:active":{backgroundColor:OM.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:OM.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${OM.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:OM.PURPLE,"&.Mui-focusVisible":{borderColor:OM.PURPLE,boxShadow:`0 0 0 3px ${dy(OM.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:OM.GREEN,"&.Mui-focusVisible":{borderColor:OM.GREEN,boxShadow:`0 0 0 3px ${dy(OM.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:OM.BLUE,"&.Mui-focusVisible":{borderColor:OM.BLUE,boxShadow:`0 0 0 3px ${dy(OM.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:OM.ORANGE,"&.Mui-focusVisible":{borderColor:OM.ORANGE,boxShadow:`0 0 0 3px ${dy(OM.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:OM.RED,"&.Mui-focusVisible":{borderColor:OM.RED,boxShadow:`0 0 0 3px ${dy(OM.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:OM.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:OM.PURPLE_PALE},"&:active":{backgroundColor:OM.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:OM.PURPLE_PALE,boxShadow:`0 0 0 3px ${dy(OM.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:OM.GREEN_PALE},"&:active":{backgroundColor:OM.GREEN_DARK},"&.Mui-focusVisible":{borderColor:OM.GREEN_PALE,boxShadow:`0 0 0 3px ${dy(OM.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:OM.BLUE_PALE},"&:active":{backgroundColor:OM.BLUE_DARK},"&.Mui-focusVisible":{borderColor:OM.BLUE_PALE,boxShadow:`0 0 0 3px ${dy(OM.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:OM.ORANGE_PALE},"&:active":{backgroundColor:OM.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:OM.ORANGE_PALE,boxShadow:`0 0 0 3px ${dy(OM.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:OM.RED_PALE},"&:active":{backgroundColor:OM.RED_DARK},"&.Mui-focusVisible":{borderColor:OM.RED_PALE,boxShadow:`0 0 0 3px ${dy(OM.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:OM.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:OM.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:FM,boxShadow:`inset 0 0 0 2px ${OM.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement(KM,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:TM,borderRadius:FM,color:OM.TEXT_PRIMARY,backgroundColor:OM.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:OM.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${OM.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:OM.GREYSCALE_0_05,color:OM.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:OM.GREEN,borderColor:OM.GREEN},"&.MuiChip-outlinedInfo":{color:OM.BLUE,borderColor:OM.BLUE},"&.MuiChip-outlinedWarning":{color:OM.ORANGE,borderColor:OM.ORANGE},"&.MuiChip-outlinedError":{color:OM.RED,borderColor:OM.RED}},outlined:{border:`solid 1px ${OM.GREYSCALE_0_15}`,backgroundColor:OM.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:FM,boxShadow:"none",backgroundColor:OM.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:OM.GREEN,borderColor:OM.GREEN},outlinedSecondary:{color:OM.BLUE,borderColor:OM.BLUE},label:{fontFamily:BM.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement(KM,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement(YM,{"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:FM},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:FM,fontSize:kM,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:OM.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${OM.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:OM.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:OM.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:OM.GREYSCALE_0_05}}},popupIndicator:{borderRadius:FM,border:`solid 1px ${OM.GREYSCALE_0_15}`,color:OM.GREYSCALE_0_60,marginRight:0,width:NM,height:NM},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${OM.GREYSCALE_0_15}`},clearIndicator:{borderRadius:FM,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:OM.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:kM}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:TM,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:OM.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:OM.GREYSCALE_25,fontSize:TM,fontFamily:BM.FONT_FAMILY,fontWeight:$M,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:OM.TEXT_PRIMARY},"&.Mui-error":{color:OM.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:OM.TEXT_SECONDARY,content:"'(optional)'",fontWeight:jM,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:OM.TEXT_SECONDARY,content:"'(required)'",fontWeight:jM,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:kM,lineHeight:"16px",backgroundColor:OM.WHITE,borderRadius:FM,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${OM.GREYSCALE_0_05}`,borderColor:OM.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${OM.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${OM.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${OM.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${OM.RED}`,boxShadow:`0px 0px 0px 1px ${OM.RED}, inset 0 2px 0 0 ${OM.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${OM.GREYSCALE_0_10}`,borderColor:OM.GREYSCALE_0_10,backgroundColor:OM.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:OM.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:OM.GREYSCALE_0_15,borderRadius:FM,boxShadow:`inset 0 2px 0 0 ${OM.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement(YM,{...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:OM.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:OM.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:OM.GREYSCALE_0_03},"&:active":{backgroundColor:OM.GREYSCALE_0_10},"&:focus":{backgroundColor:OM.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${OM.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${OM.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:OM.GREYSCALE_0_30,"&:hover":{backgroundColor:OM.GREYSCALE_0_0,borderColor:OM.GREYSCALE_0_15},"& ~svg":{color:OM.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${OM.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:FM}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:OM.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${OM.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:OM.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:kM,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:TM,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:TM,fontWeight:$M,color:OM.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:$M}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${OM.GREYSCALE_0_15}, 0px 0px 0px 1px ${OM.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement(QM,null),checkedIcon:x.createElement(eD,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:OM.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${OM.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:OM.GREEN_PALE,boxShadow:`0 0 0 3px ${dy(OM.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:OM.BLUE_PALE,boxShadow:`0 0 0 3px ${dy(OM.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:OM.GREYSCALE_0_20}},"&.Mui-disabled":{fill:OM.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(nD,null),checkedIcon:x.createElement(JM,null),indeterminateIcon:x.createElement(ZM,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:FM,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:OM.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:OM.GREYSCALE_0_55,color:OM.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:OM.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:OM.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:OM.GREYSCALE_0_55,"&:hover":{color:OM.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:OM.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:OM.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:kM,color:OM.TEXT_PRIMARY,lineHeight:"16px",fontWeight:$M},secondary:{fontSize:TM,color:OM.GREYSCALE_45,fontWeight:jM,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:kM,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:OM.GREYSCALE_0_03},"&:active":{backgroundColor:OM.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:kM,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:OM.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:TM,borderBottom:`solid 1px ${OM.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:kM,color:OM.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:OM.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:OM.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:OM.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:OM.RED}}},"&.Mui-focusVisible":{backgroundColor:OM.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:OM.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:OM.GREEN,height:"24px","&.Mui-disabled":{color:OM.GREYSCALE_0_15}},rail:{backgroundColor:OM.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${OM.GREYSCALE_0_05}`,borderRadius:FM,boxShadow:`inset 0px 0px 0px 1px ${OM.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${OM.GREYSCALE_0_05}`,borderRadius:FM},thumb:{height:"16px",width:"16px",borderRadius:FM,backgroundColor:OM.WHITE,boxShadow:`0px 1px 2px 0px ${OM.GREYSCALE_0_15}, 0px 0px 0px 1px ${OM.GREYSCALE_0_05}`,"&:hover":{borderRadius:FM,boxShadow:`0 2px 4px 0 ${OM.GREYSCALE_0_30}, 0 0 0 1px ${OM.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${OM.GREYSCALE_0_15}, 0 0 0 1px ${OM.GREYSCALE_0_06}, 0 0 0 2px ${OM.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${OM.GREYSCALE_0_15}, 0 0 0 1px ${OM.GREYSCALE_0_06}, 0 0 0 2px ${OM.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:OM.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:OM.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:OM.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:OM.GREYSCALE_0_15},markLabel:{color:OM.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:OM.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:OM.WHITE,color:OM.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:OM.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:OM.GREEN_PALE,boxShadow:`0 0 0 3px ${dy(OM.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:OM.BLUE_PALE,boxShadow:`0 0 0 3px ${dy(OM.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:OM.GREYSCALE_0_15,borderRadius:FM},thumb:{height:"16px",width:"16px",borderRadius:FM,backgroundColor:OM.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:kM,fontWeight:$M,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${OM.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${OM.MISC_FOCUS_BORDER}`,backgroundColor:OM.GREYSCALE_0_03,borderRadius:FM},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:OM.GREYSCALE_25,"&.Mui-selected":{color:OM.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:kM,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},scrollableY:{marginBlock:"4px"},scrollButtons:{borderRadius:FM,"&:hover":{backgroundColor:`${OM.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 ${OM.GREYSCALE_0_15}`,borderBottom:`1px solid ${OM.GREYSCALE_0_15}`},"& .MuiTab-root":{fontWeight:"normal",borderRadius:FM,marginBlock:"4px","&.Mui-selected":{backgroundColor:OM.GREYSCALE_0_05},"&:hover":{backgroundColor:`${OM.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${OM.GREYSCALE_85}`,borderRight:`1px solid ${OM.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:$M,backgroundColor:OM.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:OM.GREYSCALE_98,borderBottom:`1px solid ${OM.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${OM.GREYSCALE_85}`,borderTop:`1px solid ${OM.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:OM.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:OM.GREYSCALE_0_05,"&:hover":{backgroundColor:OM.GREYSCALE_0_03}},"&&:hover":{backgroundColor:OM.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(tD,{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 ${OM.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:kM,borderRadius:FM,padding:"7px 16px",border:`1px solid ${OM.GREYSCALE_0_15}`,backgroundColor:OM.GREYSCALE_100_60,color:OM.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:OM.GREYSCALE_0_10,border:`1px solid ${OM.GREYSCALE_0_30}`},"&:hover":{backgroundColor:OM.GREYSCALE_0_03,border:`1px solid ${OM.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:OM.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${OM.MISC_FOCUS_BORDER}`,border:`1px solid ${OM.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:OM.GREYSCALE_25,backgroundColor:OM.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:OM.GREYSCALE_0_10,border:`1px solid ${OM.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:TM,height:24,width:24,padding:7},sizeLarge:{fontSize:qM,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:kM,borderRadius:FM}}},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:OM.GREYSCALE_20},tooltip:{backgroundColor:OM.GREYSCALE_20,fontSize:TM,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var oD=e=>rD;const iD={mode:"light",primary:{ultraLight:OM.GREEN_ULTRA_LIGHT,light:OM.GREEN_PALE,main:OM.GREEN,dark:OM.GREEN_DARK,extraDark:OM.GREEN_EXTRA_DARK,contrastText:OM.WHITE},secondary:{ultraLight:OM.BLUE_ULTRA_LIGHT,light:OM.BLUE_PALE,main:OM.BLUE,dark:OM.BLUE_DARK,extraDark:OM.BLUE_EXTRA_DARK,contrastText:OM.WHITE},error:{ultraLight:OM.RED_ULTRA_LIGHT,light:OM.RED_PALE,main:OM.RED,dark:OM.RED_DARK,extraDark:OM.RED_EXTRA_DARK,contrastText:OM.WHITE},warning:{ultraLight:OM.ORANGE_ULTRA_LIGHT,light:OM.ORANGE_PALE,main:OM.ORANGE,dark:OM.ORANGE_DARK,extraDark:OM.ORANGE_EXTRA_DARK,contrastText:OM.WHITE},success:{ultraLight:OM.GREEN_ULTRA_LIGHT,light:OM.GREEN_PALE,main:OM.GREEN,dark:OM.GREEN_DARK,extraDark:OM.GREEN_EXTRA_DARK,contrastText:OM.WHITE},info:{ultraLight:OM.BLUE_ULTRA_LIGHT,light:OM.BLUE_PALE,main:OM.BLUE,dark:OM.BLUE_DARK,extraDark:OM.BLUE_EXTRA_DARK,contrastText:OM.WHITE},text:{primary:OM.TEXT_PRIMARY,secondary:OM.TEXT_SECONDARY,disabled:OM.GREYSCALE_0_30},action:{hover:OM.GREYSCALE_0_03,hoverOpacity:.03,selected:OM.GREYSCALE_0_05,selectedOpacity:.05,focus:OM.MISC_FOCUS_BORDER},amethyst:{ultraLight:OM.WHITE,main:OM.PURPLE,light:OM.PURPLE_PALE,dark:OM.PURPLE_DARK,extraDark:OM.GREYSCALE_0_0,contrastText:OM.WHITE},background:{paper:OM.WHITE,default:OM.GREYSCALE_95},divider:OM.GREYSCALE_0_15},aD=e=>iD,lD=(e="light")=>({components:oD(),palette:aD(),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:kM,fontWeightLight:zM,fontWeightRegular:jM,fontWeightMedium:$M,fontWeightBold:GM,htmlFontSize:kM,fontFamily:BM.FONT_FAMILY,button:{fontWeight:$M,fontSize:kM,textTransform:"none"},body1:{fontSize:qM,lineHeight:"24px"},body2:{fontSize:kM,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:NM,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:qM,fontWeight:$M,lineHeight:"16px"},h6:{fontSize:kM,fontWeight:$M,lineHeight:"16px"},caption:{color:OM.TEXT_SECONDARY},subtitle1:{fontSize:kM,color:OM.TEXT_SECONDARY},subtitle2:{fontSize:TM,color:OM.TEXT_SECONDARY}},shape:{borderRadius:FM}});const sD=(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=lD();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),mx({...n,direction:e})}("ltr");e.render(Ns.jsx(x.StrictMode,{children:Ns.jsx(Jx,{theme:p,children:Ns.jsx(IE,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d,children:Ns.jsx(JR,{selections:n,updatePageInfo:t.updatePageInfo,children:Ns.jsx(_E,{styleService:r,children:Ns.jsx(_M,{...t})})})})})}))},uD={darker:.15,brighter:.3,opacity:.03},cD={darker:.3,brighter:.5,opacity:.05};var dD,pD,fD,hD;!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"}(dD||(dD={})),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"}(pD||(pD={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(fD||(fD={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(hD||(hD={}));const mD=e=>e?`${parseInt(e,10)}px`:void 0,gD=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?on.Transparent:n}},bD=(e,t)=>+(parseInt(e,10)*nn*t+8).toFixed(2),vD=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?en:"normal",yD=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",xD=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none";function SD(e,t){return r((()=>e),t)}const ED={},CD=e=>{const t=r((()=>({current:ED})),[]);return t.current=t.current===ED?e:t.current,t},wD=({fontStyle:e,fontWeight:t,fontSize:n,fontFamily:r})=>t?`${e} ${t} ${n} ${r}`:`${e} ${n} ${r}`,RD=(e,t,n)=>{var o,i;const a=null!==(o=null==n?void 0:n.qHyperCubeDef.qShowTotalsAbove)&&void 0!==o&&o,l=null!==(i=null==n?void 0:n.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==i&&i;return r((()=>(({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,h=!!u,m=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,tn),y:Math.min(e.qHyperCube.qSize.qcy,m)},b=d.slice(0,c),v=e=>b.some((t=>t===e)),y=v(GE),x=new Map(d.map((e=>{var t;return[null!==(t=f[e])&&void 0!==t?t:GE,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===GE?GE:f[e],getDimensionInfoIndex:e=>{var t;return null!==(t=x.get(e))&&void 0!==t?t:-1},size:g,isSnapshot:h,hasLimitedData:!h&&g.x<e.qHyperCube.qSize.qcx,hasData:g.x>0&&g.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:n,hasPseudoDimOnLeft:y,leftDimensionInfoIndexes:b,isLeftDimension:v,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:Ft.Auto,pixels:Nt.PixelsDefault,percentage:Nt.PercentageDefault}}})({layout:e,flags:t,qShowTotalsAbove:a,qAlwaysFullyExpanded:l})),[e,a,l,t])},LD=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=CD(e);return t.current=e,t})(Mw(o));return yg((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(tn,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($E,Dw(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,n,r.page,r.rowsPerPage,s,l])},AD=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),ID=(e,t,n=15e3)=>({rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:AD({rowsPerPage:n,totalRowCount:e,page:t})}),MD=15,DD=({layoutService:e,viewService:t,rect:n,model:r,pageInfo:o})=>{var i;return l((async e=>{if(!e.snapshotData||!r||e.snapshotData.content)return e;if(null!=r&&r.getHyperCubePivotData){const{scrollTop:i,scrollLeft:a,leftGridScrollLeft:l}=t,s=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,l=t.page*t.rowsPerPage,s=Math.max(r-MD,0),u=Math.max(l+o-MD,l,0);if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=Mw(n);return{qLeft:s,qTop:u,qWidth:e+30,qHeight:t+30}}return{qLeft:s,qTop:u,qWidth:i+30,qHeight:a+30}})(t,o,n),u=Dw(s),c={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};e.snapshotData.content={qPivotDataPages:await r.getHyperCubePivotData($E,[c,...u]),scrollTop:i,scrollLeft:a,leftGridScrollLeft:l,page:o.page,rowsPerPage:o.rowsPerPage},e.snapshotData.object.size.w=n.width,e.snapshotData.object.size.h=n.height}return e})),s((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,renderPage:t.page}))(t,o)})),[t]),null!==(i=e.layout.snapshotData)&&void 0!==i&&i.content?{left:n.left,top:n.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:n};var PD={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 _D=()=>{const e=u(),t=e.language();return r((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(PD).forEach((t=>{e.add(PD[t])}))}}(e)),[e]),{translator:e,language:t}},OD=n=>{const{flags:i}=n,l=c(),s=(e=>{const n=r((()=>qb(e)),[e]);return t((()=>()=>n.unmount()),[n]),n})(l),u=d(),y=p(),x=f(),S=h(),E=m(),C=g(),w=(e=>{const{viewState:t}=a(),n=CD(new Set),i=void 0!==t&&e.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),{promise:l,resolve:s}=r((()=>GR()),[]),u=SD((e=>{n.current.add(e)}),[n]),c=SD(it((async()=>{await Promise.all(n.current),s()}),1e3),[s,n]);return o((async()=>{i&&await l}),[l,i]),r((()=>({viewState:t,isDownloadedAsPDForImage:i,notifyIsDoneRendering:c,waitForPromise:u})),[c,i,t,u])})(n),[R,L]=((e,t)=>yg((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(y,u),A=RD(u,i,R),I=b(),M=vg(u,l),{translator:D,language:P}=_D(),{pageInfo:_,updatePageInfo:O}=((n,r)=>{const{size:o,layout:{qHyperCube:{qSize:i}}}=n,a=r.isDownloadedAsPDForImage||n.isSnapshot,l=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(n),[s,u]=e((()=>{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})(n,r);return{page:e,shouldShowPagination:i.qcy>o.y&&!a,...ID(i.qcy,e,l)}}));return t((()=>{u((e=>({...e,...ID(n.layout.qHyperCube.qSize.qcy,e.page,l),shouldShowPagination:n.layout.qHyperCube.qSize.qcy>n.size.y&&!a})))}),[n.layout.qHyperCube.qSize.qcy,n.size.y,u,a,l]),t((()=>{const{page:e,totalPages:t}=s;if(e+1>t){const e=t-1,n=AD({...s,page:e});u({...s,page:e,rowsOnCurrentPage:n})}}),[s]),{pageInfo:s,updatePageInfo:e=>u({...s,...e,rowsOnCurrentPage:AD({...s,...e})})}})(A,w),T=((e,t,n)=>r((()=>((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}})(n,t.snapshotData)),[n,e.page,t.snapshotData]))(_,u,w),k=DD({rect:v(),layoutService:A,viewService:T,model:y,pageInfo:_}),[q,N]=LD({model:y,layoutService:A,viewService:T,pageInfo:_,rect:k}),F=r((()=>((e,t,n)=>{var r,o,i,a,l,s,u,c,d,p,f,h,m,g,b,v,y,x,S,E,C,w,R,L,A,I,M,D,P,_,O,T,k,q,N,F,z,j,$,G,B,H,W,V,Y,U,K;const X=null===(r=t.layout.components)||void 0===r?void 0:r.find((e=>"theme"===e.key)),J=null==X?void 0:X.header,Z=null==X?void 0:X.dimensionValues,Q=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,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[dD.LineClamp])&&void 0!==i?i:oe(pD.Grid,fD.Grid,hD.LineClamp))&&void 0!==o?o:1),ae=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==re?void 0:re[dD.ColumnLineClamp])&&void 0!==l?l:oe(pD.Grid,fD.Grid,hD.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=gD(e,null==J?void 0:J[dD.Background]))&&void 0!==u?u:oe(pD.Dimension,fD.LabelName,hD.BackgroundColor))&&void 0!==s?s:on.Transparent,se={header:{fontSize:null!==(c=null!==(d=mD(null==J?void 0:J[dD.FontSize]))&&void 0!==d?d:oe(pD.Dimension,fD.LabelName,hD.FontSize))&&void 0!==c?c:Zt,fontFamily:null!==(p=null!==(f=null==J?void 0:J[dD.FontFamily])&&void 0!==f?f:oe(pD.Dimension,fD.LabelName,hD.FontFamily))&&void 0!==p?p:Qt,fontWeight:vD(null==J?void 0:J[dD.FontStyle],en),fontStyle:yD(null==J?void 0:J[dD.FontStyle]),textDecoration:xD(null==J?void 0:J[dD.FontStyle]),color:null!==(h=null!==(m=gD(e,null==J?void 0:J[dD.FontColor]))&&void 0!==m?m:oe(pD.Dimension,fD.LabelName,hD.Color))&&void 0!==h?h:sm.TEXT,background:le,hoverBackground:sg(le,uD),activeBackground:sg(le,cD)},dimensionValues:{fontSize:null!==(g=null!==(b=mD(null==Z?void 0:Z[dD.FontSize]))&&void 0!==b?b:oe(pD.Dimension,fD.LabelValue,hD.FontSize))&&void 0!==g?g:Zt,fontFamily:null!==(v=null!==(y=null==Z?void 0:Z[dD.FontFamily])&&void 0!==y?y:oe(pD.Dimension,fD.LabelValue,hD.FontFamily))&&void 0!==v?v:Qt,fontWeight:vD(null==Z?void 0:Z[dD.FontStyle],void 0),fontStyle:yD(null==Z?void 0:Z[dD.FontStyle]),textDecoration:xD(null==Z?void 0:Z[dD.FontStyle]),color:null!==(x=null!==(S=gD(e,null==Z?void 0:Z[dD.FontColor]))&&void 0!==S?S:oe(pD.Dimension,fD.LabelValue,hD.Color))&&void 0!==x?x:sm.TEXT,background:null!==(E=null!==(C=gD(e,null==Z?void 0:Z[dD.Background]))&&void 0!==C?C:oe(pD.Dimension,fD.LabelValue,hD.BackgroundColor))&&void 0!==E?E:on.Transparent},measureValues:{fontSize:null!==(w=null!==(R=mD(null==Q?void 0:Q[dD.FontSize]))&&void 0!==R?R:oe(pD.Measure,fD.LabelValue,hD.FontSize))&&void 0!==w?w:Zt,fontFamily:null!==(L=null!==(A=null==Q?void 0:Q[dD.FontFamily])&&void 0!==A?A:oe(pD.Measure,fD.LabelValue,hD.FontFamily))&&void 0!==L?L:Qt,fontWeight:vD(null==Q?void 0:Q[dD.FontStyle],"normal"),fontStyle:yD(null==Q?void 0:Q[dD.FontStyle]),textDecoration:xD(null==Q?void 0:Q[dD.FontStyle]),color:null!==(I=null!==(M=gD(e,null==Q?void 0:Q[dD.FontColor]))&&void 0!==M?M:oe(pD.Measure,fD.LabelValue,hD.Color))&&void 0!==I?I:on.FontSecondary,background:null!==(D=null!==(P=gD(e,null==Q?void 0:Q[dD.Background]))&&void 0!==P?P:oe(pD.Measure,fD.LabelValue,hD.BackgroundColor))&&void 0!==D?D:on.Transparent},measureLabels:{fontWeight:vD(null==ee?void 0:ee[dD.FontStyle],"normal"),fontStyle:yD(null==ee?void 0:ee[dD.FontStyle]),textDecoration:xD(null==ee?void 0:ee[dD.FontStyle]),color:null!==(_=null!==(O=gD(e,null==ee?void 0:ee[dD.FontColor]))&&void 0!==O?O:oe(pD.Measure,fD.LabelName,hD.Color))&&void 0!==_?_:on.FontSecondary,background:null!==(T=null!==(k=gD(e,null==ee?void 0:ee[dD.Background]))&&void 0!==k?k:oe(pD.Measure,fD.LabelName,hD.BackgroundColor))&&void 0!==T?T:on.Transparent},totalValues:{fontWeight:vD(null==te?void 0:te[dD.FontStyle],en),fontStyle:yD(null==te?void 0:te[dD.FontStyle]),textDecoration:xD(null==te?void 0:te[dD.FontStyle]),color:null!==(q=null!==(N=gD(e,null==te?void 0:te[dD.FontColor]))&&void 0!==N?N:oe(pD.Total,fD.LabelValue,hD.Color))&&void 0!==q?q:sm.TEXT,background:null!==(F=null!==(z=gD(e,null==te?void 0:te[dD.Background]))&&void 0!==z?z:oe(pD.Total,fD.LabelValue,hD.BackgroundColor))&&void 0!==F?F:on.Transparent},nullValues:{fontWeight:vD(null==ne?void 0:ne[dD.FontStyle],"normal"),fontStyle:yD(null==ne?void 0:ne[dD.FontStyle]),textDecoration:xD(null==ne?void 0:ne[dD.FontStyle]),color:null!==(j=null!==($=gD(e,null==ne?void 0:ne[dD.FontColor]))&&void 0!==$?$:oe(pD.Null,fD.LabelValue,hD.Color))&&void 0!==j?j:sm.TEXT,background:null!==(G=null!==(B=gD(e,null==ne?void 0:ne[dD.Background]))&&void 0!==B?B:oe(pD.Null,fD.LabelValue,hD.BackgroundColor))&&void 0!==G?G:on.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(H=null!==(W=gD(e,null==re?void 0:re[dD.Border]))&&void 0!==W?W:oe(pD.Grid,fD.Grid,hD.BorderColor))&&void 0!==H?H:on.DividerLight,divider:null!==(V=null!==(Y=gD(e,null==re?void 0:re[dD.Divider]))&&void 0!==Y?Y:oe(pD.Grid,fD.Divider,hD.BorderColor))&&void 0!==V?V:on.DividerDark,background:null!==(U=null!==(K=gD(e,null==re?void 0:re[dD.Background]))&&void 0!==K?K:oe(pD.Grid,fD.Grid,hD.BackgroundColor))&&void 0!==U?U:on.Transparent}};return se.headerCellHeight=Math.max(bD(se.header.fontSize,ae),bD(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(bD(se.measureValues.fontSize,ie),bD(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=bD(se.dimensionValues.fontSize,1),se})(M,A,i)),[M,A,i]),z=(e=>r((()=>[...new Set([wD(e.header),wD(e.dimensionValues),wD({...e.dimensionValues,...e.measureLabels}),wD({...e.dimensionValues,...e.nullValues}),wD({...e.dimensionValues,...e.totalValues}),wD(e.measureValues),wD({...e.measureValues,...e.nullValues}),wD({...e.measureValues,...e.totalValues})])]),[e]))(F),j=(e=>{const[t,n]=o((()=>Promise.all(e.map((e=>document.fonts.load(e))))),[e]);return n?(console.warn("Failed to load font:",n),!0):!!t})(z);i.isEnabled("CLIENT_IM6278_PIVOT_COPYCELL")&&Bb(),t((()=>{!N&&y&&(null==k?void 0:k.width)&&(null==k?void 0:k.height)&&I&&T&&A&&F&&!!q&&!L&&j&&sD(s,{model:y,app:x,rect:k,selections:I,viewService:T,layoutService:A,downloadService:w,qPivotDataPages:q,styleService:F,translator:D,pageInfo:_,updatePageInfo:O,interactions:C,embed:S,keyboard:E,theme:M,env:n})}),[y,x,k,null==k?void 0:k.width,null==k?void 0:k.height,C,I,T,A,w,N,q,F,s,j,D,P,_,O,R,L,S,E,M,n])},TD={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:[]},kD=e=>({...TD,qHyperCubeDef:{...TD.qHyperCubeDef,qIndentMode:e.flags.isEnabled("CLIENT_IM_5975_INDENT_MODE")}});function qD(e){return{qae:{properties:{initial:kD(e)},data:ft(e)},ext:_n(e),component(){OD(e)}}}export{qD as default};
|