@nebula.js/sn-pivot-table 3.1.0 → 3.2.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/api-specifications/properties.json +1 -1
- package/core/esm/index.js +12 -12
- package/dist/sn-pivot-table.js +14 -14
- package/dist/sn-pivot-table.systemjs.js +12 -12
- package/package.json +16 -16
- package/sn-pivot-table-ext/dist/sn-pivot-table.js +14 -14
- package/sn-pivot-table-ext/sn-pivot-table.qext +1 -1
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-pivot-table v3.
|
|
2
|
+
* @nebula.js/sn-pivot-table v3.2.0
|
|
3
3
|
* Copyright (c) 2024 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
System.register(["@nebula.js/stardust","react","react-dom"],(function(e){"use strict";var t,r,n,o,i,a,l,s,u,c,d,p,f,h,m,g,b,v,y,x,S,E,C,w,R,L,A,D,_,I,M,O,P,k,T;return{setters:[function(e){t=e.useTheme,r=e.useMemo,n=e.usePromise,o=e.useEffect,i=e.useState,a=e.onTakeSnapshot,l=e.useTranslator,s=e.useElement,u=e.useStaleLayout,c=e.useModel,d=e.useApp,p=e.useEmbed,f=e.useKeyboard,h=e.useInteractionState,m=e.useSelections,g=e.useRect},function(e){b=e.useMemo,v=e.useState,y=e.default,x=e.useContext,S=e.createElement,E=e,C=e.Children,w=e.isValidElement,R=e.cloneElement,L=e.forwardRef,A=e.useRef,D=e.useCallback,_=e.useEffect,I=e.createContext,M=e.memo,O=e.useLayoutEffect,P=e.PureComponent},function(e){k=e.default,T=e}],execute:function(){function q(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function N(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}e("default",(function(e){return{qae:{properties:{initial:iA},data:st(e)},ext:Cr(e),component(){oA(e)}}}));var F={exports:{}};self,F.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,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(r in t)n=s(d,r),d!==(o=s(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,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(r in t)n=s(d,r),d!==(o=s(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Me});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var l=a[i];return a[i]=r,{updated:r,previous:l}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),h(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=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,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var l=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.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 r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return m(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=h(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(l);if(-1!==r){var n=t.indexOf(s);if(-1!==n)return t.substring(r+l.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var l=S({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),r=e.indexOf(s);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),L={},A=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function _(e){return void 0===e}function I(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function M(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=_(e[r||t])?i:e[t],e=e[r||t]}})),e}function O(e,t){var r=!0;if(D(e)&&D(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){O(e[n],t[n])||(r=!1)})),r);if(A(e)&&A(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!O(e[n],t[n]))return!1;return!0}return e===t}L.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(r,"/").concat(o);O(i,a)||I(t,o)||(_(a)?n.push({op:"add",path:l,value:i}):D(i)&&D(a)?n=n.concat(L.generate(a,i,l)):A(i)&&A(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&_(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(O(t,o))return n;if(!_(t[0])&&_(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(n.push({op:"remove",path:"".concat(r,"/").concat(l)}),o.splice(l,1)):n=n.concat(L.generate(o[l],t[i],"".concat(r,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(n.push({op:"move",path:"".concat(r,"/").concat(s),from:"".concat(r,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return n}(a,i,l)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){_(t[o])&&!I(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},L.apply=function(e,t){t.forEach((function(t){var r,n,o=M(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(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)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(D(a)&&D(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!I(r,e)&&delete r[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=M(e,t.from);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,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},L.updateObject=function(e,t){Object.keys(e).length?L.apply(e,L.generate(e,t)):R(e,t)};const P=L,k=function(e,r,n){if(!e)return Promise.resolve();var o=P.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var T="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===T)return r[n]}function N(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===T)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(r,s),p=E.getAboveComp(r,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var h=E.getDimComp(u,1),m=E.getDimComp(u,0),g=E.getAggrComp(f,h,m);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=q(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=q(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(T))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var $="movingAverage";function j(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===$)return r[n]}function G(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===$)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var 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,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return r;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),h=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",h);else{var m=E.getRangeComp("RangeSum",h),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(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 r=j(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=j(t,e);return r&&!r.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,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf($))return!1;var i=j(t,e);return i&&!i.disabled}};return r}};var W="timeSeriesDecomposition";function V(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===W)return r[n]}function Y(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===W)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var U={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,U),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=V(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var r=V(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(W))return!1;var i=V(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),h=E.getDimComp(u,0),m=E.getAggrComp(p,f,h);p=r.showExcludedValues?E.getExcludedComp({modifier:r,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]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var l=ae(t),s=le(t,r,n),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,s,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t,r){if(1===e){var n=oe(t,0);t.splice(n,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,r){if(e<2){var n=oe(t,0);t.splice(n,1)}return t}(o,i),i=function(e,t,r){if(0===e){var n=oe(t,1);t.splice(n,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",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))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,we,i(e,Ee)))},restoreBase:function(e){Ae.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,Ee,i(e,we)),i(e,Re)&&i(e,Le)&&r(e,Re,i(e,Le)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const De=Ae;function _e(e){return _e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_e(e)}var Ie={accumulation:z,movingAverage:H,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Me={modifiers:Ie,apply:Pe,applyModifiers:ke,cleanUpMeasure:Te,destroy:function(e){e&&Oe[e.id]&&Oe[e.id].masterItemSubscriber&&(Oe[e.id].masterItemSubscriber&&Oe[e.id].masterItemSubscriber.unsubscribe(),delete Oe[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:De.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ie[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Ie[e]&&Ie[e].isApplicable({properties:r,layout:n})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=$e(e);Ye({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var Oe={};function Pe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Oe[r.id]=Oe[r.id]||{isFirstTime:!0};var u=Oe[r.id].isFirstTime;if(Oe[r.id].isFirstTime=!1,n&&"object"===_e(n))return ke({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Oe[r.id].lastReloadTime;if(Oe[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ye({modifiers:$e(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Ge(n);var o=Qe(n);return Ue({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).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 r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===_e(e)&&!e.disabled){if(r++,"object"!==_e(Ie[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Ie[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&He(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),ke({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===_e(e.base)}))}(p)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return ze(n).forEach((function(e){return Te(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(s)}function ke(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=s?t()(!0,{},o):o),Ge(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(r||(r=ze(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return Te(e)})),Promise.resolve();var s=a?void 0:Qe(n);return Ue({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ye({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;De.isValid(r)||De.initBase(r,!0);var s=r.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===_e(e)&&!e.disabled){if(l++,"object"!==_e(Ie[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ie[e.type].initModifier(e,r);var s=r.qLibraryId||c&&c.qLibraryId;s?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Ie[n.type].generateExpression({expression:l,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:s,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Ie[n.type].updateModifier&&Ie[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),l=""===a?a:Ie[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),Be(r)):Te(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function Te(e){!function(e){var t=$e(e);return Array.isArray(t)&&t.some((function(e){return"object"===_e(e)&&!e.disabled&&!Ie[e.type]}))}(e)?De.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ye({modifiers:$e(e),properties:r,layout:n})}))}function Ne(e){var t=$e(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Ie[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||Ie[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function $e(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function je(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Ge(e){ze(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&je(r)!==e.qDef.qDef?delete e.qDef.base:!De.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function Be(e){var t=$e(e);Array.isArray(t)&&t.forEach((function(t){"object"===_e(t)&&(t.disabled||!Ie[t.type]&&je(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,r=e.properties,n=e.layout;return!We(t)&&Ye({modifiers:$e(t),properties:r,layout:n})}function Ye(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==_e(e)||e.disabled||!Ie[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ie[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ue(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):k(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===_e(e)&&!e.disabled&&Ie[e.type]&&Ie[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=ze(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=$e(t);if(Ye({modifiers:n,properties:e})){var i=We(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Oe[t.id].masterItemSubscriber=Oe[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},r=i(e,"qInfo.qType");return r&&l[r]&&l[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=s(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return Pe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Oe[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>Ge});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var l=n[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(645),f=r.n(p);const h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var l,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,s(n.qMeasures));var a,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(n=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=a}var S=r(229),E=r.n(S);function C(e,t){var r=E()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function w(e,t){return E()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var L=Math.pow(2,53)-1;function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const _=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},I=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},M=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},O=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}}},P=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},k=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=r.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},T=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=r.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},q=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},l=R(a.max,o.dimensions.length,L),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,L),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},N=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},r,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},$=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>r&&r>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},j=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return 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 r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},G=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return D(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 D(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?D(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},B=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function H(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const W={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,r||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:s}),m({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=F({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?O():w,L=s.defaultMeasure,A=void 0===L?P():L;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&$({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),k({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),T({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:A}),j({newProperties:g,dataDefinition:a,hypercubePath:u}),G({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),I("qMaxStackedCells",b,v),I("qNoOfLeftDims",b,v),M("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),M("qMode",b,v,"S"),M("qReductionMode",b,v,"N"),M("qSortbyYValue",b,v),M("qIndentMode",b,v),M("qShowTotalsAbove",b,v),_(g,t,n),m.qProperty=g;var D=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:D}),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,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function U(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!V[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],l=t.length;if(Y(a,t,n,o),U(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})),t.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}))}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(n,o);var s=n[n.length-1];if(s){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,l={};switch(e){case"dimension":r.qLibraryId?(l.type="dimension",l.name=r.qLibraryId,l.id=r.qLibraryId):(l.type="field",t?(l.name=r.label||r.qDef,l.id=r.qDef):(l.name=r.qDef.qFieldDefs[0],l.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(l.expression=i)):(l.type="expression",t?(l.name=r.label||r.qExpression,l.id=r.qExpression):(l.name=r.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=r?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(re(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:r||l,key:r||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}n||(i.auto=!1,i.mode=a)}function le(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===l}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?le(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==l&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:l,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||n[0])),!!l}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},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",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=W.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=W.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),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,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?H(r,"unsupportedAutoMinMax")||E()(r.measureAxis,t.measureAxis):H(r,"supportedAutoMinMax")||E()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,r.properties.measureAxes[t[0].axis])):E()(l,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},Ee={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function we(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(r,n,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(r,n,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Le="qHyperCubeDef.qMeasures",Ae="conditionalColoring",De="measures",_e="qDef.conditionalColoring";const Ie={quarantine:function(e){we({properties:e,arrayPath:Le,quarantineName:Ae,arrayName:De,itemPath:_e})},unquarantine:function(e){Re({properties:e,arrayPath:Le,itemPath:_e,arrayName:De,quarantineName:Ae})}};var Me="qHyperCubeDef.qMeasures",Oe="measures",Pe="qHyperCubeDef.qDimensions",ke="dimensions",Te="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",ze="qCalcCondition",$e="conditionalShowHide";const je={quarantine:function(e){we({properties:e,arrayPath:Me,quarantineName:$e,arrayName:Oe,itemPath:ze}),we({properties:e,arrayPath:Pe,quarantineName:$e,arrayName:ke,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Me,quarantineName:$e,arrayName:Oe,itemPath:ze}),Re({properties:e,arrayPath:Pe,quarantineName:$e,arrayName:ke,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:Te,quarantineName:$e,arrayName:qe,itemPath:ze}),we({properties:e,arrayPath:Ne,quarantineName:$e,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Te,quarantineName:$e,arrayName:qe,itemPath:ze}),Re({properties:e,arrayPath:Ne,quarantineName:$e,arrayName:Fe,itemPath:ze})}},Ge={hypercube:W,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:H,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:Ie,conditionalShow:je}})(),n.default})();var z=q(F.exports);const $="qHyperCubeDef.qDimensions",j="dimensions",G="qDef.representation",B="tableRepresentation",H=e=>{z.unquarantineArrayProp({properties:e,arrayPath:$,itemPath:G,arrayName:j,quarantineName:B})},W=e=>{z.quarantineArrayProp({properties:e,arrayPath:$,itemPath:G,arrayName:j,quarantineName:B})};var V=["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"],Y=["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 U(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Y:V}var K=Object.prototype.hasOwnProperty,X=Object.prototype.toString,J=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,Q=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===X.call(e)},ee=function(e){if(!e||"[object Object]"!==X.call(e))return!1;var t,r=K.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&K.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||K.call(e,t)},te=function(e,t){J&&"__proto__"===t.name?J(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},re=function(e,t){if("__proto__"===t){if(!K.call(e,t))return;if(Z)return Z(e,t).value}return e[t]};function ne(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function oe(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function ie(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,r,n,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(r in t)n=re(l,r),l!==(o=re(t,r))&&(c&&o&&(ee(o)||(i=Q(o)))?(i?(i=!1,a=n&&Q(n)?n:[]):a=n&&ee(n)?n:{},te(l,{name:r,newValue:e(c,a,o)})):void 0!==o&&te(l,{name:r,newValue:o}));return l}));var ae=1/.7,le="\\s*([+-]?\\d+)\\s*",se="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ue="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ce=/^#([0-9a-f]{3,8})$/,de=new RegExp(`^rgb\\(${le},${le},${le}\\)$`),pe=new RegExp(`^rgb\\(${ue},${ue},${ue}\\)$`),fe=new RegExp(`^rgba\\(${le},${le},${le},${se}\\)$`),he=new RegExp(`^rgba\\(${ue},${ue},${ue},${se}\\)$`),me=new RegExp(`^hsl\\(${se},${ue},${ue}\\)$`),ge=new RegExp(`^hsla\\(${se},${ue},${ue},${se}\\)$`),be={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 ve(){return this.rgb().formatHex()}function ye(){return this.rgb().formatRgb()}function xe(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ce.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Se(t):3===r?new Re(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Ee(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Ee(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=de.exec(e))?new Re(t[1],t[2],t[3],1):(t=pe.exec(e))?new Re(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=fe.exec(e))?Ee(t[1],t[2],t[3],t[4]):(t=he.exec(e))?Ee(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=me.exec(e))?Me(t[1],t[2]/100,t[3]/100,1):(t=ge.exec(e))?Me(t[1],t[2]/100,t[3]/100,t[4]):be.hasOwnProperty(e)?Se(be[e]):"transparent"===e?new Re(NaN,NaN,NaN,0):null}function Se(e){return new Re(e>>16&255,e>>8&255,255&e,1)}function Ee(e,t,r,n){return n<=0&&(e=t=r=NaN),new Re(e,t,r,n)}function Ce(e){return e instanceof ie||(e=xe(e)),e?new Re((e=e.rgb()).r,e.g,e.b,e.opacity):new Re}function we(e,t,r,n){return 1===arguments.length?Ce(e):new Re(e,t,r,null==n?1:n)}function Re(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Le(){return`#${Ie(this.r)}${Ie(this.g)}${Ie(this.b)}`}function Ae(){const e=De(this.opacity);return`${1===e?"rgb(":"rgba("}${_e(this.r)}, ${_e(this.g)}, ${_e(this.b)}${1===e?")":`, ${e})`}`}function De(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function _e(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ie(e){return((e=_e(e))<16?"0":"")+e.toString(16)}function Me(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Pe(e,t,r,n)}function Oe(e){if(e instanceof Pe)return new Pe(e.h,e.s,e.l,e.opacity);if(e instanceof ie||(e=xe(e)),!e)return new Pe;if(e instanceof Pe)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Pe(a,l,s,e.opacity)}function Pe(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function ke(e){return(e=(e||0)%360)<0?e+360:e}function Te(e){return Math.max(0,Math.min(1,e||0))}function qe(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}ne(ie,xe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ve,formatHex:ve,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Oe(this).formatHsl()},formatRgb:ye,toString:ye}),ne(Re,we,oe(ie,{brighter(e){return e=null==e?ae:Math.pow(ae,e),new Re(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Re(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Re(_e(this.r),_e(this.g),_e(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:Le,formatHex:Le,formatHex8:function(){return`#${Ie(this.r)}${Ie(this.g)}${Ie(this.b)}${Ie(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ae,toString:Ae})),ne(Pe,(function(e,t,r,n){return 1===arguments.length?Oe(e):new Pe(e,t,r,null==n?1:n)}),oe(ie,{brighter(e){return e=null==e?ae:Math.pow(ae,e),new Pe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Pe(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Re(qe(e>=240?e-240:e+120,o,n),qe(e,o,n),qe(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Pe(ke(this.h),Te(this.s),Te(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("}${ke(this.h)}, ${100*Te(this.s)}%, ${100*Te(this.l)}%${1===e?")":`, ${e})`}`}}));const Ne=Math.PI/180,Fe=180/Math.PI,ze=4/29,$e=6/29,je=3*$e*$e;function Ge(e){if(e instanceof Be)return new Be(e.l,e.a,e.b,e.opacity);if(e instanceof Ue)return Ke(e);e instanceof Re||(e=Ce(e));var t,r,n=Ye(e.r),o=Ye(e.g),i=Ye(e.b),a=He((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=He((.4360747*n+.3850649*o+.1430804*i)/.96422),r=He((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Be(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Be(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function He(e){return e>.008856451679035631?Math.pow(e,1/3):e/je+ze}function We(e){return e>$e?e*e*e:je*(e-ze)}function Ve(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Ye(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ue(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Ke(e){if(isNaN(e.h))return new Be(e.l,0,0,e.opacity);var t=e.h*Ne;return new Be(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ne(Be,(function(e,t,r,n){return 1===arguments.length?Ge(e):new Be(e,t,r,null==n?1:n)}),oe(ie,{brighter(e){return new Be(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Be(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new Re(Ve(3.1338561*(t=.96422*We(t))-1.6168667*(e=1*We(e))-.4906146*(r=.82521*We(r))),Ve(-.9787684*t+1.9161415*e+.033454*r),Ve(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),ne(Ue,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Ue)return new Ue(e.h,e.c,e.l,e.opacity);if(e instanceof Be||(e=Ge(e)),0===e.a&&0===e.b)return new Ue(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Fe;return new Ue(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Ue(e,t,r,null==n?1:n)}),oe(ie,{brighter(e){return new Ue(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Ue(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Ke(this).rgb()}}));var Xe=e=>()=>e;function Je(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Xe(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?Je:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):Xe(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=we(e)).r,(t=we(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Je(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var Ze,Qe=["__proto__","constructor"];function et(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!Qe.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var l=n[a];void 0===i[l]&&(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}}}function tt(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function rt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=ot)):void 0===t&&(t=nt);for(var r,n,o,i,a,l=new lt(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new lt(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(at)}function nt(e){return e.children}function ot(e){return Array.isArray(e)?e[1]:null}function it(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function at(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function lt(e){this.data=e,this.depth=this.height=0,this.parent=null}function st(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,r,n){const o=n&&"rows"===n.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")}}]}}lt.prototype=rt.prototype={constructor:lt,count:function(){return this.eachAfter(tt)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return rt(this).eachBefore(it)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},Ze=function(e){
|
|
7
|
+
System.register(["@nebula.js/stardust","react","react-dom"],(function(e){"use strict";var t,r,n,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,D,_,M,P,O,k,T,q,N;return{setters:[function(e){t=e.useTheme,r=e.useMemo,n=e.usePromise,o=e.useEffect,i=e.useState,a=e.onTakeSnapshot,l=e.useImperativeHandle,s=e.useTranslator,u=e.useOptions,c=e.useElement,d=e.useStaleLayout,p=e.useModel,f=e.useApp,h=e.useEmbed,m=e.useKeyboard,g=e.useInteractionState,b=e.useSelections,v=e.useRect},function(e){y=e.useMemo,x=e.useState,S=e.default,E=e.useContext,C=e.createElement,w=e,R=e.Children,L=e.isValidElement,A=e.cloneElement,I=e.forwardRef,D=e.useRef,_=e.useCallback,M=e.useEffect,P=e.createContext,O=e.memo,k=e.useLayoutEffect,T=e.PureComponent},function(e){q=e.default,N=e}],execute:function(){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 r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}e("default",(function(e){return{qae:{properties:{initial:SA},data:ct(e)},ext:Lr(e),component(){xA(e)}}}));var $={exports:{}};self,$.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,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(r in t)n=s(d,r),d!==(o=s(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,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(r in t)n=s(d,r),d!==(o=s(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Me});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var l=a[i];return a[i]=r,{updated:r,previous:l}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),h(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=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,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var l=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.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 r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return m(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=h(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(l);if(-1!==r){var n=t.indexOf(s);if(-1!==n)return t.substring(r+l.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var l=S({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),r=e.indexOf(s);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),L={},A=Array.isArray;function I(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function D(e){return void 0===e}function _(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function M(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=D(e[r||t])?i:e[t],e=e[r||t]}})),e}function P(e,t){var r=!0;if(I(e)&&I(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){P(e[n],t[n])||(r=!1)})),r);if(A(e)&&A(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!P(e[n],t[n]))return!1;return!0}return e===t}L.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(r,"/").concat(o);P(i,a)||_(t,o)||(D(a)?n.push({op:"add",path:l,value:i}):I(i)&&I(a)?n=n.concat(L.generate(a,i,l)):A(i)&&A(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&D(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(P(t,o))return n;if(!D(t[0])&&D(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(n.push({op:"remove",path:"".concat(r,"/").concat(l)}),o.splice(l,1)):n=n.concat(L.generate(o[l],t[i],"".concat(r,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(n.push({op:"move",path:"".concat(r,"/").concat(s),from:"".concat(r,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return n}(a,i,l)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){D(t[o])&&!_(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},L.apply=function(e,t){t.forEach((function(t){var r,n,o=M(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(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)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(I(a)&&I(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!_(r,e)&&delete r[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=M(e,t.from);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,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},L.updateObject=function(e,t){Object.keys(e).length?L.apply(e,L.generate(e,t)):R(e,t)};const O=L,k=function(e,r,n){if(!e)return Promise.resolve();var o=O.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var T="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===T)return r[n]}function N(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===T)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(r,s),p=E.getAboveComp(r,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var h=E.getDimComp(u,1),m=E.getDimComp(u,0),g=E.getAggrComp(f,h,m);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=q(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=q(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(T))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var $="movingAverage";function j(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===$)return r[n]}function G(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===$)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var H={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const B={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return r;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),h=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",h);else{var m=E.getRangeComp("RangeSum",h),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(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 r=j(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=j(t,e);return r&&!r.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,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf($))return!1;var i=j(t,e);return i&&!i.disabled}};return r}};var W="timeSeriesDecomposition";function V(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===W)return r[n]}function Y(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===W)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var U={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,U),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=V(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var r=V(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(W))return!1;var i=V(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),h=E.getDimComp(u,0),m=E.getAggrComp(p,f,h);p=r.showExcludedValues?E.getExcludedComp({modifier:r,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]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var l=ae(t),s=le(t,r,n),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,s,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t,r){if(1===e){var n=oe(t,0);t.splice(n,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,r){if(e<2){var n=oe(t,0);t.splice(n,1)}return t}(o,i),i=function(e,t,r){if(0===e){var n=oe(t,1);t.splice(n,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",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))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,we,i(e,Ee)))},restoreBase:function(e){Ae.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,Ee,i(e,we)),i(e,Re)&&i(e,Le)&&r(e,Re,i(e,Le)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const Ie=Ae;function De(e){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}var _e={accumulation:z,movingAverage:B,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Me={modifiers:_e,apply:Oe,applyModifiers:ke,cleanUpMeasure:Te,destroy:function(e){e&&Pe[e.id]&&Pe[e.id].masterItemSubscriber&&(Pe[e.id].masterItemSubscriber&&Pe[e.id].masterItemSubscriber.unsubscribe(),delete Pe[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:Ie.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return _e[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return _e[e]&&_e[e].isApplicable({properties:r,layout:n})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=$e(e);Ye({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var Pe={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Pe[r.id]=Pe[r.id]||{isFirstTime:!0};var u=Pe[r.id].isFirstTime;if(Pe[r.id].isFirstTime=!1,n&&"object"===De(n))return ke({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Pe[r.id].lastReloadTime;if(Pe[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ye({modifiers:$e(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Ge(n);var o=Qe(n);return Ue({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).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 r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===De(e)&&!e.disabled){if(r++,"object"!==De(_e[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=_e[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Be(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),ke({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===De(e.base)}))}(p)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return ze(n).forEach((function(e){return Te(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(s)}function ke(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=s?t()(!0,{},o):o),Ge(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(r||(r=ze(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return Te(e)})),Promise.resolve();var s=a?void 0:Qe(n);return Ue({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ye({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Ie.isValid(r)||Ie.initBase(r,!0);var s=r.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===De(e)&&!e.disabled){if(l++,"object"!==De(_e[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)");_e[e.type].initModifier(e,r);var s=r.qLibraryId||c&&c.qLibraryId;s?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:_e[n.type].generateExpression({expression:l,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:s,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof _e[n.type].updateModifier&&_e[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),l=""===a?a:_e[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),He(r)):Te(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function Te(e){!function(e){var t=$e(e);return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&!_e[e.type]}))}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ye({modifiers:$e(e),properties:r,layout:n})}))}function Ne(e){var t=$e(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(_e[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||_e[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function $e(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function je(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Ge(e){ze(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&je(r)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function He(e){var t=$e(e);Array.isArray(t)&&t.forEach((function(t){"object"===De(t)&&(t.disabled||!_e[t.type]&&je(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Be(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Be(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,r=e.properties,n=e.layout;return!We(t)&&Ye({modifiers:$e(t),properties:r,layout:n})}function Ye(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==De(e)||e.disabled||!_e[e.type])&&(void 0===o[e.type]&&(o[e.type]=_e[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ue(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):k(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&_e[e.type]&&_e[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=ze(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=$e(t);if(Ye({modifiers:n,properties:e})){var i=We(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Pe[t.id].masterItemSubscriber=Pe[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},r=i(e,"qInfo.qType");return r&&l[r]&&l[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=s(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Pe[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>Ge});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var l=n[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(645),f=r.n(p);const h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var l,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,s(n.qMeasures));var a,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(n=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=a}var S=r(229),E=r.n(S);function C(e,t){var r=E()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function w(e,t){return E()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var L=Math.pow(2,53)-1;function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const D=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},_=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},M=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},P=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:[]}},k=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=r.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},T=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=r.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},q=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},l=R(a.max,o.dimensions.length,L),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,L),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},N=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},r,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},$=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>r&&r>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},j=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return 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 r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},G=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return I(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},H=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function B(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const W={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,r||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:s}),m({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=F({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?P():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})&&$({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),k({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),T({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:A}),j({newProperties:g,dataDefinition:a,hypercubePath:u}),G({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),_("qMaxStackedCells",b,v),_("qNoOfLeftDims",b,v),M("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),M("qMode",b,v,"S"),M("qReductionMode",b,v,"N"),M("qSortbyYValue",b,v),M("qIndentMode",b,v),M("qShowTotalsAbove",b,v),D(g,t,n),m.qProperty=g;var I=i.getValue(c||{},"support.modifiers");return H({measures:v.qMeasures,modifierTypes:I}),p&&B(m.qProperty,"storedFilters"),"S"===v.qMode&&h&&B(m.qProperty,"dynamicScript"),m}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function Y(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function U(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!V[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],l=t.length;if(Y(a,t,n,o),U(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})),t.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}))}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(n,o);var s=n[n.length-1];if(s){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,l={};switch(e){case"dimension":r.qLibraryId?(l.type="dimension",l.name=r.qLibraryId,l.id=r.qLibraryId):(l.type="field",t?(l.name=r.label||r.qDef,l.id=r.qDef):(l.name=r.qDef.qFieldDefs[0],l.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(l.expression=i)):(l.type="expression",t?(l.name=r.label||r.qExpression,l.id=r.qExpression):(l.name=r.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=r?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(re(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:r||l,key:r||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}n||(i.auto=!1,i.mode=a)}function le(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===l}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?le(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==l&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:l,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||n[0])),!!l}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},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",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=W.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=W.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),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,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?B(r,"unsupportedAutoMinMax")||E()(r.measureAxis,t.measureAxis):B(r,"supportedAutoMinMax")||E()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,r.properties.measureAxes[t[0].axis])):E()(l,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},Ee={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function we(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(r,n,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(r,n,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Le="qHyperCubeDef.qMeasures",Ae="conditionalColoring",Ie="measures",De="qDef.conditionalColoring";const _e={quarantine:function(e){we({properties:e,arrayPath:Le,quarantineName:Ae,arrayName:Ie,itemPath:De})},unquarantine:function(e){Re({properties:e,arrayPath:Le,itemPath:De,arrayName:Ie,quarantineName:Ae})}};var Me="qHyperCubeDef.qMeasures",Pe="measures",Oe="qHyperCubeDef.qDimensions",ke="dimensions",Te="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",ze="qCalcCondition",$e="conditionalShowHide";const je={quarantine:function(e){we({properties:e,arrayPath:Me,quarantineName:$e,arrayName:Pe,itemPath:ze}),we({properties:e,arrayPath:Oe,quarantineName:$e,arrayName:ke,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Me,quarantineName:$e,arrayName:Pe,itemPath:ze}),Re({properties:e,arrayPath:Oe,quarantineName:$e,arrayName:ke,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:Te,quarantineName:$e,arrayName:qe,itemPath:ze}),we({properties:e,arrayPath:Ne,quarantineName:$e,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Te,quarantineName:$e,arrayName:qe,itemPath:ze}),Re({properties:e,arrayPath:Ne,quarantineName:$e,arrayName:Fe,itemPath:ze})}},Ge={hypercube:W,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:B,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:_e,conditionalShow:je}})(),n.default})();var j=F($.exports);const G="qHyperCubeDef.qDimensions",H="dimensions",B="qDef.representation",W="tableRepresentation",V=e=>{j.unquarantineArrayProp({properties:e,arrayPath:G,itemPath:B,arrayName:H,quarantineName:W})},Y=e=>{j.quarantineArrayProp({properties:e,arrayPath:G,itemPath:B,arrayName:H,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)},re=function(e){if(!e||"[object Object]"!==Z.call(e))return!1;var t,r=J.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&J.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||J.call(e,t)},ne=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,r){e.prototype=t.prototype=r,r.constructor=e}function ae(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function le(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,r,n,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(r in t)n=oe(l,r),l!==(o=oe(t,r))&&(c&&o&&(re(o)||(i=te(o)))?(i?(i=!1,a=n&&te(n)?n:[]):a=n&&re(n)?n:{},ne(l,{name:r,newValue:e(c,a,o)})):void 0!==o&&ne(l,{name:r,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,r;return e=(e+"").trim().toLowerCase(),(t=pe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Ce(t):3===r?new Ae(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?we(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?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,r,n){return n<=0&&(e=t=r=NaN),new Ae(e,t,r,n)}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,r,n){return 1===arguments.length?Re(e):new Ae(e,t,r,null==n?1:n)}function Ae(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Ie(){return`#${Pe(this.r)}${Pe(this.g)}${Pe(this.b)}`}function De(){const e=_e(this.opacity);return`${1===e?"rgb(":"rgba("}${Me(this.r)}, ${Me(this.g)}, ${Me(this.b)}${1===e?")":`, ${e})`}`}function _e(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Me(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Pe(e){return((e=Me(e))<16?"0":"")+e.toString(16)}function Oe(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Te(e,t,r,n)}function ke(e){if(e instanceof Te)return new Te(e.h,e.s,e.l,e.opacity);if(e instanceof le||(e=Ee(e)),!e)return new Te;if(e instanceof Te)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Te(a,l,s,e.opacity)}function Te(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}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,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-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 ke(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(Me(this.r),Me(this.g),Me(this.b),_e(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`#${Pe(this.r)}${Pe(this.g)}${Pe(this.b)}${Pe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:De,toString:De})),ie(Te,(function(e,t,r,n){return 1===arguments.length?ke(e):new Te(e,t,r,null==n?1:n)}),ae(le,{brighter(e){return e=null==e?se:Math.pow(se,e),new Te(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Te(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Ae(Fe(e>=240?e-240:e+120,o,n),Fe(e,o,n),Fe(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Te(qe(this.h),Ne(this.s),Ne(this.l),_e(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=_e(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,$e=180/Math.PI,je=4/29,Ge=6/29,He=3*Ge*Ge;function Be(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,r,n=Ke(e.r),o=Ke(e.g),i=Ke(e.b),a=Ve((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=Ve((.4360747*n+.3850649*o+.1430804*i)/.96422),r=Ve((.0139322*n+.0971045*o+.7141733*i)/.82521)),new We(116*a-16,500*(t-a),200*(a-r),e.opacity)}function We(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Ve(e){return e>.008856451679035631?Math.pow(e,1/3):e/He+je}function Ye(e){return e>Ge?e*e*e:He*(e-je)}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,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}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,r,n){return 1===arguments.length?Be(e):new We(e,t,r,null==n?1:n)}),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,r=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*(r=.82521*Ye(r))),Ue(-.9787684*t+1.9161415*e+.033454*r),Ue(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),ie(Xe,(function(e,t,r,n){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=Be(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)*$e;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,r,null==n?1:n)}),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 r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Ze(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?Qe:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):Ze(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Le(e)).r,(t=Le(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Qe(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var et,tt=["__proto__","constructor"];function rt(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!tt.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var l=n[a];void 0===i[l]&&(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}}}function nt(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function ot(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=at)):void 0===t&&(t=it);for(var r,n,o,i,a,l=new ut(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new ut(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(st)}function it(e){return e.children}function at(e){return Array.isArray(e)?e[1]:null}function lt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function st(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function ut(e){this.data=e,this.depth=this.height=0,this.parent=null}function ct(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,r,n){const o=n&&"rows"===n.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")}}]}}ut.prototype=ot.prototype={constructor:ut,count:function(){return this.eachAfter(nt)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return ot(this).eachBefore(lt)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},et=function(e){
|
|
8
8
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
9
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),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(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(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"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},Ze({exports:{}});const ut="qHyperCubeDef.qDimensions",ct="dimensions",dt="qOtherTotalSpec.qTotalMode",pt="totalMode",ft={quarantine(e){z.quarantineArrayProp({properties:e,arrayPath:ut,quarantineName:pt,arrayName:ct,itemPath:dt})},unquarantine(e){z.unquarantineArrayProp({properties:e,arrayPath:ut,quarantineName:pt,arrayName:ct,itemPath:dt})}};function ht(e){const t=st(e);return(e,r,n,o)=>{var i,a,l,s,u,c;const d=z.hypercube.importProperties({exportFormat:e,initialProperties:r,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&&et(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],et(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&&et(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&&z.unquarantineProperty(d.qProperty,"noOfLeftDims")}return z.conditionalShow.unquarantine(d.qProperty),ft.unquarantine(d.qProperty),H(d.qProperty),d}}function mt(e,t){var r,n,o;const i=null!==(r=null==e||null===(n=e.qProperty)||void 0===n||null===(n=n.qHyperCubeDef)||void 0===n?void 0:n.qInterColumnSortOrder)&&void 0!==r?r:[],a=i.slice(),l=i.indexOf(-1);l>-1&&i.splice(l,1);const s=z.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),u=s.properties.qHyperCubeDef,c=u.qDimensions.length,d=u.qMeasures.length;let p=u.qInterColumnSortOrder;et(s,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",a),z.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,et(s,"properties.qHyperCubeDef.qInterColumnSortOrder",p),et(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 z.conditionalShow.quarantine(s.properties),ft.quarantine(s.properties),W(s.properties),s}const gt={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},bt="12px",vt="nebula-table-utils-head-menu-button";let yt=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 xt="nebula-table-utils-column-adjuster",St=`${xt}-border`;let Et=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMinTable=120]="PixelsMinTable",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.AutoMin=80]="AutoMin",e}({}),Ct=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const wt="CLIENT_IM_5863_PVT_TEXT_ALIGN",Rt="CLIENT_IM5847_PIVOT_LIMITATION",Lt="CLIENT_IM_5715_LINKS_AND_IMAGES",At="CLIENT_IM_5715_LINKS";var Dt,_t;!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"}(Dt||(Dt={})),function(e){e.NX_CELL_DATA="D",e.NX_CELL_TOP="T",e.NX_CELL_LEFT="L"}(_t||(_t={}));var It,Mt,Ot,Pt,kt=Dt;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(It||(It={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.Link="url",e.LinkLabel="urlLabel"}(Mt||(Mt={})),function(e){e.LEFT_GRID="leftGrid",e.DATA_GRID="dataGrid",e.CONTAINER_GRID="containerGrid"}(Ot||(Ot={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(Pt||(Pt={}));const Tt="TOTAL_OFF",qt="image",Nt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Mt.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Mt.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Mt.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Mt.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Mt.LinkLabel,tid:"ImageLabelByExpression",show:!1}]};function Ft(e,t,r){if(!r.properties.qHyperCubeDef.qIndentMode)return!0;const n=r.properties.qHyperCubeDef.qInterColumnSortOrder.indexOf(-1);let o=r.properties.qHyperCubeDef.qNoOfLeftDims;n>-1&&n<o&&(o-=1);const i=r.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===i||i>=o}const zt={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:Ct.Auto,translation:"Common.Auto"},{value:Ct.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:Ct.Pixels,translation:"Object.Table.Column.Pixels"},{value:Ct.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:Ct.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:Et.PixelsDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===Ct.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(Et.PixelsMin,Math.min(Et.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:Et.PercentageDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===Ct.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(Et.PercentageMin,Math.min(Et.PercentageMax,e.qDef.columnWidth.percentage)))}}},$t=({key:e,translation:t,flags:r})=>{if(r.isEnabled(wt))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:e=>{var t;return(null==e||null===(t=e.qDef)||void 0===t||null===(t=t.representation)||void 0===t?void 0:t.type)!==qt}},[e]:{ref:`qDef.${e}.align`,type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:t=>{var r,n;return void 0!==t.qDef[e]&&!(null!==(r=t.qDef[e])&&void 0!==r&&r.auto)&&(null==t||null===(n=t.qDef)||void 0===n||null===(n=n.representation)||void 0===n?void 0:n.type)!==qt}}}},jt=e=>{var t,r;const{flags:n,anything:o}=e,i=n.isEnabled(Lt)&&!(null!==(t=o.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"tableImages")),a=n.isEnabled(At);return{representationType:i||a?{uses:"dimensionRepresentationItems.representationType",options(){const e=[{value:"text",translation:"Object.Table.Representation.Text"}];return a&&e.push({value:"url",translation:"Object.Table.Representation.Link"}),i&&e.push({value:qt,translation:"Object.Table.Representation.Image"}),e}}:void 0,representationUrlPosition:a?{uses:"dimensionRepresentationItems.representationUrlPosition"}:void 0,representationUrlLabel:a?{uses:"dimensionRepresentationItems.representationUrlLabel"}:void 0,representationLinkUrl:a?{uses:"dimensionRepresentationItems.representationLinkUrl"}:void 0,representationImage:i?{uses:"dimensionRepresentationItems.representationImage"}:void 0}},Gt=e=>{var t,r;const{translator:n,anything:o,flags:i}=e;return{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:Tt,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:Tt,translation:"properties.off"},show:(null===(t=o.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r||!r.call(t,"totals"))&&Ft},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>n.get("Object.Table.Totals"),show(e,t,r){var n,i,a;return!(null!==(n=o.sense)&&void 0!==n&&null!==(i=n.isUnsupportedFeature)&&void 0!==i&&i.call(n,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==Tt&&Ft(e,0,r)}},dimensionLimits:i.isEnabled(Rt)?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled(Rt)?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled(Rt)?{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:Nt,...$t({flags:i,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...$t({flags:i,key:"textAlign",translation:"Common.Text.TextAlignment"}),...jt(e),...zt}},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:Nt,...$t({flags:i,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...$t({flags:i,key:"textAlign",translation:"Common.Text.TextAlignment"}),...zt}}}}},Bt="12px",Ht="Source Sans Pro, sans-serif",Wt="600",Vt=15e3,Yt=15e3,Ut=4/3,Kt=1;var Xt,Jt;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(Xt||(Xt={})),function(e){e.Solid="solid",e.None="none"}(Jt||(Jt={}));const Zt={display:"flex",justifyContent:"center",alignItems:"center"},Qt={borderStyle:"solid"},er={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},tr={lineHeight:"calc(1.3333333333333333)",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},rr=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",lineBreak:"auto",overflow:"hidden",textOverflow:"ellipsis",wordBreak:"break-all"}),nr=(e,t)=>e>0?`${e}px ${Jt.Solid} ${t}`:Jt.None,or=(e,t,r,n)=>{const o=Number(!t||(null==n?void 0:n.right)),i=Number(!e||(null==n?void 0:n.bottom));return{borderRight:nr(o,r),borderBottom:nr(i,r),borderLeft:Jt.None,borderTop:Jt.None}},ir=(e,t,r,n,o,i)=>{const a=or(t,n,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=nr(2,o)),r||(a.borderLeft=nr(1,o))),a},ar=({bottomDivider:e,rightDivider:t,borderColor:r})=>{const n={};return e&&(n.borderBottom=nr(1,r)),t&&(n.borderRight=nr(1,r)),n},lr=(e,t,r)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:!1,defaultValue(e,t,n){const o=n.theme.current(),i=r(o);return{color:i===Xt.Transparent.toString()?"none":i}}}),sr=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),ur=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:sr("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled(Lt)?sr("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:lr("grid.border","properties.border",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.grid)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:Xt.DividerLight})),divider:lr("grid.divider","properties.pivot.divider",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.grid)||void 0===r||null===(r=r.divider)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:Xt.DividerDark})),background:lr("grid.background","properties.background",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.grid)||void 0===r?void 0:r.backgroundColor)&&void 0!==t?t:Xt.Transparent}))}}}}),cr=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},dr=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:Ht,l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>cr(e,!0)))],c=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...U(n).filter((e=>!s.includes(e))).map((e=>cr(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),pr=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],fr=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{var n;const o=t.fontSize,i=null!==(n=t.fontSizes)&&void 0!==n?n:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>cr(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...pr.filter((e=>!a.includes(e))).map((e=>cr(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),hr=(e,t,r)=>{var n,o,i,a,l,s;switch(t){case"header":return null==e||null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.dimension)||void 0===n||null===(n=n.label)||void 0===n||null===(n=n.name)||void 0===n?void 0:n[r];case"dimensionValues":return null==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[r];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[r];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[r];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[r];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[r];default:return}},mr=({section:e,defaultFontStyle:t,translator:r,flags:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:dr({ref:`${e}.fontFamily`,themeAccessor:t=>{var r;return null!==(r=hr(t,e,"fontFamily"))&&void 0!==r?r:t.fontFamily},translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:fr({ref:`${e}.fontSize`,themeAccessor:t=>{var r;return null!==(r=hr(t,e,"fontSize"))&&void 0!==r?r:t.fontSize},translator:r}),fontColor:lr(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=hr(t,e,"color"))&&void 0!==r?r:t.color}))}},background:lr(`${e}.background`,"properties.background",(t=>{var r;return null!==(r=hr(t,e,"backgroundColor"))&&void 0!==r?r:Xt.Transparent}))}}}}),gr=({section:e,defaultFontStyle:t,fallbackBackground:r})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:lr(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=hr(t,e,"color"))&&void 0!==r?r:t.color}))}},background:lr(`${e}.background`,"properties.background",(t=>{var n,o;return null!==(n=null!==(o=hr(t,e,"backgroundColor"))&&void 0!==o?o:r)&&void 0!==n?n:Xt.Transparent}))}}}}),br=(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:mr({section:"header",defaultFontStyle:["bold"],translator:e,flags:t}),dimensionValueSection:mr({section:"dimensionValues",translator:e,flags:t}),measureValueSection:mr({section:"measureValues",translator:e,flags:t}),measureLabelSection:gr({section:"measureLabels"}),totalValuesSection:gr({section:"totalValues",defaultFontStyle:["bold"]}),nullValuesSection:gr({section:"nullValues",fallbackBackground:Xt.NullValueBackground}),gridSection:ur(t)}}]}),vr=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}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(e){var t;return 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,r,n){e.qHyperCubeDef.qExpansionState=[],n.$emit("saveProperties",e)}}}}),yr=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[br(e,t),vr(t)]}}}),xr="auto",Sr={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:xr,translation:"Object.Table.SortingInSearch",options:[{value:xr,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function Er(e){const{translator:t,flags:r}=e;return{type:"items",component:"accordion",items:{data:Gt(e),sorting:Sr,addons:gt,settings:yr(t,r)}}}function Cr(e){return{support:{cssScaling:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),snapshot:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),export:!1,sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:Er(e),importProperties:ht(e),exportProperties:mt}}function wr(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Rr(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Lr(){}var Ar=.7,Dr=1/Ar,_r="\\s*([+-]?\\d+)\\s*",Ir="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Mr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Or=/^#([0-9a-f]{3,8})$/,Pr=new RegExp(`^rgb\\(${_r},${_r},${_r}\\)$`),kr=new RegExp(`^rgb\\(${Mr},${Mr},${Mr}\\)$`),Tr=new RegExp(`^rgba\\(${_r},${_r},${_r},${Ir}\\)$`),qr=new RegExp(`^rgba\\(${Mr},${Mr},${Mr},${Ir}\\)$`),Nr=new RegExp(`^hsl\\(${Ir},${Mr},${Mr}\\)$`),Fr=new RegExp(`^hsla\\(${Ir},${Mr},${Mr},${Ir}\\)$`),zr={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 $r(){return this.rgb().formatHex()}function jr(){return this.rgb().formatRgb()}function Gr(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Or.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Br(t):3===r?new Yr(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Hr(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Hr(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=Pr.exec(e))?new Yr(t[1],t[2],t[3],1):(t=kr.exec(e))?new Yr(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Tr.exec(e))?Hr(t[1],t[2],t[3],t[4]):(t=qr.exec(e))?Hr(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Nr.exec(e))?Qr(t[1],t[2]/100,t[3]/100,1):(t=Fr.exec(e))?Qr(t[1],t[2]/100,t[3]/100,t[4]):zr.hasOwnProperty(e)?Br(zr[e]):"transparent"===e?new Yr(NaN,NaN,NaN,0):null}function Br(e){return new Yr(e>>16&255,e>>8&255,255&e,1)}function Hr(e,t,r,n){return n<=0&&(e=t=r=NaN),new Yr(e,t,r,n)}function Wr(e){return e instanceof Lr||(e=Gr(e)),e?new Yr((e=e.rgb()).r,e.g,e.b,e.opacity):new Yr}function Vr(e,t,r,n){return 1===arguments.length?Wr(e):new Yr(e,t,r,null==n?1:n)}function Yr(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Ur(){return`#${Zr(this.r)}${Zr(this.g)}${Zr(this.b)}`}function Kr(){const e=Xr(this.opacity);return`${1===e?"rgb(":"rgba("}${Jr(this.r)}, ${Jr(this.g)}, ${Jr(this.b)}${1===e?")":`, ${e})`}`}function Xr(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Jr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Zr(e){return((e=Jr(e))<16?"0":"")+e.toString(16)}function Qr(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new tn(e,t,r,n)}function en(e){if(e instanceof tn)return new tn(e.h,e.s,e.l,e.opacity);if(e instanceof Lr||(e=Gr(e)),!e)return new tn;if(e instanceof tn)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new tn(a,l,s,e.opacity)}function tn(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function rn(e){return(e=(e||0)%360)<0?e+360:e}function nn(e){return Math.max(0,Math.min(1,e||0))}function on(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}wr(Lr,Gr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:$r,formatHex:$r,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return en(this).formatHsl()},formatRgb:jr,toString:jr}),wr(Yr,Vr,Rr(Lr,{brighter(e){return e=null==e?Dr:Math.pow(Dr,e),new Yr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Ar:Math.pow(Ar,e),new Yr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Yr(Jr(this.r),Jr(this.g),Jr(this.b),Xr(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:Ur,formatHex:Ur,formatHex8:function(){return`#${Zr(this.r)}${Zr(this.g)}${Zr(this.b)}${Zr(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Kr,toString:Kr})),wr(tn,(function(e,t,r,n){return 1===arguments.length?en(e):new tn(e,t,r,null==n?1:n)}),Rr(Lr,{brighter(e){return e=null==e?Dr:Math.pow(Dr,e),new tn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Ar:Math.pow(Ar,e),new tn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Yr(on(e>=240?e-240:e+120,o,n),on(e,o,n),on(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new tn(rn(this.h),nn(this.s),nn(this.l),Xr(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=Xr(this.opacity);return`${1===e?"hsl(":"hsla("}${rn(this.h)}, ${100*nn(this.s)}%, ${100*nn(this.l)}%${1===e?")":`, ${e})`}`}}));const an=Math.PI/180,ln=180/Math.PI,sn=.96422,un=1,cn=.82521,dn=4/29,pn=6/29,fn=3*pn*pn,hn=pn*pn*pn;function mn(e){if(e instanceof gn)return new gn(e.l,e.a,e.b,e.opacity);if(e instanceof En)return Cn(e);e instanceof Yr||(e=Wr(e));var t,r,n=xn(e.r),o=xn(e.g),i=xn(e.b),a=bn((.2225045*n+.7168786*o+.0606169*i)/un);return n===o&&o===i?t=r=a:(t=bn((.4360747*n+.3850649*o+.1430804*i)/sn),r=bn((.0139322*n+.0971045*o+.7141733*i)/cn)),new gn(116*a-16,500*(t-a),200*(a-r),e.opacity)}function gn(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function bn(e){return e>hn?Math.pow(e,1/3):e/fn+dn}function vn(e){return e>pn?e*e*e:fn*(e-dn)}function yn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function xn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Sn(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof En)return new En(e.h,e.c,e.l,e.opacity);if(e instanceof gn||(e=mn(e)),0===e.a&&0===e.b)return new En(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ln;return new En(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new En(e,t,r,null==n?1:n)}function En(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Cn(e){if(isNaN(e.h))return new gn(e.l,0,0,e.opacity);var t=e.h*an;return new gn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}wr(gn,(function(e,t,r,n){return 1===arguments.length?mn(e):new gn(e,t,r,null==n?1:n)}),Rr(Lr,{brighter(e){return new gn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new gn(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new Yr(yn(3.1338561*(t=sn*vn(t))-1.6168667*(e=un*vn(e))-.4906146*(r=cn*vn(r))),yn(-.9787684*t+1.9161415*e+.033454*r),yn(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),wr(En,Sn,Rr(Lr,{brighter(e){return new En(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new En(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Cn(this).rgb()}}));const wn=e=>{if(e){const t=Vr(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},Rn=(e,t,r,n)=>{const o=null==t?void 0:t.closest(".qv-object .qv-inner-object"),i=o&&window.getComputedStyle(o).backgroundColor,a=null==t?void 0:t.closest(".qv-panel-sheet"),l=a&&window.getComputedStyle(a).backgroundColor,s=null==r?void 0:r(e),u=null==n?void 0:n(e),c=s||i||u,d=(e=>!!e&&0===Vr(e).opacity)(c);return{tableColorFromTheme:s||"inherit",color:c,isDark:wn(d?l:c),isTransparent:d}};function Ln(e,t){const o=r((()=>({isLoading:!0})),t),[i,a]=n((async()=>{try{return await e()}finally{o.isLoading=!1}}),t);return[i,o.isLoading,a]}var An=Object.prototype.hasOwnProperty,Dn=Object.prototype.toString,_n=Object.defineProperty,In=Object.getOwnPropertyDescriptor,Mn=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Dn.call(e)},On=function(e){if(!e||"[object Object]"!==Dn.call(e))return!1;var t,r=An.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&An.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||An.call(e,t)},Pn=function(e,t){_n&&"__proto__"===t.name?_n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},kn=function(e,t){if("__proto__"===t){if(!An.call(e,t))return;if(In)return In(e,t).value}return e[t]};function Tn(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function qn(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Nn(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,r,n,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(r in t)n=kn(l,r),l!==(o=kn(t,r))&&(c&&o&&(On(o)||(i=Mn(o)))?(i?(i=!1,a=n&&Mn(n)?n:[]):a=n&&On(n)?n:{},Pn(l,{name:r,newValue:e(c,a,o)})):void 0!==o&&Pn(l,{name:r,newValue:o}));return l}));var Fn=1/.7,zn="\\s*([+-]?\\d+)\\s*",$n="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",jn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Gn=/^#([0-9a-f]{3,8})$/,Bn=new RegExp(`^rgb\\(${zn},${zn},${zn}\\)$`),Hn=new RegExp(`^rgb\\(${jn},${jn},${jn}\\)$`),Wn=new RegExp(`^rgba\\(${zn},${zn},${zn},${$n}\\)$`),Vn=new RegExp(`^rgba\\(${jn},${jn},${jn},${$n}\\)$`),Yn=new RegExp(`^hsl\\(${$n},${jn},${jn}\\)$`),Un=new RegExp(`^hsla\\(${$n},${jn},${jn},${$n}\\)$`),Kn={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 Xn(){return this.rgb().formatHex()}function Jn(){return this.rgb().formatRgb()}function Zn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Gn.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Qn(t):3===r?new no(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?eo(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?eo(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=Bn.exec(e))?new no(t[1],t[2],t[3],1):(t=Hn.exec(e))?new no(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Wn.exec(e))?eo(t[1],t[2],t[3],t[4]):(t=Vn.exec(e))?eo(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Yn.exec(e))?uo(t[1],t[2]/100,t[3]/100,1):(t=Un.exec(e))?uo(t[1],t[2]/100,t[3]/100,t[4]):Kn.hasOwnProperty(e)?Qn(Kn[e]):"transparent"===e?new no(NaN,NaN,NaN,0):null}function Qn(e){return new no(e>>16&255,e>>8&255,255&e,1)}function eo(e,t,r,n){return n<=0&&(e=t=r=NaN),new no(e,t,r,n)}function to(e){return e instanceof Nn||(e=Zn(e)),e?new no((e=e.rgb()).r,e.g,e.b,e.opacity):new no}function ro(e,t,r,n){return 1===arguments.length?to(e):new no(e,t,r,null==n?1:n)}function no(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function oo(){return`#${so(this.r)}${so(this.g)}${so(this.b)}`}function io(){const e=ao(this.opacity);return`${1===e?"rgb(":"rgba("}${lo(this.r)}, ${lo(this.g)}, ${lo(this.b)}${1===e?")":`, ${e})`}`}function ao(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function lo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function so(e){return((e=lo(e))<16?"0":"")+e.toString(16)}function uo(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new po(e,t,r,n)}function co(e){if(e instanceof po)return new po(e.h,e.s,e.l,e.opacity);if(e instanceof Nn||(e=Zn(e)),!e)return new po;if(e instanceof po)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new po(a,l,s,e.opacity)}function po(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function fo(e){return(e=(e||0)%360)<0?e+360:e}function ho(e){return Math.max(0,Math.min(1,e||0))}function mo(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Tn(Nn,Zn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Xn,formatHex:Xn,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return co(this).formatHsl()},formatRgb:Jn,toString:Jn}),Tn(no,ro,qn(Nn,{brighter(e){return e=null==e?Fn:Math.pow(Fn,e),new no(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new no(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new no(lo(this.r),lo(this.g),lo(this.b),ao(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:oo,formatHex:oo,formatHex8:function(){return`#${so(this.r)}${so(this.g)}${so(this.b)}${so(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:io,toString:io})),Tn(po,(function(e,t,r,n){return 1===arguments.length?co(e):new po(e,t,r,null==n?1:n)}),qn(Nn,{brighter(e){return e=null==e?Fn:Math.pow(Fn,e),new po(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new po(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new no(mo(e>=240?e-240:e+120,o,n),mo(e,o,n),mo(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new po(fo(this.h),ho(this.s),ho(this.l),ao(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=ao(this.opacity);return`${1===e?"hsl(":"hsla("}${fo(this.h)}, ${100*ho(this.s)}%, ${100*ho(this.l)}%${1===e?")":`, ${e})`}`}}));const go=Math.PI/180,bo=180/Math.PI,vo=4/29,yo=6/29,xo=3*yo*yo;function So(e){if(e instanceof Eo)return new Eo(e.l,e.a,e.b,e.opacity);if(e instanceof Ao)return Do(e);e instanceof no||(e=to(e));var t,r,n=Lo(e.r),o=Lo(e.g),i=Lo(e.b),a=Co((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=Co((.4360747*n+.3850649*o+.1430804*i)/.96422),r=Co((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Eo(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Eo(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Co(e){return e>.008856451679035631?Math.pow(e,1/3):e/xo+vo}function wo(e){return e>yo?e*e*e:xo*(e-vo)}function Ro(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Lo(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ao(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Do(e){if(isNaN(e.h))return new Eo(e.l,0,0,e.opacity);var t=e.h*go;return new Eo(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Tn(Eo,(function(e,t,r,n){return 1===arguments.length?So(e):new Eo(e,t,r,null==n?1:n)}),qn(Nn,{brighter(e){return new Eo(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Eo(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new no(Ro(3.1338561*(t=.96422*wo(t))-1.6168667*(e=1*wo(e))-.4906146*(r=.82521*wo(r))),Ro(-.9787684*t+1.9161415*e+.033454*r),Ro(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Tn(Ao,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Ao)return new Ao(e.h,e.c,e.l,e.opacity);if(e instanceof Eo||(e=So(e)),0===e.a&&0===e.b)return new Ao(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*bo;return new Ao(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Ao(e,t,r,null==n?1:n)}),qn(Nn,{brighter(e){return new Ao(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Ao(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Do(this).rgb()}}));var _o,Io=e=>()=>e;function Mo(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Io(isNaN(e)?t:e)}function Oo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},r=function(){var e={};return{get:function(t){return e[t]},set:function(t,r){return e[t]=r,r},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(n){var o=t(n);return r.has(o)?r.get(o):r.set(o,e(n))}}function Po(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function ko(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=qo)):void 0===t&&(t=To);for(var r,n,o,i,a,l=new zo(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new zo(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(Fo)}function To(e){return e.children}function qo(e){return Array.isArray(e)?e[1]:null}function No(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Fo(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function zo(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var r=function(e){return 1==(e=+e)?Mo:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):Io(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=ro(e)).r,(t=ro(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Mo(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1),zo.prototype=ko.prototype={constructor:zo,count:function(){return this.eachAfter(Po)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return ko(this).eachBefore(No)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},_o=function(e){
|
|
9
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),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(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(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"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},et({exports:{}});const dt="qHyperCubeDef.qDimensions",pt="dimensions",ft="qOtherTotalSpec.qTotalMode",ht="totalMode",mt={quarantine(e){j.quarantineArrayProp({properties:e,arrayPath:dt,quarantineName:ht,arrayName:pt,itemPath:ft})},unquarantine(e){j.unquarantineArrayProp({properties:e,arrayPath:dt,quarantineName:ht,arrayName:pt,itemPath:ft})}};function gt(e){const t=ct(e);return(e,r,n,o)=>{var i,a,l,s,u,c;const d=j.hypercube.importProperties({exportFormat:e,initialProperties:r,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&&rt(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],rt(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&&rt(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&&j.unquarantineProperty(d.qProperty,"noOfLeftDims")}return j.conditionalShow.unquarantine(d.qProperty),mt.unquarantine(d.qProperty),V(d.qProperty),d}}function bt(e,t){var r,n,o;const i=null!==(r=null==e||null===(n=e.qProperty)||void 0===n||null===(n=n.qHyperCubeDef)||void 0===n?void 0:n.qInterColumnSortOrder)&&void 0!==r?r:[],a=i.slice(),l=i.indexOf(-1);l>-1&&i.splice(l,1);const s=j.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),u=s.properties.qHyperCubeDef,c=u.qDimensions.length,d=u.qMeasures.length;let p=u.qInterColumnSortOrder;rt(s,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",a),j.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,rt(s,"properties.qHyperCubeDef.qInterColumnSortOrder",p),rt(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 j.conditionalShow.quarantine(s.properties),mt.quarantine(s.properties),Y(s.properties),s}const vt={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},yt="12px",xt="nebula-table-utils-head-menu-button";let St=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 Et="nebula-table-utils-column-adjuster",Ct=`${Et}-border`;let wt=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMinTable=120]="PixelsMinTable",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.AutoMin=80]="AutoMin",e}({}),Rt=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const Lt="CLIENT_IM_5863_PVT_TEXT_ALIGN",At="CLIENT_IM5847_PIVOT_LIMITATION",It="CLIENT_IM_5715_LINKS_AND_IMAGES",Dt="CLIENT_IM_5715_LINKS",_t="CLIENT_IM_5975_INDENT_MODE";var Mt,Pt;!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"}(Mt||(Mt={})),function(e){e.NX_CELL_DATA="D",e.NX_CELL_TOP="T",e.NX_CELL_LEFT="L"}(Pt||(Pt={}));var Ot,kt,Tt,qt,Nt=Mt;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(Ot||(Ot={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(kt||(kt={})),function(e){e.LEFT_GRID="leftGrid",e.DATA_GRID="dataGrid",e.CONTAINER_GRID="containerGrid"}(Tt||(Tt={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(qt||(qt={}));const Ft="TOTAL_OFF",zt="image",$t={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:kt.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:kt.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:kt.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:kt.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:kt.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:kt.ImageUrl,tid:"ImageUrlByExpression",show:!1}]};function jt(e,t,r){if(!r.properties.qHyperCubeDef.qIndentMode)return!0;const n=r.properties.qHyperCubeDef.qInterColumnSortOrder.indexOf(-1);let o=r.properties.qHyperCubeDef.qNoOfLeftDims;n>-1&&n<o&&(o-=1);const i=r.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===i||i>=o}const Gt={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:Rt.Auto,translation:"Common.Auto"},{value:Rt.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:Rt.Pixels,translation:"Object.Table.Column.Pixels"},{value:Rt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:Rt.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:wt.PixelsDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===Rt.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(wt.PixelsMin,Math.min(wt.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:wt.PercentageDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===Rt.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(wt.PercentageMin,Math.min(wt.PercentageMax,e.qDef.columnWidth.percentage)))}}},Ht=({key:e,translation:t,flags:r})=>{if(!r.isEnabled(Lt))return;const n=r.isEnabled(It);return{[`${e}Auto`]:{ref:`qDef.${e}.auto`,type:"boolean",component:"switch",translation:t,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0,show:t=>{var r;if(!n||"labelTextAlign"===e)return!0;return(null==t||null===(r=t.qDef)||void 0===r||null===(r=r.representation)||void 0===r?void 0:r.type)!==zt}},[e]:{ref:`qDef.${e}.align`,type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:t=>{var r,o;return!(void 0===t.qDef[e]||null!==(r=t.qDef[e])&&void 0!==r&&r.auto)&&(!n||"labelTextAlign"===e||(null===(o=t.qDef)||void 0===o||null===(o=o.representation)||void 0===o?void 0:o.type)!==zt)}}}},Bt=e=>{var t,r;const{flags:n,anything:o}=e,i=n.isEnabled(It)&&!(null!==(t=o.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"tableImages")),a=n.isEnabled(Dt);return{representationType:i||a?{uses:"dimensionRepresentationItems.representationType",options(){const e=[{value:"text",translation:"Object.Table.Representation.Text"}];return a&&e.push({value:"url",translation:"Object.Table.Representation.Link"}),i&&e.push({value:zt,translation:"Object.Table.Representation.Image"}),e}}:void 0,representationUrlPosition:a?{uses:"dimensionRepresentationItems.representationUrlPosition"}:void 0,representationUrlLabel:a?{uses:"dimensionRepresentationItems.representationUrlLabel"}:void 0,representationLinkUrl:a?{uses:"dimensionRepresentationItems.representationLinkUrl"}:void 0,representationImage:i?{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"}]}}}:void 0}},Wt=e=>{var t,r;const{translator:n,anything:o,flags:i}=e;return{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Properties.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:Ft,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:Ft,translation:"properties.off"},show:(null===(t=o.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r||!r.call(t,"totals"))&&jt},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>n.get("Object.Table.Totals"),show(e,t,r){var n,i,a;return!(null!==(n=o.sense)&&void 0!==n&&null!==(i=n.isUnsupportedFeature)&&void 0!==i&&i.call(n,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==Ft&&jt(e,0,r)}},dimensionLimits:i.isEnabled(At)?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled(At)?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled(At)?{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:$t,...Ht({flags:i,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Ht({flags:i,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Bt(e),...Gt}},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:$t,...Ht({flags:i,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Ht({flags:i,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Gt}}}}},Vt="12px",Yt="Source Sans Pro, sans-serif",Ut="600",Kt=15e3,Xt=15e3,Jt=4/3,Zt=1;var Qt,er;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(Qt||(Qt={})),function(e){e.Solid="solid",e.None="none"}(er||(er={}));const tr={display:"flex",justifyContent:"center",alignItems:"center"},rr={borderStyle:"solid"},nr={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},or={lineHeight:"calc(1.3333333333333333)",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},ir=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",lineBreak:"auto",overflow:"hidden",textOverflow:"ellipsis",wordBreak:"break-all"}),ar=(e,t)=>e>0?`${e}px ${er.Solid} ${t}`:er.None,lr=(e,t,r,n)=>{const o=Number(!t||(null==n?void 0:n.right)),i=Number(!e||(null==n?void 0:n.bottom));return{borderRight:ar(o,r),borderBottom:ar(i,r),borderLeft:er.None,borderTop:er.None}},sr=(e,t,r,n,o,i)=>{const a=lr(t,n,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=ar(2,o)),r||(a.borderLeft=ar(1,o))),a},ur=({bottomDivider:e,rightDivider:t,borderColor:r})=>{const n={};return e&&(n.borderBottom=ar(1,r)),t&&(n.borderRight=ar(1,r)),n},cr=(e,t,r)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:!1,defaultValue(e,t,n){const o=n.theme.current(),i=r(o);return{color:i===Qt.Transparent.toString()?"none":i}}}),dr=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),pr=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:dr("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled(It)?dr("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:cr("grid.border","properties.border",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.grid)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:Qt.DividerLight})),divider:cr("grid.divider","properties.pivot.divider",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.grid)||void 0===r||null===(r=r.divider)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:Qt.DividerDark})),background:cr("grid.background","properties.background",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.grid)||void 0===r?void 0:r.backgroundColor)&&void 0!==t?t:Qt.Transparent}))}}}}),fr=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},hr=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:Yt,l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>fr(e,!0)))],c=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...X(n).filter((e=>!s.includes(e))).map((e=>fr(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),mr=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],gr=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{var n;const o=t.fontSize,i=null!==(n=t.fontSizes)&&void 0!==n?n:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>fr(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...mr.filter((e=>!a.includes(e))).map((e=>fr(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),br=(e,t,r)=>{var n,o,i,a,l,s;switch(t){case"header":return null==e||null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.dimension)||void 0===n||null===(n=n.label)||void 0===n||null===(n=n.name)||void 0===n?void 0:n[r];case"dimensionValues":return null==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[r];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[r];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[r];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[r];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[r];default:return}},vr=({section:e,defaultFontStyle:t,translator:r,flags:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:hr({ref:`${e}.fontFamily`,themeAccessor:t=>{var r;return null!==(r=br(t,e,"fontFamily"))&&void 0!==r?r:t.fontFamily},translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:gr({ref:`${e}.fontSize`,themeAccessor:t=>{var r;return null!==(r=br(t,e,"fontSize"))&&void 0!==r?r:t.fontSize},translator:r}),fontColor:cr(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=br(t,e,"color"))&&void 0!==r?r:t.color}))}},background:cr(`${e}.background`,"properties.background",(t=>{var r;return null!==(r=br(t,e,"backgroundColor"))&&void 0!==r?r:Qt.Transparent}))}}}}),yr=({section:e,defaultFontStyle:t,fallbackBackground:r})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:cr(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=br(t,e,"color"))&&void 0!==r?r:t.color}))}},background:cr(`${e}.background`,"properties.background",(t=>{var n,o;return null!==(n=null!==(o=br(t,e,"backgroundColor"))&&void 0!==o?o:r)&&void 0!==n?n:Qt.Transparent}))}}}}),xr=(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:vr({section:"header",defaultFontStyle:["bold"],translator:e,flags:t}),dimensionValueSection:vr({section:"dimensionValues",translator:e,flags:t}),measureValueSection:vr({section:"measureValues",translator:e,flags:t}),measureLabelSection:yr({section:"measureLabels"}),totalValuesSection:yr({section:"totalValues",defaultFontStyle:["bold"]}),nullValuesSection:yr({section:"nullValues",fallbackBackground:Qt.NullValueBackground}),gridSection:pr(t)}}]}),Sr=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(_t)&&{indentMode:{ref:"qHyperCubeDef.qIndentMode",type:"boolean",translation:"properties.pivot.indentMode",defaultValue:!1}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(e){var t;return 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,r,n){e.qHyperCubeDef.qExpansionState=[],n.$emit("saveProperties",e)}}}}),Er=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[xr(e,t),Sr(t)]}}}),Cr="auto",wr={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:Cr,translation:"Object.Table.SortingInSearch",options:[{value:Cr,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function Rr(e){const{translator:t,flags:r}=e;return{type:"items",component:"accordion",items:{data:Wt(e),sorting:wr,addons:vt,settings:Er(t,r)}}}function Lr(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:Rr(e),importProperties:gt(e),exportProperties:bt}}function Ar(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Ir(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Dr(){}var _r=.7,Mr=1/_r,Pr="\\s*([+-]?\\d+)\\s*",Or="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",kr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Tr=/^#([0-9a-f]{3,8})$/,qr=new RegExp(`^rgb\\(${Pr},${Pr},${Pr}\\)$`),Nr=new RegExp(`^rgb\\(${kr},${kr},${kr}\\)$`),Fr=new RegExp(`^rgba\\(${Pr},${Pr},${Pr},${Or}\\)$`),zr=new RegExp(`^rgba\\(${kr},${kr},${kr},${Or}\\)$`),$r=new RegExp(`^hsl\\(${Or},${kr},${kr}\\)$`),jr=new RegExp(`^hsla\\(${Or},${kr},${kr},${Or}\\)$`),Gr={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 Hr(){return this.rgb().formatHex()}function Br(){return this.rgb().formatRgb()}function Wr(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Tr.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Vr(t):3===r?new Xr(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Yr(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Yr(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=qr.exec(e))?new Xr(t[1],t[2],t[3],1):(t=Nr.exec(e))?new Xr(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Fr.exec(e))?Yr(t[1],t[2],t[3],t[4]):(t=zr.exec(e))?Yr(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=$r.exec(e))?rn(t[1],t[2]/100,t[3]/100,1):(t=jr.exec(e))?rn(t[1],t[2]/100,t[3]/100,t[4]):Gr.hasOwnProperty(e)?Vr(Gr[e]):"transparent"===e?new Xr(NaN,NaN,NaN,0):null}function Vr(e){return new Xr(e>>16&255,e>>8&255,255&e,1)}function Yr(e,t,r,n){return n<=0&&(e=t=r=NaN),new Xr(e,t,r,n)}function Ur(e){return e instanceof Dr||(e=Wr(e)),e?new Xr((e=e.rgb()).r,e.g,e.b,e.opacity):new Xr}function Kr(e,t,r,n){return 1===arguments.length?Ur(e):new Xr(e,t,r,null==n?1:n)}function Xr(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Jr(){return`#${tn(this.r)}${tn(this.g)}${tn(this.b)}`}function Zr(){const e=Qr(this.opacity);return`${1===e?"rgb(":"rgba("}${en(this.r)}, ${en(this.g)}, ${en(this.b)}${1===e?")":`, ${e})`}`}function Qr(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function en(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function tn(e){return((e=en(e))<16?"0":"")+e.toString(16)}function rn(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new on(e,t,r,n)}function nn(e){if(e instanceof on)return new on(e.h,e.s,e.l,e.opacity);if(e instanceof Dr||(e=Wr(e)),!e)return new on;if(e instanceof on)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new on(a,l,s,e.opacity)}function on(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function an(e){return(e=(e||0)%360)<0?e+360:e}function ln(e){return Math.max(0,Math.min(1,e||0))}function sn(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Ar(Dr,Wr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Hr,formatHex:Hr,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return nn(this).formatHsl()},formatRgb:Br,toString:Br}),Ar(Xr,Kr,Ir(Dr,{brighter(e){return e=null==e?Mr:Math.pow(Mr,e),new Xr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?_r:Math.pow(_r,e),new Xr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Xr(en(this.r),en(this.g),en(this.b),Qr(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:Jr,formatHex:Jr,formatHex8:function(){return`#${tn(this.r)}${tn(this.g)}${tn(this.b)}${tn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Zr,toString:Zr})),Ar(on,(function(e,t,r,n){return 1===arguments.length?nn(e):new on(e,t,r,null==n?1:n)}),Ir(Dr,{brighter(e){return e=null==e?Mr:Math.pow(Mr,e),new on(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?_r:Math.pow(_r,e),new on(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Xr(sn(e>=240?e-240:e+120,o,n),sn(e,o,n),sn(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new on(an(this.h),ln(this.s),ln(this.l),Qr(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=Qr(this.opacity);return`${1===e?"hsl(":"hsla("}${an(this.h)}, ${100*ln(this.s)}%, ${100*ln(this.l)}%${1===e?")":`, ${e})`}`}}));const un=Math.PI/180,cn=180/Math.PI,dn=.96422,pn=1,fn=.82521,hn=4/29,mn=6/29,gn=3*mn*mn,bn=mn*mn*mn;function vn(e){if(e instanceof yn)return new yn(e.l,e.a,e.b,e.opacity);if(e instanceof Rn)return Ln(e);e instanceof Xr||(e=Ur(e));var t,r,n=Cn(e.r),o=Cn(e.g),i=Cn(e.b),a=xn((.2225045*n+.7168786*o+.0606169*i)/pn);return n===o&&o===i?t=r=a:(t=xn((.4360747*n+.3850649*o+.1430804*i)/dn),r=xn((.0139322*n+.0971045*o+.7141733*i)/fn)),new yn(116*a-16,500*(t-a),200*(a-r),e.opacity)}function yn(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function xn(e){return e>bn?Math.pow(e,1/3):e/gn+hn}function Sn(e){return e>mn?e*e*e:gn*(e-hn)}function En(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Cn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function wn(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Rn)return new Rn(e.h,e.c,e.l,e.opacity);if(e instanceof yn||(e=vn(e)),0===e.a&&0===e.b)return new Rn(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*cn;return new Rn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Rn(e,t,r,null==n?1:n)}function Rn(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Ln(e){if(isNaN(e.h))return new yn(e.l,0,0,e.opacity);var t=e.h*un;return new yn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ar(yn,(function(e,t,r,n){return 1===arguments.length?vn(e):new yn(e,t,r,null==n?1:n)}),Ir(Dr,{brighter(e){return new yn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new yn(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new Xr(En(3.1338561*(t=dn*Sn(t))-1.6168667*(e=pn*Sn(e))-.4906146*(r=fn*Sn(r))),En(-.9787684*t+1.9161415*e+.033454*r),En(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Ar(Rn,wn,Ir(Dr,{brighter(e){return new Rn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Rn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Ln(this).rgb()}}));const An=e=>{if(e){const t=Kr(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},In=(e,t,r,n)=>{const o=null==t?void 0:t.closest(".qv-object .qv-inner-object"),i=o&&window.getComputedStyle(o).backgroundColor,a=null==t?void 0:t.closest(".qv-panel-sheet"),l=a&&window.getComputedStyle(a).backgroundColor,s=null==r?void 0:r(e),u=null==n?void 0:n(e),c=s||i||u,d=(e=>!!e&&0===Kr(e).opacity)(c);return{tableColorFromTheme:s||"inherit",color:c,isDark:An(d?l:c),isTransparent:d}};function Dn(e,t){const o=r((()=>({isLoading:!0})),t),[i,a]=n((async()=>{try{return await e()}finally{o.isLoading=!1}}),t);return[i,o.isLoading,a]}var _n=Object.prototype.hasOwnProperty,Mn=Object.prototype.toString,Pn=Object.defineProperty,On=Object.getOwnPropertyDescriptor,kn=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Mn.call(e)},Tn=function(e){if(!e||"[object Object]"!==Mn.call(e))return!1;var t,r=_n.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&_n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||_n.call(e,t)},qn=function(e,t){Pn&&"__proto__"===t.name?Pn(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Nn=function(e,t){if("__proto__"===t){if(!_n.call(e,t))return;if(On)return On(e,t).value}return e[t]};function Fn(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function zn(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function $n(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,r,n,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(r in t)n=Nn(l,r),l!==(o=Nn(t,r))&&(c&&o&&(Tn(o)||(i=kn(o)))?(i?(i=!1,a=n&&kn(n)?n:[]):a=n&&Tn(n)?n:{},qn(l,{name:r,newValue:e(c,a,o)})):void 0!==o&&qn(l,{name:r,newValue:o}));return l}));var jn=1/.7,Gn="\\s*([+-]?\\d+)\\s*",Hn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Bn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Wn=/^#([0-9a-f]{3,8})$/,Vn=new RegExp(`^rgb\\(${Gn},${Gn},${Gn}\\)$`),Yn=new RegExp(`^rgb\\(${Bn},${Bn},${Bn}\\)$`),Un=new RegExp(`^rgba\\(${Gn},${Gn},${Gn},${Hn}\\)$`),Kn=new RegExp(`^rgba\\(${Bn},${Bn},${Bn},${Hn}\\)$`),Xn=new RegExp(`^hsl\\(${Hn},${Bn},${Bn}\\)$`),Jn=new RegExp(`^hsla\\(${Hn},${Bn},${Bn},${Hn}\\)$`),Zn={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 Qn(){return this.rgb().formatHex()}function eo(){return this.rgb().formatRgb()}function to(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Wn.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?ro(t):3===r?new ao(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?no(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?no(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=Vn.exec(e))?new ao(t[1],t[2],t[3],1):(t=Yn.exec(e))?new ao(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Un.exec(e))?no(t[1],t[2],t[3],t[4]):(t=Kn.exec(e))?no(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Xn.exec(e))?fo(t[1],t[2]/100,t[3]/100,1):(t=Jn.exec(e))?fo(t[1],t[2]/100,t[3]/100,t[4]):Zn.hasOwnProperty(e)?ro(Zn[e]):"transparent"===e?new ao(NaN,NaN,NaN,0):null}function ro(e){return new ao(e>>16&255,e>>8&255,255&e,1)}function no(e,t,r,n){return n<=0&&(e=t=r=NaN),new ao(e,t,r,n)}function oo(e){return e instanceof $n||(e=to(e)),e?new ao((e=e.rgb()).r,e.g,e.b,e.opacity):new ao}function io(e,t,r,n){return 1===arguments.length?oo(e):new ao(e,t,r,null==n?1:n)}function ao(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function lo(){return`#${po(this.r)}${po(this.g)}${po(this.b)}`}function so(){const e=uo(this.opacity);return`${1===e?"rgb(":"rgba("}${co(this.r)}, ${co(this.g)}, ${co(this.b)}${1===e?")":`, ${e})`}`}function uo(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function co(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function po(e){return((e=co(e))<16?"0":"")+e.toString(16)}function fo(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new mo(e,t,r,n)}function ho(e){if(e instanceof mo)return new mo(e.h,e.s,e.l,e.opacity);if(e instanceof $n||(e=to(e)),!e)return new mo;if(e instanceof mo)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new mo(a,l,s,e.opacity)}function mo(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function go(e){return(e=(e||0)%360)<0?e+360:e}function bo(e){return Math.max(0,Math.min(1,e||0))}function vo(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Fn($n,to,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Qn,formatHex:Qn,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ho(this).formatHsl()},formatRgb:eo,toString:eo}),Fn(ao,io,zn($n,{brighter(e){return e=null==e?jn:Math.pow(jn,e),new ao(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ao(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ao(co(this.r),co(this.g),co(this.b),uo(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:lo,formatHex:lo,formatHex8:function(){return`#${po(this.r)}${po(this.g)}${po(this.b)}${po(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:so,toString:so})),Fn(mo,(function(e,t,r,n){return 1===arguments.length?ho(e):new mo(e,t,r,null==n?1:n)}),zn($n,{brighter(e){return e=null==e?jn:Math.pow(jn,e),new mo(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new mo(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new ao(vo(e>=240?e-240:e+120,o,n),vo(e,o,n),vo(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new mo(go(this.h),bo(this.s),bo(this.l),uo(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=uo(this.opacity);return`${1===e?"hsl(":"hsla("}${go(this.h)}, ${100*bo(this.s)}%, ${100*bo(this.l)}%${1===e?")":`, ${e})`}`}}));const yo=Math.PI/180,xo=180/Math.PI,So=4/29,Eo=6/29,Co=3*Eo*Eo;function wo(e){if(e instanceof Ro)return new Ro(e.l,e.a,e.b,e.opacity);if(e instanceof _o)return Mo(e);e instanceof ao||(e=oo(e));var t,r,n=Do(e.r),o=Do(e.g),i=Do(e.b),a=Lo((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=Lo((.4360747*n+.3850649*o+.1430804*i)/.96422),r=Lo((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Ro(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Ro(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Lo(e){return e>.008856451679035631?Math.pow(e,1/3):e/Co+So}function Ao(e){return e>Eo?e*e*e:Co*(e-So)}function Io(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Do(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function _o(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Mo(e){if(isNaN(e.h))return new Ro(e.l,0,0,e.opacity);var t=e.h*yo;return new Ro(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Fn(Ro,(function(e,t,r,n){return 1===arguments.length?wo(e):new Ro(e,t,r,null==n?1:n)}),zn($n,{brighter(e){return new Ro(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ro(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new ao(Io(3.1338561*(t=.96422*Ao(t))-1.6168667*(e=1*Ao(e))-.4906146*(r=.82521*Ao(r))),Io(-.9787684*t+1.9161415*e+.033454*r),Io(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Fn(_o,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof _o)return new _o(e.h,e.c,e.l,e.opacity);if(e instanceof Ro||(e=wo(e)),0===e.a&&0===e.b)return new _o(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*xo;return new _o(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new _o(e,t,r,null==n?1:n)}),zn($n,{brighter(e){return new _o(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new _o(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Mo(this).rgb()}}));var Po,Oo=e=>()=>e;function ko(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Oo(isNaN(e)?t:e)}function To(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},r=function(){var e={};return{get:function(t){return e[t]},set:function(t,r){return e[t]=r,r},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(n){var o=t(n);return r.has(o)?r.get(o):r.set(o,e(n))}}function qo(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function No(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=zo)):void 0===t&&(t=Fo);for(var r,n,o,i,a,l=new Go(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new Go(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(jo)}function Fo(e){return e.children}function zo(e){return Array.isArray(e)?e[1]:null}function $o(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function jo(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Go(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var r=function(e){return 1==(e=+e)?ko:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):Oo(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=io(e)).r,(t=io(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=ko(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1),Go.prototype=No.prototype={constructor:Go,count:function(){return this.eachAfter(qo)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return No(this).eachBefore($o)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},Po=function(e){
|
|
10
10
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
11
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),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(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(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"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},_o({exports:{}});const $o=3,jo="N";function Go(e,t,r){let n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=r(a),u=r(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?n=i+1:o=i}return null}function Bo({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=$o}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=b((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=Oo(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=Oo((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=Go(o,t,l)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a(jo).width*e,estimateLineCount:s}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var Ho,Wo=k;Ho=Wo.createRoot,Wo.hydrateRoot;function Vo(e,t){const[r,n]=v(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var Yo={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 Uo=({translator:e})=>(b((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Yo).forEach((t=>{e.add(Yo[t])}))}}(e)),[e]),e);var Ko={exports:{}},Xo={},Jo=y,Zo=Symbol.for("react.element"),Qo=Symbol.for("react.fragment"),ei=Object.prototype.hasOwnProperty,ti=Jo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ri={key:!0,ref:!0,__self:!0,__source:!0};function ni(e,t,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)ei.call(t,n)&&!ri.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:Zo,type:e,key:i,ref:a,props:o,_owner:ti.current}}Xo.Fragment=Qo,Xo.jsx=ni,Xo.jsxs=ni,Ko.exports=Xo;var oi=Ko.exports;function ii(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 ai=Object.freeze({__proto__:null,default:ii}),li="$$material";function si(){return si=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},si.apply(this,arguments)}function ui(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var ci=function(){return ci=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ci.apply(this,arguments)};function di(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var pi="-ms-",fi="-moz-",hi="-webkit-",mi="comm",gi="rule",bi="decl",vi="@import",yi="@keyframes",xi="@layer",Si=Math.abs,Ei=String.fromCharCode,Ci=Object.assign;function wi(e){return e.trim()}function Ri(e,t){return(e=t.exec(e))?e[0]:e}function Li(e,t,r){return e.replace(t,r)}function Ai(e,t,r){return e.indexOf(t,r)}function Di(e,t){return 0|e.charCodeAt(t)}function _i(e,t,r){return e.slice(t,r)}function Ii(e){return e.length}function Mi(e){return e.length}function Oi(e,t){return t.push(e),e}function Pi(e,t){return e.filter((function(e){return!Ri(e,t)}))}var ki=1,Ti=1,qi=0,Ni=0,Fi=0,zi="";function $i(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:ki,column:Ti,length:a,return:"",siblings:l}}function ji(e,t){return Ci($i("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Gi(e){for(;e.root;)e=ji(e.root,{children:[e]});Oi(e,e.siblings)}function Bi(){return Fi=Ni>0?Di(zi,--Ni):0,Ti--,10===Fi&&(Ti=1,ki--),Fi}function Hi(){return Fi=Ni<qi?Di(zi,Ni++):0,Ti++,10===Fi&&(Ti=1,ki++),Fi}function Wi(){return Di(zi,Ni)}function Vi(){return Ni}function Yi(e,t){return _i(zi,e,t)}function Ui(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 Ki(e){return wi(Yi(Ni-1,Zi(91===e?e+2:40===e?e+1:e)))}function Xi(e){for(;(Fi=Wi())&&Fi<33;)Hi();return Ui(e)>2||Ui(Fi)>3?"":" "}function Ji(e,t){for(;--t&&Hi()&&!(Fi<48||Fi>102||Fi>57&&Fi<65||Fi>70&&Fi<97););return Yi(e,Vi()+(t<6&&32==Wi()&&32==Hi()))}function Zi(e){for(;Hi();)switch(Fi){case e:return Ni;case 34:case 39:34!==e&&39!==e&&Zi(Fi);break;case 40:41===e&&Zi(e);break;case 92:Hi()}return Ni}function Qi(e,t){for(;Hi()&&e+Fi!==57&&(e+Fi!==84||47!==Wi()););return"/*"+Yi(t,Ni-1)+"*"+Ei(47===e?e:Hi())}function ea(e){for(;!Ui(Wi());)Hi();return Yi(e,Ni)}function ta(e){return function(e){return zi="",e}(ra("",null,null,null,[""],e=function(e){return ki=Ti=1,qi=Ii(zi=e),Ni=0,[]}(e),0,[0],e))}function ra(e,t,r,n,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=n,C=y;g;)switch(h=v,v=Hi()){case 40:if(108!=h&&58==Di(C,d-1)){-1!=Ai(C+=Li(Ki(v),"&","&\f"),"&\f",Si(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Ki(v);break;case 9:case 10:case 13:case 32:C+=Xi(h);break;case 92:C+=Ji(Vi()-1,7);continue;case 47:switch(Wi()){case 42:case 47:Oi(oa(Qi(Hi(),Vi()),t,r,s),s);break;default:C+="/"}break;case 123*m:l[u++]=Ii(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=Li(C,/\f/g,"")),f>0&&Ii(C)-d&&Oi(f>32?ia(C+";",n,r,d-1,s):ia(Li(C," ","")+";",n,r,d-2,s),s);break;case 59:C+=";";default:if(Oi(E=na(C,t,r,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)ra(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===Di(C,3)?100:p){case 100:case 108:case 109:case 115:ra(e,E,E,n&&Oi(na(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,n?x:S);break;default:ra(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+Ii(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Bi())continue;switch(C+=Ei(v),v*m){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Ii(C)-1)*b,b=1;break;case 64:45===Wi()&&(C+=Ki(Hi())),p=Wi(),c=d=Ii(y=C+=ea(Vi())),v++;break;case 45:45===h&&2==Ii(C)&&(m=0)}}return i}function na(e,t,r,n,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],h=Mi(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=_i(e,p+1,p=Si(g=a[m])),x=e;v<h;++v)(x=wi(g>0?f[v]+" "+y:Li(y,/&\f/g,f[v])))&&(s[b++]=x);return $i(e,t,r,0===o?gi:l,s,u,c,d)}function oa(e,t,r,n){return $i(e,t,r,mi,Ei(Fi),_i(e,2,-2),0,n)}function ia(e,t,r,n,o){return $i(e,t,r,bi,_i(e,0,n),_i(e,n+1,-1),n,o)}function aa(e,t,r){switch(function(e,t){return 45^Di(e,0)?(((t<<2^Di(e,0))<<2^Di(e,1))<<2^Di(e,2))<<2^Di(e,3):0}(e,t)){case 5103:return hi+"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 hi+e+e;case 4789:return fi+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return hi+e+fi+e+pi+e+e;case 5936:switch(Di(e,t+11)){case 114:return hi+e+pi+Li(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return hi+e+pi+Li(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return hi+e+pi+Li(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return hi+e+pi+e+e;case 6165:return hi+e+pi+"flex-"+e+e;case 5187:return hi+e+Li(e,/(\w+).+(:[^]+)/,hi+"box-$1$2"+pi+"flex-$1$2")+e;case 5443:return hi+e+pi+"flex-item-"+Li(e,/flex-|-self/g,"")+(Ri(e,/flex-|baseline/)?"":pi+"grid-row-"+Li(e,/flex-|-self/g,""))+e;case 4675:return hi+e+pi+"flex-line-pack"+Li(e,/align-content|flex-|-self/g,"")+e;case 5548:return hi+e+pi+Li(e,"shrink","negative")+e;case 5292:return hi+e+pi+Li(e,"basis","preferred-size")+e;case 6060:return hi+"box-"+Li(e,"-grow","")+hi+e+pi+Li(e,"grow","positive")+e;case 4554:return hi+Li(e,/([^-])(transform)/g,"$1"+hi+"$2")+e;case 6187:return Li(Li(Li(e,/(zoom-|grab)/,hi+"$1"),/(image-set)/,hi+"$1"),e,"")+e;case 5495:case 3959:return Li(e,/(image-set\([^]*)/,hi+"$1$`$1");case 4968:return Li(Li(e,/(.+:)(flex-)?(.*)/,hi+"box-pack:$3"+pi+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+hi+e+e;case 4200:if(!Ri(e,/flex-|baseline/))return pi+"grid-column-align"+_i(e,t)+e;break;case 2592:case 3360:return pi+Li(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,Ri(e.props,/grid-\w+-end/)}))?~Ai(e+(r=r[t].value),"span",0)?e:pi+Li(e,"-start","")+e+pi+"grid-row-span:"+(~Ai(r,"span",0)?Ri(r,/\d+/):+Ri(r,/\d+/)-+Ri(e,/\d+/))+";":pi+Li(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return Ri(e.props,/grid-\w+-start/)}))?e:pi+Li(Li(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Li(e,/(.+)-inline(.+)/,hi+"$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(Ii(e)-1-t>6)switch(Di(e,t+1)){case 109:if(45!==Di(e,t+4))break;case 102:return Li(e,/(.+:)(.+)-([^]+)/,"$1"+hi+"$2-$3$1"+fi+(108==Di(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ai(e,"stretch",0)?aa(Li(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Li(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,l){return pi+r+":"+n+l+(o?pi+r+"-span:"+(i?a:+a-+n)+l:"")+e}));case 4949:if(121===Di(e,t+6))return Li(e,":",":"+hi)+e;break;case 6444:switch(Di(e,45===Di(e,14)?18:11)){case 120:return Li(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+hi+(45===Di(e,14)?"inline-":"")+"box$3$1"+hi+"$2$3$1"+pi+"$2box$3")+e;case 100:return Li(e,":",":"+pi)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Li(e,"scroll-","scroll-snap-")+e}return e}function la(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function sa(e,t,r,n){switch(e.type){case xi:if(e.children.length)break;case vi:case bi:return e.return=e.return||e.value;case mi:return"";case yi:return e.return=e.value+"{"+la(e.children,n)+"}";case gi:if(!Ii(e.value=e.props.join(",")))return""}return Ii(r=la(e.children,n))?e.return=e.value+"{"+r+"}":""}function ua(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case bi:return void(e.return=aa(e.value,e.length,r));case yi:return la([ji(e,{value:Li(e.value,"@","@"+hi)})],n);case gi:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(Ri(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Gi(ji(e,{props:[Li(t,/:(read-\w+)/,":"+fi+"$1")]})),Gi(ji(e,{props:[t]})),Ci(e,{props:Pi(r,n)});break;case"::placeholder":Gi(ji(e,{props:[Li(t,/:(plac\w+)/,":"+hi+"input-$1")]})),Gi(ji(e,{props:[Li(t,/:(plac\w+)/,":"+fi+"$1")]})),Gi(ji(e,{props:[Li(t,/:(plac\w+)/,pi+"input-$1")]})),Gi(ji(e,{props:[t]})),Ci(e,{props:Pi(r,n)})}return""}))}}var ca={animationIterationCount: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},da="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",pa="active",fa="data-styled-version",ha="6.1.8",ma="/*!sc*/\n",ga="undefined"!=typeof window&&"HTMLElement"in window,ba=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)),va={},ya=Object.freeze([]),xa=Object.freeze({});function Sa(e,t,r){return void 0===r&&(r=xa),e.theme!==r.theme&&e.theme||t||r.theme}var Ea=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"]),Ca=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,wa=/(^-|-$)/g;function Ra(e){return e.replace(Ca,"-").replace(wa,"")}var La=/(a)(d)/gi,Aa=52,Da=function(e){return String.fromCharCode(e+(e>25?39:97))};function _a(e){var t,r="";for(t=Math.abs(e);t>Aa;t=t/Aa|0)r=Da(t%Aa)+r;return(Da(t%Aa)+r).replace(La,"$1-$2")}var Ia,Ma=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Oa=function(e){return Ma(5381,e)};function Pa(e){return _a(Oa(e)>>>0)}function ka(e){return"string"==typeof e&&!0}var Ta="function"==typeof Symbol&&Symbol.for,qa=Ta?Symbol.for("react.memo"):60115,Na=Ta?Symbol.for("react.forward_ref"):60112,Fa={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},za={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},$a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ja=((Ia={})[Na]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ia[qa]=$a,Ia);function Ga(e){return("type"in(t=e)&&t.type.$$typeof)===qa?$a:"$$typeof"in e?ja[e.$$typeof]:Fa;var t}var Ba=Object.defineProperty,Ha=Object.getOwnPropertyNames,Wa=Object.getOwnPropertySymbols,Va=Object.getOwnPropertyDescriptor,Ya=Object.getPrototypeOf,Ua=Object.prototype;function Ka(e,t,r){if("string"!=typeof t){if(Ua){var n=Ya(t);n&&n!==Ua&&Ka(e,n,r)}var o=Ha(t);Wa&&(o=o.concat(Wa(t)));for(var i=Ga(e),a=Ga(t),l=0;l<o.length;++l){var s=o[l];if(!(s in za||r&&r[s]||a&&s in a||i&&s in i)){var u=Va(t,s);try{Ba(e,s,u)}catch(e){}}}}return e}function Xa(e){return"function"==typeof e}function Ja(e){return"object"==typeof e&&"styledComponentId"in e}function Za(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Qa(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=t?t+e[n]:e[n];return r}function el(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function tl(e,t,r){if(void 0===r&&(r=!1),!r&&!el(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=tl(e[n],t[n]);else if(el(t))for(var n in t)e[n]=tl(e[n],t[n]);return e}function rl(e,t){Object.defineProperty(e,"toString",{value:t})}function nl(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var ol=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw nl(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(ma);return t},e}(),il=new Map,al=new Map,ll=1,sl=function(e){if(il.has(e))return il.get(e);for(;al.has(ll);)ll++;var t=ll++;return il.set(e,t),al.set(t,e),t},ul=function(e,t){ll=t+1,il.set(e,t),al.set(t,e)},cl="style[".concat(da,"][").concat(fa,'="').concat(ha,'"]'),dl=new RegExp("^".concat(da,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),pl=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},fl=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(ma),o=[],i=0,a=n.length;i<a;i++){var l=n[i].trim();if(l){var s=l.match(dl);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(ul(c,u),pl(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}};var hl=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(da,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(da,pa),n.setAttribute(fa,ha);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},ml=function(){function e(e){this.element=hl(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}throw nl(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}(),gl=function(){function e(e){this.element=hl(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),bl=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}(),vl=ga,yl={isServer:!ga,useCSSOMInjection:!ba},xl=function(){function e(e,t,r){void 0===e&&(e=xa),void 0===t&&(t={});var n=this;this.options=ci(ci({},yl),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&ga&&vl&&(vl=!1,function(e){for(var t=document.querySelectorAll(cl),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(da)!==pa&&(fl(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),rl(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return al.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(r);if(void 0===i||0===a.length)return"continue";var l="".concat(da,".g").concat(r,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),n+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(ma)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return sl(e)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(ci(ci({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new bl(r):t?new ml(r):new gl(r)}(this.options),new ol(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(sl(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(sl(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(sl(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Sl=/&/g,El=/^\s*\/\/.*$/gm;function Cl(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=Cl(e.children,t)),e}))}var wl=new xl,Rl=function(e){var t,r,n,o=void 0===e?xa:e,i=o.options,a=void 0===i?xa:i,l=o.plugins,s=void 0===l?ya:l,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===gi&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Sl,r).replace(n,u))})),a.prefix&&c.push(ua),c.push(sa);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var s=e.replace(El,""),u=ta(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=Cl(u,a.namespace));var d,p=[];return la(u,function(e){var t=Mi(e);return function(r,n,o,i){for(var a="",l=0;l<t;l++)a+=e[l](r,n,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||nl(15),Ma(e,t.name)}),5381).toString():"",d}(),Ll=y.createContext({shouldForwardProp:void 0,styleSheet:wl,stylis:Rl});function Al(){return x(Ll)}Ll.Consumer;var Dl=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Rl);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,rl(this,(function(){throw nl(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Rl),this.name+e.hash},e}(),_l=function(e){return e>="A"&&e<="Z"};function Il(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;_l(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Ml=function(e){return null==e||!1===e||""===e},Ol=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Ml(i)&&(Array.isArray(i)&&i.isCss||Xa(i)?n.push("".concat(Il(o),":"),i,";"):el(i)?n.push.apply(n,di(di(["".concat(o," {")],Ol(i),!1),["}"],!1)):n.push("".concat(Il(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in ca||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Pl(e,t,r,n){return Ml(e)?[]:Ja(e)?[".".concat(e.styledComponentId)]:Xa(e)?!Xa(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Pl(e(t),t,r,n):e instanceof Dl?r?(e.inject(r,n),[e.getName(n)]):[e]:el(e)?Ol(e):Array.isArray(e)?Array.prototype.concat.apply(ya,e.map((function(e){return Pl(e,t,r,n)}))):[e.toString()];var o}function kl(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Xa(r)&&!Ja(r))return!1}return!0}var Tl=Oa(ha),ql=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&kl(e),this.componentId=t,this.baseHash=Ma(Tl,t),this.baseStyle=r,xl.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=Za(n,this.staticRulesId);else{var o=Qa(Pl(this.rules,e,t,r)),i=_a(Ma(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=r(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}n=Za(n,i),this.staticRulesId=i}else{for(var l=Ma(this.baseHash,r.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=Qa(Pl(c,e,t,r));l=Ma(l,d+u),s+=d}}if(s){var p=_a(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(s,".".concat(p),void 0,this.componentId)),n=Za(n,p)}}return n},e}(),Nl=y.createContext(void 0);Nl.Consumer;var Fl={};new Set;function zl(e,t,r){var n=Ja(e),o=e,i=!ka(e),a=t.attrs,l=void 0===a?ya:a,s=t.componentId,u=void 0===s?function(e,t){var r="string"!=typeof e?"sc":Ra(e);Fl[r]=(Fl[r]||0)+1;var n="".concat(r,"-").concat(Pa(ha+r+Fl[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return ka(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Ra(t.displayName),"-").concat(t.componentId):t.componentId||u,f=n&&o.attrs?o.attrs.concat(l).filter(Boolean):l,h=t.shouldForwardProp;if(n&&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 ql(r,p,n?o.componentStyle:void 0);function v(e,t){return function(e,t,r){var n=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=y.useContext(Nl),c=Al(),d=e.shouldForwardProp||c.shouldForwardProp,p=Sa(t,u,i)||xa,f=function(e,t,r){for(var n,o=ci(ci({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=Xa(n=e[i])?n(o):n;for(var l in a)o[l]="className"===l?Za(o[l],a[l]):"style"===l?ci(ci({},o[l]),a[l]):a[l]}return t.className&&(o.className=Za(o.className,t.className)),o}(n,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 r=Al();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=Za(a,l);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),m[ka(h)&&!Ea.has(h)?"class":"className"]=v,m.ref=r,S(h,m)}(x,e,t)}v.displayName=d;var x=y.forwardRef(v);return x.attrs=f,x.componentStyle=b,x.displayName=d,x.shouldForwardProp=h,x.foldedComponentIds=n?Za(o.foldedComponentIds,o.styledComponentId):"",x.styledComponentId=p,x.target=n?o.target:e,Object.defineProperty(x,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=n?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)tl(e,o[n],!0);return e}({},o.defaultProps,e):e}}),rl(x,(function(){return".".concat(x.styledComponentId)})),i&&Ka(x,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),x}function $l(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var jl=function(e){return Object.assign(e,{isCss:!0})};function Gl(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Xa(e)||el(e))return jl(Pl($l(ya,di([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Pl(n):jl(Pl($l(n,t)))}function Bl(e,t,r){if(void 0===r&&(r=xa),!t)throw nl(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,Gl.apply(void 0,di([n],o,!1)))};return n.attrs=function(n){return Bl(e,t,ci(ci({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return Bl(e,t,ci(ci({},r),n))},n}var Hl=function(e){return Bl(zl,e)},Wl=Hl;Ea.forEach((function(e){Wl[e]=Hl(e)}));var Vl=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=kl(e),xl.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(Qa(Pl(this.rules,t,r,n)),""),i=this.componentId+e;r.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&xl.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Yl(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Gl.apply(void 0,di([e],t,!1)),o="sc-global-".concat(Pa(JSON.stringify(n))),i=new Vl(n,o),a=function(e){var t=Al(),r=y.useContext(Nl),n=y.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,va,r,o);else{var l=ci(ci({},t),{theme:Sa(t,n,a.defaultProps)});i.renderStyles(e,l,r,o)}}(n,e,t.styleSheet,r,t.stylis),null};return y.memo(a)}function Ul(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Qa(Gl.apply(void 0,di([e],t,!1))),o=Pa(n);return new Dl(o,n)}var Kl={exports:{}};function Xl(){}function Jl(){}Jl.resetWarningCache=Xl;Kl.exports=function(){function e(e,t,r,n,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Jl,resetWarningCache:Xl};return r.PropTypes=r,r}();var Zl=q(Kl.exports);function Ql(e){const{injectFirst:t,children:r}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return r}Ql.propTypes={children:Zl.node,injectFirst:Zl.bool};const es=Yl((e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n}));var ts=es;
|
|
11
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),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(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(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"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},Po({exports:{}});const Ho=3,Bo="N";function Wo(e,t,r){let n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=r(a),u=r(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?n=i+1:o=i}return null}function Vo({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=Ho}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=y((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=To(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=To((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=Wo(o,t,l)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a(Bo).width*e,estimateLineCount:s}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var Yo,Uo=q;Yo=Uo.createRoot,Uo.hydrateRoot;function Ko(e,t){const[r,n]=x(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var Xo={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 Jo=({translator:e})=>(y((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Xo).forEach((t=>{e.add(Xo[t])}))}}(e)),[e]),e);var Zo={exports:{}},Qo={},ei=S,ti=Symbol.for("react.element"),ri=Symbol.for("react.fragment"),ni=Object.prototype.hasOwnProperty,oi=ei.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ii={key:!0,ref:!0,__self:!0,__source:!0};function ai(e,t,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)ni.call(t,n)&&!ii.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:ti,type:e,key:i,ref:a,props:o,_owner:oi.current}}Qo.Fragment=ri,Qo.jsx=ai,Qo.jsxs=ai,Zo.exports=Qo;var li=Zo.exports;function si(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 ui=Object.freeze({__proto__:null,default:si}),ci="$$material";function di(){return di=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},di.apply(this,arguments)}function pi(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var fi=function(){return fi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},fi.apply(this,arguments)};function hi(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var mi="-ms-",gi="-moz-",bi="-webkit-",vi="comm",yi="rule",xi="decl",Si="@import",Ei="@keyframes",Ci="@layer",wi=Math.abs,Ri=String.fromCharCode,Li=Object.assign;function Ai(e){return e.trim()}function Ii(e,t){return(e=t.exec(e))?e[0]:e}function Di(e,t,r){return e.replace(t,r)}function _i(e,t,r){return e.indexOf(t,r)}function Mi(e,t){return 0|e.charCodeAt(t)}function Pi(e,t,r){return e.slice(t,r)}function Oi(e){return e.length}function ki(e){return e.length}function Ti(e,t){return t.push(e),e}function qi(e,t){return e.filter((function(e){return!Ii(e,t)}))}var Ni=1,Fi=1,zi=0,$i=0,ji=0,Gi="";function Hi(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Ni,column:Fi,length:a,return:"",siblings:l}}function Bi(e,t){return Li(Hi("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Wi(e){for(;e.root;)e=Bi(e.root,{children:[e]});Ti(e,e.siblings)}function Vi(){return ji=$i>0?Mi(Gi,--$i):0,Fi--,10===ji&&(Fi=1,Ni--),ji}function Yi(){return ji=$i<zi?Mi(Gi,$i++):0,Fi++,10===ji&&(Fi=1,Ni++),ji}function Ui(){return Mi(Gi,$i)}function Ki(){return $i}function Xi(e,t){return Pi(Gi,e,t)}function Ji(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 Zi(e){return Ai(Xi($i-1,ta(91===e?e+2:40===e?e+1:e)))}function Qi(e){for(;(ji=Ui())&&ji<33;)Yi();return Ji(e)>2||Ji(ji)>3?"":" "}function ea(e,t){for(;--t&&Yi()&&!(ji<48||ji>102||ji>57&&ji<65||ji>70&&ji<97););return Xi(e,Ki()+(t<6&&32==Ui()&&32==Yi()))}function ta(e){for(;Yi();)switch(ji){case e:return $i;case 34:case 39:34!==e&&39!==e&&ta(ji);break;case 40:41===e&&ta(e);break;case 92:Yi()}return $i}function ra(e,t){for(;Yi()&&e+ji!==57&&(e+ji!==84||47!==Ui()););return"/*"+Xi(t,$i-1)+"*"+Ri(47===e?e:Yi())}function na(e){for(;!Ji(Ui());)Yi();return Xi(e,$i)}function oa(e){return function(e){return Gi="",e}(ia("",null,null,null,[""],e=function(e){return Ni=Fi=1,zi=Oi(Gi=e),$i=0,[]}(e),0,[0],e))}function ia(e,t,r,n,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=n,C=y;g;)switch(h=v,v=Yi()){case 40:if(108!=h&&58==Mi(C,d-1)){-1!=_i(C+=Di(Zi(v),"&","&\f"),"&\f",wi(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Zi(v);break;case 9:case 10:case 13:case 32:C+=Qi(h);break;case 92:C+=ea(Ki()-1,7);continue;case 47:switch(Ui()){case 42:case 47:Ti(la(ra(Yi(),Ki()),t,r,s),s);break;default:C+="/"}break;case 123*m:l[u++]=Oi(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=Di(C,/\f/g,"")),f>0&&Oi(C)-d&&Ti(f>32?sa(C+";",n,r,d-1,s):sa(Di(C," ","")+";",n,r,d-2,s),s);break;case 59:C+=";";default:if(Ti(E=aa(C,t,r,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)ia(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===Mi(C,3)?100:p){case 100:case 108:case 109:case 115:ia(e,E,E,n&&Ti(aa(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,n?x:S);break;default:ia(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+Oi(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Vi())continue;switch(C+=Ri(v),v*m){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Oi(C)-1)*b,b=1;break;case 64:45===Ui()&&(C+=Zi(Yi())),p=Ui(),c=d=Oi(y=C+=na(Ki())),v++;break;case 45:45===h&&2==Oi(C)&&(m=0)}}return i}function aa(e,t,r,n,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],h=ki(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=Pi(e,p+1,p=wi(g=a[m])),x=e;v<h;++v)(x=Ai(g>0?f[v]+" "+y:Di(y,/&\f/g,f[v])))&&(s[b++]=x);return Hi(e,t,r,0===o?yi:l,s,u,c,d)}function la(e,t,r,n){return Hi(e,t,r,vi,Ri(ji),Pi(e,2,-2),0,n)}function sa(e,t,r,n,o){return Hi(e,t,r,xi,Pi(e,0,n),Pi(e,n+1,-1),n,o)}function ua(e,t,r){switch(function(e,t){return 45^Mi(e,0)?(((t<<2^Mi(e,0))<<2^Mi(e,1))<<2^Mi(e,2))<<2^Mi(e,3):0}(e,t)){case 5103:return bi+"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 bi+e+e;case 4789:return gi+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return bi+e+gi+e+mi+e+e;case 5936:switch(Mi(e,t+11)){case 114:return bi+e+mi+Di(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return bi+e+mi+Di(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return bi+e+mi+Di(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return bi+e+mi+e+e;case 6165:return bi+e+mi+"flex-"+e+e;case 5187:return bi+e+Di(e,/(\w+).+(:[^]+)/,bi+"box-$1$2"+mi+"flex-$1$2")+e;case 5443:return bi+e+mi+"flex-item-"+Di(e,/flex-|-self/g,"")+(Ii(e,/flex-|baseline/)?"":mi+"grid-row-"+Di(e,/flex-|-self/g,""))+e;case 4675:return bi+e+mi+"flex-line-pack"+Di(e,/align-content|flex-|-self/g,"")+e;case 5548:return bi+e+mi+Di(e,"shrink","negative")+e;case 5292:return bi+e+mi+Di(e,"basis","preferred-size")+e;case 6060:return bi+"box-"+Di(e,"-grow","")+bi+e+mi+Di(e,"grow","positive")+e;case 4554:return bi+Di(e,/([^-])(transform)/g,"$1"+bi+"$2")+e;case 6187:return Di(Di(Di(e,/(zoom-|grab)/,bi+"$1"),/(image-set)/,bi+"$1"),e,"")+e;case 5495:case 3959:return Di(e,/(image-set\([^]*)/,bi+"$1$`$1");case 4968:return Di(Di(e,/(.+:)(flex-)?(.*)/,bi+"box-pack:$3"+mi+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+bi+e+e;case 4200:if(!Ii(e,/flex-|baseline/))return mi+"grid-column-align"+Pi(e,t)+e;break;case 2592:case 3360:return mi+Di(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,Ii(e.props,/grid-\w+-end/)}))?~_i(e+(r=r[t].value),"span",0)?e:mi+Di(e,"-start","")+e+mi+"grid-row-span:"+(~_i(r,"span",0)?Ii(r,/\d+/):+Ii(r,/\d+/)-+Ii(e,/\d+/))+";":mi+Di(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return Ii(e.props,/grid-\w+-start/)}))?e:mi+Di(Di(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Di(e,/(.+)-inline(.+)/,bi+"$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(Oi(e)-1-t>6)switch(Mi(e,t+1)){case 109:if(45!==Mi(e,t+4))break;case 102:return Di(e,/(.+:)(.+)-([^]+)/,"$1"+bi+"$2-$3$1"+gi+(108==Mi(e,t+3)?"$3":"$2-$3"))+e;case 115:return~_i(e,"stretch",0)?ua(Di(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Di(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,l){return mi+r+":"+n+l+(o?mi+r+"-span:"+(i?a:+a-+n)+l:"")+e}));case 4949:if(121===Mi(e,t+6))return Di(e,":",":"+bi)+e;break;case 6444:switch(Mi(e,45===Mi(e,14)?18:11)){case 120:return Di(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+bi+(45===Mi(e,14)?"inline-":"")+"box$3$1"+bi+"$2$3$1"+mi+"$2box$3")+e;case 100:return Di(e,":",":"+mi)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Di(e,"scroll-","scroll-snap-")+e}return e}function ca(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function da(e,t,r,n){switch(e.type){case Ci:if(e.children.length)break;case Si:case xi:return e.return=e.return||e.value;case vi:return"";case Ei:return e.return=e.value+"{"+ca(e.children,n)+"}";case yi:if(!Oi(e.value=e.props.join(",")))return""}return Oi(r=ca(e.children,n))?e.return=e.value+"{"+r+"}":""}function pa(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case xi:return void(e.return=ua(e.value,e.length,r));case Ei:return ca([Bi(e,{value:Di(e.value,"@","@"+bi)})],n);case yi:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(Ii(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Wi(Bi(e,{props:[Di(t,/:(read-\w+)/,":"+gi+"$1")]})),Wi(Bi(e,{props:[t]})),Li(e,{props:qi(r,n)});break;case"::placeholder":Wi(Bi(e,{props:[Di(t,/:(plac\w+)/,":"+bi+"input-$1")]})),Wi(Bi(e,{props:[Di(t,/:(plac\w+)/,":"+gi+"$1")]})),Wi(Bi(e,{props:[Di(t,/:(plac\w+)/,mi+"input-$1")]})),Wi(Bi(e,{props:[t]})),Li(e,{props:qi(r,n)})}return""}))}}var fa={animationIterationCount: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},ha="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ma="active",ga="data-styled-version",ba="6.1.8",va="/*!sc*/\n",ya="undefined"!=typeof window&&"HTMLElement"in window,xa=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)),Sa={},Ea=Object.freeze([]),Ca=Object.freeze({});function wa(e,t,r){return void 0===r&&(r=Ca),e.theme!==r.theme&&e.theme||t||r.theme}var Ra=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"]),La=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Aa=/(^-|-$)/g;function Ia(e){return e.replace(La,"-").replace(Aa,"")}var Da=/(a)(d)/gi,_a=52,Ma=function(e){return String.fromCharCode(e+(e>25?39:97))};function Pa(e){var t,r="";for(t=Math.abs(e);t>_a;t=t/_a|0)r=Ma(t%_a)+r;return(Ma(t%_a)+r).replace(Da,"$1-$2")}var Oa,ka=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Ta=function(e){return ka(5381,e)};function qa(e){return Pa(Ta(e)>>>0)}function Na(e){return"string"==typeof e&&!0}var Fa="function"==typeof Symbol&&Symbol.for,za=Fa?Symbol.for("react.memo"):60115,$a=Fa?Symbol.for("react.forward_ref"):60112,ja={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ga={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ha={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ba=((Oa={})[$a]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Oa[za]=Ha,Oa);function Wa(e){return("type"in(t=e)&&t.type.$$typeof)===za?Ha:"$$typeof"in e?Ba[e.$$typeof]:ja;var t}var Va=Object.defineProperty,Ya=Object.getOwnPropertyNames,Ua=Object.getOwnPropertySymbols,Ka=Object.getOwnPropertyDescriptor,Xa=Object.getPrototypeOf,Ja=Object.prototype;function Za(e,t,r){if("string"!=typeof t){if(Ja){var n=Xa(t);n&&n!==Ja&&Za(e,n,r)}var o=Ya(t);Ua&&(o=o.concat(Ua(t)));for(var i=Wa(e),a=Wa(t),l=0;l<o.length;++l){var s=o[l];if(!(s in Ga||r&&r[s]||a&&s in a||i&&s in i)){var u=Ka(t,s);try{Va(e,s,u)}catch(e){}}}}return e}function Qa(e){return"function"==typeof e}function el(e){return"object"==typeof e&&"styledComponentId"in e}function tl(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function rl(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=t?t+e[n]:e[n];return r}function nl(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ol(e,t,r){if(void 0===r&&(r=!1),!r&&!nl(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=ol(e[n],t[n]);else if(nl(t))for(var n in t)e[n]=ol(e[n],t[n]);return e}function il(e,t){Object.defineProperty(e,"toString",{value:t})}function al(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var ll=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw al(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(va);return t},e}(),sl=new Map,ul=new Map,cl=1,dl=function(e){if(sl.has(e))return sl.get(e);for(;ul.has(cl);)cl++;var t=cl++;return sl.set(e,t),ul.set(t,e),t},pl=function(e,t){cl=t+1,sl.set(e,t),ul.set(t,e)},fl="style[".concat(ha,"][").concat(ga,'="').concat(ba,'"]'),hl=new RegExp("^".concat(ha,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ml=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},gl=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(va),o=[],i=0,a=n.length;i<a;i++){var l=n[i].trim();if(l){var s=l.match(hl);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(pl(c,u),ml(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}};var bl=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(ha,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(ha,ma),n.setAttribute(ga,ba);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},vl=function(){function e(e){this.element=bl(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}throw al(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}(),yl=function(){function e(e){this.element=bl(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),xl=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}(),Sl=ya,El={isServer:!ya,useCSSOMInjection:!xa},Cl=function(){function e(e,t,r){void 0===e&&(e=Ca),void 0===t&&(t={});var n=this;this.options=fi(fi({},El),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&ya&&Sl&&(Sl=!1,function(e){for(var t=document.querySelectorAll(fl),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(ha)!==ma&&(gl(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),il(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return ul.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(r);if(void 0===i||0===a.length)return"continue";var l="".concat(ha,".g").concat(r,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),n+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(va)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return dl(e)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(fi(fi({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new xl(r):t?new vl(r):new yl(r)}(this.options),new ll(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(dl(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(dl(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(dl(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),wl=/&/g,Rl=/^\s*\/\/.*$/gm;function Ll(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=Ll(e.children,t)),e}))}var Al=new Cl,Il=function(e){var t,r,n,o=void 0===e?Ca:e,i=o.options,a=void 0===i?Ca:i,l=o.plugins,s=void 0===l?Ea:l,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===yi&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(wl,r).replace(n,u))})),a.prefix&&c.push(pa),c.push(da);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var s=e.replace(Rl,""),u=oa(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=Ll(u,a.namespace));var d,p=[];return ca(u,function(e){var t=ki(e);return function(r,n,o,i){for(var a="",l=0;l<t;l++)a+=e[l](r,n,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||al(15),ka(e,t.name)}),5381).toString():"",d}(),Dl=S.createContext({shouldForwardProp:void 0,styleSheet:Al,stylis:Il});function _l(){return E(Dl)}Dl.Consumer;var Ml=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Il);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,il(this,(function(){throw al(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Il),this.name+e.hash},e}(),Pl=function(e){return e>="A"&&e<="Z"};function Ol(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Pl(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var kl=function(e){return null==e||!1===e||""===e},Tl=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!kl(i)&&(Array.isArray(i)&&i.isCss||Qa(i)?n.push("".concat(Ol(o),":"),i,";"):nl(i)?n.push.apply(n,hi(hi(["".concat(o," {")],Tl(i),!1),["}"],!1)):n.push("".concat(Ol(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in fa||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function ql(e,t,r,n){return kl(e)?[]:el(e)?[".".concat(e.styledComponentId)]:Qa(e)?!Qa(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:ql(e(t),t,r,n):e instanceof Ml?r?(e.inject(r,n),[e.getName(n)]):[e]:nl(e)?Tl(e):Array.isArray(e)?Array.prototype.concat.apply(Ea,e.map((function(e){return ql(e,t,r,n)}))):[e.toString()];var o}function Nl(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Qa(r)&&!el(r))return!1}return!0}var Fl=Ta(ba),zl=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Nl(e),this.componentId=t,this.baseHash=ka(Fl,t),this.baseStyle=r,Cl.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=tl(n,this.staticRulesId);else{var o=rl(ql(this.rules,e,t,r)),i=Pa(ka(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=r(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}n=tl(n,i),this.staticRulesId=i}else{for(var l=ka(this.baseHash,r.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=rl(ql(c,e,t,r));l=ka(l,d+u),s+=d}}if(s){var p=Pa(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(s,".".concat(p),void 0,this.componentId)),n=tl(n,p)}}return n},e}(),$l=S.createContext(void 0);$l.Consumer;var jl={};new Set;function Gl(e,t,r){var n=el(e),o=e,i=!Na(e),a=t.attrs,l=void 0===a?Ea:a,s=t.componentId,u=void 0===s?function(e,t){var r="string"!=typeof e?"sc":Ia(e);jl[r]=(jl[r]||0)+1;var n="".concat(r,"-").concat(qa(ba+r+jl[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return Na(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Ia(t.displayName),"-").concat(t.componentId):t.componentId||u,f=n&&o.attrs?o.attrs.concat(l).filter(Boolean):l,h=t.shouldForwardProp;if(n&&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 zl(r,p,n?o.componentStyle:void 0);function v(e,t){return function(e,t,r){var n=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=S.useContext($l),c=_l(),d=e.shouldForwardProp||c.shouldForwardProp,p=wa(t,u,i)||Ca,f=function(e,t,r){for(var n,o=fi(fi({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=Qa(n=e[i])?n(o):n;for(var l in a)o[l]="className"===l?tl(o[l],a[l]):"style"===l?fi(fi({},o[l]),a[l]):a[l]}return t.className&&(o.className=tl(o.className,t.className)),o}(n,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 r=_l();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=tl(a,l);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),m[Na(h)&&!Ra.has(h)?"class":"className"]=v,m.ref=r,C(h,m)}(y,e,t)}v.displayName=d;var y=S.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=h,y.foldedComponentIds=n?tl(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=n?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=n?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)ol(e,o[n],!0);return e}({},o.defaultProps,e):e}}),il(y,(function(){return".".concat(y.styledComponentId)})),i&&Za(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function Hl(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var Bl=function(e){return Object.assign(e,{isCss:!0})};function Wl(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Qa(e)||nl(e))return Bl(ql(Hl(Ea,hi([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?ql(n):Bl(ql(Hl(n,t)))}function Vl(e,t,r){if(void 0===r&&(r=Ca),!t)throw al(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,Wl.apply(void 0,hi([n],o,!1)))};return n.attrs=function(n){return Vl(e,t,fi(fi({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return Vl(e,t,fi(fi({},r),n))},n}var Yl=function(e){return Vl(Gl,e)},Ul=Yl;Ra.forEach((function(e){Ul[e]=Yl(e)}));var Kl=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Nl(e),Cl.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(rl(ql(this.rules,t,r,n)),""),i=this.componentId+e;r.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&Cl.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Xl(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Wl.apply(void 0,hi([e],t,!1)),o="sc-global-".concat(qa(JSON.stringify(n))),i=new Kl(n,o),a=function(e){var t=_l(),r=S.useContext($l),n=S.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,Sa,r,o);else{var l=fi(fi({},t),{theme:wa(t,n,a.defaultProps)});i.renderStyles(e,l,r,o)}}(n,e,t.styleSheet,r,t.stylis),null};return S.memo(a)}function Jl(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=rl(Wl.apply(void 0,hi([e],t,!1))),o=qa(n);return new Ml(o,n)}var Zl={exports:{}};function Ql(){}function es(){}es.resetWarningCache=Ql;Zl.exports=function(){function e(e,t,r,n,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:es,resetWarningCache:Ql};return r.PropTypes=r,r}();var ts=F(Zl.exports);function rs(e){const{injectFirst:t,children:r}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return r}rs.propTypes={children:ts.node,injectFirst:ts.bool};const ns=Xl((e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n}));var os=ns;
|
|
12
12
|
/**
|
|
13
|
-
* @mui/styled-engine-sc v6.0.0-alpha.
|
|
13
|
+
* @mui/styled-engine-sc v6.0.0-alpha.18
|
|
14
14
|
*
|
|
15
15
|
* @license MIT
|
|
16
16
|
* This source code is licensed under the MIT license found in the
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
18
|
*/
|
|
19
|
-
function rs(e,t){let r;return r=t?Wl(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Wl(e),r}es.propTypes={defaultTheme:Zl.object,styles:Zl.oneOfType([Zl.array,Zl.string,Zl.object,Zl.func])};var ns=Object.freeze({__proto__:null,GlobalStyles:ts,StyledEngineProvider:Ql,ThemeContext:Nl,css:Gl,default:rs,internal_processStyles:(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))},keyframes:Ul});function os(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function is(e){if(!os(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=is(e[r])})),t}function as(e,t,r={clone:!0}){const n=r.clone?si({},e):e;return os(e)&&os(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(os(t[o])&&o in e&&os(e[o])?n[o]=as(e[o],t[o],r):r.clone?n[o]=os(t[o])?is(t[o]):t[o]:n[o]=t[o])})),n}var ls=Object.freeze({__proto__:null,default:as,isPlainObject:os});const ss=["values","unit","step"],us=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>si({},e,{[t.key]:t.val})),{})};function cs(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=ui(e,ss),i=us(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return si({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}var ds={borderRadius:4};function ps(e,t){return t?as(e,t,{clone:!1}):e}const fs={xs:0,sm:600,md:900,lg:1200,xl:1536},hs={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${fs[e]}px)`};function ms(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||hs;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||hs;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||fs).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function gs(e){if("string"!=typeof e)throw new Error(ii(7));return e.charAt(0).toUpperCase()+e.slice(1)}var bs=Object.freeze({__proto__:null,default:gs});function vs(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function ys(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:vs(e,r)||n,t&&(o=t(o,n,e)),o}function xs(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=vs(e.theme,n)||{};return ms(e,i,(e=>{let n=ys(a,o,e);return e===n&&"string"==typeof e&&(n=ys(a,o,`${t}${"default"===e?"":gs(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Ss={m:"margin",p:"padding"},Es={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Cs={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ws=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Cs[e])return[e];e=Cs[e]}const[t,r]=e.split(""),n=Ss[t],o=Es[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Rs=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ls=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function As(e,t,r,n){var o;const i=null!=(o=vs(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Ds(e){return As(e,"spacing",8)}function _s(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function Is(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=_s(t,r),e)),{})}(ws(r),n);return ms(e,e[r],o)}function Ms(e,t){const r=Ds(e.theme);return Object.keys(e).map((n=>Is(e,t,n,r))).reduce(ps,{})}function Os(e){return Ms(e,Rs)}function Ps(e){return Ms(e,Ls)}function ks(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?ps(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Ts(e){return"number"!=typeof e?e:`${e}px solid`}function qs(e,t){return xs({prop:e,themeKey:"borders",transform:t})}Os.propTypes={},Os.filterProps=Rs,Ps.propTypes={},Ps.filterProps=Ls;const Ns=qs("border",Ts),Fs=qs("borderTop",Ts),zs=qs("borderRight",Ts),$s=qs("borderBottom",Ts),js=qs("borderLeft",Ts),Gs=qs("borderColor"),Bs=qs("borderTopColor"),Hs=qs("borderRightColor"),Ws=qs("borderBottomColor"),Vs=qs("borderLeftColor"),Ys=qs("outline",Ts),Us=qs("outlineColor"),Ks=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=As(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:_s(t,e)});return ms(e,e.borderRadius,r)}return null};Ks.propTypes={},Ks.filterProps=["borderRadius"],ks(Ns,Fs,zs,$s,js,Gs,Bs,Hs,Ws,Vs,Ks,Ys,Us);const Xs=e=>{if(void 0!==e.gap&&null!==e.gap){const t=As(e.theme,"spacing",8),r=e=>({gap:_s(t,e)});return ms(e,e.gap,r)}return null};Xs.propTypes={},Xs.filterProps=["gap"];const Js=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=As(e.theme,"spacing",8),r=e=>({columnGap:_s(t,e)});return ms(e,e.columnGap,r)}return null};Js.propTypes={},Js.filterProps=["columnGap"];const Zs=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=As(e.theme,"spacing",8),r=e=>({rowGap:_s(t,e)});return ms(e,e.rowGap,r)}return null};Zs.propTypes={},Zs.filterProps=["rowGap"];function Qs(e,t){return"grey"===t?t:e}ks(Xs,Js,Zs,xs({prop:"gridColumn"}),xs({prop:"gridRow"}),xs({prop:"gridAutoFlow"}),xs({prop:"gridAutoColumns"}),xs({prop:"gridAutoRows"}),xs({prop:"gridTemplateColumns"}),xs({prop:"gridTemplateRows"}),xs({prop:"gridTemplateAreas"}),xs({prop:"gridArea"}));function eu(e){return e<=1&&0!==e?100*e+"%":e}ks(xs({prop:"color",themeKey:"palette",transform:Qs}),xs({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Qs}),xs({prop:"backgroundColor",themeKey:"palette",transform:Qs}));const tu=xs({prop:"width",transform:eu}),ru=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||fs[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:eu(t)}};return ms(e,e.maxWidth,t)}return null};ru.filterProps=["maxWidth"];const nu=xs({prop:"minWidth",transform:eu}),ou=xs({prop:"height",transform:eu}),iu=xs({prop:"maxHeight",transform:eu}),au=xs({prop:"minHeight",transform:eu});xs({prop:"size",cssProperty:"width",transform:eu}),xs({prop:"size",cssProperty:"height",transform:eu});ks(tu,ru,nu,ou,iu,au,xs({prop:"boxSizing"}));var lu={border:{themeKey:"borders",transform:Ts},borderTop:{themeKey:"borders",transform:Ts},borderRight:{themeKey:"borders",transform:Ts},borderBottom:{themeKey:"borders",transform:Ts},borderLeft:{themeKey:"borders",transform:Ts},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ts},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ks},color:{themeKey:"palette",transform:Qs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Qs},backgroundColor:{themeKey:"palette",transform:Qs},p:{style:Ps},pt:{style:Ps},pr:{style:Ps},pb:{style:Ps},pl:{style:Ps},px:{style:Ps},py:{style:Ps},padding:{style:Ps},paddingTop:{style:Ps},paddingRight:{style:Ps},paddingBottom:{style:Ps},paddingLeft:{style:Ps},paddingX:{style:Ps},paddingY:{style:Ps},paddingInline:{style:Ps},paddingInlineStart:{style:Ps},paddingInlineEnd:{style:Ps},paddingBlock:{style:Ps},paddingBlockStart:{style:Ps},paddingBlockEnd:{style:Ps},m:{style:Os},mt:{style:Os},mr:{style:Os},mb:{style:Os},ml:{style:Os},mx:{style:Os},my:{style:Os},margin:{style:Os},marginTop:{style:Os},marginRight:{style:Os},marginBottom:{style:Os},marginLeft:{style:Os},marginX:{style:Os},marginY:{style:Os},marginInline:{style:Os},marginInlineStart:{style:Os},marginInlineEnd:{style:Os},marginBlock:{style:Os},marginBlockStart:{style:Os},marginBlockEnd:{style:Os},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Xs},rowGap:{style:Zs},columnGap:{style:Js},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:eu},maxWidth:{style:ru},minWidth:{transform:eu},height:{transform:eu},maxHeight:{transform:eu},minHeight:{transform:eu},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function su(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=vs(r,l)||{};if(u)return u(o);return ms(o,t,(t=>{let r=ys(c,s,t);return t===r&&"string"==typeof t&&(r=ys(c,s,`${e}${"default"===t?"":gs(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=null!=(n=i.unstable_sxConfig)?n:lu;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=ps(s,e(r,o,i,a));else{const e=ms({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?s=ps(s,e):s[r]=t({sx:o,theme:i})}else s=ps(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const uu=su();uu.filterProps=["sx"];var cu=uu;function du(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){return{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return r.palette.mode===e?t:{}}const pu=["breakpoints","palette","spacing","shape"];function fu(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=ui(e,pu),l=cs(r),s=function(e=8){if(e.mui)return e;const t=Ds({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=as({breakpoints:l,direction:"ltr",components:{},palette:si({mode:"light"},n),spacing:s,shape:si({},ds,i)},a);return u.applyStyles=du,u=t.reduce(((e,t)=>as(e,t)),u),u.unstable_sxConfig=si({},lu,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return cu({sx:e,theme:this})},u}var hu=Object.freeze({__proto__:null,default:fu,private_createBreakpoints:cs,unstable_applyStyles:du});function mu(e=null){const t=E.useContext(Nl);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const gu=fu();const bu=["sx"],vu=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:lu;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function yu(e){const{sx:t}=e,r=ui(e,bu),{systemProps:n,otherProps:o}=vu(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return os(r)?si({},n,r):n}:si({},n,t),si({},o,{sx:i})}var xu=Object.freeze({__proto__:null,default:cu,extendSxProp:yu,unstable_createStyleFunctionSx:su,unstable_defaultSxConfig:lu});const Su=e=>e;var Eu=(()=>{let e=Su;return{configure(t){e=t},generate:t=>e(t),reset(){e=Su}}})();function Cu(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Cu(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function wu(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Cu(e))&&(n&&(n+=" "),n+=t);return n}const Ru=["className","component"];const Lu={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};var Au,Du={exports:{}},_u={},Iu=Symbol.for("react.element"),Mu=Symbol.for("react.portal"),Ou=Symbol.for("react.fragment"),Pu=Symbol.for("react.strict_mode"),ku=Symbol.for("react.profiler"),Tu=Symbol.for("react.provider"),qu=Symbol.for("react.context"),Nu=Symbol.for("react.server_context"),Fu=Symbol.for("react.forward_ref"),zu=Symbol.for("react.suspense"),$u=Symbol.for("react.suspense_list"),ju=Symbol.for("react.memo"),Gu=Symbol.for("react.lazy"),Bu=Symbol.for("react.offscreen");function Hu(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Iu:switch(e=e.type){case Ou:case ku:case Pu:case zu:case $u:return e;default:switch(e=e&&e.$$typeof){case Nu:case qu:case Fu:case Gu:case ju:case Tu:return e;default:return t}}case Mu:return t}}}Au=Symbol.for("react.module.reference"),_u.ContextConsumer=qu,_u.ContextProvider=Tu,_u.Element=Iu,_u.ForwardRef=Fu,_u.Fragment=Ou,_u.Lazy=Gu,_u.Memo=ju,_u.Portal=Mu,_u.Profiler=ku,_u.StrictMode=Pu,_u.Suspense=zu,_u.SuspenseList=$u,_u.isAsyncMode=function(){return!1},_u.isConcurrentMode=function(){return!1},_u.isContextConsumer=function(e){return Hu(e)===qu},_u.isContextProvider=function(e){return Hu(e)===Tu},_u.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Iu},_u.isForwardRef=function(e){return Hu(e)===Fu},_u.isFragment=function(e){return Hu(e)===Ou},_u.isLazy=function(e){return Hu(e)===Gu},_u.isMemo=function(e){return Hu(e)===ju},_u.isPortal=function(e){return Hu(e)===Mu},_u.isProfiler=function(e){return Hu(e)===ku},_u.isStrictMode=function(e){return Hu(e)===Pu},_u.isSuspense=function(e){return Hu(e)===zu},_u.isSuspenseList=function(e){return Hu(e)===$u},_u.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ou||e===ku||e===Pu||e===zu||e===$u||e===Bu||"object"==typeof e&&null!==e&&(e.$$typeof===Gu||e.$$typeof===ju||e.$$typeof===Tu||e.$$typeof===qu||e.$$typeof===Fu||e.$$typeof===Au||void 0!==e.getModuleId)},_u.typeOf=Hu,Du.exports=_u;var Wu=Du.exports;const Vu=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Yu(e){const t=`${e}`.match(Vu);return t&&t[1]||""}function Uu(e,t=""){return e.displayName||e.name||Yu(e)||t}function Ku(e,t,r){const n=Uu(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var Xu=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Uu(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Wu.ForwardRef:return Ku(e,e.render,"ForwardRef");case Wu.Memo:return Ku(e,e.type,"memo");default:return}}},getFunctionName:Yu});function Ju(e,t){const r=si({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=si({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=si({},i),Object.keys(o).forEach((e=>{r[n][e]=Ju(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}var Zu="undefined"!=typeof window?E.useLayoutEffect:E.useEffect;function Qu(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var ec=Object.freeze({__proto__:null,default:Qu});function tc(e){if(e.type)return e;if("#"===e.charAt(0))return tc(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(ii(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(ii(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function rc(e,t){return e=tc(e),t=function(e,t=0,r=1){return Qu(e,t,r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function nc(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function oc(e){return e&&e.ownerDocument||document}function ic(e){return oc(e).defaultView||window}function ac(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function lc(e){const t=E.useRef(e);return Zu((()=>{t.current=e})),E.useRef(((...e)=>(0,t.current)(...e))).current}function sc(...e){return E.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{ac(e,t)}))}),e)}function uc(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}var cc=E.createContext(null);function dc(){return E.useContext(cc)}var pc="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function fc(e){const{children:t,theme:r}=e,n=dc(),o=E.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return si({},e,t)}(n,r);return null!=e&&(e[pc]=null!==n),e}),[r,n]);return oi.jsx(cc.Provider,{value:o,children:t})}const hc={};function mc(e,t,r,n=!1){return E.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?si({},t,{[e]:i}):i;return n?()=>a:a}return si({},t,e?{[e]:r}:r)}),[e,t,r,n])}function gc(e){const{children:t,theme:r,themeId:n}=e,o=mu(hc),i=dc()||hc,a=mc(n,o,r),l=mc(n,i,r,!0);return oi.jsx(fc,{theme:l,children:oi.jsx(Nl.Provider,{value:a,children:t})})}var bc={},vc={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(vc);var yc=vc.exports,xc=N(ai),Sc=N(ec),Ec=yc;Object.defineProperty(bc,"__esModule",{value:!0}),bc.alpha=Tc,bc.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=Ic(e),a=Ic(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Oc({type:"rgb",values:l})},bc.colorChannel=void 0;var Cc=bc.darken=qc;bc.decomposeColor=Ic,bc.emphasize=function(e,t=.15){return kc(e)>.5?qc(e,t):Nc(e,t)};var wc=bc.getContrastRatio=function(e,t){const r=kc(e),n=kc(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};bc.getLuminance=kc,bc.hexToRgb=_c,bc.hslToRgb=Pc;var Rc=bc.lighten=Nc;bc.private_safeAlpha=function(e,t,r){try{return Tc(e,t)}catch(t){return e}},bc.private_safeColorChannel=void 0,bc.private_safeDarken=function(e,t,r){try{return qc(e,t)}catch(t){return e}},bc.private_safeEmphasize=function e(t,r,n){try{return e(t,r)}catch(e){return t}},bc.private_safeLighten=function(e,t,r){try{return Nc(e,t)}catch(t){return e}},bc.recomposeColor=Oc,bc.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Ic(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var Lc=Ec(xc),Ac=Ec(Sc);function Dc(e,t=0,r=1){return(0,Ac.default)(e,t,r)}function _c(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Ic(e){if(e.type)return e;if("#"===e.charAt(0))return Ic(_c(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,Lc.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,Lc.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const Mc=e=>{const t=Ic(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};bc.colorChannel=Mc;function Oc(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function Pc(e){e=Ic(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Oc({type:l,values:s})}function kc(e){let t="hsl"===(e=Ic(e)).type||"hsla"===e.type?Ic(Pc(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Tc(e,t){return e=Ic(e),t=Dc(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Oc(e)}function qc(e,t){if(e=Ic(e),t=Dc(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Oc(e)}function Nc(e,t){if(e=Ic(e),t=Dc(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Oc(e)}bc.private_safeColorChannel=(e,t)=>{try{return Mc(e)}catch(t){return e}};var Fc={black:"#000",white:"#fff"};var zc={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var $c={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 jc={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 Gc={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 Bc={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 Hc={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 Wc={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const Vc=["mode","contrastThreshold","tonalOffset"],Yc={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Fc.white,default:Fc.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Uc={text:{primary:Fc.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Fc.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Kc(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=Rc(e.main,o):"dark"===t&&(e.dark=Cc(e.main,i)))}function Xc(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=ui(e,Vc),i=e.primary||function(e="light"){return"dark"===e?{main:Bc[200],light:Bc[50],dark:Bc[400]}:{main:Bc[700],light:Bc[400],dark:Bc[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:$c[200],light:$c[50],dark:$c[400]}:{main:$c[500],light:$c[300],dark:$c[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:jc[500],light:jc[300],dark:jc[700]}:{main:jc[700],light:jc[400],dark:jc[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Hc[400],light:Hc[300],dark:Hc[700]}:{main:Hc[700],light:Hc[500],dark:Hc[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Wc[400],light:Wc[300],dark:Wc[700]}:{main:Wc[800],light:Wc[500],dark:Wc[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Gc[400],light:Gc[300],dark:Gc[700]}:{main:"#ed6c02",light:Gc[500],dark:Gc[900]}}(t);function d(e){return wc(e,Uc.text.primary)>=r?Uc.text.primary:Yc.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=si({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(ii(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(ii(12,t?` (${t})`:"",JSON.stringify(e.main)));return Kc(e,"light",o,n),Kc(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Uc,light:Yc};return as(si({common:si({},Fc),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:zc,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Jc=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Zc={textTransform:"uppercase"},Qc='"Roboto", "Helvetica", "Arial", sans-serif';function ed(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Qc,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=ui(r,Jc),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return si({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===Qc?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,Zc),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Zc),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return as(si({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function td(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var rd=["none",td(0,2,1,-1,0,1,1,0,0,1,3,0),td(0,3,1,-2,0,2,2,0,0,1,5,0),td(0,3,3,-2,0,3,4,0,0,1,8,0),td(0,2,4,-1,0,4,5,0,0,1,10,0),td(0,3,5,-1,0,5,8,0,0,1,14,0),td(0,3,5,-1,0,6,10,0,0,1,18,0),td(0,4,5,-2,0,7,10,1,0,2,16,1),td(0,5,5,-3,0,8,10,1,0,3,14,2),td(0,5,6,-3,0,9,12,1,0,3,16,2),td(0,6,6,-3,0,10,14,1,0,4,18,3),td(0,6,7,-4,0,11,15,1,0,4,20,3),td(0,7,8,-4,0,12,17,2,0,5,22,4),td(0,7,8,-4,0,13,19,2,0,5,24,4),td(0,7,9,-4,0,14,21,2,0,5,26,4),td(0,8,9,-5,0,15,22,2,0,6,28,5),td(0,8,10,-5,0,16,24,2,0,6,30,5),td(0,8,11,-5,0,17,26,2,0,6,32,5),td(0,9,11,-5,0,18,28,2,0,7,34,6),td(0,9,12,-6,0,19,29,2,0,7,36,6),td(0,10,13,-6,0,20,31,3,0,8,38,7),td(0,10,13,-6,0,21,33,3,0,8,40,7),td(0,10,14,-6,0,22,35,3,0,8,42,7),td(0,11,14,-7,0,23,36,3,0,9,44,8),td(0,11,15,-7,0,24,38,3,0,9,46,8)];const nd=["duration","easing","delay"],od={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)"},id={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ad(e){return`${Math.round(e)}ms`}function ld(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function sd(e){const t=si({},od,e.easing),r=si({},id,e.duration);return si({getAutoHeightDuration:ld,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return ui(n,nd),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:ad(o)} ${i} ${"string"==typeof a?a:ad(a)}`)).join(",")}},e,{easing:t,duration:r})}var ud={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const cd=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function dd(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=ui(e,cd);if(e.vars)throw new Error(ii(18));const l=Xc(n),s=fu(e);let u=as(s,{mixins:(c=s.breakpoints,d=r,si({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:rd.slice(),typography:ed(l,i),transitions:sd(o),zIndex:si({},ud)});var c,d;return u=as(u,a),u=t.reduce(((e,t)=>as(e,t)),u),u.unstable_sxConfig=si({},lu,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return cu({sx:e,theme:this})},u}var pd,fd=dd(),hd={},md={exports:{}};var gd,bd={exports:{}};var vd=N(ns),yd=N(ls),xd=N(bs),Sd=N(Xu),Ed=N(hu),Cd=N(xu),wd=yc;Object.defineProperty(hd,"__esModule",{value:!0});var Rd=hd.default=function(e={}){const{themeId:t,defaultTheme:r=Fd,rootShouldForwardProp:n=Nd,slotShouldForwardProp:o=Nd}=e,i=e=>(0,Od.default)((0,Ad.default)({},e,{theme:$d((0,Ad.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,_d.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=jd(zd(s))}=a,p=(0,Dd.default)(a,Td),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=c||!1;let m=Nd;"Root"===s||"root"===s?m=n:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,_d.default)(e,(0,Ad.default)({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Id.isPlainObject)(e)?n=>Gd(e,(0,Ad.default)({},n,{theme:$d({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&d&&s.push((e=>{const n=$d((0,Ad.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[l]||!n.components[l].styleOverrides)return null;const o=n.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=Gd(r,(0,Ad.default)({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=$d((0,Ad.default)({},e,{defaultTheme:r,themeId:t}));return Gd({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},(0,Ad.default)({},e,{theme:o}))})),h||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}},Ld=hd.shouldForwardProp=Nd;hd.systemDefaultTheme=void 0;var Ad=wd((pd||(pd=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(md)),md.exports)),Dd=wd((gd||(gd=1,function(e){e.exports=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o},e.exports.__esModule=!0,e.exports.default=e.exports}(bd)),bd.exports)),_d=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=qd(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(vd),Id=yd;wd(xd),wd(Sd);var Md=wd(Ed),Od=wd(Cd);const Pd=["ownerState"],kd=["variants"],Td=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function qd(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(qd=function(e){return e?r:t})(e)}function Nd(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Fd=hd.systemDefaultTheme=(0,Md.default)(),zd=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function $d({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function jd(e){return e?(t,r)=>r[e]:null}function Gd(e,t){let{ownerState:r}=t,n=(0,Dd.default)(t,Pd);const o="function"==typeof e?e((0,Ad.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>Gd(e,(0,Ad.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Dd.default)(o,kd);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,Ad.default)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,Ad.default)({ownerState:r},n,r)):e.style))})),t}return o}var Bd=Rd({themeId:li,defaultTheme:fd,rootShouldForwardProp:e=>Ld(e)&&"classes"!==e});const Hd=["theme"];function Wd(e){let{theme:t}=e,r=ui(e,Hd);const n=t[li];return oi.jsx(gc,si({},r,{themeId:n?li:void 0,theme:n||t}))}function Vd(e){if(e.type)return e;if("#"===e.charAt(0))return Vd(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map((function(e){return parseFloat(e)}))}}function Yd(e,t){return e=Vd(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}(e)}const Ud={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"},Kd={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",...Ud,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)"},Xd=12,Jd=14,Zd=16,Qd=24,ep=3,tp=300,rp=400,np=600,op=700,ip={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Yd(Kd.GREYSCALE_0,.05),Yd(Kd.GREEN_PALE,.5),Yd(Kd.BLUE_PALE,.5),Yd(Kd.GREEN_PALE,.5),Yd(Kd.BLUE_PALE,.5),Yd(Kd.GREEN_PALE,.5),Yd(Kd.BLUE_PALE,.5);var ap;function lp(){return lp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lp.apply(this,arguments)}Yd(Kd.GREEN_PALE,.5),Yd(Kd.BLUE_PALE,.5),Yd(Kd.GREEN_PALE,.5),Yd(Kd.BLUE_PALE,.5);var sp,up=function(e){return E.createElement("svg",lp({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),ap||(ap=E.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function cp(){return cp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cp.apply(this,arguments)}var dp=function(e){return E.createElement("svg",cp({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),sp||(sp=E.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 pp({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return y.createElement("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r},t)}var fp=(e={})=>y.createElement(pp,{...e},y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},y.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),y.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"}))),hp=(e={})=>y.createElement(pp,{...e},y.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},y.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},y.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),y.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),mp=(e={})=>y.createElement(pp,{fontSize:"medium",...e},y.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},y.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},y.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),gp=(e={})=>y.createElement(pp,{fontSize:"medium",...e},y.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),y.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"}))),bp=({className:e})=>y.createElement(pp,{fontSize:"small",className:e},y.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},y.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},y.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},y.createElement("g",{transform:"translate(4.324187, 1.300372)"},y.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"}),y.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 vp={black:"#000",white:"#fff"};var yp={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 xp={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 Sp={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 Ep={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 Cp={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 wp={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 Rp={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 Lp(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 Ap="$$material";const Dp=Yl((e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n}));var _p=Dp;
|
|
19
|
+
function is(e,t){let r;return r=t?Ul(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Ul(e),r}ns.propTypes={defaultTheme:ts.object,styles:ts.oneOfType([ts.array,ts.string,ts.object,ts.func])};var as=Object.freeze({__proto__:null,GlobalStyles:os,StyledEngineProvider:rs,ThemeContext:$l,css:Wl,default:is,internal_processStyles:(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))},keyframes:Jl});function ls(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function ss(e){if(!ls(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=ss(e[r])})),t}function us(e,t,r={clone:!0}){const n=r.clone?di({},e):e;return ls(e)&&ls(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(ls(t[o])&&o in e&&ls(e[o])?n[o]=us(e[o],t[o],r):r.clone?n[o]=ls(t[o])?ss(t[o]):t[o]:n[o]=t[o])})),n}var cs=Object.freeze({__proto__:null,default:us,isPlainObject:ls});const ds=["values","unit","step"],ps=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>di({},e,{[t.key]:t.val})),{})};function fs(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=pi(e,ds),i=ps(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return di({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}var hs={borderRadius:4};function ms(e,t){return t?us(e,t,{clone:!1}):e}const gs={xs:0,sm:600,md:900,lg:1200,xl:1536},bs={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${gs[e]}px)`};function vs(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||bs;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||bs;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||gs).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function ys(e){if("string"!=typeof e)throw new Error(si(7));return e.charAt(0).toUpperCase()+e.slice(1)}var xs=Object.freeze({__proto__:null,default:ys});function Ss(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Es(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Ss(e,r)||n,t&&(o=t(o,n,e)),o}function Cs(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Ss(e.theme,n)||{};return vs(e,i,(e=>{let n=Es(a,o,e);return e===n&&"string"==typeof e&&(n=Es(a,o,`${t}${"default"===e?"":ys(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const ws={m:"margin",p:"padding"},Rs={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ls={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},As=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Ls[e])return[e];e=Ls[e]}const[t,r]=e.split(""),n=ws[t],o=Rs[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Is=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ds=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function _s(e,t,r,n){var o;const i=null!=(o=Ss(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Ms(e){return _s(e,"spacing",8)}function Ps(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function Os(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Ps(t,r),e)),{})}(As(r),n);return vs(e,e[r],o)}function ks(e,t){const r=Ms(e.theme);return Object.keys(e).map((n=>Os(e,t,n,r))).reduce(ms,{})}function Ts(e){return ks(e,Is)}function qs(e){return ks(e,Ds)}function Ns(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?ms(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Fs(e){return"number"!=typeof e?e:`${e}px solid`}function zs(e,t){return Cs({prop:e,themeKey:"borders",transform:t})}Ts.propTypes={},Ts.filterProps=Is,qs.propTypes={},qs.filterProps=Ds;const $s=zs("border",Fs),js=zs("borderTop",Fs),Gs=zs("borderRight",Fs),Hs=zs("borderBottom",Fs),Bs=zs("borderLeft",Fs),Ws=zs("borderColor"),Vs=zs("borderTopColor"),Ys=zs("borderRightColor"),Us=zs("borderBottomColor"),Ks=zs("borderLeftColor"),Xs=zs("outline",Fs),Js=zs("outlineColor"),Zs=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=_s(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Ps(t,e)});return vs(e,e.borderRadius,r)}return null};Zs.propTypes={},Zs.filterProps=["borderRadius"],Ns($s,js,Gs,Hs,Bs,Ws,Vs,Ys,Us,Ks,Zs,Xs,Js);const Qs=e=>{if(void 0!==e.gap&&null!==e.gap){const t=_s(e.theme,"spacing",8),r=e=>({gap:Ps(t,e)});return vs(e,e.gap,r)}return null};Qs.propTypes={},Qs.filterProps=["gap"];const eu=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=_s(e.theme,"spacing",8),r=e=>({columnGap:Ps(t,e)});return vs(e,e.columnGap,r)}return null};eu.propTypes={},eu.filterProps=["columnGap"];const tu=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=_s(e.theme,"spacing",8),r=e=>({rowGap:Ps(t,e)});return vs(e,e.rowGap,r)}return null};tu.propTypes={},tu.filterProps=["rowGap"];function ru(e,t){return"grey"===t?t:e}Ns(Qs,eu,tu,Cs({prop:"gridColumn"}),Cs({prop:"gridRow"}),Cs({prop:"gridAutoFlow"}),Cs({prop:"gridAutoColumns"}),Cs({prop:"gridAutoRows"}),Cs({prop:"gridTemplateColumns"}),Cs({prop:"gridTemplateRows"}),Cs({prop:"gridTemplateAreas"}),Cs({prop:"gridArea"}));function nu(e){return e<=1&&0!==e?100*e+"%":e}Ns(Cs({prop:"color",themeKey:"palette",transform:ru}),Cs({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ru}),Cs({prop:"backgroundColor",themeKey:"palette",transform:ru}));const ou=Cs({prop:"width",transform:nu}),iu=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||gs[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:nu(t)}};return vs(e,e.maxWidth,t)}return null};iu.filterProps=["maxWidth"];const au=Cs({prop:"minWidth",transform:nu}),lu=Cs({prop:"height",transform:nu}),su=Cs({prop:"maxHeight",transform:nu}),uu=Cs({prop:"minHeight",transform:nu});Cs({prop:"size",cssProperty:"width",transform:nu}),Cs({prop:"size",cssProperty:"height",transform:nu});Ns(ou,iu,au,lu,su,uu,Cs({prop:"boxSizing"}));var cu={border:{themeKey:"borders",transform:Fs},borderTop:{themeKey:"borders",transform:Fs},borderRight:{themeKey:"borders",transform:Fs},borderBottom:{themeKey:"borders",transform:Fs},borderLeft:{themeKey:"borders",transform:Fs},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Fs},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Zs},color:{themeKey:"palette",transform:ru},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ru},backgroundColor:{themeKey:"palette",transform:ru},p:{style:qs},pt:{style:qs},pr:{style:qs},pb:{style:qs},pl:{style:qs},px:{style:qs},py:{style:qs},padding:{style:qs},paddingTop:{style:qs},paddingRight:{style:qs},paddingBottom:{style:qs},paddingLeft:{style:qs},paddingX:{style:qs},paddingY:{style:qs},paddingInline:{style:qs},paddingInlineStart:{style:qs},paddingInlineEnd:{style:qs},paddingBlock:{style:qs},paddingBlockStart:{style:qs},paddingBlockEnd:{style:qs},m:{style:Ts},mt:{style:Ts},mr:{style:Ts},mb:{style:Ts},ml:{style:Ts},mx:{style:Ts},my:{style:Ts},margin:{style:Ts},marginTop:{style:Ts},marginRight:{style:Ts},marginBottom:{style:Ts},marginLeft:{style:Ts},marginX:{style:Ts},marginY:{style:Ts},marginInline:{style:Ts},marginInlineStart:{style:Ts},marginInlineEnd:{style:Ts},marginBlock:{style:Ts},marginBlockStart:{style:Ts},marginBlockEnd:{style:Ts},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Qs},rowGap:{style:tu},columnGap:{style:eu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:nu},maxWidth:{style:iu},minWidth:{transform:nu},height:{transform:nu},maxHeight:{transform:nu},minHeight:{transform:nu},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function du(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Ss(r,l)||{};if(u)return u(o);return vs(o,t,(t=>{let r=Es(c,s,t);return t===r&&"string"==typeof t&&(r=Es(c,s,`${e}${"default"===t?"":ys(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=null!=(n=i.unstable_sxConfig)?n:cu;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=ms(s,e(r,o,i,a));else{const e=vs({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?s=ms(s,e):s[r]=t({sx:o,theme:i})}else s=ms(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const pu=du();pu.filterProps=["sx"];var fu=pu;function hu(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){return{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return r.palette.mode===e?t:{}}const mu=["breakpoints","palette","spacing","shape"];function gu(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=pi(e,mu),l=fs(r),s=function(e=8){if(e.mui)return e;const t=Ms({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=us({breakpoints:l,direction:"ltr",components:{},palette:di({mode:"light"},n),spacing:s,shape:di({},hs,i)},a);return u.applyStyles=hu,u=t.reduce(((e,t)=>us(e,t)),u),u.unstable_sxConfig=di({},cu,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return fu({sx:e,theme:this})},u}var bu=Object.freeze({__proto__:null,default:gu,private_createBreakpoints:fs,unstable_applyStyles:hu});function vu(e=null){const t=w.useContext($l);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const yu=gu();const xu=["sx"],Su=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:cu;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function Eu(e){const{sx:t}=e,r=pi(e,xu),{systemProps:n,otherProps:o}=Su(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return ls(r)?di({},n,r):n}:di({},n,t),di({},o,{sx:i})}var Cu=Object.freeze({__proto__:null,default:fu,extendSxProp:Eu,unstable_createStyleFunctionSx:du,unstable_defaultSxConfig:cu});const wu=e=>e;var Ru=(()=>{let e=wu;return{configure(t){e=t},generate:t=>e(t),reset(){e=wu}}})();function Lu(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Lu(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Au(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Lu(e))&&(n&&(n+=" "),n+=t);return n}const Iu=["className","component"];const Du={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};var _u,Mu={exports:{}},Pu={},Ou=Symbol.for("react.element"),ku=Symbol.for("react.portal"),Tu=Symbol.for("react.fragment"),qu=Symbol.for("react.strict_mode"),Nu=Symbol.for("react.profiler"),Fu=Symbol.for("react.provider"),zu=Symbol.for("react.context"),$u=Symbol.for("react.server_context"),ju=Symbol.for("react.forward_ref"),Gu=Symbol.for("react.suspense"),Hu=Symbol.for("react.suspense_list"),Bu=Symbol.for("react.memo"),Wu=Symbol.for("react.lazy"),Vu=Symbol.for("react.offscreen");function Yu(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ou:switch(e=e.type){case Tu:case Nu:case qu:case Gu:case Hu:return e;default:switch(e=e&&e.$$typeof){case $u:case zu:case ju:case Wu:case Bu:case Fu:return e;default:return t}}case ku:return t}}}_u=Symbol.for("react.module.reference"),Pu.ContextConsumer=zu,Pu.ContextProvider=Fu,Pu.Element=Ou,Pu.ForwardRef=ju,Pu.Fragment=Tu,Pu.Lazy=Wu,Pu.Memo=Bu,Pu.Portal=ku,Pu.Profiler=Nu,Pu.StrictMode=qu,Pu.Suspense=Gu,Pu.SuspenseList=Hu,Pu.isAsyncMode=function(){return!1},Pu.isConcurrentMode=function(){return!1},Pu.isContextConsumer=function(e){return Yu(e)===zu},Pu.isContextProvider=function(e){return Yu(e)===Fu},Pu.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ou},Pu.isForwardRef=function(e){return Yu(e)===ju},Pu.isFragment=function(e){return Yu(e)===Tu},Pu.isLazy=function(e){return Yu(e)===Wu},Pu.isMemo=function(e){return Yu(e)===Bu},Pu.isPortal=function(e){return Yu(e)===ku},Pu.isProfiler=function(e){return Yu(e)===Nu},Pu.isStrictMode=function(e){return Yu(e)===qu},Pu.isSuspense=function(e){return Yu(e)===Gu},Pu.isSuspenseList=function(e){return Yu(e)===Hu},Pu.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Tu||e===Nu||e===qu||e===Gu||e===Hu||e===Vu||"object"==typeof e&&null!==e&&(e.$$typeof===Wu||e.$$typeof===Bu||e.$$typeof===Fu||e.$$typeof===zu||e.$$typeof===ju||e.$$typeof===_u||void 0!==e.getModuleId)},Pu.typeOf=Yu,Mu.exports=Pu;var Uu=Mu.exports;const Ku=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Xu(e){const t=`${e}`.match(Ku);return t&&t[1]||""}function Ju(e,t=""){return e.displayName||e.name||Xu(e)||t}function Zu(e,t,r){const n=Ju(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var Qu=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Ju(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Uu.ForwardRef:return Zu(e,e.render,"ForwardRef");case Uu.Memo:return Zu(e,e.type,"memo");default:return}}},getFunctionName:Xu});function ec(e,t){const r=di({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=di({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=di({},i),Object.keys(o).forEach((e=>{r[n][e]=ec(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}var tc="undefined"!=typeof window?w.useLayoutEffect:w.useEffect;function rc(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var nc=Object.freeze({__proto__:null,default:rc});function oc(e){if(e.type)return e;if("#"===e.charAt(0))return oc(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(si(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(si(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function ic(e,t){return e=oc(e),t=function(e,t=0,r=1){return rc(e,t,r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function ac(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function lc(e){return e&&e.ownerDocument||document}function sc(e){return lc(e).defaultView||window}function uc(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function cc(e){const t=w.useRef(e);return tc((()=>{t.current=e})),w.useRef(((...e)=>(0,t.current)(...e))).current}function dc(...e){return w.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{uc(e,t)}))}),e)}function pc(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}var fc=w.createContext(null);function hc(){return w.useContext(fc)}var mc="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function gc(e){const{children:t,theme:r}=e,n=hc(),o=w.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return di({},e,t)}(n,r);return null!=e&&(e[mc]=null!==n),e}),[r,n]);return li.jsx(fc.Provider,{value:o,children:t})}const bc=["value"],vc=w.createContext();function yc(e){let{value:t}=e,r=pi(e,bc);return li.jsx(vc.Provider,di({value:null==t||t},r))}const xc={};function Sc(e,t,r,n=!1){return w.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?di({},t,{[e]:i}):i;return n?()=>a:a}return di({},t,e?{[e]:r}:r)}),[e,t,r,n])}function Ec(e){const{children:t,theme:r,themeId:n}=e,o=vu(xc),i=hc()||xc,a=Sc(n,o,r),l=Sc(n,i,r,!0),s="rtl"===a.direction;return li.jsx(gc,{theme:l,children:li.jsx($l.Provider,{value:a,children:li.jsx(yc,{value:s,children:t})})})}var Cc={},wc={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(wc);var Rc=wc.exports,Lc=z(ui),Ac=z(nc),Ic=Rc;Object.defineProperty(Cc,"__esModule",{value:!0}),Cc.alpha=jc,Cc.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=qc(e),a=qc(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Fc({type:"rgb",values:l})},Cc.colorChannel=void 0;var Dc=Cc.darken=Gc;Cc.decomposeColor=qc,Cc.emphasize=function(e,t=.15){return $c(e)>.5?Gc(e,t):Hc(e,t)};var _c=Cc.getContrastRatio=function(e,t){const r=$c(e),n=$c(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};Cc.getLuminance=$c,Cc.hexToRgb=Tc,Cc.hslToRgb=zc;var Mc=Cc.lighten=Hc;Cc.private_safeAlpha=function(e,t,r){try{return jc(e,t)}catch(t){return e}},Cc.private_safeColorChannel=void 0,Cc.private_safeDarken=function(e,t,r){try{return Gc(e,t)}catch(t){return e}},Cc.private_safeEmphasize=function e(t,r,n){try{return e(t,r)}catch(e){return t}},Cc.private_safeLighten=function(e,t,r){try{return Hc(e,t)}catch(t){return e}},Cc.recomposeColor=Fc,Cc.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=qc(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var Pc=Ic(Lc),Oc=Ic(Ac);function kc(e,t=0,r=1){return(0,Oc.default)(e,t,r)}function Tc(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function qc(e){if(e.type)return e;if("#"===e.charAt(0))return qc(Tc(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,Pc.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,Pc.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const Nc=e=>{const t=qc(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};Cc.colorChannel=Nc;function Fc(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function zc(e){e=qc(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Fc({type:l,values:s})}function $c(e){let t="hsl"===(e=qc(e)).type||"hsla"===e.type?qc(zc(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function jc(e,t){return e=qc(e),t=kc(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Fc(e)}function Gc(e,t){if(e=qc(e),t=kc(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Fc(e)}function Hc(e,t){if(e=qc(e),t=kc(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Fc(e)}Cc.private_safeColorChannel=(e,t)=>{try{return Nc(e)}catch(t){return e}};var Bc={black:"#000",white:"#fff"};var Wc={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var Vc={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 Yc={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 Uc={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 Kc={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 Xc={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 Jc={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const Zc=["mode","contrastThreshold","tonalOffset"],Qc={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Bc.white,default:Bc.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},ed={text:{primary:Bc.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Bc.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function td(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=Mc(e.main,o):"dark"===t&&(e.dark=Dc(e.main,i)))}function rd(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=pi(e,Zc),i=e.primary||function(e="light"){return"dark"===e?{main:Kc[200],light:Kc[50],dark:Kc[400]}:{main:Kc[700],light:Kc[400],dark:Kc[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Vc[200],light:Vc[50],dark:Vc[400]}:{main:Vc[500],light:Vc[300],dark:Vc[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Yc[500],light:Yc[300],dark:Yc[700]}:{main:Yc[700],light:Yc[400],dark:Yc[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Xc[400],light:Xc[300],dark:Xc[700]}:{main:Xc[700],light:Xc[500],dark:Xc[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Jc[400],light:Jc[300],dark:Jc[700]}:{main:Jc[800],light:Jc[500],dark:Jc[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Uc[400],light:Uc[300],dark:Uc[700]}:{main:"#ed6c02",light:Uc[500],dark:Uc[900]}}(t);function d(e){return _c(e,ed.text.primary)>=r?ed.text.primary:Qc.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=di({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(si(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(si(12,t?` (${t})`:"",JSON.stringify(e.main)));return td(e,"light",o,n),td(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:ed,light:Qc};return us(di({common:di({},Bc),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:Wc,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const nd=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const od={textTransform:"uppercase"},id='"Roboto", "Helvetica", "Arial", sans-serif';function ad(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=id,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=pi(r,nd),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return di({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===id?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,od),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,od),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return us(di({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function ld(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var sd=["none",ld(0,2,1,-1,0,1,1,0,0,1,3,0),ld(0,3,1,-2,0,2,2,0,0,1,5,0),ld(0,3,3,-2,0,3,4,0,0,1,8,0),ld(0,2,4,-1,0,4,5,0,0,1,10,0),ld(0,3,5,-1,0,5,8,0,0,1,14,0),ld(0,3,5,-1,0,6,10,0,0,1,18,0),ld(0,4,5,-2,0,7,10,1,0,2,16,1),ld(0,5,5,-3,0,8,10,1,0,3,14,2),ld(0,5,6,-3,0,9,12,1,0,3,16,2),ld(0,6,6,-3,0,10,14,1,0,4,18,3),ld(0,6,7,-4,0,11,15,1,0,4,20,3),ld(0,7,8,-4,0,12,17,2,0,5,22,4),ld(0,7,8,-4,0,13,19,2,0,5,24,4),ld(0,7,9,-4,0,14,21,2,0,5,26,4),ld(0,8,9,-5,0,15,22,2,0,6,28,5),ld(0,8,10,-5,0,16,24,2,0,6,30,5),ld(0,8,11,-5,0,17,26,2,0,6,32,5),ld(0,9,11,-5,0,18,28,2,0,7,34,6),ld(0,9,12,-6,0,19,29,2,0,7,36,6),ld(0,10,13,-6,0,20,31,3,0,8,38,7),ld(0,10,13,-6,0,21,33,3,0,8,40,7),ld(0,10,14,-6,0,22,35,3,0,8,42,7),ld(0,11,14,-7,0,23,36,3,0,9,44,8),ld(0,11,15,-7,0,24,38,3,0,9,46,8)];const ud=["duration","easing","delay"],cd={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)"},dd={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function pd(e){return`${Math.round(e)}ms`}function fd(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function hd(e){const t=di({},cd,e.easing),r=di({},dd,e.duration);return di({getAutoHeightDuration:fd,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return pi(n,ud),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:pd(o)} ${i} ${"string"==typeof a?a:pd(a)}`)).join(",")}},e,{easing:t,duration:r})}var md={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const gd=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function bd(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=pi(e,gd);if(e.vars)throw new Error(si(18));const l=rd(n),s=gu(e);let u=us(s,{mixins:(c=s.breakpoints,d=r,di({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:sd.slice(),typography:ad(l,i),transitions:hd(o),zIndex:di({},md)});var c,d;return u=us(u,a),u=t.reduce(((e,t)=>us(e,t)),u),u.unstable_sxConfig=di({},cu,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return fu({sx:e,theme:this})},u}var vd,yd=bd(),xd={},Sd={exports:{}};var Ed,Cd={exports:{}};var wd=z(as),Rd=z(cs),Ld=z(xs),Ad=z(Qu),Id=z(bu),Dd=z(Cu),_d=Rc;Object.defineProperty(xd,"__esModule",{value:!0});var Md=xd.default=function(e={}){const{themeId:t,defaultTheme:r=Hd,rootShouldForwardProp:n=Gd,slotShouldForwardProp:o=Gd}=e,i=e=>(0,Nd.default)((0,Pd.default)({},e,{theme:Wd((0,Pd.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,kd.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Vd(Bd(s))}=a,p=(0,Od.default)(a,$d),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=c||!1;let m=Gd;"Root"===s||"root"===s?m=n:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,kd.default)(e,(0,Pd.default)({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Td.isPlainObject)(e)?n=>Yd(e,(0,Pd.default)({},n,{theme:Wd({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&d&&s.push((e=>{const n=Wd((0,Pd.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[l]||!n.components[l].styleOverrides)return null;const o=n.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=Yd(r,(0,Pd.default)({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=Wd((0,Pd.default)({},e,{defaultTheme:r,themeId:t}));return Yd({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},(0,Pd.default)({},e,{theme:o}))})),h||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};xd.shouldForwardProp=Gd,xd.systemDefaultTheme=void 0;var Pd=_d((vd||(vd=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Sd)),Sd.exports)),Od=_d((Ed||(Ed=1,function(e){e.exports=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o},e.exports.__esModule=!0,e.exports.default=e.exports}(Cd)),Cd.exports)),kd=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=jd(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(wd),Td=Rd;_d(Ld),_d(Ad);var qd=_d(Id),Nd=_d(Dd);const Fd=["ownerState"],zd=["variants"],$d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function jd(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(jd=function(e){return e?r:t})(e)}function Gd(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Hd=xd.systemDefaultTheme=(0,qd.default)(),Bd=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Wd({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Vd(e){return e?(t,r)=>r[e]:null}function Yd(e,t){let{ownerState:r}=t,n=(0,Od.default)(t,Fd);const o="function"==typeof e?e((0,Pd.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>Yd(e,(0,Pd.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Od.default)(o,zd);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,Pd.default)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,Pd.default)({ownerState:r},n,r)):e.style))})),t}return o}var Ud=Md({themeId:ci,defaultTheme:yd,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e});const Kd=["theme"];function Xd(e){let{theme:t}=e,r=pi(e,Kd);const n=t[ci];return li.jsx(Ec,di({},r,{themeId:n?ci:void 0,theme:n||t}))}function Jd(e){if(e.type)return e;if("#"===e.charAt(0))return Jd(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map((function(e){return parseFloat(e)}))}}function Zd(e,t){return e=Jd(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}(e)}function Qd(e,t){return Qd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qd(e,t)}function ep(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qd(e,t)}const tp={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"},rp={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",...tp,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)"},np=12,op=14,ip=16,ap=24,lp=3,sp=300,up=400,cp=600,dp=700,pp={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Zd(rp.GREYSCALE_0,.05),Zd(rp.GREEN_PALE,.5),Zd(rp.BLUE_PALE,.5),Zd(rp.GREEN_PALE,.5),Zd(rp.BLUE_PALE,.5),Zd(rp.GREEN_PALE,.5),Zd(rp.BLUE_PALE,.5);var fp;function hp(){return hp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hp.apply(this,arguments)}Zd(rp.GREEN_PALE,.5),Zd(rp.BLUE_PALE,.5),Zd(rp.GREEN_PALE,.5),Zd(rp.BLUE_PALE,.5);var mp,gp=function(e){return w.createElement("svg",hp({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),fp||(fp=w.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function bp(){return bp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bp.apply(this,arguments)}var vp=function(e){return w.createElement("svg",bp({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),mp||(mp=w.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 yp({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return S.createElement("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r},t)}var xp=(e={})=>S.createElement(yp,{...e},S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},S.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),S.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"}))),Sp=(e={})=>S.createElement(yp,{...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),S.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Ep=(e={})=>S.createElement(yp,{fontSize:"medium",...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},S.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),Cp=(e={})=>S.createElement(yp,{fontSize:"medium",...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),S.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"}))),wp=({className:e})=>S.createElement(yp,{fontSize:"small",className:e},S.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},S.createElement("g",{transform:"translate(4.324187, 1.300372)"},S.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"}),S.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 Rp={black:"#000",white:"#fff"};var Lp={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 Ap={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 Ip={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 Dp={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 _p={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 Mp={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 Pp={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 Op(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 kp="$$material";function Tp(){return Tp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tp.apply(this,arguments)}function qp(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}const Np=Xl((e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n}));var Fp=Np;
|
|
20
20
|
/**
|
|
21
|
-
* @mui/styled-engine-sc v6.0.0-alpha.
|
|
21
|
+
* @mui/styled-engine-sc v6.0.0-alpha.17
|
|
22
22
|
*
|
|
23
23
|
* @license MIT
|
|
24
24
|
* This source code is licensed under the MIT license found in the
|
|
25
25
|
* LICENSE file in the root directory of this source tree.
|
|
26
26
|
*/
|
|
27
|
-
function Ip(e,t){let r;return r=t?Wl(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Wl(e),r}Dp.propTypes={defaultTheme:Zl.object,styles:Zl.oneOfType([Zl.array,Zl.string,Zl.object,Zl.func])};const Mp=["values","unit","step"],Op=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>si({},e,{[t.key]:t.val})),{})};var Pp={borderRadius:4};function kp(e,t){return t?as(e,t,{clone:!1}):e}const Tp={xs:0,sm:600,md:900,lg:1200,xl:1536},qp={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Tp[e]}px)`};function Np(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||qp;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||qp;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Tp).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Fp(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function zp(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Fp(e,r)||n,t&&(o=t(o,n,e)),o}function $p(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Fp(e.theme,n)||{};return Np(e,i,(e=>{let n=zp(a,o,e);return e===n&&"string"==typeof e&&(n=zp(a,o,`${t}${"default"===e?"":gs(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const jp={m:"margin",p:"padding"},Gp={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Bp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Hp=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Bp[e])return[e];e=Bp[e]}const[t,r]=e.split(""),n=jp[t],o=Gp[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Wp=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Vp=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Yp(e,t,r,n){var o;const i=null!=(o=Fp(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Up(e){return Yp(e,"spacing",8)}function Kp(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function Xp(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Kp(t,r),e)),{})}(Hp(r),n);return Np(e,e[r],o)}function Jp(e,t){const r=Up(e.theme);return Object.keys(e).map((n=>Xp(e,t,n,r))).reduce(kp,{})}function Zp(e){return Jp(e,Wp)}function Qp(e){return Jp(e,Vp)}function ef(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?kp(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function tf(e){return"number"!=typeof e?e:`${e}px solid`}function rf(e,t){return $p({prop:e,themeKey:"borders",transform:t})}Zp.propTypes={},Zp.filterProps=Wp,Qp.propTypes={},Qp.filterProps=Vp;const nf=rf("border",tf),of=rf("borderTop",tf),af=rf("borderRight",tf),lf=rf("borderBottom",tf),sf=rf("borderLeft",tf),uf=rf("borderColor"),cf=rf("borderTopColor"),df=rf("borderRightColor"),pf=rf("borderBottomColor"),ff=rf("borderLeftColor"),hf=rf("outline",tf),mf=rf("outlineColor"),gf=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Yp(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Kp(t,e)});return Np(e,e.borderRadius,r)}return null};gf.propTypes={},gf.filterProps=["borderRadius"],ef(nf,of,af,lf,sf,uf,cf,df,pf,ff,gf,hf,mf);const bf=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Yp(e.theme,"spacing",8),r=e=>({gap:Kp(t,e)});return Np(e,e.gap,r)}return null};bf.propTypes={},bf.filterProps=["gap"];const vf=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Yp(e.theme,"spacing",8),r=e=>({columnGap:Kp(t,e)});return Np(e,e.columnGap,r)}return null};vf.propTypes={},vf.filterProps=["columnGap"];const yf=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Yp(e.theme,"spacing",8),r=e=>({rowGap:Kp(t,e)});return Np(e,e.rowGap,r)}return null};yf.propTypes={},yf.filterProps=["rowGap"];function xf(e,t){return"grey"===t?t:e}ef(bf,vf,yf,$p({prop:"gridColumn"}),$p({prop:"gridRow"}),$p({prop:"gridAutoFlow"}),$p({prop:"gridAutoColumns"}),$p({prop:"gridAutoRows"}),$p({prop:"gridTemplateColumns"}),$p({prop:"gridTemplateRows"}),$p({prop:"gridTemplateAreas"}),$p({prop:"gridArea"}));function Sf(e){return e<=1&&0!==e?100*e+"%":e}ef($p({prop:"color",themeKey:"palette",transform:xf}),$p({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:xf}),$p({prop:"backgroundColor",themeKey:"palette",transform:xf}));const Ef=$p({prop:"width",transform:Sf}),Cf=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||Tp[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Sf(t)}};return Np(e,e.maxWidth,t)}return null};Cf.filterProps=["maxWidth"];const wf=$p({prop:"minWidth",transform:Sf}),Rf=$p({prop:"height",transform:Sf}),Lf=$p({prop:"maxHeight",transform:Sf}),Af=$p({prop:"minHeight",transform:Sf});$p({prop:"size",cssProperty:"width",transform:Sf}),$p({prop:"size",cssProperty:"height",transform:Sf});ef(Ef,Cf,wf,Rf,Lf,Af,$p({prop:"boxSizing"}));var Df={border:{themeKey:"borders",transform:tf},borderTop:{themeKey:"borders",transform:tf},borderRight:{themeKey:"borders",transform:tf},borderBottom:{themeKey:"borders",transform:tf},borderLeft:{themeKey:"borders",transform:tf},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:tf},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:gf},color:{themeKey:"palette",transform:xf},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:xf},backgroundColor:{themeKey:"palette",transform:xf},p:{style:Qp},pt:{style:Qp},pr:{style:Qp},pb:{style:Qp},pl:{style:Qp},px:{style:Qp},py:{style:Qp},padding:{style:Qp},paddingTop:{style:Qp},paddingRight:{style:Qp},paddingBottom:{style:Qp},paddingLeft:{style:Qp},paddingX:{style:Qp},paddingY:{style:Qp},paddingInline:{style:Qp},paddingInlineStart:{style:Qp},paddingInlineEnd:{style:Qp},paddingBlock:{style:Qp},paddingBlockStart:{style:Qp},paddingBlockEnd:{style:Qp},m:{style:Zp},mt:{style:Zp},mr:{style:Zp},mb:{style:Zp},ml:{style:Zp},mx:{style:Zp},my:{style:Zp},margin:{style:Zp},marginTop:{style:Zp},marginRight:{style:Zp},marginBottom:{style:Zp},marginLeft:{style:Zp},marginX:{style:Zp},marginY:{style:Zp},marginInline:{style:Zp},marginInlineStart:{style:Zp},marginInlineEnd:{style:Zp},marginBlock:{style:Zp},marginBlockStart:{style:Zp},marginBlockEnd:{style:Zp},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:bf},rowGap:{style:yf},columnGap:{style:vf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Sf},maxWidth:{style:Cf},minWidth:{transform:Sf},height:{transform:Sf},maxHeight:{transform:Sf},minHeight:{transform:Sf},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const _f=function(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Fp(r,l)||{};if(u)return u(o);return Np(o,t,(t=>{let r=zp(c,s,t);return t===r&&"string"==typeof t&&(r=zp(c,s,`${e}${"default"===t?"":gs(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=null!=(n=i.unstable_sxConfig)?n:Df;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=kp(s,e(r,o,i,a));else{const e=Np({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?s=kp(s,e):s[r]=t({sx:o,theme:i})}else s=kp(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();_f.filterProps=["sx"];var If=_f;function Mf(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){return{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return r.palette.mode===e?t:{}}const Of=["breakpoints","palette","spacing","shape"];function Pf(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=ui(e,Of),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=ui(e,Mp),i=Op(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return si({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}(r),s=function(e=8){if(e.mui)return e;const t=Up({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=as({breakpoints:l,direction:"ltr",components:{},palette:si({mode:"light"},n),spacing:s,shape:si({},Pp,i)},a);return u.applyStyles=Mf,u=t.reduce(((e,t)=>as(e,t)),u),u.unstable_sxConfig=si({},Df,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return If({sx:e,theme:this})},u}function kf(e=null){const t=E.useContext(Nl);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Tf=Pf();function qf(e=Tf){return kf(e)}function Nf({styles:e,themeId:t,defaultTheme:r={}}){const n=qf(r),o="function"==typeof e?e(t&&n[t]||n):e;return oi.jsx(_p,{styles:o})}const Ff=["sx"],zf=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:Df;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function $f(e){const{sx:t}=e,r=ui(e,Ff),{systemProps:n,otherProps:o}=zf(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return os(r)?si({},n,r):n}:si({},n,t),si({},o,{sx:i})}const jf=["className","component"];const Gf=["ownerState"],Bf=["variants"],Hf=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Wf(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Vf=Pf(),Yf=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Uf({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Kf(e){return e?(t,r)=>r[e]:null}function Xf(e,t){let{ownerState:r}=t,n=ui(t,Gf);const o="function"==typeof e?e(si({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>Xf(e,si({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=ui(o,Bf);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(si({ownerState:r},n)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(si({ownerState:r},n)):e.style))})),t}return o}function Jf(e){const{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?Ju(t.components[r].defaultProps,n):n}function Zf(e,t=0,r=1){return Qu(e,t,r)}function Qf(e){if(e.type)return e;if("#"===e.charAt(0))return Qf(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(ii(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(ii(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function eh(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function th(e){let t="hsl"===(e=Qf(e)).type||"hsla"===e.type?Qf(function(e){e=Qf(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),eh({type:l,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function rh(e,t){return e=Qf(e),t=Zf(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,eh(e)}function nh(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function oh(e){if(!nh(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=oh(e[r])})),t}function ih(e,t,r={clone:!0}){const n=r.clone?si({},e):e;return nh(e)&&nh(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(nh(t[o])&&o in e&&nh(e[o])?n[o]=ih(e[o],t[o],r):r.clone?n[o]=nh(t[o])?oh(t[o]):t[o]:n[o]=t[o])})),n}function ah(e){if("string"!=typeof e)throw new Error(Lp(7));return e.charAt(0).toUpperCase()+e.slice(1)}function lh(e){return e&&e.ownerDocument||document}function sh(e){return lh(e).defaultView||window}var uh="undefined"!=typeof window?E.useLayoutEffect:E.useEffect;let ch=0;const dh=E["useId".toString()];function ph(e){if(void 0!==dh){const t=dh();return null!=e?e:t}return function(e){const[t,r]=E.useState(e),n=e||t;return E.useEffect((()=>{null==t&&(ch+=1,r(`mui-${ch}`))}),[t]),n}(e)}function fh({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=E.useRef(void 0!==e),[i,a]=E.useState(t);return[o?e:i,E.useCallback((e=>{o||a(e)}),[])]}function hh(e){const t=E.useRef(e);return uh((()=>{t.current=e})),E.useRef(((...e)=>(0,t.current)(...e))).current}function mh(...e){return E.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}class gh{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new gh}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let bh=!0,vh=!1;const yh=new gh,xh={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Sh(e){e.metaKey||e.altKey||e.ctrlKey||(bh=!0)}function Eh(){bh=!1}function Ch(){"hidden"===this.visibilityState&&vh&&(bh=!0)}function wh(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return bh||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!xh[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Rh(){const e=E.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Sh,!0),t.addEventListener("mousedown",Eh,!0),t.addEventListener("pointerdown",Eh,!0),t.addEventListener("touchstart",Eh,!0),t.addEventListener("visibilitychange",Ch,!0))}),[]),t=E.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!wh(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(vh=!0,yh.start(100,(()=>{vh=!1})),t.current=!1,!0)},ref:e}}function Lh(e,t){const r=si({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=si({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=si({},i),Object.keys(o).forEach((e=>{r[n][e]=Lh(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const Ah=e=>e;var Dh=(()=>{let e=Ah;return{configure(t){e=t},generate:t=>e(t),reset(){e=Ah}}})();const _h={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ih(e,t,r="Mui"){const n=_h[t];return n?`${r}-${n}`:`${Dh.generate(e)}-${t}`}function Mh(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=Ih(e,t,r)})),n}const Oh=["mode","contrastThreshold","tonalOffset"],Ph={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:vp.white,default:vp.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},kh={text:{primary:vp.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:vp.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Th(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=function(e,t){if(e=Qf(e),t=Zf(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return eh(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Qf(e),t=Zf(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return eh(e)}(e.main,i)))}function qh(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=ui(e,Oh),i=e.primary||function(e="light"){return"dark"===e?{main:Sp[200],light:Sp[50],dark:Sp[400]}:{main:Sp[700],light:Sp[400],dark:Sp[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:xp[200],light:xp[50],dark:xp[400]}:{main:xp[500],light:xp[300],dark:xp[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:yp[500],light:yp[300],dark:yp[700]}:{main:yp[700],light:yp[400],dark:yp[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Ep[400],light:Ep[300],dark:Ep[700]}:{main:Ep[700],light:Ep[500],dark:Ep[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Cp[400],light:Cp[300],dark:Cp[700]}:{main:Cp[800],light:Cp[500],dark:Cp[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:wp[400],light:wp[300],dark:wp[700]}:{main:"#ed6c02",light:wp[500],dark:wp[900]}}(t);function d(e){const t=function(e,t){const r=th(e),n=th(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,kh.text.primary)>=r?kh.text.primary:Ph.text.primary;return t}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=si({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Lp(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Lp(12,t?` (${t})`:"",JSON.stringify(e.main)));return Th(e,"light",o,n),Th(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:kh,light:Ph};return ih(si({common:si({},vp),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:Rp,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Nh=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Fh={textTransform:"uppercase"},zh='"Roboto", "Helvetica", "Arial", sans-serif';function $h(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=zh,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=ui(r,Nh),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return si({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===zh?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,Fh),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Fh),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ih(si({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function jh(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var Gh=["none",jh(0,2,1,-1,0,1,1,0,0,1,3,0),jh(0,3,1,-2,0,2,2,0,0,1,5,0),jh(0,3,3,-2,0,3,4,0,0,1,8,0),jh(0,2,4,-1,0,4,5,0,0,1,10,0),jh(0,3,5,-1,0,5,8,0,0,1,14,0),jh(0,3,5,-1,0,6,10,0,0,1,18,0),jh(0,4,5,-2,0,7,10,1,0,2,16,1),jh(0,5,5,-3,0,8,10,1,0,3,14,2),jh(0,5,6,-3,0,9,12,1,0,3,16,2),jh(0,6,6,-3,0,10,14,1,0,4,18,3),jh(0,6,7,-4,0,11,15,1,0,4,20,3),jh(0,7,8,-4,0,12,17,2,0,5,22,4),jh(0,7,8,-4,0,13,19,2,0,5,24,4),jh(0,7,9,-4,0,14,21,2,0,5,26,4),jh(0,8,9,-5,0,15,22,2,0,6,28,5),jh(0,8,10,-5,0,16,24,2,0,6,30,5),jh(0,8,11,-5,0,17,26,2,0,6,32,5),jh(0,9,11,-5,0,18,28,2,0,7,34,6),jh(0,9,12,-6,0,19,29,2,0,7,36,6),jh(0,10,13,-6,0,20,31,3,0,8,38,7),jh(0,10,13,-6,0,21,33,3,0,8,40,7),jh(0,10,14,-6,0,22,35,3,0,8,42,7),jh(0,11,14,-7,0,23,36,3,0,9,44,8),jh(0,11,15,-7,0,24,38,3,0,9,46,8)];const Bh=["duration","easing","delay"],Hh={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)"},Wh={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Vh(e){return`${Math.round(e)}ms`}function Yh(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Uh(e){const t=si({},Hh,e.easing),r=si({},Wh,e.duration);return si({getAutoHeightDuration:Yh,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return ui(n,Bh),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Vh(o)} ${i} ${"string"==typeof a?a:Vh(a)}`)).join(",")}},e,{easing:t,duration:r})}var Kh={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Xh=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Jh(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=ui(e,Xh);if(e.vars)throw new Error(Lp(18));const l=qh(n),s=Pf(e);let u=ih(s,{mixins:(c=s.breakpoints,d=r,si({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Gh.slice(),typography:$h(l,i),transitions:Uh(o),zIndex:si({},Kh),applyDarkStyles(e){if(this.vars){return{[this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)")]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=ih(u,a),u=t.reduce(((e,t)=>ih(e,t)),u),u.unstable_sxConfig=si({},Df,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return If({sx:e,theme:this})},u}var Zh=Jh();function Qh(){const e=qf(Zh);return e[Ap]||e}function em({props:e,name:t}){return function({props:e,name:t,defaultTheme:r,themeId:n}){let o=qf(r);return n&&(o=o[n]||o),Jf({theme:o,name:t,props:e})}({props:e,name:t,defaultTheme:Zh,themeId:Ap})}const tm=e=>Wf(e)&&"classes"!==e,rm=Wf,nm=function(e={}){const{themeId:t,defaultTheme:r=Vf,rootShouldForwardProp:n=Wf,slotShouldForwardProp:o=Wf}=e,i=e=>If(si({},e,{theme:Uf(si({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{((e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Kf(Yf(s))}=a,p=ui(a,Hf),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=c||!1;let m=Wf;"Root"===s||"root"===s?m=n:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=Ip(e,si({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||os(e)?n=>Xf(e,si({},n,{theme:Uf({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&d&&s.push((e=>{const n=Uf(si({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[l]||!n.components[l].styleOverrides)return null;const o=n.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=Xf(r,si({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=Uf(si({},e,{defaultTheme:r,themeId:t}));return Xf({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},si({},e,{theme:o}))})),h||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:Ap,defaultTheme:Zh,rootShouldForwardProp:tm});var om=nm;var im=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function am(e){return Ih("MuiSvgIcon",e)}Mh("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const lm=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],sm=om("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${ah(r.color)}`],t[`fontSize${ah(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,l,s,u,c,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),um=E.forwardRef((function(e,t){const r=em({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=r,p=ui(r,lm),f=E.isValidElement(n)&&"svg"===n.type,h=si({},r,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),m={};u||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return uc({root:["root","inherit"!==t&&`color${ah(t)}`,`fontSize${ah(r)}`]},am,n)})(h);return oi.jsxs(sm,si({as:a,className:wu(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},m,p,f&&n.props,{ownerState:h,children:[f?n.props.children:n,c?oi.jsx("title",{children:c}):null]}))}));um.muiName="SvgIcon";var cm=um;function dm(e,t){return dm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dm(e,t)}function pm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,dm(e,t)}var fm=!1,hm=y.createContext(null),mm="unmounted",gm="exited",bm="entering",vm="entered",ym="exiting",xm=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=gm,n.appearStatus=bm):o=vm:o=t.unmountOnExit||t.mountOnEnter?mm:gm,n.state={status:o},n.nextCallback=null,n}pm(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===mm?{status:gm}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==bm&&r!==vm&&(t=bm):r!==bm&&r!==vm||(t=ym)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===bm){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:k.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===gm&&this.setState({status:mm})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[k.findDOMNode(this),n],i=o[0],a=o[1],l=this.getTimeouts(),s=n?l.appear:l.enter;!e&&!r||fm?this.safeSetState({status:vm},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:bm},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:vm},(function(){t.props.onEntered(i,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:k.findDOMNode(this);t&&!fm?(this.props.onExit(n),this.safeSetState({status:ym},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:gm},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:gm},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:k.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===mm)return null;var t=this.props,r=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var n=ui(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return y.createElement(hm.Provider,{value:null},"function"==typeof r?r(e,n):y.cloneElement(y.Children.only(r),n))},t}(y.Component);function Sm(){}xm.contextType=hm,xm.propTypes={},xm.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Sm,onEntering:Sm,onEntered:Sm,onExit:Sm,onExiting:Sm,onExited:Sm},xm.UNMOUNTED=mm,xm.EXITED=gm,xm.ENTERING=bm,xm.ENTERED=vm,xm.EXITING=ym;var Em=xm;function Cm(e,t){var r=Object.create(null);return e&&C.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&w(e)?t(e):e}(e)})),r}function wm(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Rm(e,t,r){var n=Cm(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(n=0;n<o[s].length;n++){var u=o[s][n];l[o[s][n]]=r(u)}l[s]=r(s)}for(n=0;n<i.length;n++)l[i[n]]=r(i[n]);return l}(t,n);return Object.keys(o).forEach((function(i){var a=o[i];if(w(a)){var l=i in t,s=i in n,u=t[i],c=w(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&w(u)&&(o[i]=R(a,{onExited:r.bind(null,a),in:u.props.in,exit:wm(a,"exit",e),enter:wm(a,"enter",e)})):o[i]=R(a,{in:!1}):o[i]=R(a,{onExited:r.bind(null,a),in:!0,exit:wm(a,"exit",e),enter:wm(a,"enter",e)})}})),o}var Lm=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Am=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}pm(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,Cm(r.children,(function(e){return R(e,{onExited:n.bind(null,e),in:!0,appear:wm(e,"appear",r),enter:wm(e,"enter",r),exit:wm(e,"exit",r)})}))):Rm(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=Cm(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=si({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=ui(e,["component","childFactory"]),o=this.state.contextValue,i=Lm(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?y.createElement(hm.Provider,{value:o},i):y.createElement(hm.Provider,{value:o},y.createElement(t,n,i))},t}(y.Component);Am.propTypes={},Am.defaultProps={component:"div",childFactory:function(e){return e}};var Dm=Am;const _m=e=>e.scrollTop;function Im(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function Mm(e){return Ih("MuiPaper",e)}Mh("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Om=["className","component","elevation","square","variant"],Pm=om("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return si({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&si({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${rh("#fff",im(t.elevation))}, ${rh("#fff",im(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}));var km=E.forwardRef((function(e,t){const r=em({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=ui(r,Om),u=si({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return uc({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Mm,o)})(u);return oi.jsx(Pm,si({as:o,ownerState:u,className:wu(c.root,n),ref:t},s))}));function Tm(e){return"string"==typeof e}function qm(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function Nm(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}const Fm=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function zm(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=ui(e,Fm),l=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=wu(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=si({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=si({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=qm(si({},o,n)),l=Nm(n),s=Nm(o),u=t(a),c=wu(null==u?void 0:u.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),d=si({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=si({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(si({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||Tm(e)?t:si({},t,{ownerState:si({},t.ownerState,r)})}(r,si({},s,{ref:sc(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var $m=Mh("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const jm=["center","classes","className"];let Gm,Bm,Hm,Wm,Vm=e=>e;const Ym=Ul(Gm||(Gm=Vm`
|
|
27
|
+
function zp(e,t){let r;return r=t?Ul(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Ul(e),r}Np.propTypes={defaultTheme:ts.object,styles:ts.oneOfType([ts.array,ts.string,ts.object,ts.func])};const $p=["values","unit","step"],jp=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>di({},e,{[t.key]:t.val})),{})};var Gp={borderRadius:4};function Hp(e,t){return t?us(e,t,{clone:!1}):e}const Bp={xs:0,sm:600,md:900,lg:1200,xl:1536},Wp={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Bp[e]}px)`};function Vp(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Wp;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Wp;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Bp).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Yp(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Up(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Yp(e,r)||n,t&&(o=t(o,n,e)),o}function Kp(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Yp(e.theme,n)||{};return Vp(e,i,(e=>{let n=Up(a,o,e);return e===n&&"string"==typeof e&&(n=Up(a,o,`${t}${"default"===e?"":ys(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Xp={m:"margin",p:"padding"},Jp={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Zp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Qp=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Zp[e])return[e];e=Zp[e]}const[t,r]=e.split(""),n=Xp[t],o=Jp[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),ef=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],tf=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function rf(e,t,r,n){var o;const i=null!=(o=Yp(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function nf(e){return rf(e,"spacing",8)}function of(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function af(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=of(t,r),e)),{})}(Qp(r),n);return Vp(e,e[r],o)}function lf(e,t){const r=nf(e.theme);return Object.keys(e).map((n=>af(e,t,n,r))).reduce(Hp,{})}function sf(e){return lf(e,ef)}function uf(e){return lf(e,tf)}function cf(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?Hp(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function df(e){return"number"!=typeof e?e:`${e}px solid`}function pf(e,t){return Kp({prop:e,themeKey:"borders",transform:t})}sf.propTypes={},sf.filterProps=ef,uf.propTypes={},uf.filterProps=tf;const ff=pf("border",df),hf=pf("borderTop",df),mf=pf("borderRight",df),gf=pf("borderBottom",df),bf=pf("borderLeft",df),vf=pf("borderColor"),yf=pf("borderTopColor"),xf=pf("borderRightColor"),Sf=pf("borderBottomColor"),Ef=pf("borderLeftColor"),Cf=pf("outline",df),wf=pf("outlineColor"),Rf=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=rf(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:of(t,e)});return Vp(e,e.borderRadius,r)}return null};Rf.propTypes={},Rf.filterProps=["borderRadius"],cf(ff,hf,mf,gf,bf,vf,yf,xf,Sf,Ef,Rf,Cf,wf);const Lf=e=>{if(void 0!==e.gap&&null!==e.gap){const t=rf(e.theme,"spacing",8),r=e=>({gap:of(t,e)});return Vp(e,e.gap,r)}return null};Lf.propTypes={},Lf.filterProps=["gap"];const Af=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=rf(e.theme,"spacing",8),r=e=>({columnGap:of(t,e)});return Vp(e,e.columnGap,r)}return null};Af.propTypes={},Af.filterProps=["columnGap"];const If=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=rf(e.theme,"spacing",8),r=e=>({rowGap:of(t,e)});return Vp(e,e.rowGap,r)}return null};If.propTypes={},If.filterProps=["rowGap"];function Df(e,t){return"grey"===t?t:e}cf(Lf,Af,If,Kp({prop:"gridColumn"}),Kp({prop:"gridRow"}),Kp({prop:"gridAutoFlow"}),Kp({prop:"gridAutoColumns"}),Kp({prop:"gridAutoRows"}),Kp({prop:"gridTemplateColumns"}),Kp({prop:"gridTemplateRows"}),Kp({prop:"gridTemplateAreas"}),Kp({prop:"gridArea"}));function _f(e){return e<=1&&0!==e?100*e+"%":e}cf(Kp({prop:"color",themeKey:"palette",transform:Df}),Kp({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Df}),Kp({prop:"backgroundColor",themeKey:"palette",transform:Df}));const Mf=Kp({prop:"width",transform:_f}),Pf=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||Bp[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:_f(t)}};return Vp(e,e.maxWidth,t)}return null};Pf.filterProps=["maxWidth"];const Of=Kp({prop:"minWidth",transform:_f}),kf=Kp({prop:"height",transform:_f}),Tf=Kp({prop:"maxHeight",transform:_f}),qf=Kp({prop:"minHeight",transform:_f});Kp({prop:"size",cssProperty:"width",transform:_f}),Kp({prop:"size",cssProperty:"height",transform:_f});cf(Mf,Pf,Of,kf,Tf,qf,Kp({prop:"boxSizing"}));var Nf={border:{themeKey:"borders",transform:df},borderTop:{themeKey:"borders",transform:df},borderRight:{themeKey:"borders",transform:df},borderBottom:{themeKey:"borders",transform:df},borderLeft:{themeKey:"borders",transform:df},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:df},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Rf},color:{themeKey:"palette",transform:Df},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Df},backgroundColor:{themeKey:"palette",transform:Df},p:{style:uf},pt:{style:uf},pr:{style:uf},pb:{style:uf},pl:{style:uf},px:{style:uf},py:{style:uf},padding:{style:uf},paddingTop:{style:uf},paddingRight:{style:uf},paddingBottom:{style:uf},paddingLeft:{style:uf},paddingX:{style:uf},paddingY:{style:uf},paddingInline:{style:uf},paddingInlineStart:{style:uf},paddingInlineEnd:{style:uf},paddingBlock:{style:uf},paddingBlockStart:{style:uf},paddingBlockEnd:{style:uf},m:{style:sf},mt:{style:sf},mr:{style:sf},mb:{style:sf},ml:{style:sf},mx:{style:sf},my:{style:sf},margin:{style:sf},marginTop:{style:sf},marginRight:{style:sf},marginBottom:{style:sf},marginLeft:{style:sf},marginX:{style:sf},marginY:{style:sf},marginInline:{style:sf},marginInlineStart:{style:sf},marginInlineEnd:{style:sf},marginBlock:{style:sf},marginBlockStart:{style:sf},marginBlockEnd:{style:sf},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Lf},rowGap:{style:If},columnGap:{style:Af},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:_f},maxWidth:{style:Pf},minWidth:{transform:_f},height:{transform:_f},maxHeight:{transform:_f},minHeight:{transform:_f},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Ff=function(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Yp(r,l)||{};if(u)return u(o);return Vp(o,t,(t=>{let r=Up(c,s,t);return t===r&&"string"==typeof t&&(r=Up(c,s,`${e}${"default"===t?"":ys(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=null!=(n=i.unstable_sxConfig)?n:Nf;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=Hp(s,e(r,o,i,a));else{const e=Vp({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?s=Hp(s,e):s[r]=t({sx:o,theme:i})}else s=Hp(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();Ff.filterProps=["sx"];var zf=Ff;function $f(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){return{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return r.palette.mode===e?t:{}}const jf=["breakpoints","palette","spacing","shape"];function Gf(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=pi(e,jf),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=pi(e,$p),i=jp(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return di({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}(r),s=function(e=8){if(e.mui)return e;const t=nf({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=us({breakpoints:l,direction:"ltr",components:{},palette:di({mode:"light"},n),spacing:s,shape:di({},Gp,i)},a);return u.applyStyles=$f,u=t.reduce(((e,t)=>us(e,t)),u),u.unstable_sxConfig=di({},Nf,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return zf({sx:e,theme:this})},u}function Hf(e=null){const t=w.useContext($l);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Bf=Gf();function Wf(e=Bf){return Hf(e)}function Vf({styles:e,themeId:t,defaultTheme:r={}}){const n=Wf(r),o="function"==typeof e?e(t&&n[t]||n):e;return li.jsx(Fp,{styles:o})}const Yf=["sx"],Uf=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:Nf;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function Kf(e){const{sx:t}=e,r=pi(e,Yf),{systemProps:n,otherProps:o}=Uf(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return ls(r)?di({},n,r):n}:di({},n,t),di({},o,{sx:i})}const Xf=["className","component"];const Jf=["ownerState"],Zf=["variants"],Qf=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function eh(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const th=Gf(),rh=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function nh({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function oh(e){return e?(t,r)=>r[e]:null}function ih(e,t){let{ownerState:r}=t,n=pi(t,Jf);const o="function"==typeof e?e(di({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>ih(e,di({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=pi(o,Zf);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(di({ownerState:r},n)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(di({ownerState:r},n)):e.style))})),t}return o}function ah(e){const{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?ec(t.components[r].defaultProps,n):n}function lh(e,t=0,r=1){return rc(e,t,r)}function sh(e){if(e.type)return e;if("#"===e.charAt(0))return sh(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(si(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(si(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function uh(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function ch(e){let t="hsl"===(e=sh(e)).type||"hsla"===e.type?sh(function(e){e=sh(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),uh({type:l,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function dh(e,t){return e=sh(e),t=lh(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,uh(e)}function ph(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function fh(e){if(!ph(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=fh(e[r])})),t}function hh(e,t,r={clone:!0}){const n=r.clone?di({},e):e;return ph(e)&&ph(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(ph(t[o])&&o in e&&ph(e[o])?n[o]=hh(e[o],t[o],r):r.clone?n[o]=ph(t[o])?fh(t[o]):t[o]:n[o]=t[o])})),n}function mh(e){if("string"!=typeof e)throw new Error(Op(7));return e.charAt(0).toUpperCase()+e.slice(1)}function gh(e){return e&&e.ownerDocument||document}function bh(e){return gh(e).defaultView||window}var vh="undefined"!=typeof window?w.useLayoutEffect:w.useEffect;let yh=0;const xh=w["useId".toString()];function Sh(e){if(void 0!==xh){const t=xh();return null!=e?e:t}return function(e){const[t,r]=w.useState(e),n=e||t;return w.useEffect((()=>{null==t&&(yh+=1,r(`mui-${yh}`))}),[t]),n}(e)}function Eh({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=w.useRef(void 0!==e),[i,a]=w.useState(t);return[o?e:i,w.useCallback((e=>{o||a(e)}),[])]}function Ch(e){const t=w.useRef(e);return vh((()=>{t.current=e})),w.useRef(((...e)=>(0,t.current)(...e))).current}function wh(...e){return w.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}class Rh{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new Rh}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let Lh=!0,Ah=!1;const Ih=new Rh,Dh={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function _h(e){e.metaKey||e.altKey||e.ctrlKey||(Lh=!0)}function Mh(){Lh=!1}function Ph(){"hidden"===this.visibilityState&&Ah&&(Lh=!0)}function Oh(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Lh||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Dh[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function kh(){const e=w.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",_h,!0),t.addEventListener("mousedown",Mh,!0),t.addEventListener("pointerdown",Mh,!0),t.addEventListener("touchstart",Mh,!0),t.addEventListener("visibilitychange",Ph,!0))}),[]),t=w.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Oh(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Ah=!0,Ih.start(100,(()=>{Ah=!1})),t.current=!1,!0)},ref:e}}function Th(e,t){const r=di({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=di({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=di({},i),Object.keys(o).forEach((e=>{r[n][e]=Th(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const qh=e=>e;var Nh=(()=>{let e=qh;return{configure(t){e=t},generate:t=>e(t),reset(){e=qh}}})();const Fh={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function zh(e,t,r="Mui"){const n=Fh[t];return n?`${r}-${n}`:`${Nh.generate(e)}-${t}`}function $h(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=zh(e,t,r)})),n}const jh=["mode","contrastThreshold","tonalOffset"],Gh={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Rp.white,default:Rp.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Hh={text:{primary:Rp.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Rp.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Bh(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=function(e,t){if(e=sh(e),t=lh(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return uh(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=sh(e),t=lh(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return uh(e)}(e.main,i)))}function Wh(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=qp(e,jh),i=e.primary||function(e="light"){return"dark"===e?{main:Ip[200],light:Ip[50],dark:Ip[400]}:{main:Ip[700],light:Ip[400],dark:Ip[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Ap[200],light:Ap[50],dark:Ap[400]}:{main:Ap[500],light:Ap[300],dark:Ap[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Lp[500],light:Lp[300],dark:Lp[700]}:{main:Lp[700],light:Lp[400],dark:Lp[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Dp[400],light:Dp[300],dark:Dp[700]}:{main:Dp[700],light:Dp[500],dark:Dp[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:_p[400],light:_p[300],dark:_p[700]}:{main:_p[800],light:_p[500],dark:_p[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Mp[400],light:Mp[300],dark:Mp[700]}:{main:"#ed6c02",light:Mp[500],dark:Mp[900]}}(t);function d(e){const t=function(e,t){const r=ch(e),n=ch(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,Hh.text.primary)>=r?Hh.text.primary:Gh.text.primary;return t}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Tp({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Op(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Op(12,t?` (${t})`:"",JSON.stringify(e.main)));return Bh(e,"light",o,n),Bh(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Hh,light:Gh};return hh(Tp({common:Tp({},Rp),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:Pp,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Vh=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Yh={textTransform:"uppercase"},Uh='"Roboto", "Helvetica", "Arial", sans-serif';function Kh(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Uh,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=qp(r,Vh),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return Tp({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===Uh?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,Yh),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Yh),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return hh(Tp({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Xh(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var Jh=["none",Xh(0,2,1,-1,0,1,1,0,0,1,3,0),Xh(0,3,1,-2,0,2,2,0,0,1,5,0),Xh(0,3,3,-2,0,3,4,0,0,1,8,0),Xh(0,2,4,-1,0,4,5,0,0,1,10,0),Xh(0,3,5,-1,0,5,8,0,0,1,14,0),Xh(0,3,5,-1,0,6,10,0,0,1,18,0),Xh(0,4,5,-2,0,7,10,1,0,2,16,1),Xh(0,5,5,-3,0,8,10,1,0,3,14,2),Xh(0,5,6,-3,0,9,12,1,0,3,16,2),Xh(0,6,6,-3,0,10,14,1,0,4,18,3),Xh(0,6,7,-4,0,11,15,1,0,4,20,3),Xh(0,7,8,-4,0,12,17,2,0,5,22,4),Xh(0,7,8,-4,0,13,19,2,0,5,24,4),Xh(0,7,9,-4,0,14,21,2,0,5,26,4),Xh(0,8,9,-5,0,15,22,2,0,6,28,5),Xh(0,8,10,-5,0,16,24,2,0,6,30,5),Xh(0,8,11,-5,0,17,26,2,0,6,32,5),Xh(0,9,11,-5,0,18,28,2,0,7,34,6),Xh(0,9,12,-6,0,19,29,2,0,7,36,6),Xh(0,10,13,-6,0,20,31,3,0,8,38,7),Xh(0,10,13,-6,0,21,33,3,0,8,40,7),Xh(0,10,14,-6,0,22,35,3,0,8,42,7),Xh(0,11,14,-7,0,23,36,3,0,9,44,8),Xh(0,11,15,-7,0,24,38,3,0,9,46,8)];const Zh=["duration","easing","delay"],Qh={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)"},em={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function tm(e){return`${Math.round(e)}ms`}function rm(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function nm(e){const t=Tp({},Qh,e.easing),r=Tp({},em,e.duration);return Tp({getAutoHeightDuration:rm,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return qp(n,Zh),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:tm(o)} ${i} ${"string"==typeof a?a:tm(a)}`)).join(",")}},e,{easing:t,duration:r})}var om={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const im=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function am(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=qp(e,im);if(e.vars)throw new Error(Op(18));const l=Wh(n),s=Gf(e);let u=hh(s,{mixins:(c=s.breakpoints,d=r,Tp({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Jh.slice(),typography:Kh(l,i),transitions:nm(o),zIndex:Tp({},om),applyDarkStyles(e){if(this.vars){return{[this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)")]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=hh(u,a),u=t.reduce(((e,t)=>hh(e,t)),u),u.unstable_sxConfig=Tp({},Nf,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return zf({sx:e,theme:this})},u}var lm=am();function sm(){const e=Wf(lm);return e[kp]||e}function um({props:e,name:t}){return function({props:e,name:t,defaultTheme:r,themeId:n}){let o=Wf(r);return n&&(o=o[n]||o),ah({theme:o,name:t,props:e})}({props:e,name:t,defaultTheme:lm,themeId:kp})}const cm=e=>eh(e)&&"classes"!==e,dm=eh,pm=function(e={}){const{themeId:t,defaultTheme:r=th,rootShouldForwardProp:n=eh,slotShouldForwardProp:o=eh}=e,i=e=>zf(di({},e,{theme:nh(di({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{((e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=oh(rh(s))}=a,p=pi(a,Qf),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=c||!1;let m=eh;"Root"===s||"root"===s?m=n:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=zp(e,di({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||ls(e)?n=>ih(e,di({},n,{theme:nh({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&d&&s.push((e=>{const n=nh(di({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[l]||!n.components[l].styleOverrides)return null;const o=n.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=ih(r,di({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=nh(di({},e,{defaultTheme:r,themeId:t}));return ih({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},di({},e,{theme:o}))})),h||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:kp,defaultTheme:lm,rootShouldForwardProp:cm});var fm=pm;var hm=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function mm(e){return zh("MuiSvgIcon",e)}$h("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const gm=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],bm=fm("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${mh(r.color)}`],t[`fontSize${mh(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,l,s,u,c,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),vm=w.forwardRef((function(e,t){const r=um({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=r,p=qp(r,gm),f=w.isValidElement(n)&&"svg"===n.type,h=Tp({},r,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),m={};u||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return pc({root:["root","inherit"!==t&&`color${mh(t)}`,`fontSize${mh(r)}`]},mm,n)})(h);return li.jsxs(bm,Tp({as:a,className:Au(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},m,p,f&&n.props,{ownerState:h,children:[f?n.props.children:n,c?li.jsx("title",{children:c}):null]}))}));vm.muiName="SvgIcon";var ym=vm;var xm=!1,Sm=S.createContext(null),Em="unmounted",Cm="exited",wm="entering",Rm="entered",Lm="exiting",Am=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=Cm,n.appearStatus=wm):o=Rm:o=t.unmountOnExit||t.mountOnEnter?Em:Cm,n.state={status:o},n.nextCallback=null,n}ep(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Em?{status:Cm}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==wm&&r!==Rm&&(t=wm):r!==wm&&r!==Rm||(t=Lm)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===wm){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:q.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Cm&&this.setState({status:Em})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[q.findDOMNode(this),n],i=o[0],a=o[1],l=this.getTimeouts(),s=n?l.appear:l.enter;!e&&!r||xm?this.safeSetState({status:Rm},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:wm},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Rm},(function(){t.props.onEntered(i,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:q.findDOMNode(this);t&&!xm?(this.props.onExit(n),this.safeSetState({status:Lm},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Cm},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Cm},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:q.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Em)return null;var t=this.props,r=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var n=pi(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return S.createElement(Sm.Provider,{value:null},"function"==typeof r?r(e,n):S.cloneElement(S.Children.only(r),n))},t}(S.Component);function Im(){}Am.contextType=Sm,Am.propTypes={},Am.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Im,onEntering:Im,onEntered:Im,onExit:Im,onExiting:Im,onExited:Im},Am.UNMOUNTED=Em,Am.EXITED=Cm,Am.ENTERING=wm,Am.ENTERED=Rm,Am.EXITING=Lm;var Dm=Am;function _m(e,t){var r=Object.create(null);return e&&R.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&L(e)?t(e):e}(e)})),r}function Mm(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Pm(e,t,r){var n=_m(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(n=0;n<o[s].length;n++){var u=o[s][n];l[o[s][n]]=r(u)}l[s]=r(s)}for(n=0;n<i.length;n++)l[i[n]]=r(i[n]);return l}(t,n);return Object.keys(o).forEach((function(i){var a=o[i];if(L(a)){var l=i in t,s=i in n,u=t[i],c=L(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&L(u)&&(o[i]=A(a,{onExited:r.bind(null,a),in:u.props.in,exit:Mm(a,"exit",e),enter:Mm(a,"enter",e)})):o[i]=A(a,{in:!1}):o[i]=A(a,{onExited:r.bind(null,a),in:!0,exit:Mm(a,"exit",e),enter:Mm(a,"enter",e)})}})),o}var Om=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},km=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}ep(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,_m(r.children,(function(e){return A(e,{onExited:n.bind(null,e),in:!0,appear:Mm(e,"appear",r),enter:Mm(e,"enter",r),exit:Mm(e,"exit",r)})}))):Pm(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=_m(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=di({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=pi(e,["component","childFactory"]),o=this.state.contextValue,i=Om(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?S.createElement(Sm.Provider,{value:o},i):S.createElement(Sm.Provider,{value:o},S.createElement(t,n,i))},t}(S.Component);km.propTypes={},km.defaultProps={component:"div",childFactory:function(e){return e}};var Tm=km;const qm=e=>e.scrollTop;function Nm(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function Fm(e){return zh("MuiPaper",e)}$h("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const zm=["className","component","elevation","square","variant"],$m=fm("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return Tp({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&Tp({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${dh("#fff",hm(t.elevation))}, ${dh("#fff",hm(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}));var jm=w.forwardRef((function(e,t){const r=um({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=qp(r,zm),u=Tp({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return pc({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Fm,o)})(u);return li.jsx($m,Tp({as:o,ownerState:u,className:Au(c.root,n),ref:t},s))}));function Gm(e){return"string"==typeof e}function Hm(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function Bm(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}const Wm=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Vm(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=pi(e,Wm),l=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=Au(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=di({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=di({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Hm(di({},o,n)),l=Bm(n),s=Bm(o),u=t(a),c=Au(null==u?void 0:u.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),d=di({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=di({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(di({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||Gm(e)?t:di({},t,{ownerState:di({},t.ownerState,r)})}(r,di({},s,{ref:dc(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var Ym=$h("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Um=["center","classes","className"];let Km,Xm,Jm,Zm,Qm=e=>e;const eg=Jl(Km||(Km=Qm`
|
|
28
28
|
0% {
|
|
29
29
|
transform: scale(0);
|
|
30
30
|
opacity: 0.1;
|
|
@@ -34,7 +34,7 @@ function Ip(e,t){let r;return r=t?Wl(e).withConfig({displayName:t.label,shouldFo
|
|
|
34
34
|
transform: scale(1);
|
|
35
35
|
opacity: 0.3;
|
|
36
36
|
}
|
|
37
|
-
`)),
|
|
37
|
+
`)),tg=Jl(Xm||(Xm=Qm`
|
|
38
38
|
0% {
|
|
39
39
|
opacity: 1;
|
|
40
40
|
}
|
|
@@ -42,7 +42,7 @@ function Ip(e,t){let r;return r=t?Wl(e).withConfig({displayName:t.label,shouldFo
|
|
|
42
42
|
100% {
|
|
43
43
|
opacity: 0;
|
|
44
44
|
}
|
|
45
|
-
`)),
|
|
45
|
+
`)),rg=Jl(Jm||(Jm=Qm`
|
|
46
46
|
0% {
|
|
47
47
|
transform: scale(1);
|
|
48
48
|
}
|
|
@@ -54,7 +54,7 @@ function Ip(e,t){let r;return r=t?Wl(e).withConfig({displayName:t.label,shouldFo
|
|
|
54
54
|
100% {
|
|
55
55
|
transform: scale(1);
|
|
56
56
|
}
|
|
57
|
-
`)),
|
|
57
|
+
`)),ng=fm("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),og=fm((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=w.useState(!1),p=Au(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=Au(r.child,c&&r.childLeaving,n&&r.childPulsate);return l||c||d(!0),w.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),li.jsx("span",{className:p,style:f,children:li.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Zm||(Zm=Qm`
|
|
58
58
|
opacity: 0;
|
|
59
59
|
position: absolute;
|
|
60
60
|
|
|
@@ -97,4 +97,4 @@ function Ip(e,t){let r;return r=t?Wl(e).withConfig({displayName:t.label,shouldFo
|
|
|
97
97
|
animation-iteration-count: infinite;
|
|
98
98
|
animation-delay: 200ms;
|
|
99
99
|
}
|
|
100
|
-
`),$m.rippleVisible,Ym,550,(({theme:e})=>e.transitions.easing.easeInOut),$m.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),$m.child,$m.childLeaving,Um,550,(({theme:e})=>e.transitions.easing.easeInOut),$m.childPulsate,Km,(({theme:e})=>e.transitions.easing.easeInOut));var Zm=E.forwardRef((function(e,t){const r=em({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=ui(r,jm),[l,s]=E.useState([]),u=E.useRef(0),c=E.useRef(null);E.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=E.useRef(!1),p=E.useRef(0),f=E.useRef(null),h=E.useRef(null);E.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const m=E.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;s((e=>[...e,oi.jsx(Jm,{classes:{ripple:wu(o.ripple,$m.ripple),rippleVisible:wu(o.rippleVisible,$m.rippleVisible),ripplePulsate:wu(o.ripplePulsate,$m.ripplePulsate),child:wu(o.child,$m.child),childLeaving:wu(o.childLeaving,$m.childLeaving),childPulsate:wu(o.childPulsate,$m.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=E.useCallback(((e={},t={},r=(()=>{}))=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null: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:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,m]),b=E.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=E.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 E.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),oi.jsx(Xm,si({className:wu($m.root,o.root,i),ref:h},a,{children:oi.jsx(Dm,{component:null,exit:!0,children:l})}))}));function Qm(e){return Ih("MuiButtonBase",e)}var eg=Mh("MuiButtonBase",["root","disabled","focusVisible"]);const tg=["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"],rg=om("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"},[`&.${eg.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ng=E.forwardRef((function(e,t){const r=em({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:A,tabIndex:D=0,TouchRippleProps:_,touchRippleRef:I,type:M}=r,O=ui(r,tg),P=E.useRef(null),k=E.useRef(null),T=mh(k,I),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=Rh(),[$,j]=E.useState(!1);s&&$&&j(!1),E.useImperativeHandle(n,(()=>({focusVisible:()=>{j(!0),P.current.focus()}})),[]);const[G,B]=E.useState(!1);E.useEffect((()=>{B(!0)}),[]);const H=G&&!u&&!s;function W(e,t,r=c){return hh((n=>{t&&t(n);return!r&&k.current&&k.current[e](n),!0}))}E.useEffect((()=>{$&&d&&!u&&G&&k.current.pulsate()}),[u,d,$,G]);const V=W("start",S),Y=W("stop",m),U=W("stop",g),K=W("stop",w),X=W("stop",(e=>{$&&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&&j(!1),f&&f(e)}),!1),te=hh((e=>{P.current||(P.current=e.currentTarget),N(e),!0===q.current&&(j(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=P.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=E.useRef(!1),oe=hh((e=>{d&&!ne.current&&$&&k.current&&" "===e.key&&(ne.current=!0,k.current.stop(e,(()=>{k.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=hh((e=>{d&&" "===e.key&&k.current&&$&&!e.defaultPrevented&&(ne.current=!1,k.current.stop(e,(()=>{k.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(O.href||O.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===M?"button":M,le.disabled=s):(O.href||O.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=mh(t,z,P),ue=si({},r,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:D,focusVisible:$}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=uc({root:["root",t&&"disabled",r&&"focusVisible"]},Qm,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return oi.jsxs(rg,si({as:ae,className:wu(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:D,type:M},le,O,{children:[i,H?oi.jsx(Zm,si({ref:T,center:o},_)):null]}))}));var og=ng;function ig(e){return Ih("MuiTypography",e)}Mh("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ag=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],lg=om("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${ah(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>si({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}))),sg={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ug={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},cg=E.forwardRef((function(e,t){const r=em({props:e,name:"MuiTypography"}),n=(e=>ug[e]||e)(r.color),o=$f(si({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=sg}=o,f=ui(o,ag),h=si({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=l||(c?"p":p[d]||sg[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return uc({root:["root",i,"inherit"!==e.align&&`align${ah(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},ig,a)})(h);return oi.jsx(lg,si({as:m,ref:t,ownerState:h,className:wu(g.root,a)},f))}));var dg=cg;const pg=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function fg(e){const t=[],r=[];return Array.from(e.querySelectorAll(pg)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function hg(){return!0}function mg(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=fg,isEnabled:a=hg,open:l}=e,s=E.useRef(!1),u=E.useRef(null),c=E.useRef(null),d=E.useRef(null),p=E.useRef(null),f=E.useRef(!1),h=E.useRef(null),m=sc(t.ref,h),g=E.useRef(null);E.useEffect((()=>{l&&h.current&&(f.current=!r)}),[r,l]),E.useEffect((()=>{if(!l||!h.current)return;const e=oc(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]),E.useEffect((()=>{if(!l||!h.current)return;const e=oc(h.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},r=()=>{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(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(h.current)),r.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return oi.jsxs(E.Fragment,{children:[oi.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),E.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),oi.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const gg=E.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=E.useState(null),l=sc(E.isValidElement(r)?r.ref:null,t);if(Zu((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),Zu((()=>{if(i&&!o)return ac(t,i),()=>{ac(t,null)}}),[t,i,o]),o){if(E.isValidElement(r)){const e={ref:l};return E.cloneElement(r,e)}return oi.jsx(E.Fragment,{children:r})}return oi.jsx(E.Fragment,{children:i?T.createPortal(r,i):i})}));function bg(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function vg(e){return parseInt(ic(e).getComputedStyle(e).paddingRight,10)||0}function yg(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&bg(e,o)}))}function xg(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function Sg(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=oc(e);return t.body===e?ic(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(oc(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${vg(n)+e}px`;const t=oc(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${vg(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=oc(n).body;else{const t=n.parentElement,r=ic(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const Eg=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&bg(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);yg(t,e.mount,e.modalRef,n,!0);const o=xg(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=xg(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=Sg(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=xg(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&bg(e.modalRef,t),yg(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&bg(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Cg(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Eg,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=E.useRef({}),f=E.useRef(null),h=E.useRef(null),m=sc(h,d),[g,b]=E.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},C=lc((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||oc(f.current).body;o.add(x(),e),h.current&&S()})),w=E.useCallback((()=>o.isTopModal(x())),[o]),R=lc((e=>{f.current=e,e&&(c&&w()?S():h.current&&bg(h.current,y))})),L=E.useCallback((()=>{o.remove(x(),y)}),[y,o]);E.useEffect((()=>()=>{L()}),[L]),E.useEffect((()=>{c?C():v&&i||L()}),[c,L,v,i,C]);const A=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},D=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=qm(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=si({},r,t);return si({role:"presentation"},n,{onKeyDown:A(n),ref:m})},getBackdropProps:(e={})=>si({"aria-hidden":!0},e,{onClick:D(e),open:c}),getTransitionProps:()=>({onEnter:nc((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:nc((()=>{b(!0),l&&l(),i&&L()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const wg=["onChange","maxRows","minRows","style","value"];function Rg(e){return parseInt(e,10)||0}const Lg={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Ag(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Dg=E.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,l=ui(e,wg),{current:s}=E.useRef(null!=a),u=E.useRef(null),c=sc(t,u),d=E.useRef(null),p=E.useRef(0),[f,h]=E.useState({outerHeightStyle:0}),m=E.useCallback((()=>{const t=u.current,r=ic(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};const i=d.current;i.style.width=r.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=r.boxSizing,l=Rg(r.paddingBottom)+Rg(r.paddingTop),s=Rg(r.borderBottomWidth)+Rg(r.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),n&&(f=Math.min(Number(n)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[n,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:r,overflow:n}=t;return p.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(p.current+=1,{overflow:n,outerHeightStyle:r}):e},b=E.useCallback((()=>{const e=m();Ag(e)||h((t=>g(t,e)))}),[m]);Zu((()=>{const e=()=>{p.current=0,(()=>{const e=m();Ag(e)||T.flushSync((()=>{h((t=>g(t,e)))}))})()};const t=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}(e),r=u.current,n=ic(r);let o;return n.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(r)),()=>{t.clear(),cancelAnimationFrame(undefined),n.removeEventListener("resize",t),o&&o.disconnect()}}),[m]),Zu((()=>{b()})),E.useEffect((()=>{p.current=0}),[a]);return oi.jsxs(E.Fragment,{children:[oi.jsx("textarea",si({value:a,onChange:e=>{p.current=0,s||b(),r&&r(e)},ref:c,rows:o,style:si({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),oi.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:si({},Lg,i,{paddingTop:0,paddingBottom:0})})]})}));function _g({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}var Ig=E.createContext(void 0);function Mg(){return E.useContext(Ig)}function Og(e){return oi.jsx(Nf,si({},e,{defaultTheme:Zh,themeId:Ap}))}function Pg(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function kg(e,t=!1){return e&&(Pg(e.value)&&""!==e.value||t&&Pg(e.defaultValue)&&""!==e.defaultValue)}function Tg(e){return Ih("MuiInputBase",e)}var qg=Mh("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const Ng=["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"],Fg=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${ah(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},zg=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},$g=om("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Fg})((({theme:e,ownerState:t})=>si({},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",[`&.${qg.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&si({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),jg=om("input",{name:"MuiInputBase",slot:"Input",overridesResolver:zg})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=si({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return si({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${qg.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},[`&.${qg.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"})})),Gg=oi.jsx(Og,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Bg=E.forwardRef((function(e,t){var r;const n=em({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:y,minRows:x,multiline:S=!1,name:C,onBlur:w,onChange:R,onClick:L,onFocus:A,onKeyDown:D,onKeyUp:_,placeholder:I,readOnly:M,renderSuffix:O,rows:P,slotProps:k={},slots:T={},startAdornment:q,type:N="text",value:F}=n,z=ui(n,Ng),$=null!=b.value?b.value:F,{current:j}=E.useRef(null!=$),G=E.useRef(),B=E.useCallback((e=>{}),[]),H=mh(G,v,b.ref,B),[W,V]=E.useState(!1),Y=Mg(),U=_g({props:n,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=Y?Y.focused:W,E.useEffect((()=>{!Y&&d&&W&&(V(!1),w&&w())}),[Y,d,W,w]);const K=Y&&Y.onFilled,X=Y&&Y.onEmpty,J=E.useCallback((e=>{kg(e)?K&&K():X&&X()}),[K,X]);uh((()=>{j&&J({value:$})}),[$,J,j]);E.useEffect((()=>{J(G.current)}),[]);let Z=g,Q=b;S&&"input"===Z&&(Q=si(P?{type:void 0,minRows:P,maxRows:P}:{type:void 0,maxRows:y,minRows:x},Q),Z=Dg);E.useEffect((()=>{Y&&Y.setAdornedStart(Boolean(q))}),[Y,q]);const ee=si({},n,{color:U.color||"primary",disabled:U.disabled,endAdornment:f,error:U.error,focused:U.focused,formControl:Y,fullWidth:h,hiddenLabel:U.hiddenLabel,multiline:S,size:U.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return uc({root:["root",`color${ah(r)}`,n&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${ah(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Tg,t)})(ee),re=T.root||s.Root||$g,ne=k.root||u.root||{},oe=T.input||s.Input||jg;return Q=si({},Q,null!=(r=k.input)?r:u.input),oi.jsxs(E.Fragment,{children:[!p&&Gg,oi.jsxs(re,si({},ne,!Tm(re)&&{ownerState:si({},ee,ne.ownerState)},{ref:t,onClick:e=>{G.current&&e.currentTarget===e.target&&G.current.focus(),L&&L(e)}},z,{className:wu(te.root,ne.className,l,M&&"MuiInputBase-readOnly"),children:[q,oi.jsx(Ig.Provider,{value:null,children:oi.jsx(oe,si({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:I,readOnly:M,required:U.required,rows:P,value:$,onKeyDown:D,onKeyUp:_,type:N},Q,!Tm(oe)&&{as:Z,ownerState:si({},ee,Q.ownerState)},{ref:H,className:wu(te.input,Q.className,M&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||G.current;if(null==t)throw new Error(Lp(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,O?O(si({},U,{startAdornment:q})):null]}))]})}));var Hg=Bg;function Wg(e){return Ih("MuiInput",e)}var Vg=si({},qg,Mh("MuiInput",["root","underline","input"]));function Yg(e){return Ih("MuiOutlinedInput",e)}var Ug=si({},qg,Mh("MuiOutlinedInput",["root","notchedOutline","input"]));function Kg(e){return Ih("MuiFilledInput",e)}var Xg=si({},qg,Mh("MuiFilledInput",["root","underline","input"])),Jg=function(e,t){function r(r,n){return oi.jsx(cm,si({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=cm.muiName,E.memo(E.forwardRef(r))}(oi.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Zg=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Qg={entering:{opacity:1},entered:{opacity:1}},eb=E.forwardRef((function(e,t){const r=Qh(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=n,TransitionComponent:b=Em}=e,v=ui(e,Zg),y=E.useRef(null),x=mh(y,a.ref,t),S=e=>t=>{if(e){const r=y.current;void 0===t?e(r):e(r,t)}},C=S(d),w=S(((e,t)=>{_m(e);const n=Im({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),R=S(c),L=S(h),A=S((e=>{const t=Im({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),D=S(f);return oi.jsx(b,si({appear:i,in:s,nodeRef:y,onEnter:w,onEntered:R,onEntering:C,onExit:A,onExited:D,onExiting:L,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>E.cloneElement(a,si({style:si({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},Qg[e],m,a.props.style),ref:x},t))}))}));var tb=eb;function rb(e){return Ih("MuiBackdrop",e)}Mh("MuiBackdrop",["root","invisible"]);const nb=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ob=om("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>si({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"}))),ib=E.forwardRef((function(e,t){var r,n,o;const i=em({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=tb,transitionDuration:g}=i,b=ui(i,nb),v=si({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return uc({root:["root",r&&"invisible"]},rb,t)})(v),x=null!=(r=f.root)?r:c.root;return oi.jsx(m,si({in:p,timeout:g},b,{children:oi.jsx(ob,si({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:s,className:wu(y.root,l,null==x?void 0:x.className),ownerState:si({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var ab=ib;var lb=Mh("MuiBox",["root"]);const sb=Jh(),ub=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Ip("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(If);return E.forwardRef((function(e,a){const l=qf(r),s=$f(e),{className:u,component:c="div"}=s,d=ui(s,jf);return oi.jsx(i,si({as:c,ref:a,className:wu(u,o?o(n):n),theme:t&&l[t]||l},d))}))}({themeId:Ap,defaultTheme:sb,defaultClassName:lb.root,generateClassName:Dh.generate});var cb=ub;function db(e){return Ih("MuiButton",e)}var pb=Mh("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 fb=E.createContext({});var hb=E.createContext(void 0);const mb=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],gb=e=>si({},"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}}),bb=om(og,{shouldForwardProp:e=>tm(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ah(r.color)}`],t[`size${ah(r.size)}`],t[`${r.variant}Size${ah(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return si({},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":si({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:rh(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})`:rh(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})`:rh(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":si({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${pb.focusVisible}`]:si({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${pb.disabled}`]:si({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 ${rh(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${pb.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${pb.disabled}`]:{boxShadow:"none"}})),vb=om("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${ah(r.size)}`]]}})((({ownerState:e})=>si({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},gb(e)))),yb=om("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${ah(r.size)}`]]}})((({ownerState:e})=>si({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},gb(e)))),xb=E.forwardRef((function(e,t){const r=E.useContext(fb),n=E.useContext(hb),o=em({props:Lh(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,y=ui(o,mb),x=si({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),S=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return si({},a,uc({root:["root",i,`${i}${ah(t)}`,`size${ah(o)}`,`${i}Size${ah(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${ah(o)}`],endIcon:["endIcon",`iconSize${ah(o)}`]},db,a))})(x),C=g&&oi.jsx(vb,{className:S.startIcon,ownerState:x,children:g}),w=p&&oi.jsx(yb,{className:S.endIcon,ownerState:x,children:p}),R=n||"";return oi.jsxs(bb,si({ownerState:x,className:wu(r.className,S.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:wu(S.focusVisible,f),ref:t,type:b},y,{classes:S,children:[C,i,w]}))}));var Sb=xb;function Eb(e){return Ih("MuiModal",e)}Mh("MuiModal",["root","hidden","backdrop"]);const Cb=["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"],wb=om("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>si({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Rb=om(ab,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Lb=E.forwardRef((function(e,t){var r,n,o,i,a,l;const s=em({name:"MuiModal",props:e}),{BackdropComponent:u=Rb,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:A,open:D,slotProps:_,slots:I}=s,M=ui(s,Cb),O=si({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:P,getBackdropProps:k,getTransitionProps:T,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=Cg(si({},O,{rootRef:t})),$=si({},O,{exited:F}),j=(e=>{const{open:t,exited:r,classes:n}=e;return uc({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Eb,n)})($),G={};if(void 0===f.props.tabIndex&&(G.tabIndex="-1"),z){const{onEnter:e,onExited:t}=T();G.onEnter=e,G.onExited=t}const B=null!=(r=null!=(n=null==I?void 0:I.root)?n:g.Root)?r:wb,H=null!=(o=null!=(i=null==I?void 0:I.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==_?void 0:_.root)?a:b.root,V=null!=(l=null==_?void 0:_.backdrop)?l:b.backdrop,Y=zm({elementType:B,externalSlotProps:W,externalForwardedProps:M,getSlotProps:P,additionalProps:{ref:t,as:m},ownerState:$,className:wu(d,null==W?void 0:W.className,null==j?void 0:j.root,!$.open&&$.exited&&(null==j?void 0:j.hidden))}),U=zm({elementType:H,externalSlotProps:V,additionalProps:c,getSlotProps:e=>k(si({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:wu(null==V?void 0:V.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:$});return L||D||z&&!F?oi.jsx(gg,{ref:q,container:h,disablePortal:S,children:oi.jsxs(B,si({},Y,{children:[!R&&u?oi.jsx(H,si({},U)):null,oi.jsx(mg,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:D,children:E.cloneElement(f,G)})]}))}):null}));var Ab=Lb;function Db(e){return Ih("MuiDivider",e)}var _b=Mh("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Ib=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Mb=om("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>si({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)`:rh(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})=>si({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>si({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>si({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>si({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Ob=om("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>si({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)`}))),Pb=E.forwardRef((function(e,t){const r=em({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=ui(r,Ib),h=si({},r,{absolute:n,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return uc({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Db,n)})(h);return oi.jsx(Mb,si({as:a,className:wu(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?oi.jsx(Ob,{className:m.wrapper,ownerState:h,children:o}):null}))}));Pb.muiSkipListHighlight=!0;var kb=Pb;const Tb=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],qb=om($g,{shouldForwardProp:e=>tm(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Fg(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return si({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}},[`&.${Xg.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Xg.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Xg.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xg.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(.${Xg.disabled}, .${Xg.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Xg.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&si({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}))})),Nb=om(jg,{name:"MuiFilledInput",slot:"Input",overridesResolver:zg})((({theme:e,ownerState:t})=>si({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}))),Fb=E.forwardRef((function(e,t){var r,n,o,i;const a=em({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=ui(a,Tb),g=si({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:r}=e;return si({},t,uc({root:["root",!r&&"underline"],input:["input"]},Kg,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?ih(v,null!=p?p:s):v,x=null!=(r=null!=(n=f.root)?n:l.Root)?r:qb,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:Nb;return oi.jsx(Hg,si({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))}));Fb.muiName="Input";var zb=Fb;const $b=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function jb(e){return`scale(${e}, ${e**2})`}const Gb={entering:{opacity:1,transform:jb(1)},entered:{opacity:1,transform:"none"}},Bb="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Hb=E.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Em}=e,g=ui(e,$b),b=E.useRef(),v=E.useRef(),y=Qh(),x=E.useRef(null),S=mh(x,o.ref,t),C=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},w=C(u),R=C(((e,t)=>{_m(e);const{duration:r,delay:n,easing:o}=Im({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:n}),y.transitions.create("transform",{duration:Bb?a:.666*a,delay:n,easing:o})].join(","),l&&l(e,t)})),L=C(s),A=C(p),D=C((e=>{const{duration:t,delay:r,easing:n}=Im({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:r}),y.transitions.create("transform",{duration:Bb?o:.666*o,delay:Bb?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=jb(.75),c&&c(e)})),_=C(d);return E.useEffect((()=>()=>{clearTimeout(b.current)}),[]),oi.jsx(m,si({appear:n,in:a,nodeRef:x,onEnter:R,onEntered:L,onEntering:w,onExit:D,onExited:_,onExiting:A,addEndListener:e=>{"auto"===h&&(b.current=setTimeout(e,v.current||0)),r&&r(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>E.cloneElement(o,si({style:si({opacity:0,transform:jb(.75),visibility:"exited"!==e||a?void 0:"hidden"},Gb[e],f,o.props.style),ref:S},t))}))}));Hb.muiSupportAuto=!0;var Wb=Hb;const Vb=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Yb=om($g,{shouldForwardProp:e=>tm(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Fg(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),si({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"},[`&.${Vg.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Vg.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Vg.disabled}, .${Vg.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Vg.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Ub=om(jg,{name:"MuiInput",slot:"Input",overridesResolver:zg})({}),Kb=E.forwardRef((function(e,t){var r,n,o,i;const a=em({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=ui(a,Vb),b=(e=>{const{classes:t,disableUnderline:r}=e;return si({},t,uc({root:["root",!r&&"underline"],input:["input"]},Wg,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?ih(null!=f?f:u,v):v,x=null!=(r=null!=(n=h.root)?n:s.Root)?r:Yb,S=null!=(o=null!=(i=h.input)?i:s.Input)?o:Ub;return oi.jsx(Hg,si({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));Kb.muiName="Input";var Xb=Kb;function Jb(e){return Ih("MuiLink",e)}var Zb=Mh("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const Qb={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var ev=({theme:e,ownerState:t})=>{const r=(e=>Qb[e]||e)(t.color),n=Fp(e,`palette.${r}`,!1)||t.color,o=Fp(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:rh(n,.4)};const tv=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],rv=om(dg,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${ah(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>si({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&si({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:ev({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"},[`&.${Zb.focusVisible}`]:{outline:"auto"}}))),nv=E.forwardRef((function(e,t){const r=em({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=r,p=ui(r,tv),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=Rh(),[b,v]=E.useState(!1),y=mh(t,g),x=si({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),S=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return uc({root:["root",`underline${ah(o)}`,"button"===r&&"button",n&&"focusVisible"]},Jb,t)})(x);return oi.jsx(rv,si({color:o,className:wu(S.root,n),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:y,ownerState:x,variant:c,sx:[...Object.keys(Qb).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var ov=nv;var iv=E.createContext({});function av(e){return Ih("MuiList",e)}Mh("MuiList",["root","padding","dense","subheader"]);const lv=["children","className","component","dense","disablePadding","subheader"],sv=om("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>si({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var uv=E.forwardRef((function(e,t){const r=em({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=r,u=ui(r,lv),c=E.useMemo((()=>({dense:a})),[a]),d=si({},r,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return uc({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},av,t)})(d);return oi.jsx(iv.Provider,{value:c,children:oi.jsxs(sv,si({as:i,className:wu(p.root,o),ref:t,ownerState:d},u,{children:[s,n]}))})}));function cv(e){return Ih("MuiListItemIcon",e)}var dv=Mh("MuiListItemIcon",["root","alignItemsFlexStart"]);const pv=["className"],fv=om("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>si({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var hv=E.forwardRef((function(e,t){const r=em({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=ui(r,pv),i=si({},r,{alignItems:E.useContext(iv).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return uc({root:["root","flex-start"===t&&"alignItemsFlexStart"]},cv,r)})(i);return oi.jsx(fv,si({className:wu(a.root,n),ownerState:i,ref:t},o))}));var mv=Mh("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const gv=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function bv(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function vv(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function yv(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function xv(e,t,r,n,o,i){let a=!1,l=o(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&yv(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}var Sv=E.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=ui(e,gv),p=E.useRef(null),f=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});uh((()=>{n&&p.current.focus()}),[n]),E.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(lh(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const h=mh(p,t);let m=-1;E.Children.forEach(i,((e,t)=>{E.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=E.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),E.cloneElement(e,t)}return e}));return oi.jsx(uv,si({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=lh(t).activeElement;if("ArrowDown"===r)e.preventDefault(),xv(t,n,s,l,bv);else if("ArrowUp"===r)e.preventDefault(),xv(t,n,s,l,vv);else if("Home"===r)e.preventDefault(),xv(t,null,s,l,bv);else if("End"===r)e.preventDefault(),xv(t,null,s,l,vv);else if(1===r.length){const o=f.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=n&&!o.repeating&&yv(n,o);o.previousKeyMatched&&(s||xv(t,n,!1,l,bv,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function Ev(e){return Ih("MuiPopover",e)}Mh("MuiPopover",["root","paper"]);const Cv=["onEntering"],wv=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Rv=["slotProps"];function Lv(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Av(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Dv(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function _v(e){return"function"==typeof e?e():e}const Iv=om(Ab,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Mv=om(km,{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 Ov=E.forwardRef((function(e,t){var r,n,o;const i=em({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:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=Wb,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,L=ui(i.TransitionProps,Cv),A=ui(i,wv),D=null!=(r=null==y?void 0:y.paper)?r:b,_=E.useRef(),I=mh(_,D.ref),M=si({},i,{anchorOrigin:s,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:D,transformOrigin:x,TransitionComponent:S,transitionDuration:C,TransitionProps:L}),O=(e=>{const{classes:t}=e;return uc({root:["root"],paper:["paper"]},Ev,t)})(M),P=E.useCallback((()=>{if("anchorPosition"===c)return u;const e=_v(l),t=(e&&1===e.nodeType?e:lh(_.current).body).getBoundingClientRect();return{top:t.top+Lv(t,s.vertical),left:t.left+Av(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),k=E.useCallback((e=>({vertical:Lv(e,x.vertical),horizontal:Av(e,x.horizontal)})),[x.horizontal,x.vertical]),T=E.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=k(t);if("none"===c)return{top:null,left:null,transformOrigin:Dv(r)};const n=P();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,u=sh(_v(l)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,r.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,r.horizontal+=e}else if(s>p){const e=s-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Dv(r)}}),[l,c,P,k,m]),[q,N]=E.useState(g),F=E.useCallback((()=>{const e=_.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);E.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);E.useEffect((()=>{g&&F()})),E.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),E.useEffect((()=>{if(!g)return;const e=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}((()=>{F()})),t=sh(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let z=C;"auto"!==C||S.muiSupportAuto||(z=void 0);const $=f||(l?lh(_v(l)).body:void 0),j=null!=(n=null==v?void 0:v.root)?n:Iv,G=null!=(o=null==v?void 0:v.paper)?o:Mv,B=zm({elementType:G,externalSlotProps:si({},D,{style:q?D.style:si({},D.style,{opacity:0})}),additionalProps:{elevation:h,ref:I},ownerState:M,className:wu(O.paper,null==D?void 0:D.className)}),H=zm({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:$,open:g},ownerState:M,className:wu(O.root,p)}),{slotProps:W}=H,V=ui(H,Rv);return oi.jsx(j,si({},V,!Tm(j)&&{slotProps:W,disableScrollLock:R},{children:oi.jsx(S,si({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:z},L,{children:oi.jsx(G,si({},B,{children:d}))}))}))}));function Pv(e){return Ih("MuiMenu",e)}Mh("MuiMenu",["root","paper","list"]);const kv=["onEntering"],Tv=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],qv={vertical:"top",horizontal:"right"},Nv={vertical:"top",horizontal:"left"},Fv=om(Ov,{shouldForwardProp:e=>tm(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zv=om(Mv,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),$v=om(Sv,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var jv=E.forwardRef((function(e,t){var r,n;const o=em({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,y=ui(o.TransitionProps,kv),x=ui(o,Tv),S=Qh(),C="rtl"===S.direction,w=si({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),R=(e=>{const{classes:t}=e;return uc({root:["root"],paper:["paper"],list:["list"]},Pv,t)})(w),L=i&&!s&&d,A=E.useRef(null);let D=-1;E.Children.map(a,((e,t)=>{E.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===D)&&(D=t))}));const _=null!=(r=b.paper)?r:zv,I=null!=(n=v.paper)?n:p,M=zm({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[R.root,l]}),O=zm({elementType:_,externalSlotProps:I,ownerState:w,className:R.paper});return oi.jsx(Fv,si({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?qv:Nv,slots:{paper:_,root:b.root},slotProps:{root:M,paper:O},open:d,ref:t,transitionDuration:h,TransitionProps:si({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,S),m&&m(e,t)}},y),ownerState:w},x,{classes:f,children:oi.jsx($v,si({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===D||s),autoFocusItem:L,variant:g},u,{className:wu(R.list,u.className),children:a}))}))}));function Gv(e){return Ih("MuiMenuItem",e)}var Bv=Mh("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const Hv=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Wv=om(og,{shouldForwardProp:e=>tm(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>si({},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"}},[`&.${Bv.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rh(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Bv.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rh(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Bv.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rh(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})`:rh(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Bv.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Bv.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${_b.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${_b.inset}`]:{marginLeft:52},[`& .${mv.root}`]:{marginTop:0,marginBottom:0},[`& .${mv.inset}`]:{paddingLeft:36},[`& .${dv.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&si({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${dv.root} svg`]:{fontSize:"1.25rem"}}))));var Vv=E.forwardRef((function(e,t){const r=em({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=r,p=ui(r,Hv),f=E.useContext(iv),h=E.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=E.useRef(null);uh((()=>{n&&m.current&&m.current.focus()}),[n]);const g=si({},r,{dense:h.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return si({},a,uc({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Gv,a))})(r),v=mh(m,t);let y;return r.disabled||(y=void 0!==c?c:-1),oi.jsx(iv.Provider,{value:h,children:oi.jsx(Wv,si({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:wu(b.focusVisible,s),className:wu(b.root,d)},p,{ownerState:g,classes:b}))})}));function Yv(e){return Ih("MuiNativeSelect",e)}var Uv=Mh("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Kv=["className","disabled","error","IconComponent","inputRef","variant"],Xv=({ownerState:e,theme:t})=>si({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":si({},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"},[`&.${Uv.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}}),Jv=om("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:tm,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Uv.multiple}`]:t.multiple}]}})(Xv),Zv=({ownerState:e,theme:t})=>si({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Uv.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Qv=om("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ah(r.variant)}`],r.open&&t.iconOpen]}})(Zv),ey=E.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=ui(e,Kv),u=si({},e,{disabled:n,variant:l,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return uc({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ah(r)}`,i&&"iconOpen",n&&"disabled"]},Yv,t)})(u);return oi.jsxs(E.Fragment,{children:[oi.jsx(Jv,si({ownerState:u,className:wu(c.select,r),disabled:n,ref:a||t},s)),e.multiple?null:oi.jsx(Qv,{as:i,ownerState:u,className:c.icon})]})}));var ty,ry=ey;const ny=["children","classes","className","label","notched"],oy=om("fieldset",{shouldForwardProp:tm})({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%"}),iy=om("legend",{shouldForwardProp:tm})((({ownerState:e,theme:t})=>si({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&&si({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 ay=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],ly=om($g,{shouldForwardProp:e=>tm(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Fg})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return si({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ug.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ug.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Ug.focused} .${Ug.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ug.error} .${Ug.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ug.disabled} .${Ug.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&si({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),sy=om((function(e){const{className:t,label:r,notched:n}=e,o=ui(e,ny),i=null!=r&&""!==r,a=si({},e,{notched:n,withLabel:i});return oi.jsx(oy,si({"aria-hidden":!0,className:t,ownerState:a},o,{children:oi.jsx(iy,{ownerState:a,children:i?oi.jsx("span",{children:r}):ty||(ty=oi.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}})),uy=om(jg,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:zg})((({theme:e,ownerState:t})=>si({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}))),cy=E.forwardRef((function(e,t){var r,n,o,i,a;const l=em({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=ui(l,ay),b=(e=>{const{classes:t}=e;return si({},t,uc({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Yg,t))})(l),v=Mg(),y=_g({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=si({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),S=null!=(r=null!=(n=h.root)?n:s.Root)?r:ly,C=null!=(o=null!=(i=h.input)?i:s.Input)?o:uy;return oi.jsx(Hg,si({slots:{root:S,input:C},renderSuffix:e=>oi.jsx(sy,{ownerState:x,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=oi.jsxs(E.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:si({},b,{notchedOutline:null})}))}));cy.muiName="Input";var dy=cy;function py(e){return Ih("MuiSelect",e)}var fy,hy=Mh("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const my=["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"],gy=om("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${hy.select}`]:t.select},{[`&.${hy.select}`]:t[r.variant]},{[`&.${hy.error}`]:t.error},{[`&.${hy.multiple}`]:t.multiple}]}})(Xv,{[`&.${hy.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),by=om("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ah(r.variant)}`],r.open&&t.iconOpen]}})(Zv),vy=om("input",{shouldForwardProp:e=>rm(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 yy(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function xy(e){return null==e||"string"==typeof e&&!e.trim()}const Sy=E.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:x,onChange:S,onClose:C,onFocus:w,onOpen:R,open:L,readOnly:A,renderValue:D,SelectDisplayProps:_={},tabIndex:I,value:M,variant:O="standard"}=e,P=ui(e,my),[k,T]=fh({controlled:M,default:c,name:"Select"}),[q,N]=fh({controlled:L,default:u,name:"Select"}),F=E.useRef(null),z=E.useRef(null),[$,j]=E.useState(null),{current:G}=E.useRef(null!=L),[B,H]=E.useState(),W=mh(t,m),V=E.useCallback((e=>{z.current=e,e&&j(e)}),[]),Y=null==$?void 0:$.parentNode;E.useImperativeHandle(W,(()=>({focus:()=>{z.current.focus()},node:F.current,value:k})),[k]),E.useEffect((()=>{u&&q&&$&&!G&&(H(a?null:Y.clientWidth),z.current.focus())}),[$,a]),E.useEffect((()=>{i&&z.current.focus()}),[i]),E.useEffect((()=>{if(!g)return;const e=lh(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=E.Children.toArray(l),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(v){r=Array.isArray(k)?k.slice():[];const t=k.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),k!==r&&(T(r),S)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:y}}),S(o,e)}v||U(!1,t)}},J=null!==$&&q;let Z,Q;delete P["aria-invalid"];const ee=[];let te=!1;(kg({value:k})||p)&&(D?Z=D(k):te=!0);const re=K.map((e=>{if(!E.isValidElement(e))return null;let t;if(v){if(!Array.isArray(k))throw new Error(Lp(2));t=k.some((t=>yy(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=yy(k,e.props.value),t&&te&&(Q=e.props.children);return E.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=v?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Q);let ne,oe=B;!a&&G&&$&&(oe=Y.clientWidth),ne=void 0!==I?I:d?null:0;const ie=_.id||(y?`mui-component-select-${y}`:void 0),ae=si({},e,{variant:O,value:k,open:J,error:f}),le=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return uc({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ah(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},py,t)})(ae),se=si({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=ph();return oi.jsxs(E.Fragment,{children:[oi.jsx(gy,si({ref:V,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!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&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:k,name:y}}),x(e))},onFocus:w},_,{ownerState:ae,className:wu(_.className,le.select,s),id:ie,children:xy(Z)?fy||(fy=oi.jsx("span",{className:"notranslate",children:""})):Z})),oi.jsx(vy,si({"aria-invalid":f,value:Array.isArray(k)?k.join(","):k,name:y,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},P)),oi.jsx(by,{as:h,className:le.icon,ownerState:ae}),oi.jsx(jv,si({id:`menu-${y||""}`,anchorEl:Y,open:J,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:si({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:si({},b.slotProps,{paper:si({},se,{style:si({minWidth:oe},null!=se?se.style:null)})}),children:re}))]})}));var Ey=Sy;const Cy=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],wy=["root"],Ry={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>tm(e)&&"variant"!==e,slot:"Root"},Ly=om(Xb,Ry)(""),Ay=om(dy,Ry)(""),Dy=om(zb,Ry)(""),_y=E.forwardRef((function(e,t){const r=em({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=Jg,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:C,variant:w="outlined"}=r,R=ui(r,Cy),L=b?ry:Ey,A=_g({props:r,muiFormControl:Mg(),states:["variant","error"]}),D=A.variant||w,_=si({},r,{variant:D,classes:i}),I=(e=>{const{classes:t}=e;return t})(_),M=ui(I,wy),O=d||{standard:oi.jsx(Ly,{ownerState:_}),outlined:oi.jsx(Ay,{label:f,ownerState:_}),filled:oi.jsx(Dy,{ownerState:_})}[D],P=mh(t,O.ref);return oi.jsx(E.Fragment,{children:E.cloneElement(O,si({inputComponent:L,inputProps:si({children:o,error:A.error,IconComponent:u,variant:D,type:void 0,multiple:g},b?{id:c}:{autoWidth:n,defaultOpen:l,displayEmpty:s,labelId:h,MenuProps:m,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:si({id:c},C)},p,{classes:p?ih(M,p.classes):M},d?d.props.inputProps:{})},g&&b&&"outlined"===D?{notched:!0}:{},{ref:P,className:wu(O.props.className,a,I.root)},!d&&{variant:D},R))})}));_y.muiName="Select";var Iy=_y,My=(e={})=>y.createElement(pp,{...e},y.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},y.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},y.createElement("rect",{stroke:Kd.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const Oy={MuiAccordion:{styleOverrides:{root:{backgroundColor:Kd.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Kd.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:y.createElement(up,{"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 ${Kd.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Kd.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Kd.MISC_FOCUS_BORDER}`,borderRadius:ep,backgroundColor:Kd.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 ${Kd.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Kd.WHITE,color:Kd.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:ep},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Kd.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Kd.GREYSCALE_0_15,backgroundColor:Kd.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Kd.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Kd.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Kd.GREEN_PALE},"&:active":{backgroundColor:Kd.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Kd.GREEN_PALE,boxShadow:`0 0 0 3px ${rh(Kd.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Kd.BLUE_PALE},"&:active":{backgroundColor:Kd.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Kd.BLUE_PALE,boxShadow:`0 0 0 3px ${rh(Kd.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:ep,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Kd.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Kd.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Kd.GREYSCALE_0_15,backgroundColor:Kd.GREYSCALE_100_60,"&:active":{backgroundColor:Kd.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Kd.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Kd.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Kd.PURPLE,"&.Mui-focusVisible":{borderColor:Kd.PURPLE,boxShadow:`0 0 0 3px ${rh(Kd.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Kd.GREEN,"&.Mui-focusVisible":{borderColor:Kd.GREEN,boxShadow:`0 0 0 3px ${rh(Kd.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Kd.BLUE,"&.Mui-focusVisible":{borderColor:Kd.BLUE,boxShadow:`0 0 0 3px ${rh(Kd.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Kd.ORANGE,"&.Mui-focusVisible":{borderColor:Kd.ORANGE,boxShadow:`0 0 0 3px ${rh(Kd.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Kd.RED,"&.Mui-focusVisible":{borderColor:Kd.RED,boxShadow:`0 0 0 3px ${rh(Kd.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Kd.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Kd.PURPLE_PALE},"&:active":{backgroundColor:Kd.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Kd.PURPLE_PALE,boxShadow:`0 0 0 3px ${rh(Kd.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Kd.GREEN_PALE},"&:active":{backgroundColor:Kd.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Kd.GREEN_PALE,boxShadow:`0 0 0 3px ${rh(Kd.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Kd.BLUE_PALE},"&:active":{backgroundColor:Kd.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Kd.BLUE_PALE,boxShadow:`0 0 0 3px ${rh(Kd.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Kd.ORANGE_PALE},"&:active":{backgroundColor:Kd.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Kd.ORANGE_PALE,boxShadow:`0 0 0 3px ${rh(Kd.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Kd.RED_PALE},"&:active":{backgroundColor:Kd.RED_DARK},"&.Mui-focusVisible":{borderColor:Kd.RED_PALE,boxShadow:`0 0 0 3px ${rh(Kd.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:Kd.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Kd.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:ep,boxShadow:`inset 0 0 0 2px ${Kd.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:y.createElement(dp,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Xd,borderRadius:ep,color:Kd.TEXT_PRIMARY,backgroundColor:Kd.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Kd.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Kd.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Kd.GREYSCALE_0_05,color:Kd.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Kd.GREEN,borderColor:Kd.GREEN},"&.MuiChip-outlinedInfo":{color:Kd.BLUE,borderColor:Kd.BLUE},"&.MuiChip-outlinedWarning":{color:Kd.ORANGE,borderColor:Kd.ORANGE},"&.MuiChip-outlinedError":{color:Kd.RED,borderColor:Kd.RED}},outlined:{border:`solid 1px ${Kd.GREYSCALE_0_15}`,backgroundColor:Kd.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:ep,boxShadow:"none",backgroundColor:Kd.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Kd.GREEN,borderColor:Kd.GREEN},outlinedSecondary:{color:Kd.BLUE,borderColor:Kd.BLUE},label:{fontFamily:ip.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:y.createElement(dp,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:y.createElement(up,{"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:ep},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:ep,fontSize:Jd,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Kd.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Kd.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Kd.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Kd.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Kd.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:ep,border:`solid 1px ${Kd.GREYSCALE_0_15}`,color:Kd.GREYSCALE_0_60,marginRight:0,width:Qd,height:Qd},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Kd.GREYSCALE_0_15}`},clearIndicator:{borderRadius:ep,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Kd.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Jd}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Xd,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Kd.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Kd.GREYSCALE_25,fontSize:Xd,fontFamily:ip.FONT_FAMILY,fontWeight:np,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Kd.TEXT_PRIMARY},"&.Mui-error":{color:Kd.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Kd.TEXT_SECONDARY,content:"'(optional)'",fontWeight:rp,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Kd.TEXT_SECONDARY,content:"'(required)'",fontWeight:rp,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Jd,lineHeight:"16px",backgroundColor:Kd.WHITE,borderRadius:ep,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Kd.GREYSCALE_0_05}`,borderColor:Kd.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Kd.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Kd.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Kd.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Kd.RED}`,boxShadow:`0px 0px 0px 1px ${Kd.RED}, inset 0 2px 0 0 ${Kd.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Kd.GREYSCALE_0_10}`,borderColor:Kd.GREYSCALE_0_10,backgroundColor:Kd.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Kd.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Kd.GREYSCALE_0_15,borderRadius:ep,boxShadow:`inset 0 2px 0 0 ${Kd.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>y.createElement(up,{...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:Kd.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Kd.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Kd.GREYSCALE_0_03},"&:active":{backgroundColor:Kd.GREYSCALE_0_10},"&:focus":{backgroundColor:Kd.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Kd.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Kd.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Kd.GREYSCALE_0_30,"&:hover":{backgroundColor:Kd.GREYSCALE_0_0,borderColor:Kd.GREYSCALE_0_15},"& ~svg":{color:Kd.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Kd.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:ep}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Kd.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Kd.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Kd.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:Jd,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Xd,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Xd,fontWeight:np,color:Kd.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:np}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Kd.GREYSCALE_0_15}, 0px 0px 0px 1px ${Kd.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:y.createElement(mp,null),checkedIcon:y.createElement(gp,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Kd.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Kd.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Kd.GREEN_PALE,boxShadow:`0 0 0 3px ${rh(Kd.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Kd.BLUE_PALE,boxShadow:`0 0 0 3px ${rh(Kd.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Kd.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Kd.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:y.createElement(My,null),checkedIcon:y.createElement(fp,null),indeterminateIcon:y.createElement(hp,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:ep,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Kd.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Kd.GREYSCALE_0_55,color:Kd.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:Kd.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Kd.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Kd.GREYSCALE_0_55,"&:hover":{color:Kd.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:Kd.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Kd.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Jd,color:Kd.TEXT_PRIMARY,lineHeight:"16px",fontWeight:np},secondary:{fontSize:Xd,color:Kd.GREYSCALE_45,fontWeight:rp,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Jd,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Kd.GREYSCALE_0_03},"&:active":{backgroundColor:Kd.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Jd,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Kd.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Xd,borderBottom:`solid 1px ${Kd.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Jd,color:Kd.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Kd.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Kd.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Kd.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:Kd.RED}}},"&.Mui-focusVisible":{backgroundColor:Kd.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:Kd.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:Kd.GREEN,height:"24px","&.Mui-disabled":{color:Kd.GREYSCALE_0_15}},rail:{backgroundColor:Kd.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Kd.GREYSCALE_0_05}`,borderRadius:ep,boxShadow:`inset 0px 0px 0px 1px ${Kd.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Kd.GREYSCALE_0_05}`,borderRadius:ep},thumb:{height:"16px",width:"16px",borderRadius:ep,backgroundColor:Kd.WHITE,boxShadow:`0px 1px 2px 0px ${Kd.GREYSCALE_0_15}, 0px 0px 0px 1px ${Kd.GREYSCALE_0_05}`,"&:hover":{borderRadius:ep,boxShadow:`0 2px 4px 0 ${Kd.GREYSCALE_0_30}, 0 0 0 1px ${Kd.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Kd.GREYSCALE_0_15}, 0 0 0 1px ${Kd.GREYSCALE_0_06}, 0 0 0 2px ${Kd.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Kd.GREYSCALE_0_15}, 0 0 0 1px ${Kd.GREYSCALE_0_06}, 0 0 0 2px ${Kd.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Kd.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Kd.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Kd.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Kd.GREYSCALE_0_15},markLabel:{color:Kd.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Kd.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Kd.WHITE,color:Kd.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:Kd.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:Kd.GREEN_PALE,boxShadow:`0 0 0 3px ${rh(Kd.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Kd.BLUE_PALE,boxShadow:`0 0 0 3px ${rh(Kd.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Kd.GREYSCALE_0_15,borderRadius:ep},thumb:{height:"16px",width:"16px",borderRadius:ep,backgroundColor:Kd.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:Jd,fontWeight:np,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Kd.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Kd.MISC_FOCUS_BORDER}`,backgroundColor:Kd.GREYSCALE_0_03,borderRadius:ep},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Kd.GREYSCALE_25,"&.Mui-selected":{color:Kd.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Jd,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${Kd.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${Kd.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Kd.GREYSCALE_85}`,borderRight:`1px solid ${Kd.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:np,backgroundColor:Kd.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:Kd.GREYSCALE_98,borderBottom:`1px solid ${Kd.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Kd.GREYSCALE_85}`,borderTop:`1px solid ${Kd.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Kd.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Kd.GREYSCALE_0_05,"&:hover":{backgroundColor:Kd.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Kd.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>y.createElement(bp,{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 ${Kd.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Jd,borderRadius:ep,padding:"7px 16px",border:`1px solid ${Kd.GREYSCALE_0_15}`,backgroundColor:Kd.GREYSCALE_100_60,color:Kd.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Kd.GREYSCALE_0_10,border:`1px solid ${Kd.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Kd.GREYSCALE_0_03,border:`1px solid ${Kd.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Kd.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Kd.MISC_FOCUS_BORDER}`,border:`1px solid ${Kd.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Kd.GREYSCALE_25,backgroundColor:Kd.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Kd.GREYSCALE_0_10,border:`1px solid ${Kd.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Xd,height:24,width:24,padding:7},sizeLarge:{fontSize:Zd,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Jd,borderRadius:ep}}},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:Kd.GREYSCALE_20},tooltip:{backgroundColor:Kd.GREYSCALE_20,fontSize:Xd,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const Py={mode:"light",primary:{light:Kd.GREEN_PALE,main:Kd.GREEN,dark:Kd.GREEN_DARK,contrastText:Kd.WHITE},secondary:{light:Kd.BLUE_PALE,main:Kd.BLUE,dark:Kd.BLUE_DARK,contrastText:Kd.WHITE},error:{light:Kd.RED_PALE,main:Kd.RED,dark:Kd.RED_DARK,contrastText:Kd.WHITE},warning:{light:Kd.ORANGE_PALE,main:Kd.ORANGE,dark:Kd.ORANGE_DARK,contrastText:Kd.WHITE},success:{light:Kd.GREEN_PALE,main:Kd.GREEN,dark:Kd.GREEN_DARK,contrastText:Kd.WHITE},info:{light:Kd.BLUE_PALE,main:Kd.BLUE,dark:Kd.BLUE_DARK,contrastText:Kd.WHITE},text:{primary:Kd.TEXT_PRIMARY,secondary:Kd.TEXT_SECONDARY,disabled:Kd.GREYSCALE_0_30},action:{hover:Kd.GREYSCALE_0_03,hoverOpacity:.05,selected:Kd.GREYSCALE_0_05,focus:Kd.MISC_FOCUS_BORDER},amethyst:{main:Kd.PURPLE,light:Kd.PURPLE_PALE,dark:Kd.PURPLE_DARK,contrastText:Kd.WHITE},background:{paper:Kd.WHITE,default:Kd.GREYSCALE_95},divider:Kd.GREYSCALE_0_15},ky=e=>({components:Oy,palette:Py,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:Jd,fontWeightLight:tp,fontWeightRegular:rp,fontWeightMedium:np,fontWeightBold:op,htmlFontSize:Jd,fontFamily:ip.FONT_FAMILY,button:{fontWeight:np,fontSize:Jd,textTransform:"none"},body1:{fontSize:Zd,lineHeight:"24px"},body2:{fontSize:Jd,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Qd,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Zd,fontWeight:np,lineHeight:"16px"},h6:{fontSize:Jd,fontWeight:np,lineHeight:"16px"},caption:{color:Kd.TEXT_SECONDARY},subtitle1:{fontSize:Jd,color:Kd.TEXT_SECONDARY},subtitle2:{fontSize:Xd,color:Kd.TEXT_SECONDARY}},shape:{borderRadius:ep}}),Ty={...Ud,MISC_FOCUS_BORDER:Kd.MISC_FOCUS_BORDER},qy=ky().palette,Ny={TEXT:qy.text.primary,DISABLED:qy.text.disabled,HOVER:qy.action.hover,WHITE:Ty.GREYSCALE_100,BORDER_LIGHT:Ty.GREYSCALE_90,BORDER_MEDIUM:Ty.GREYSCALE_85,BORDER_HEAVY:Ty.GREYSCALE_50,DARK_MODE_TEXT:Ty.GREYSCALE_95,DARK_MODE_BORDER:Ty.GREYSCALE_95,DARK_MODE_DISABLED:Ty.GREYSCALE_70,DARK_MODE_BACKGROUND:Ty.GREYSCALE_20},Fy=(e,t)=>{const r=Sn(e),n=r.l<70;return 0===r.opacity?(r.opacity=t.opacity,r.toString()):n?r.brighter(t.brighter).toString():r.darker(t.darker).toString()},zy=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,$y=e=>{const t=(e=>{const t=zy.exec(e);if(t){const[,e,r,n,o]=t;return Vr(+r,+n,+o,+e/255)}return Vr(e)})(e);return Number.isNaN(t.r)?null:t.toString()},jy=e=>{e.stopPropagation(),e.preventDefault()},Gy=om(cb,{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({pointerEvents:"auto",touchAction:"none",display:"flex",position:"absolute",height:"100%",top:0,cursor:"col-resize",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",marginLeft:"-4px","&:hover:not(:focus, :active)":{[`& .${St}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${St}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),By=om(cb)({position:"absolute",height:"100%",width:"3px"}),Hy=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,isNewHeadCellMenuEnabled:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:l,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:c})=>{const d=b((()=>({initWidth:e,columnWidth:e,initX:0})),[e]),p=n||o?Et.PixelsMin:Et.PixelsMinTable,f=r?0:1,h={left:n&&!c?d.columnWidth-f:"100%"},m=e=>{const t=Math.max(d.initWidth+e,p);d.columnWidth=t,a(t)},g=()=>{if(d.columnWidth!==d.initWidth){const e={type:Ct.Pixels,pixels:d.columnWidth};l(e)}else null==u||u(!1)},v=e=>{const t=e.clientX-d.initX;m(t)},x=e=>{jy(e),document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",x),g()},S=e=>{const t=e.touches[0].clientX-d.initX;m(t)},E=e=>{jy(e),document.removeEventListener("touchmove",S),document.removeEventListener("touchend",E),g()},C=!n&&s?e=>{if(e.key===yt.LEFT||e.key===yt.RIGHT){jy(e);const t=d.columnWidth-d.initWidth,r=5,n=e.key===yt.LEFT?t-r:t+r;m(n)}else e.key===yt.SPACE||e.key===yt.ENTER?(jy(e),s(e),g()):e.key===yt.ESC&&(jy(e),s(e),m(d.initWidth))}:void 0;return y.createElement(Gy,{className:xt,isLastColumn:r,hoverColor:i,style:h,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",v),document.addEventListener("mouseup",x),null==u||u(!0),d.initX=e.clientX},onDoubleClick:()=>l({type:Ct.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",S),document.addEventListener("touchend",E),null==u||u(!0),d.initX=e.touches[0].clientX)},onKeyDown:C,onBlur:s,"data-testid":xt},y.createElement(By,{className:St}))};function Wy(){return Wy=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wy.apply(this,arguments)}function Vy(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Yy(e,t,r[t])}))}return e}function Yy(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Uy(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Ky(e){return"large"===e?"20px":"small"===e?"12px":"inherit"===e?"null":"16px"}var Xy=function(e){var t=e.d,r=e.size,n=e.style,o=Uy(e,["d","size","style"]);return y.createElement("i",Wy({style:Vy({fontSize:Ky(r),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},n)},o),y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},y.createElement("path",{d:t})))};function Jy(e){return y.createElement(Xy,Object.assign({d:"M15,4 L1,4 L1,2 L15,2 L15,4 Z M15,14 L1,14 L1,12 L15,12 L15,14 Z M15,9 L1,9 L1,7 L15,7 L15,9 Z"},e))}function Zy(){return Zy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zy.apply(this,arguments)}const Qy=om(cb,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),ex=om(Jy,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),tx=om(jv)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),rx=om(kb)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),nx=om(Vv)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),ox=om(Vv,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden ",boxSizing:"border-box !important",background:""+(r?"rgba(0, 0, 0, 0.05)":"transparent")}))),ix=om("div")((({theme:e})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),ax=om("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),lx=om(dg)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),sx=om(hv)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function ux(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const cx=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ux(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),dx=L(cx);let px={};const fx=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=v(!1),p=A(null),f=D((e=>{e.stopPropagation(),d(!1)}),[d]);return y.createElement(y.Fragment,null,y.createElement(ox,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),px={}),null!=a&&a.length&&(d(!0),px[n]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&y.createElement(ix,null),y.createElement(ax,null,y.createElement(sx,null,y.createElement(o,null)),y.createElement(lx,{variant:"body2"},n)),null!=a&&a.length?y.createElement(dx,null):null),(null==a?void 0:a.length)&&y.createElement(mx,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(h=a,m=px,h.map((e=>e.map((e=>{var t;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(t=e.items)||void 0===t?void 0:t.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(m).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var h,m},hx=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map((e=>{var n;return[[e.groupHeading&&y.createElement(nx,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(n=e.items)||void 0===n?void 0:n.map((e=>y.createElement(fx,Zy({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:r}))))].filter(Boolean)]})),mx=({anchorEl:e,open:t,onClose:r,ariaLabel:n,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,handleHeadCellMenuKeyDown:s})=>o.length?y.createElement(tx,Zy({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:r,"aria-labelledby":n},a?{anchorOrigin:a}:{},i?{transformOrigin:i}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map(((n,o)=>[hx({menuGroup:n,isSubMenu:t,handleHeadCellMenuKeyDown:r}),o<e.length-1?y.createElement(rx,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:o,isSubMenu:l,handleHeadCellMenuKeyDown:s})):null,gx={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},bx=(e,t)=>e.some((e=>t[e]>0));function vx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const yx=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){vx(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})),xx=L(yx);function Sx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ex=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Sx(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"})),Cx=L(Ex);function wx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Rx=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){wx(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})),Lx=L(Rx);function Ax(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Dx=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Ax(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})),_x=L(Dx);function Ix(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Mx=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Ix(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})),Ox=L(Mx);function Px(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const kx=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Px(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})),Tx=L(kx);function qx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Nx=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){qx(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),Fx=L(Nx);function zx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const $x=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){zx(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),jx=L($x);function Gx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Bx=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Gx(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),Hx=L(Bx);function Wx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Vx=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Wx(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})),Yx=L(Vx);let Ux=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const Kx=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,changeActivelySortedHeader:i,interactions:a,embedListbox:l,fieldInstance:s,selectionActionsEnabledStatus:u,anchorRef:c,setFocusOnColumnAdjuster:d})=>{const p=[];if(r[Ux.SORTING]&&p.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"A")),n(!1),await(null==i?void 0:i(e))},icon:xx,enabled:!!e.isActivelySorted||"D"===e.sortDirection,isActive:e.isActivelySorted&&"A"===e.sortDirection,autoFocus:e.isActivelySorted?"A"===e.sortDirection:"D"===e.sortDirection},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"D")),n(!1),await(null==i?void 0:i(e))},icon:_x,enabled:!!e.isActivelySorted||"A"===e.sortDirection,isActive:e.isActivelySorted&&"D"===e.sortDirection,autoFocus:e.isActivelySorted?"D"===e.sortDirection:"A"===e.sortDirection}]}]),e.isDim&&null!=a&&a.select){const e=[];r[Ux.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),l()},icon:Ox,enabled:!0}]}]),r[Ux.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:Yx,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectAll())},icon:Tx,enabled:u.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectPossible())},icon:Hx,enabled:u.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectAlternative())},icon:Fx,enabled:u.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectExcluded())},icon:jx,enabled:u.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.clear())},icon:Cx,enabled:u.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return r[Ux.ADJUST_HEADER_SIZE]&&p.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),null==d||d(c)},icon:Lx,enabled:!0}]}]),p},Xx=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const h=Uo({translator:o}),{headTextAlign:m,qLibraryId:g,fieldId:b}=n,{fieldInstance:x,selectionActionsEnabledStatus:S,resetSelectionActionsEnabledStatus:E,updateSelectionActionsEnabledStatus:C}=(({headerData:e,app:t})=>{const[r,n]=v(null),[o,i]=v(gx);return _((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(n).catch(console.error)}),[t,e]),{fieldInstance:r,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:D((()=>i(gx)),[]),updateSelectionActionsEnabledStatus:D((t=>{const r=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));r&&i({canSelectAll:bx(["qOption","qAlternative","qExcluded","qDeselected"],r.qStateCounts),canClearSelections:bx(["qSelected"],r.qStateCounts),canSelectPossible:bx(["qOption"],r.qStateCounts),canSelectAlternative:bx(["qAlternative"],r.qStateCounts),canSelectExcluded:bx(["qAlternative","qExcluded"],r.qStateCounts)})}),[e.label,i])}})({headerData:n,app:null==d?void 0:d.app}),w=D((()=>{const e=g?{qLibraryId:g,type:"dimension"}:b;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:r}=c;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}})}}),[c,b,g]);_((()=>{e||(E(),null!=d&&d.model&&d.model.getLayout().then((e=>{C(e)})).catch((e=>console.error(e))))}),[e,E,C,null==d?void 0:d.model]);const R=D((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?y.createElement(Qy,{rightAligned:"right"===m,shouldShowMenuIcon:s},s&&y.createElement(ex,{size:"small",className:vt,"data-testid":vt,"aria-controls":e?"nebula-table-utils-head-menu":void 0,"aria-expanded":e?"true":void 0,"aria-haspopup":"true",isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},y.createElement(Jy,null)),y.createElement(mx,{open:e,anchorEl:r.current,onClose:R,menuGroups:Kx({headerData:n,translator:h,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:w,interactions:i,fieldInstance:x,selectionActionsEnabledStatus:S,anchorRef:r,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),ariaLabel:"nebula-table-utils-head-menu-button",handleHeadCellMenuKeyDown:a})):null},Jx=e=>e.isDark?{background:e.color,borderColor:Ny.DARK_MODE_BORDER,color:Ny.DARK_MODE_TEXT,disabledColor:Ny.DARK_MODE_DISABLED,iconColor:Ny.DARK_MODE_TEXT}:{background:e.color,borderColor:Ny.BORDER_MEDIUM,color:Ny.TEXT,disabledColor:Ny.DISABLED},Zx=om(cb,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`}))),Qx=om(Iy,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),eS=om(Sb,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)}))),tS=om(dg)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),rS=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=b((()=>Jx(n.background)),[n]);if(!r.active)return null;const a=o?y.createElement(Zx,{footerStyle:i},e):null;return t?k.createPortal(e,t):a},nS=I({}),oS=()=>x(nS),iS=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,v=b((()=>Jx(p.background)),[p]),x=o?o.getBoundingClientRect().width:h.width,S=Uo({translator:d}),E=b((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:S,theme:p,interactions:f,rect:h,layout:m,footerStyle:v,tabIndex:g,width:x})),[t,r,n,o,i,a,l,s,u,c,S,p,f,h,m,v,g,x]);return y.createElement(nS.Provider,{value:E},e)};let aS=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),lS=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});function sS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const uS=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){sS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),cS=L(uS);function dS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const pS=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){dS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),fS=L(pS);function hS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const mS=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){hS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),gS=L(mS),bS={FirstPage:fS,PreviousPage:cS,NextPage:dx,LastPage:gS,FirstPageRTL:gS,PreviousPageRTL:dx,NextPageRTL:cS,LastPageRTL:fS},vS=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=oS(),u=bS[`${r}${"rtl"===n?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},yS=()=>{const{pageInfo:e,width:t}=oS(),r=0===e.page,{IconComponent:n,styledProps:o}=vS({type:aS.FirstPage,disabledCondition:r,pageNumber:0});return t<=lS.FirstPage?null:y.createElement(eS,o,y.createElement(n,{height:bt}))},xS=(e,t,r=!1)=>{r&&e.key===yt.TAB&&!e.shiftKey&&(jy(e),((e,t,r)=>{var n,o,i,a;const l=null!==(n=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==n?n:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,r)})(e.target,t,!1))},SS=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=oS(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=vS({type:aS.LastPage,disabledCondition:i,pageNumber:r-1}),s=t.enabled?e=>xS(e,t,n):null;return o<=lS.LastPage?null:y.createElement(eS,Zy({},l,{onKeyDown:s}),y.createElement(a,{height:bt}))},ES=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=oS(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=vS({type:aS.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>lS.FirstPage&&o>lS.LastPage)&&t.enabled?e=>xS(e,t,n):null;return y.createElement(eS,Zy({},l,{onKeyDown:s}),y.createElement(a,{height:bt}))},CS=()=>{const{pageInfo:e}=oS(),t=0===e.page,{IconComponent:r,styledProps:n}=vS({type:aS.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return y.createElement(eS,n,y.createElement(r,{height:bt}))},wS=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=oS(),{page:o,rowsPerPage:i}=r;if(t<=lS.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return y.createElement(tS,{variant:"caption"},a)},RS=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=oS(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return y.createElement(y.Fragment,null,y.createElement(tS,{variant:"caption",id:d},u,":"),y.createElement(Qx,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:p},r))},LS=()=>{var e;const{pageInfo:t,isSelectionMode:r,totalColumnCount:n,width:o,handleChangeRowsPerPage:i}=oS();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!r&&o>lS.RowsPerPage&&n<=100)||void 0===t.rowsPerPageOptions)return null;const a=y.createElement(y.Fragment,null,t.rowsPerPageOptions.map((e=>y.createElement("option",{key:e,value:e},e))));return y.createElement(RS,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},AS=1e3,DS="…",_S=({totalPages:e,page:t})=>{const r=Math.min(e,AS),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-AS):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return y.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(y.createElement("option",{key:"startMoreOptions",value:DS,disabled:!0},DS)),o<e-1&&a.push(y.createElement("option",{key:"endMoreOptions",value:DS,disabled:!0},DS)),y.createElement(y.Fragment,null,a)},IS=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=oS(),{page:o}=e;if(t<=lS.SelectPage)return null;const i=y.createElement(_S,{totalPages:r,page:o});return y.createElement(RS,{name:"SelectPage",value:o,options:i,handleChange:e=>n(+e.target.value)})};var MS=M((e=>y.createElement(iS,e,y.createElement(LS,null),y.createElement(IS,null),y.createElement(wS,null),y.createElement(yS,null),y.createElement(CS,null),y.createElement(ES,null),y.createElement(SS,null))));const OS=e=>y.createElement(rS,e,y.createElement(MS,e)),PS=I({}),kS=()=>x(PS),TS=({children:e,model:t,app:r,interactions:n,embed:o,theme:i,keyboard:a,flags:l})=>{const s=b((()=>({model:t,app:r,interactions:n,embed:o,theme:i,keyboard:a,flags:l})),[r,n,t,o,i,a,l]);return oi.jsx(PS.Provider,{value:s,children:e})},qS=e=>{const{text:t,fontFamily:r,fontSize:n,justifyContent:o,alignItems:i,height:a}=(({translator:e,layoutService:t})=>{var r;const{theme:n}=kS(),o=null!==(r=n.getStyle("","","fontFamily"))&&void 0!==r?r:Ht;return t.hasData?t.hasLimitedData?{text:e.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:e.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})(e);return void 0===t?null:oi.jsx("div",{style:{display:"flex",justifyContent:o,alignItems:i,width:"100%",height:a},children:oi.jsx("span",{style:{...tr,fontFamily:r,fontSize:n,fontStyle:"italic",color:"#7b7a78"},children:t})})},NS=I({}),FS=()=>x(NS),zS=({children:e,styleService:t})=>oi.jsx(NS.Provider,{value:t,children:e}),$S=21,jS=20,GS=jS,BS=16+Kt+1,HS=.75;let WS=function(e){return e.Text="text",e.Link="link",e.Image="image",e}({}),VS=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const YS=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===WS.Image},US="/qHyperCubeDef",KS=-1,XS="PSEUDO-DIM",JS=e=>void 0===e?Wt:e,ZS=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,QS=e=>ZS(e,Et.PixelsDefault),eE=(e,t)=>ZS(e,Et.PercentageDefault)*t/100,tE=(e,t,r)=>{switch(null==t?void 0:t.type){case Ct.Pixels:return QS(t.pixels);case Ct.Percentage:return eE(t.percentage,e);case Ct.FitToContent:case Ct.Auto:default:return r}};function rE({layoutService:e,tableWidth:t,headersData:r}){const n=FS(),{measureText:o}=Bo(n.header),{estimateWidth:i}=Bo({...n.dimensionValues,fontWeight:JS(n.dimensionValues.fontWeight)}),{measureText:a}=Bo({...n.dimensionValues,...n.measureLabels}),l=D(((n,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:s,topHeadersColumnWidth:u}},visibleMeasureInfo:c,isFullyExpanded:d}=e,p=(e=0)=>c.reduce(((r,{qFallbackTitle:n,columnWidth:o})=>{const i=a(n)+BS;return Math.max(r,tE(t,o,Math.max(i,e)))}),0),f=e=>r.data.reduce(((t,r)=>{const n=r[e];if(!n)return t;if(n.id===XS)return t;const i=(e=>{const{label:t,isLocked:r}=e,n=r?GS:0;return BS+o(t)+jS+n})(n);return Math.max(i,t)}),0);let h=0;const m=r.data.at(-1).map(((r,o)=>{let a=BS;if(n&&void 0!==l&&l===r.colIdx)a=n;else{let n;r.columnWidthLocation===It.Pivot?n=u:r.columnWidthLocation===It.Dimension&&({columnWidth:n}=r);let l=0;r.isLeftDimension?l=r.id===XS?p():Math.max(f(o),((t,r)=>{const{qApprMaxGlyphCount:n,isLeftDimension:o,dimensionInfoIndex:a}=t,l=e.getDimensionInfo(a);if(YS(l))return Et.PixelsDefault;const u=!d&&o&&r<s-1?$S:0;return BS+i(n)+u})(r,o)):r.isLeftDimension||(l=f(o),r.columnWidthLocation===It.Measures&&(l=p(l))),a=tE(t,n,l)}return h+=a,a}));return{leftGridWidth:Math.min(t*HS,h),leftGridColumnWidths:m,leftGridFullWidth:h}}),[i,r.data,e,o,a,t]),[s,u]=v(l);Vo((()=>{u(l())}),[l]);const c=D(((e,t)=>{u(l(e,t))}),[l]);return{...s,overrideLeftGridWidth:c}}function nE({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:n,leftGridWidth:o}){const{layout:{qHyperCube:{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:a}},size:l,visibleMeasureInfo:s}=e,u=FS(),{estimateWidth:c,measureText:d}=Bo(u.measureValues),{estimateWidth:p}=Bo({...u.dimensionValues,fontWeight:JS(u.dimensionValues.fontWeight)}),f=t-o-Kt,h=r.at(-1),m=h===KS,g=a.length-i>r.length?$S:0,v=b((()=>{const e=m?s:[h],t=l.x/e.length,r=[],n=[];let o=f;const i=(e,n)=>{r[e]=Math.min(Et.PixelsMax,Math.max(Et.PixelsMin,n)),o-=r[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:r,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:u}=e;switch(r){case Ct.Pixels:i(t,QS(o));break;case Ct.Percentage:i(t,eE(a,f));break;case Ct.FitToContent:i(t,((e,t,r)=>r?Et.PixelsDefault:BS+(m?Math.max(c(e),d(t)):Math.max(Math.max(...s.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+g)))(l,u,YS(e)));break;case Ct.Auto:default:n.push(t)}}else n.push(t)})),n.length){const e=n.length*t,i=o/e;n.forEach((e=>{r[e]=Math.max(Et.AutoMin,i)}))}return r}),[m,s,h,l.x,f,c,d,p,g]),y=b((()=>{if(m){return s.reduce(((e,t,r)=>e+v[r]),0)/s.length}return v[0]}),[m,v,s]),x=parseFloat((n/e.size.x).toFixed(12)),S=D((t=>m&&void 0!==t?v[e.getMeasureInfoIndexFromCellIndex(t,!0)]-x:y-x),[m,v,e,y,x]),E=l.x*y;return{rightGridFullWidth:E,rightGridWidth:Math.min(E,f),getRightGridColumnWidth:S}}let oE;const iE=new Uint8Array(16);function aE(){if(!oE&&(oE="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!oE))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return oE(iE)}const lE=[];for(let e=0;e<256;++e)lE.push((e+256).toString(16).slice(1));var sE={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function uE(e,t,r){if(sE.randomUUID&&!t&&!e)return sE.randomUUID();const n=(e=e||{}).random||(e.rng||aE)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return function(e,t=0){return lE[e[t+0]]+lE[e[t+1]]+lE[e[t+2]]+lE[e[t+3]]+"-"+lE[e[t+4]]+lE[e[t+5]]+"-"+lE[e[t+6]]+lE[e[t+7]]+"-"+lE[e[t+8]]+lE[e[t+9]]+"-"+lE[e[t+10]]+lE[e[t+11]]+lE[e[t+12]]+lE[e[t+13]]+lE[e[t+14]]+lE[e[t+15]]}(n)}const cE=()=>{var e,t,r;return null!==(e=null===(t=crypto)||void 0===t||null===(r=t.randomUUID)||void 0===r?void 0:r.call(t))&&void 0!==e?e:uE()},dE=e=>e===KS?XS:(({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:cE()})(e),pE=(e,t,r)=>{var n;const o=dE(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===KS?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isActivelySorted:!1,isLocked:!1,isDim:!1,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:r,columnWidthLocation:It.Measures}:{id:o,colIdx:0,label:t.qFallbackTitle,qReverseSort:t.qReverseSort,sortDirection:t.qSortIndicator&&"N"!==t.qSortIndicator?t.qSortIndicator:"A",qLibraryId:t.qLibraryId,fieldId:t.qGroupFieldDefs[t.qGroupPos],isActivelySorted:!1,isLocked:null!==(n=t.qLocked)&&void 0!==n&&n,columnWidth:t.columnWidth,qApprMaxGlyphCount:t.qApprMaxGlyphCount,isDim:!0,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:r,columnWidthLocation:It.Dimension}},fE=({layoutService:e,lastRow:t,lastCol:r})=>{let n=r;var o;t.length>0&&(n=(o=r).at(-1)===KS?o.slice(0,-1):o);const i=n.length+(t.length?1:0),a=Math.max(1,t.length),l=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(i,a);return t.forEach(((t,r,n)=>{const o=r===n.length-1;l[i-1][r]=pE(e,t,o)})),n.forEach(((t,r,n)=>{const o=r===n.length-1;l[r][a-1]=pE(e,t,o)})),l},hE=(e,t,r)=>{var n,o;const i=((e,t,r)=>{let n;if(n=0===t.length||t.includes(KS)?fE({layoutService:e,lastRow:r,lastCol:t}):(e=>e[0].map(((t,r)=>e.map((e=>e[r])))))(fE({layoutService:e,lastRow:t,lastCol:r})),n.length)for(const[t,a]of n[n.length-1].entries()){var o,i;a&&(a.canBeResized=!0,a.isActivelySorted=t===(null!==(o=null===(i=e.layout.qHyperCube.activelySortedColumn)||void 0===i?void 0:i.colIdx)&&void 0!==o?o:0),a.colIdx=a.colIdx||t,a.dimensionInfoIndex===KS?a.columnWidthLocation=It.Measures:a.isLeftDimension?a.columnWidthLocation=It.Dimension:r.at(-1)===KS?a.columnWidthLocation=It.Measures:e.hasPseudoDimOnLeft&&(a.columnWidthLocation=It.Pivot))}return n})(e,t,r);return{data:i,size:{x:null!==(n=null===(o=i[0])||void 0===o?void 0:o.length)&&void 0!==n?n:0,y:i.length}}};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)}function gE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bE(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function vE(e,t,r){return t&&bE(e.prototype,t),r&&bE(e,r),e}function yE(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&SE(e,t)}function xE(e){return xE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xE(e)}function SE(e,t){return SE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},SE(e,t)}function EE(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function CE(e){return function(){var t,r=xE(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()){var n=xE(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return EE(this,t)}}var wE={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var r,n=e.indexOf("="),o="",i=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),i=!0),t.push(function(e,t,r){return{key:RE(e),value:RE(t),useEqualSign:r}}(r,o,i))}})),t}};function RE(e){try{return decodeURIComponent(e)}catch(t){return e}}function LE(e){if(!(this instanceof LE))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return wE.fromSearchString(t.search)}}})}function AE(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}LE.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},LE.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=AE((t=e[n]).key),t.value?r+="=".concat(AE(t.value)):r+=t.useEqualSign?"=":"";return r};var DE,_E=function(){function e(t){gE(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return vE(e,[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}}]),vE(e,[{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}]),e}(),IE=function(){function e(){gE(this,e)}return vE(e,[{key:"decode",value:function(e){for(var t,r="",n=new _E(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),ME=function(e){return e>=0&&e<=1114111},OE=function(e){return e.match(/[\s]/)},PE=function(e){yE(r,e);var t=CE(r);function r(){return gE(this,r),t.apply(this,arguments)}return vE(r,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,r=0;r<5&&(null!=(n=e.next())&&!OE(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return ME(a)?String.fromCharCode(a):"�"}}]),r}(IE),kE=function(){function e(t,r){gE(this,e),this._key=t,this._value=r}return vE(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}}]),e}(),TE=function(){function e(){gE(this,e)}return vE(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,r,n){var o,i;if(t.length===r)return i=this._value,this.setValue(n),i;var a=t.charAt(r);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return kE.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return kE.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||kE.newInstanceIfNeeded(e,t,this._value)}}]),e}(),qE=function(){function e(){gE(this,e),this.clear()}return vE(e,[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new TE);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),NE=function(){var e,t,r,n=[],o=[],i=new qE;for(e in n["""]="34",n["&"]="38",n["<"]="60",n[">"]="62",n[" "]="160",n["¡"]="161",n["¢"]="162",n["£"]="163",n["¤"]="164",n["¥"]="165",n["¦"]="166",n["§"]="167",n["¨"]="168",n["©"]="169",n["ª"]="170",n["«"]="171",n["¬"]="172",n["­"]="173",n["®"]="174",n["¯"]="175",n["°"]="176",n["±"]="177",n["²"]="178",n["³"]="179",n["´"]="180",n["µ"]="181",n["¶"]="182",n["·"]="183",n["¸"]="184",n["¹"]="185",n["º"]="186",n["»"]="187",n["¼"]="188",n["½"]="189",n["¾"]="190",n["¿"]="191",n["À"]="192",n["Á"]="193",n["Â"]="194",n["Ã"]="195",n["Ä"]="196",n["Å"]="197",n["Æ"]="198",n["Ç"]="199",n["È"]="200",n["É"]="201",n["Ê"]="202",n["Ë"]="203",n["Ì"]="204",n["Í"]="205",n["Î"]="206",n["Ï"]="207",n["Ð"]="208",n["Ñ"]="209",n["Ò"]="210",n["Ó"]="211",n["Ô"]="212",n["Õ"]="213",n["Ö"]="214",n["×"]="215",n["Ø"]="216",n["Ù"]="217",n["Ú"]="218",n["Û"]="219",n["Ü"]="220",n["Ý"]="221",n["Þ"]="222",n["ß"]="223",n["à"]="224",n["á"]="225",n["â"]="226",n["ã"]="227",n["ä"]="228",n["å"]="229",n["æ"]="230",n["ç"]="231",n["è"]="232",n["é"]="233",n["ê"]="234",n["ë"]="235",n["ì"]="236",n["í"]="237",n["î"]="238",n["ï"]="239",n["ð"]="240",n["ñ"]="241",n["ò"]="242",n["ó"]="243",n["ô"]="244",n["õ"]="245",n["ö"]="246",n["÷"]="247",n["ø"]="248",n["ù"]="249",n["ú"]="250",n["û"]="251",n["ü"]="252",n["ý"]="253",n["þ"]="254",n["ÿ"]="255",n["&OElig"]="338",n["&oelig"]="339",n["&Scaron"]="352",n["&scaron"]="353",n["&Yuml"]="376",n["&fnof"]="402",n["&circ"]="710",n["&tilde"]="732",n["&Alpha"]="913",n["&Beta"]="914",n["&Gamma"]="915",n["&Delta"]="916",n["&Epsilon"]="917",n["&Zeta"]="918",n["&Eta"]="919",n["&Theta"]="920",n["&Iota"]="921",n["&Kappa"]="922",n["&Lambda"]="923",n["&Mu"]="924",n["&Nu"]="925",n["&Xi"]="926",n["&Omicron"]="927",n["&Pi"]="928",n["&Rho"]="929",n["&Sigma"]="931",n["&Tau"]="932",n["&Upsilon"]="933",n["&Phi"]="934",n["&Chi"]="935",n["&Psi"]="936",n["&Omega"]="937",n["&alpha"]="945",n["&beta"]="946",n["&gamma"]="947",n["&delta"]="948",n["&epsilon"]="949",n["&zeta"]="950",n["&eta"]="951",n["&theta"]="952",n["&iota"]="953",n["&kappa"]="954",n["&lambda"]="955",n["&mu"]="956",n["&nu"]="957",n["&xi"]="958",n["&omicron"]="959",n["&pi"]="960",n["&rho"]="961",n["&sigmaf"]="962",n["&sigma"]="963",n["&tau"]="964",n["&upsilon"]="965",n["&phi"]="966",n["&chi"]="967",n["&psi"]="968",n["&omega"]="969",n["&thetasym"]="977",n["&upsih"]="978",n["&piv"]="982",n["&ensp"]="8194",n["&emsp"]="8195",n["&thinsp"]="8201",n["&zwnj"]="8204",n["&zwj"]="8205",n["&lrm"]="8206",n["&rlm"]="8207",n["&ndash"]="8211",n["&mdash"]="8212",n["&lsquo"]="8216",n["&rsquo"]="8217",n["&sbquo"]="8218",n["&ldquo"]="8220",n["&rdquo"]="8221",n["&bdquo"]="8222",n["&dagger"]="8224",n["&Dagger"]="8225",n["&bull"]="8226",n["&hellip"]="8230",n["&permil"]="8240",n["&prime"]="8242",n["&Prime"]="8243",n["&lsaquo"]="8249",n["&rsaquo"]="8250",n["&oline"]="8254",n["&frasl"]="8260",n["&euro"]="8364",n["&image"]="8365",n["&weierp"]="8472",n["&real"]="8476",n["&trade"]="8482",n["&alefsym"]="8501",n["&larr"]="8592",n["&uarr"]="8593",n["&rarr"]="8594",n["&darr"]="8595",n["&harr"]="8596",n["&crarr"]="8629",n["&lArr"]="8656",n["&uArr"]="8657",n["&rArr"]="8658",n["&dArr"]="8659",n["&hArr"]="8660",n["&forall"]="8704",n["&part"]="8706",n["&exist"]="8707",n["&empty"]="8709",n["&nabla"]="8711",n["&isin"]="8712",n["¬in"]="8713",n["&ni"]="8715",n["&prod"]="8719",n["&sum"]="8721",n["&minus"]="8722",n["&lowast"]="8727",n["&radic"]="8730",n["&prop"]="8733",n["&infin"]="8734",n["&ang"]="8736",n["&and"]="8743",n["&or"]="8744",n["&cap"]="8745",n["&cup"]="8746",n["&int"]="8747",n["&there4"]="8756",n["&sim"]="8764",n["&cong"]="8773",n["&asymp"]="8776",n["&ne"]="8800",n["&equiv"]="8801",n["&le"]="8804",n["&ge"]="8805",n["&sub"]="8834",n["&sup"]="8835",n["&nsub"]="8836",n["&sube"]="8838",n["&supe"]="8839",n["&oplus"]="8853",n["&otimes"]="8855",n["&perp"]="8869",n["&sdot"]="8901",n["&lceil"]="8968",n["&rceil"]="8969",n["&lfloor"]="8970",n["&rfloor"]="8971",n["&lang"]="9001",n["&rang"]="9002",n["&loz"]="9674",n["&spades"]="9824",n["&clubs"]="9827",n["&hearts"]="9829",n["&diams"]="9830",n)"function"!=typeof n[e]&&n.hasOwnProperty(e)&&(o[n[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(r=o[t].toLowerCase().substr(1),i.put(r,String.fromCharCode(t)));return i}(),FE=function(e){yE(r,e);var t=CE(r);function r(){return gE(this,r),t.apply(this,arguments)}return vE(r,[{key:"decodeCharacter",value:function(e){var t;e.mark();var r=e.next();if(null==r||"&"!==r)return e.reset(),null;var n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(null!=(t=this._getNumericEntity(e)))return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,r,n,o="";for(t=Math.min(e.remainder().length,NE.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=NE.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,16);return!Number.isNaN(+n)&&ME(n)?String.fromCharCode(n):null}},{key:"_parseNumber",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,10);return!Number.isNaN(+n)&&ME(n)?String.fromCharCode(n):null}}]),r}(IE),zE=function(e){yE(r,e);var t=CE(r);function r(){return gE(this,r),t.apply(this,arguments)}return vE(r,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",r=0;r<2;r++)null!=(n=e.nextHex())&&(t+=n);return 2===t.length&&(o=parseInt(t,16),ME(o))?String.fromCharCode(o):(e.reset(),null)}}]),r}(IE);"undefined"!=typeof document&&(DE=document.createElement("div"));var $E=Array.prototype.indexOf,jE=[",",".","_"," "],GE={default:[",",".","-","_"," "]},BE={width:["%"],height:["%"]},HE={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},WE={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":HE.image,"background-color":HE.color,"border-color":HE.color,"border-image":HE.image,color:HE.color,icon:HE.image,"list-style-image":HE.image,"outline-color":HE.color},VE={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function YE(e,t,r){var n;if(t){if($E)return $E.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function UE(e){if(null==e)return"";var t,r=document.createTextNode(e);return DE.appendChild(r),t=DE.innerHTML,DE.removeChild(r),t}function KE(e,t,r){var n,o,i,a,l,s,u,c,d;if(e=JE(e).toLowerCase(),t=JE(t),YE(e,VE.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<VE.attr_val;i++)if(t.toLowerCase().match(VE.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=BE[e])||(n=GE.default),o="",!r){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=l}o+='="'}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&YE(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function XE(e,t,r){var n,o,i,a,l,s,u,c,d,p;if(e=JE(e).toLowerCase(),t=JE(t),YE(e,VE.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<VE.css_val.length;n++)if(t.toLowerCase().indexOf(VE.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=WE[e])||(o=HE.default),i="",!r){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=l}i+=": "}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&YE(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function JE(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var l=[new FE,new zE,new PE];!a;){n=r;for(var s=0;s<l.length;s++)(i=l[s].decode(r))!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}for(var ZE=[],QE=0;QE<255;QE++)ZE[QE]=QE>=48&&QE<=57||QE>=65&&QE<=90||QE>=97&&QE<=122?null:QE.toString(16);var eC=function(e){return UE(e.unsafe)},tC=function(e){var t,r=[],n=[],o={},i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=XE(t,r[t],!0),i+=XE(t,r[t],!0),o[t]=n[t]);return e.map?o:i},rC=function(e){var t=[],r=[],n={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(r[i]=KE(i,t[i],!0),o+=KE(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function nC(e,t){throw new Error(t)}var oC={canonicalize:JE,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===mE(arguments[0])?function(){for(var e,t,r,n=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(n===(r=e[t]))continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?eC(e):"css"===e.context?(null!=e.map&&"object"!==mE(e.map)&&nC(this,"Invalid parameter type"),tC(e)):"attr"===e.context?(null!=e.map&&"object"!==mE(e.map)&&nC(this,"Invalid parameter type"),rC(e)):void nC(this,"Invalid parameter type")},encodeForAttr:KE,encodeForAttr2:function(e){return KE("nonsens",e,!0)},encodeForCSS:XE,encodeForHref:function(e){JE(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new LE(e),r=LE.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+LE.encodeSearchParams(n)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var r,n,o,i,a,l;for(t||(t=jE),l="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),YE(o,t)>=0||null==ZE[i]?l+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),l+="\\x".concat(a).concat(n.toUpperCase())):(a="0000".substr(n.length),l+="\\u".concat(a).concat(n.toUpperCase())));return l},encodeForHTML:UE,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=JE(t).toLowerCase():nC(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':""}};const iC=(e,t,r)=>{var n;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(n=o.qValues)||void 0===n?void 0:n[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==r?void 0:r.urlPosition)===VS.Attribute||null==r?void 0:r.urlLabel},aC=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:WS.Link,url:oC.encodeForHref(t),text:e}}catch(t){return{type:WS.Text,url:void 0,text:e}}},lC=(e,t,r,n)=>(e=>{switch(null==e?void 0:e.type){case"url":return WS.Link;case"image":return WS.Image;default:return WS.Text}})(t)===WS.Link?((e,t,r,n)=>{const{urlPosition:o}=null!=t?t:{};if(o===VS.Attribute){const n=iC(r,e,t),o=e.qText||n||"";return aC({text:o,url:n})}if(o===VS.Dimension){const r=iC(n,e,t)||e.qText;return aC({text:r,url:e.qText})}return{type:WS.Text,url:void 0,text:e.qText}})(e,t,r,n):{type:WS.Text,url:void 0,text:e.qText},sC=(e,t)=>{var r,n;const o=t.qAttrExps,i=null==o||null===(r=o.qValues)||void 0===r||null===(r=r[null==e?void 0:e.cellForegroundColor])||void 0===r?void 0:r.qText,a=null==o||null===(n=o.qValues)||void 0===n||null===(n=n[null==e?void 0:e.cellBackgroundColor])||void 0===n?void 0:n.qText,l=a?$y(a):null,s=i?$y(i):null,u=((e,t)=>e||!t?null:wn(t)?Ny.WHITE:Ny.TEXT)(s,l);return{color:null!=u?u:s,background:l}},uC=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:uC(e,t)),e),cC=(e,t,r,n,o,i)=>{if(o)return uC(0,e);const a=i?Vt-r:Yt-n;let l=e.qUp+e.qDown;if(i&&0===r){const r=(t+e.qUp)%Vt;l=e.qDown+r}return Math.min(a,uC(l,e))},dC=({node:e,parent:t,root:r,x:n,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0})=>{const c=e.qType===kt.NX_DIM_CELL_PSEUDO,d={id:cE(),ref:e,x:n,y:o,pageX:n,pageY:i,mainAxisPageCoord:u?i:n,isLeftColumn:u,parent:t,root:r,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:cC(e,o,i,n,a.isSnapshot,u),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===kt.NX_DIM_CELL_TOTAL||!(null==t||!t.isTotal),isEmpty:e.qType===kt.NX_DIM_CELL_EMPTY||-4===e.qElemNo,isNull:e.qType===kt.NX_DIM_CELL_NULL,isPseudoDimension:c,expressionColor:sC(s,e),selectionCellType:u?_t.NX_CELL_LEFT:_t.NX_CELL_TOP,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:c?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:lC(e,l===KS?void 0:l.representation,s.link,s.linkLabel)};return t&&(t.children[d.mainAxisPageCoord-t.mainAxisPageCoord]=d),d},pC=(e,t,r,n,o,i,a)=>{if(!t.length)return e;let l=0;return function t(s,u,c,d=0){e[d]||(e[d]={}),c.forEach(((c,p)=>{var f;l+=0===p?0:1;const h=r.qTop-n.page*n.rowsPerPage,m=Math.max(0,h+l-c.qUp),g=r.qTop+l-c.qUp,b=null!==(f=e[d][m])&&void 0!==f?f:dC({node:c,parent:u,root:s,x:d,y:g,pageY:m,layoutService:o,dimensionInfo:i[d],attrExprInfoIndex:a[d],isLeftColumn:!0});e[d][m]=b,c.qSubNodes.length&&t(s||b,b,c.qSubNodes,d+1)}))}(null,null,t,0),e},fC=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,r,n)=>{const o=n[r+1];e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},hC=e=>{const t=e[0],r=t?Object.values(t):[],n=null==t?void 0:t[0],o=r.at(-1);return null!=n&&n.isTotal?n.isLeafNode?n.mainAxisPageCoord:n.mainAxisPageCoord+n.leafCount-1:null!=o&&o.isTotal?o.mainAxisPageCoord-1:-1},mC=({prevData:e,nextDataPage:t,pageInfo:r,layoutService:n,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i})=>{const{qLeft:a,qArea:l}=t;if(!a.length)return e;const s=pC(e.grid,a,l,r,n,o,i);fC(s,r.rowsOnCurrentPage);const u=hC(s);return{...e,grid:s,columnCount:s.length,totalDividerIndex:u}},gC=({qArea:e,prevData:t,pivotValuePoints:r,pageInfo:n})=>{const o=[...t];return r.forEach(((t,r)=>{t.forEach(((t,i)=>{var a;const l=e.qTop-n.page*n.rowsPerPage+r,s=e.qLeft+i;Array.isArray(o[l])||(o[l]=[]);const u=t.qType===kt.NX_DIM_CELL_NULL;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:cE(),ref:t,isNull:u}}))})),o},bC=({prevData:e,dataPage:t,pageInfo:r})=>{const{qData:n,qArea:o}=t;return n.length?gC({qArea:o,prevData:e,pivotValuePoints:n,pageInfo:r}):e},vC=(e,t,r,n,o,i,a)=>{if(!t.length)return e;let l=0;!function t(a,s,u,c=0){e[c]||(e[c]={}),u.forEach(((u,d)=>{var p;l+=0===d?0:1;const f=r.qLeft+l-u.qUp,h=null!==(p=e[c][f])&&void 0!==p?p:dC({node:u,parent:s,root:a,x:f,y:c,pageY:c,layoutService:n,dimensionInfo:o[c],attrExprInfoIndex:i[c],isLeftColumn:!1});e[c][f]=h,u.qSubNodes.length&&t(a||h,h,u.qSubNodes,c+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},yC=({prevData:e,nextDataPage:t,layoutService:r,visibleTopDimensionInfo:n,attrExprInfoIndexes:o,headerRows:i})=>{const{qTop:a,qArea:l}=t;if(!a.length)return e;const s=vC(e.grid,a,l,r,n,o,i);fC(s,r.size.x);const u=hC(s);return{...e,grid:s,rowCount:s.length,totalDividerIndex:u}},xC=e=>{if(e===KS)return{cellForegroundColor:-1,cellBackgroundColor:-1,imageUrl:-1,link:-1,linkLabel:-1};const t=e.qAttrExprInfo;return{cellForegroundColor:t.findIndex((({id:e})=>e===Mt.CellForegroundColor.toString())),cellBackgroundColor:t.findIndex((({id:e})=>e===Mt.CellBackgroundColor.toString())),imageUrl:t.findIndex((({id:e})=>e===Mt.ImageUrl.toString())),link:t.findIndex((({id:e})=>e===Mt.Link.toString())),linkLabel:t.findIndex((({id:e})=>e===Mt.LinkLabel.toString()))}},SC=(e,t,r,n,o)=>{const[i,a]=v(null),l=((e,t,r)=>b((()=>({left:e.map(xC),top:t.map(xC),measures:r.map(xC)})),[r,e,t]))(n,o,t.visibleMeasureInfo),s=b((()=>hE(t,o,n)),[t,o,n]),u=D((()=>e.slice(1).reduce(((e,t)=>bC({prevData:e,dataPage:t,pageInfo:r})),((e,t)=>{const{qData:r,qArea:n}=e;return gC({qArea:n,prevData:[],pivotValuePoints:r,pageInfo:t})})(e[0],r))),[e,r]),c=D((()=>e.slice(1).reduce(((e,r)=>yC({prevData:e,nextDataPage:r,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:l.top,headerRows:s.size.y})),((e,t,r,n,o)=>{const{qArea:i,qTop:a}=e,l=vC([],a,i,t,r,n,o);fC(l,t.size.x);const s=hC(l);return{grid:l,rowCount:l.length,layoutSize:t.size,totalDividerIndex:s}})(e[0],t,o,l.top,s.size.y))),[e,t,o,l.top,s.size.y]),d=D((()=>e.slice(1).reduce(((e,o)=>mC({prevData:e,nextDataPage:o,pageInfo:r,layoutService:t,visibleLeftDimensionInfo:n,attrExprInfoIndexes:l.left})),((e,t,r,n,o)=>{const{qArea:i,qLeft:a}=e,l=pC([],a,i,r,t,n,o);fC(l,r.rowsOnCurrentPage);const s=hC(l);return{grid:l,columnCount:l.length,layoutSize:t.size,totalDividerIndex:s}})(e[0],t,r,n,l.left))),[e,t,r,n,l]),[p,f]=v((()=>u())),[h,m]=v((()=>c())),[g,y]=v((()=>d()));Vo((()=>{f(u())}),[u]),Vo((()=>{m(c())}),[c]),Vo((()=>{y(d())}),[d]),Vo((()=>{i&&i.forEach((e=>{f((t=>bC({prevData:t,dataPage:e,pageInfo:r}))),m((r=>yC({prevData:r,nextDataPage:e,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:l.top,headerRows:s.size.y}))),y((o=>mC({prevData:o,nextDataPage:e,pageInfo:r,layoutService:t,visibleLeftDimensionInfo:n,attrExprInfoIndexes:l.left})))}))}),[i]);const x=D((e=>{a(e)}),[]);return{headersData:s,measureData:p,topDimensionData:h,leftDimensionData:g,attrExprInfoIndexes:l,nextPageHandler:x}},EC=Math.sqrt(1e4),CC=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],r=Math.ceil(e.qWidth/EC),n=Math.ceil(e.qHeight/EC);for(let o=0;o<r;o++)for(let r=0;r<n;r++)t.push({qLeft:e.qLeft+o*EC,qTop:e.qTop+r*EC,qWidth:Math.min(EC,e.qWidth-o*EC),qHeight:Math.min(EC,e.qHeight-r*EC)});return t};function wC({model:e,nextPageHandler:t,pageInfo:r,layoutService:n}){const o=(e=>{const t=A(e);return t.current=e,t})(r.page),i=e,a=D((async(e,t)=>{var r;await(null==i||null===(r=i.collapseLeft)||void 0===r?void 0:r.call(i,US,e,t,!1))}),[i]),l=D((async(e,t)=>{await(null==i?void 0:i.collapseTop(US,e,t,!1))}),[i]),s=D((async(e,t)=>{await(null==i?void 0:i.expandLeft(US,e,t,!1))}),[i]),u=D((async(e,t)=>{await(null==i?void 0:i.expandTop(US,e,t,!1))}),[i]),c=D((async e=>{if(null!=i&&i.getHyperCubePivotData&&0!==e.length)try{const n=await i.getHyperCubePivotData(US,e.reduce(((e,t)=>[...e,...CC(t)]),[]));o.current===r.page&&t(n)}catch(e){console.error(e)}}),[i,t,r,o]),d=D(((t,{dimensionInfoIndex:r,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=n.layout.qHyperCube;let c=[];switch(a){case It.Dimension:c=[{qPath:`${US}/qDimensions/${r}/qDef/columnWidth`,oldValue:s[r].columnWidth}];break;case It.Measures:if(o)c=l.map(((e,t)=>({qPath:`${US}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=n.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${US}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case It.Pivot:c=[{qPath:`${US}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((e=>{const{qPath:r,oldValue:n}=e;return{qPath:r,qOp:n?"Replace":"Add",qValue:JSON.stringify({...n,...t})}}));null==e||e.applyPatches(d,!0)}),[e,n]);return b((()=>({collapseLeft:a,collapseTop:l,expandLeft:s,expandTop:u,applyColumnWidth:d,fetchPages:c})),[a,l,s,u,d,c])}const RC=(e,t)=>e>t?Pt.Forward:e<t?Pt.Backward:Pt.None,LC=(e,t,r)=>(n,o)=>{if(n===kt.NX_DIM_CELL_PSEUDO)return KS;const i=t[r+o];return e[i]},AC=e=>{const t=[],r=(e,n=0)=>{e.slice(0,1).forEach((e=>{t[n]=e.qType,e.qSubNodes.length&&r(e.qSubNodes,n+1)}))};return r(e),t},DC=({width:e,height:t,children:r,isLeftGrid:n})=>oi.jsx("div",{"data-testid":"full-size-container",style:{display:"block",width:n?"fit-content":e,height:t+Kt},children:r}),_C=e=>`scrollable-container--${e}`,IC=(e,t)=>{const{width:r,height:n,children:o,onScroll:i,style:a,showVerticalScrollbar:l,showHorizontalScrollbar:s,origin:u}=e,{interactions:c}=kS();return oi.jsx("div",{ref:t,"data-key":_C(u),style:{width:r,height:n,overscrollBehaviorX:"contain",overflowX:c.active&&s?"auto":"hidden",overflowY:c.active&&l?"auto":"hidden",...a},onScroll:i,children:o})};var MC=y.forwardRef(IC);const OC=({width:e,height:t,children:r,style:n,isLeftGrid:o})=>oi.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:0,left:0,width:o?"fit-content":e,height:t,...n},children:r});function PC(){return PC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},PC.apply(this,arguments)}function kC(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TC(e,t){return TC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},TC(e,t)}function qC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,TC(e,t)}var NC=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function FC(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],o=t[r],!(n===o||NC(n)&&NC(o)))return!1;var n,o;return!0}function zC(e,t){var r;void 0===t&&(t=FC);var n,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}function $C(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var jC="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function GC(e){cancelAnimationFrame(e.id)}function BC(e,t){var r=jC();var n={id:requestAnimationFrame((function o(){jC()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var HC=-1;function WC(e){if(void 0===e&&(e=!1),-1===HC||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),HC=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return HC}var VC=null;function YC(e){if(void 0===e&&(e=!1),null===VC||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?VC="positive-descending":(t.scrollLeft=1,VC=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),VC}return VC}var UC=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function KC(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=h(n.props,kC(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:kC(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=zC((function(e,t,r,o,i,a,l,s){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),n._callOnScroll=void 0,n._callOnScroll=zC((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=n._getItemStyleCache(m&&l,m&&s,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=r(n.props,t,n._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=zC((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(YC()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&GC(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=BC(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}qC(t,e),t.getDerivedStateFromProps=function(e,t){return XC(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=WC();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?s(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(YC()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&GC(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?UC:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,E=this._getHorizontalRangeToRender(),C=E[0],w=E[1],R=this._getVerticalRangeToRender(),L=R[0],A=R[1],D=[];if(n>0&&g)for(var _=L;_<=A;_++)for(var I=C;I<=w;I++)D.push(S(t,{columnIndex:I,data:d,isScrolling:v?x:void 0,key:f({columnIndex:I,data:d,rowIndex:_}),rowIndex:_,style:this._getItemStyle(_,I)}));var M=a(this.props,this._instanceProps),O=l(this.props,this._instanceProps);return S(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:PC({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},S(u||c||"div",{children:D,ref:s,style:{height:M,pointerEvents:x?"none":void 0,width:O}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=r||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),h=f(this.props,d,u,this._instanceProps),m=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(P),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var XC=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},JC=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},ZC=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},QC=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},ew=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?tw(e,t,r,i,0,n):rw(e,t,r,Math.max(0,i),n)},tw=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),l=QC(e,t,a,r).offset;if(l===i)return a;l<i?o=a+1:l>i&&(n=a-1)}return o>0?o-1:0},rw=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&QC(e,t,n,r).offset<o;)n+=a,a*=2;return tw(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},nw=function(e,t,r,n,o,i,a){var l="column"===e?t.width:t.height,s=QC(e,t,r,i),u="column"===e?ZC(t,i):JC(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===n&&(n=o>=d-l&&o<=c+l?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},ow=KC({getColumnOffset:function(e,t,r){return QC("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return ew("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=QC("column",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=QC("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:JC,getEstimatedTotalWidth:ZC,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return nw("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return nw("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return QC("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return ew("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=QC("row",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=QC("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),iw=function(e,t){return e};function aw(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=s(n.props,kC(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:kC(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=zC((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=zC((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,l=i.itemSize,s=i.layout,c=n._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===s,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=zC((function(e,t,r){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(YC()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&GC(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=BC(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}qC(t,e),t.getDerivedStateFromProps=function(e,t){return lw(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?WC():0:s.scrollHeight>s.clientHeight?WC():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(YC()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&GC(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?iw:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,E=x?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),w=C[0],R=C[1],L=[];if(u>0)for(var A=w;A<=R;A++)L.push(S(t,{data:c,key:p(A,c),index:A,isScrolling:b?y:void 0,style:this._getItemStyle(A)}));var D=n(this.props,this._instanceProps);return S(h||m||"div",{className:r,onScroll:E,ref:this._outerRefSetter,style:PC({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},S(l||s||"div",{children:L,ref:a,style:{height:x?"100%":D,pointerEvents:y?"none":void 0,width:x?D:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,s=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(P),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var lw=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},sw=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=n(s);o[s]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},uw=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=sw(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},cw=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&sw(e,r,t).offset<n;)r+=i,i*=2;return uw(e,t,Math.min(r,o-1),Math.floor(r/2),n)},dw=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},pw=aw({getItemOffset:function(e,t,r){return sw(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:dw,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=sw(e,t,o),p=dw(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=h-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return n>=h&&n<=f?n:n<h?h:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?uw(e,t,o,0,r):cw(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=sw(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=sw(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function fw(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var hw=["style"],mw=["style"];function gw(e,t){var r=e.style,n=$C(e,hw),o=t.style,i=$C(t,mw);return!fw(r,o)&&!fw(n,i)}const bw=(e,t)=>void 0!==e&&(e.isLeafNode?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),vw=10,yw=(e,t)=>e.current===Pt.Backward?t:0,xw=(e,t,r,n)=>{for(let o=r;o<r+n;o++){const r=e[o];if(void 0===r||void 0===r[t])return!0}return!1},Sw=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,Ew=({pageInfo:e,measureData:t,pageTop:r,qHeight:n,startLeft:o,endLeft:i})=>{const a=[],l=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(xw(t,e,r,n)){const t=a[a.length-1],o={qLeft:e,qTop:r+l,qWidth:1,qHeight:n};void 0!==t&&Sw(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},Cw=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=n,u=r.current===Pt.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return Ew({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},ww=({pageInfo:e,measureData:t,scrollDirection:r,layoutService:n,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:l,qHeight:s}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=e.size.x,s=yw(r,vw),u=Math.max(n-s,0);return{startLeft:u,endLeft:u+Math.min(i+vw,l-u),pageTop:o,qHeight:a}})(n,o,r),u=Ew({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...Cw({pageInfo:e,measureData:t,scrollDirection:r,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:n.size.x})]:u},Rw=(e,t,r,n)=>{const o=e[r];if(void 0===o)return!0;for(let e=t;e<t+n;e++){if(void 0===o[e])return!0}return!1},Lw=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,Aw=({startTop:e,endTop:t,qLeft:r,qWidth:n,measureData:o,pageInfo:i})=>{const a=[],l=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(Rw(o,r,i,n)){const e=a.at(-1),t={qLeft:r,qTop:i+l,qWidth:n,qHeight:1};void 0!==e&&Lw(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},Dw=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:l}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=yw(r,vw),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+vw,e.rowsOnCurrentPage-s),qLeft:n,qWidth:i}})(e,n,r),s=Aw({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const n=r.current===Pt.Backward?Math.max(0,o-25):i,u=Math.min(n+25,e.rowsOnCurrentPage),c=Aw({startTop:n,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},_w=async(e,t,r,n,o,i,a)=>{const{gridColumnStartIndex:l,gridRowStartIndex:s,gridWidth:u,gridHeight:c}=o;let d=[],p=[];i.current!==Pt.None&&(d=Dw({pageInfo:n,measureData:r,scrollDirection:i,viewService:o})),a.current!==Pt.None&&(p=ww({pageInfo:n,measureData:r,scrollDirection:a,layoutService:t,viewService:o})),i.current===Pt.None&&a.current===Pt.None&&(d=Aw({measureData:r,pageInfo:n,qLeft:l,qWidth:u,startTop:s,endTop:s+c})),await e.fetchPages([...d,...p])},Iw=function(e){var t,r,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];r=l;var u=Date.now()-i,c=function(){i=Date.now(),n=0,e.apply(t,r)};n||(u>=o?c():n=setTimeout(c,o-u))}}(_w,100),Mw=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}(_w,75),Ow=({style:e,index:t,isLastRow:r,isLastColumn:n,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{grid:{border:l,divider:s}}=FS();return oi.jsx("div",{style:{...e,...er,...or(r,n,l,o),...ar({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},Pw=(e,t,r)=>{if(!r.isEnabled(wt)||null!=e&&e.auto)return t;switch(null==e?void 0:e.align){case"center":return"center";case"left":return"flex-start";case"right":return"flex-end";default:return t}},kw={display:"flex",flexDirection:"row",alignItems:"center",height:"100%"},Tw={alignItems:"center",display:"flex",flexDirection:"row",height:"100%",backgroundClip:"padding-box"},qw=(e,t,r,n)=>t?{...Tw,...e.nullValues}:r?{...kw,color:e.totalValues.color,background:null!=n?n:e.totalValues.background}:{...kw,color:e.measureValues.color,background:null!=n?n:e.measureValues.background},Nw=(e,t,r,n,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...tr,...!r&&rr(e.grid.lineClamp),...t&&{color:t},alignSelf:"flex-start",fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.nullValues;return{...l,fontWeight:t,fontStyle:r,textDecoration:n}}if(n){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.totalValues;return{...l,fontWeight:t,fontStyle:r,textDecoration:n}}const{fontWeight:s,fontStyle:u,textDecoration:c}=e.measureValues;return{...l,fontWeight:void 0===s?Wt:s,fontStyle:u,textDecoration:c}},Fw=(e,t,r)=>{const{textAlign:n}=e;return Pw(n,t?"flex-end":"center",r)},zw=(e,t)=>{var r,n;return null!==(r=null==e||null===(n=e[t])||void 0===n?void 0:n.visibleMeasureInfoIndex)&&void 0!==r?r:0},$w=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o;const i=FS(),{flags:a}=kS(),{background:l}=i.measureValues,{grid:s,layoutService:u,showLastBorder:c,shouldShowTotalCellBottomDivider:d,shouldShowTotalCellRightDivider:p,isTotalValue:f,pageInfo:h,lastRow:m,lastColumn:g,attrExprInfoIndexes:b}=n,v=null===(o=s[t])||void 0===o?void 0:o[e],y=t===h.rowsOnCurrentPage-1,x=e===u.size.x-1;if(!v)return oi.jsx(Ow,{style:{...r,background:l},isLastRow:y,isLastColumn:x,showLastBorder:c,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const S=!v.isNull&&f(e,t),E=v.isNull?u.getNullValueText():v.ref.qText,C=!v.isNull||!Number.isNaN(+E),w=u.hasPseudoDimOnLeft?zw(g,t):zw(m,e),R=sC(b[w],v.ref),L={...qw(i,v.isNull,S,R.background),...or(y,x,i.grid.border,c),...ar({bottomDivider:d(t),rightDivider:p(e),borderColor:i.grid.divider}),...er,display:"flex",justifyContent:Fw(u.visibleMeasureInfo[w],C,a)};return oi.jsx("div",{title:E,style:r,"data-testid":"measure-cell","data-row-index":t,"data-col-index":e,children:oi.jsx("div",{style:L,children:oi.jsx("span",{style:Nw(i,R.color,C,S,v.isNull),children:E})})})};var jw=y.memo($w,gw);const Gw=(e,t)=>{var r,n;return null!==(r=null===(n=t.list[e])||void 0===n?void 0:n.id)&&void 0!==r?r:e.toString()},Bw=({columnIndex:e,rowIndex:t,data:r})=>{var n,o;return null!==(n=null===(o=r.grid[t])||void 0===o||null===(o=o[e])||void 0===o?void 0:o.id)&&void 0!==n?n:`${t}-${e}`},Hw={...Qt,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},Ww=({dataModel:e,dataGridRef:t,height:r,rowHightCallback:n,width:o,viewService:i,layoutService:a,measureData:l,leftDimensionData:s,topDimensionData:u,visibleTopDimensionInfo:c,visibleLeftDimensionInfo:d,attrExprInfoIndexes:p,showLastBorder:f,getRightGridColumnWidth:h,pageInfo:m,verticalScrollDirection:g,horizontalScrollDirection:b})=>{const{grid:{divider:v},contentCellHeight:y}=FS(),x={...Hw,borderColor:v,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},S=(e=>D((t=>{var r;const n=null===(r=e.grid.at(-1))||void 0===r?void 0:r[t];return bw(n,e.totalDividerIndex)}),[e]))(s),E=(e=>D((t=>{var r;const n=null===(r=e.grid.at(-1))||void 0===r?void 0:r[t];return bw(n,e.totalDividerIndex)}),[e]))(u),C=((e,t)=>D(((r,n)=>{var o,i;return!!(null!==(o=t.grid.at(-1))&&void 0!==o&&null!==(o=o[r])&&void 0!==o&&o.isTotal||null!==(i=e.grid.at(-1))&&void 0!==i&&null!==(i=i[n])&&void 0!==i&&i.isTotal)}),[t,e]))(s,u),w=(({viewService:e,dataModel:t,measureData:r,layoutService:n,pageInfo:o,leftColumnCount:i,topRowCount:a,verticalScrollDirection:l,horizontalScrollDirection:s})=>D((async({overscanColumnStartIndex:u,overscanColumnStopIndex:c,overscanRowStartIndex:d,overscanRowStopIndex:p})=>{e.gridColumnStartIndex=u,e.gridRowStartIndex=d,e.gridWidth=c-u+1,e.gridHeight=p-d+1;const f=e.gridWidth+i+(s.current===Pt.None?0:vw),h=e.gridHeight+a+(l.current===Pt.None?0:vw);let m=Iw;h*f>1500&&(m=Mw),await m(t,n,r,o,e,l,s)}),[e,n,t,r,l,s,o,i,a]))({viewService:i,layoutService:a,dataModel:e,measureData:l,pageInfo:m,leftColumnCount:s.columnCount,topRowCount:u.rowCount,verticalScrollDirection:g,horizontalScrollDirection:b});return Vo((()=>{t.current&&t.current.resetAfterColumnIndex(0,!1)}),[t,e,l]),O((()=>{t.current&&t.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[o,r,t,y]),0===a.size.x?null:oi.jsx(ow,{ref:t,style:x,columnCount:a.size.x,columnWidth:h,height:r,rowCount:m.rowsOnCurrentPage,rowHeight:n,width:o,itemData:{layoutService:a,grid:l,dataModel:e,showLastBorder:f,isTotalValue:C,shouldShowTotalCellBottomDivider:S,shouldShowTotalCellRightDivider:E,pageInfo:m,lastRow:u.grid.at(c.length-1),lastColumn:s.grid.at(d.length-1),attrExprInfoIndexes:p},onItemsRendered:w,estimatedRowHeight:n(),estimatedColumnWidth:h(),itemKey:Bw,children:jw})};var Vw=M(Ww);function Yw(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Uw=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Yw(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),y.createElement("use",{fillRule:"evenodd"})),Kw=L(Uw),Xw=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(xt)},Jw=e=>{const[t,r]=v(!1);return Vo((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}};function Zw(e,t){const r=e.isActive(),[n,o]=v(new Map),[i,a]=v(null);_((()=>{const r=()=>{a(null),o(new Map)},n=()=>{r(),t({page:0})};return e.on("deactivated",r),e.on("canceled",r),e.on("confirmed",n),e.on("cleared",r),()=>{e.removeListener("deactivated",r),e.removeListener("canceled",r),e.removeListener("confirmed",n),e.removeListener("cleared",r)}}),[e,t]);const l=D((e=>0!==n.size&&null!==i&&(e.selectionCellType!==i.selectionCellType||(e.selectionCellType===_t.NX_CELL_LEFT?i.coord!==e.x:i.coord!==e.y))),[n,i]),s=D((t=>async r=>{if(Xw(r))return;if(e.isActive()||await e.begin([US]),l(t))return;const{nextSelectedPivotCells:s,nextSelectedField:u}=((e,t,r)=>{const n=new Map(t);return n.has(e.ref.qElemNo)?(n.delete(e.ref.qElemNo),{nextSelectedPivotCells:n,nextSelectedField:0===n.size?null:r}):(n.set(e.ref.qElemNo,e),{nextSelectedPivotCells:n,nextSelectedField:{selectionCellType:e.selectionCellType,coord:e.selectionCellType===_t.NX_CELL_LEFT?e.x:e.y}})})(t,n,i);try{await e.select({method:"selectPivotCells",params:[US,Array.from(s,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]}),o(s),a(u)}catch(e){console.error(e)}}),[e,l,n,i]),u=D((e=>r&&!l(e)&&n.has(e.ref.qElemNo)),[n,l,r]);return b((()=>({select:s,isSelected:u,isActive:r,isLocked:l})),[s,u,r,l])}const Qw=I({select:()=>()=>Promise.resolve(),isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),eR=()=>x(Qw),tR=({children:e,selections:t,updatePageInfo:r})=>{const n=Zw(t,r);return oi.jsx(Qw.Provider,{value:n,children:e})};const rR=({cellInfo:e,columnWidth:t,dataModel:r,isLastColumn:n,overrideLeftGridWidth:o,setIsAdjustingWidth:i})=>{const{interactions:a}=kS(),{isActive:l}=eR(),s=FS(),[,u]=v({});if(!(e.canBeResized&&!!a.active&&!l))return null;const c=function(e,t){var r,n,o,i;const a=null!==(r=null===(n=t.expressionColor)||void 0===n?void 0:n.background)&&void 0!==r?r:e.dimensionValues.background,l=t.isLeftColumn?e.header.background:a,s=l===Xt.Transparent?Ny.WHITE:l,u=null===(o=Gr(e.grid.border))||void 0===o?void 0:o.rgb(),c=null===(i=Gr(s))||void 0===i?void 0:i.rgb();if(c&&u&&u.opacity<1){const e=1-u.opacity;return`rgb(${u.opacity*u.r+e*c.r}, ${u.opacity*u.g+e*c.g}, ${u.opacity*u.b+e*c.g})`}return e.grid.border}(s,e);return oi.jsx(Hy,{isPivot:!0,columnWidth:t,isLastColumn:n,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:c,updateWidthCallback:t=>{u({}),o&&void 0!==e.colIdx&&o(t,e.colIdx)},confirmWidthCallback:t=>null==r?void 0:r.applyColumnWidth(t,e),setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn})};var nR=function(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=function(e,t,r="Mui"){const n=Lu[t];return n?`${r}-${n}`:`${Eu.generate(e)}-${t}`}(e,t,r)})),n}("MuiBox",["root"]);const oR=dd(),iR=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=rs("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(cu),a=E.forwardRef((function(e,a){const l=function(e=gu){return mu(e)}(r),s=yu(e),{className:u,component:c="div"}=s,d=ui(s,Ru);return oi.jsx(i,si({as:c,ref:a,className:wu(u,o?o(n):n),theme:t&&l[t]||l},d))}));return a}({themeId:li,defaultTheme:oR,defaultClassName:nR.root,generateClassName:Eu.generate});const aR=Bd(iR,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:r,shouldShowMenuIcon:n,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:n?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?r:t}}))),lR=Bd("div")({position:"absolute",left:0,bottom:0}),sR=Bd("div")({...Zt,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}),uR=Bd("div")((()=>({...Zt}))),cR=Bd("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:r,fontStyle:n,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:r,fontSize:e,fontFamily:t,fontStyle:n,textDecoration:o}))),dR={[Ux.SORTING]:!0,[Ux.SELECTIONS]:!0,[Ux.SEARCHING]:!0},pR=({dataModel:e,cell:t,style:r,isFirstColumn:n,isLastColumn:o,isLastRow:i,translator:a,changeSortOrder:l,changeActivelySortedHeader:s,iconsVisibilityStatus:u,columnWidth:c,overrideLeftGridWidth:d,layoutService:p})=>{var f;const h=A(null),m=FS(),{app:g,model:b,interactions:y,embed:x,flags:S}=kS(),{fontSize:E,fontFamily:C,fontStyle:w,fontWeight:R,textDecoration:L,color:D,background:_,hoverBackground:I,activeBackground:M}=m.header,O=A(null),{shouldShowLockIcon:P,shouldShowMenuIcon:k}=u,{open:T,setOpen:q,handleOpenMenu:N,setIsAdjustingWidth:F}=(({interactions:e,dataModel:t})=>{const[r,n]=v(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=Jw([t]);return{open:r,setOpen:n,handleOpenMenu:t=>e.active&&!Xw(t)&&!o&&n(!0),setIsAdjustingWidth:i}})({interactions:y,dataModel:e}),z={sortFromMenu:async(e,r)=>{e.stopPropagation(),await l(t,r)},changeActivelySortedHeader:s},$={embed:x,listboxRef:h},j={model:b,app:g},{labelTextAlign:G}=null!==(f=p.getDimensionInfo(t.dimensionInfoIndex))&&void 0!==f?f:{},B=Pw(G,"flex-start",S);return oi.jsxs(aR,{title:t.label,interactions:y,background:T?M:_,hoverBackground:I,shouldShowMenuIcon:k,isDimension:t.isDim,style:{...r,...er,...ir(t,i,n,o,m.grid.border),color:D},"data-testid":"title-cell",onClick:N,children:[oi.jsxs(sR,{children:[P&&oi.jsx(uR,{children:oi.jsx(Kw,{height:12})}),oi.jsx(cR,{fontFamily:C,fontSize:E,fontStyle:w,fontWeight:R,textDecoration:L,justifyContent:B,children:oi.jsx("span",{style:tr,children:t.label})})]}),t.isDim&&oi.jsxs(oi.Fragment,{children:[oi.jsx(Xx,{headerData:t,translator:a,anchorRef:O,open:T,setOpen:q,interactions:y,menuAvailabilityFlags:dR,sortRelatedArgs:z,searchRelatedArgs:$,selectionRelatedArgs:j,shouldShowMenuIcon:k}),oi.jsx(lR,{ref:h}),oi.jsx(lR,{ref:O})]}),oi.jsx(rR,{cellInfo:{...t,isLeftColumn:!0},columnWidth:c,dataModel:e,isLastColumn:o,overrideLeftGridWidth:d,setIsAdjustingWidth:F})]})},fR=({rowSpan:e,columnSpan:t})=>{const r=FS();return e>0&&t>0?oi.jsx("div",{style:{...Qt,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"0px 1px 0px 0px",borderColor:r.grid.border,background:r.grid.background},"data-testid":"empty-header-cell"}):null},hR={display:"grid",width:"fit-content"},mR=({dataModel:e,columnWidths:t,rowHight:r,headersData:n,translator:o,changeSortOrder:i,changeActivelySortedHeader:a,getHeaderCellsIconsVisibilityStatus:l,height:s,overrideLeftGridWidth:u,layoutService:c})=>oi.jsxs("div",{style:{...hR,gridTemplateColumns:t.map((e=>`${e}px`)).join(" "),gridTemplateRows:n.data.map((()=>`${r}px`)).join(" "),height:s},children:[n.size.y>1&&oi.jsx(fR,{columnSpan:n.size.x-1,rowSpan:n.size.y-1}),n.data.map(((s,d)=>s.reduce(((s,p,f)=>{if(p){const h=l(f,p.isLocked,p.label);s.push(oi.jsx(pR,{dataModel:e,style:{width:t[f],height:r,gridColumn:f+1,gridRow:d+1,zIndex:n.size.x-f},isLastRow:d===n.size.y-1,isFirstColumn:0===f,isLastColumn:f===n.size.x-1,translator:o,changeSortOrder:i,changeActivelySortedHeader:a,cell:p,iconsVisibilityStatus:h,columnWidth:t[f],overrideLeftGridWidth:u,layoutService:c},p.id))}return s}),[])))]});var gR=M(mR);const bR=(e,t,r,n,o)=>{O((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,r,n,o])},vR=(e,t)=>{Vo((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},yR=(e,t,r,n)=>{var o;const i=r?"flex-start":"center";if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){var a;const{labelTextAlign:r}=null!==(a=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==a?a:{};return Pw(r,i,n)}const{textAlign:l}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return Pw(l,i,n)};var xR;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(xR||(xR={}));const SR={brighter:.5,darker:.3,opacity:.03},ER=(e,{cell:t,styleService:r})=>{if(e===xR.Background||e===xR.Color){const r=t.expressionColor[e];if(r)return r}return t.isNull?r.nullValues[e]:t.isPseudoDimension?r.measureLabels[e]:t.isTotal?r.totalValues[e]:r.dimensionValues[e]},CR=({styleService:e,isCellSelected:t,cell:r,isCellLocked:n})=>{if(t)return"#0aaf54";const o=ER(xR.Background,{cell:r,styleService:e});return!n||!o||r.isPseudoDimension||r.isEmpty||r.isNull||r.isTotal?ER(xR.Background,{cell:r,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${Fy(i=o,SR)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},wR=({cell:e,styleService:t,isCellSelected:r})=>r?"white":ER(xR.Color,{cell:e,styleService:t}),RR=({cell:e,styleService:t})=>{const{qCanCollapse:r,qCanExpand:n}=e.ref,o=ER(xR.FontWeight,{cell:e,styleService:t});return void 0===o&&(n||r)?Wt:o},LR=({cell:e,styleService:t})=>ER(xR.FontStyle,{cell:e,styleService:t}),AR=({cell:e,styleService:t})=>ER(xR.TextDecoration,{cell:e,styleService:t}),DR=e=>e?"pointer":"default",_R=()=>{},IR=({children:e,text:t,reactWindowStyle:r,cell:n,data:o,showTotalCellDivider:i,isLastRow:a,isLastColumn:l,isLeftColumn:s,isCellSelected:u,isAdjustingWidth:c})=>{const d=FS(),{interactions:p,flags:f}=kS(),{select:h,isLocked:m}=eR(),{layoutService:g,showLastBorder:b}=o,v=m(n)||n.isLockedByDimension,y=!(v||!p.active||!p.select||n.isEmpty||n.isNull||n.isPseudoDimension||n.isTotal||c),x=y?h(n):void 0;return oi.jsx("div",{title:p.passive?t:void 0,style:{...r,...or(a,l,d.grid.border,b),...ar({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:d.grid.divider}),...er,padding:"0px 4px",cursor:DR(y),background:CR({styleService:d,isCellSelected:u,cell:n,isCellLocked:v}),zIndex:s?void 0:g.size.x-n.x,justifyContent:yR(n,g,s,f),display:"flex"},"aria-hidden":"true",onClick:x,onKeyUp:_R,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":n.x,"data-page-x":n.pageX,"data-y":n.y,"data-page-y":n.pageY,"data-cell-type":n.ref.qType,children:e})};function MR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const OR=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){MR(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})),PR=L(OR);function kR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const TR=(e,t)=>y.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){kR(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),y.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})),qR=L(TR),NR=({expandOrCollapse:e,cell:t})=>r=>{null==e||e(t.y,t.x),r.stopPropagation()},FR=({cell:e,dataModel:t,isLeftColumn:r,isCellSelected:n})=>{const o=FS(),{interactions:i}=kS(),{isActive:a}=eR();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!t,s=wR({cell:e,styleService:o,isCellSelected:n}),u=a?.4:1,c=o.contentRowHeight/2,d=e.ref.qCanExpand?qR:PR;let p;return p=e.ref.qCanExpand?r?null==t?void 0:t.expandLeft:null==t?void 0:t.expandTop:r?null==t?void 0:t.collapseLeft:null==t?void 0:t.collapseTop,oi.jsx(d,{opacity:u,color:s,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",padding:4,marginTop:r?c-6.5-4:void 0},onClick:l?void 0:NR({cell:e,expandOrCollapse:p})})},zR=e=>e.stopPropagation(),$R=({href:e,text:t,interactions:r,color:n})=>y.createElement(ov,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:zR,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}},t),jR=e=>e.contentRowHeight/2-e.contentTextHeight/2,GR=({children:e,cell:t,styleService:r,isCellSelected:n,isLeftColumn:o})=>oi.jsx("span",{style:{...tr,...rr(o?Math.max(r.grid.lineClamp,t.leafCount*r.grid.lineClamp):r.grid.columnLineClamp),color:wR({cell:t,styleService:r,isCellSelected:n}),fontWeight:RR({cell:t,styleService:r}),fontStyle:LR({cell:t,styleService:r}),textDecoration:AR({cell:t,styleService:r}),fontFamily:r.dimensionValues.fontFamily,fontSize:r.dimensionValues.fontSize,marginTop:o?jR(r):void 0,padding:"0px 4px"},children:e}),BR=({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n})=>{const{isActive:o}=eR(),{interactions:i,flags:a}=kS();let l=e.representation.text;return e.isEmpty?null:(e.representation.type!==WS.Link||o||e.isTotal||!a.isEnabled(At)||(l=oi.jsx($R,{text:e.representation.text,href:e.representation.url,interactions:i,color:e.expressionColor.color})),oi.jsx(GR,{isLeftColumn:n,isCellSelected:r,cell:e,styleService:t,children:l}))},HR=({children:e,isLeftColumn:t})=>{const r=t?"flex-start":"center";return oi.jsx("div",{style:{display:"flex",flexDirection:"row",alignItems:r,width:"fit-content",maxWidth:"100%",position:"sticky",left:4,top:0,right:t?void 0:4,alignSelf:r},children:e})},WR=({index:e,style:t,data:r})=>{const n=FS(),{isSelected:o}=eR(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=Jw([r]),{dataModel:l,isLeftColumn:s=!1,showLastBorder:u,itemCount:c,isLast:d,totalDividerIndex:p}=r,f=((e,t)=>{const{isLast:r,list:n,listValues:o}=t;return r?n[e]:o[e]})(e,r),h=s?e===c-1:d,m=s?d:e===c-1,g=bw(f,p);if(void 0===f){const{background:r}=n.dimensionValues;return oi.jsx(Ow,{style:{...t,background:r},index:e,isLastRow:h,isLastColumn:m,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:g})}const b=o(f);return oi.jsxs(IR,{text:f.ref.qText,reactWindowStyle:t,isLeftColumn:s,isLastRow:h,isLastColumn:m,isCellSelected:b,showTotalCellDivider:g,cell:f,data:r,isAdjustingWidth:i,children:[oi.jsxs(HR,{isLeftColumn:s,children:[oi.jsx(FR,{isLeftColumn:s,isCellSelected:b,cell:f,dataModel:l}),oi.jsx(BR,{isLeftColumn:s,isCellSelected:b,cell:f,styleService:n})]}),oi.jsx(rR,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?It.Measures:It.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:m,setIsAdjustingWidth:a})]})};var VR=y.memo(WR,gw);const YR=(e,t,r,n,o)=>i=>{const a=n?e[i]:t[i];if(0===i&&(null==a?void 0:a.pageY)>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*r;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)*r}return r},UR=({list:e,listValues:t,isLastRow:r,getRightGridColumnWidth:n})=>o=>{var i;const a=r?e[o]:t[o];return 0===o&&(null==a?void 0:a.x)>0?(a.leafCount+a.x+a.distanceToNextCell)*n():r||void 0===a?n(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o):(a.leafCount+a.distanceToNextCell)*n()},KR=(e,t,r,n)=>{const o=Object.values(e);let i,a=o.length;return n&&(a=r,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},XR=(e,t)=>r=>{e.current&&(e.current[t]=r)},JR={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...Qt},ZR={overflow:"hidden",willChange:"auto",flexShrink:0},QR=({dataModel:e,leftGridRef:t,width:r,columnWidths:n,height:o,layoutService:i,leftDimensionData:a,showLastBorder:l,visibleLeftDimensionInfo:s,pageInfo:u})=>{const{qSize:c}=i.layout.qHyperCube,{contentCellHeight:d,grid:{divider:p}}=FS();vR(t,a),bR(t,r,o,d,i);const f=u.rowsOnCurrentPage*d;return oi.jsx("div",{style:{...JR,borderColor:p},children:a.grid.map(((r,p)=>{const h=p===a.columnCount-1,m=dE(s[p]),{itemCount:g,estimatedItemSize:b,listValues:v}=KR(r,f,u.rowsOnCurrentPage,h);return oi.jsx(pw,{ref:XR(t,p),style:{...ZR,flexGrow:h?1:0},height:o,width:n[p],itemCount:g,itemSize:YR(r,v,d,h,c.qcy),layout:"vertical",itemData:{layoutService:i,dataModel:e,list:r,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:l,listValues:v,totalDividerIndex:a.totalDividerIndex},itemKey:Gw,estimatedItemSize:b,children:VR},m)}))})};var eL=M(QR);const tL={overflow:"hidden",willChange:"auto"},rL={...Qt,borderWidth:"0px 0px 0px 1px"},nL=({dataModel:e,topGridRef:t,rowHightCallback:r,width:n,height:o,layoutService:i,topDimensionData:a,showLastBorder:l,getRightGridColumnWidth:s,headersData:u})=>{const{grid:{divider:c},headerCellHeight:d}=FS(),p={...rL,borderColor:c,height:o};vR(t,a),bR(t,n,o,d,i);const f=i.size.x*s();return 0===a.rowCount?oi.jsx("div",{style:{width:n,height:o,...rL}}):oi.jsx("div",{style:p,children:a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=KR(o,f,i.size.x,d),g=i.getDimensionInfo(u.data[c][u.size.x-1].dimensionInfoIndex),b=g?dE(g):`empty ${c}`;return oi.jsx(pw,{ref:XR(t,c),style:tL,height:r(),width:n,itemCount:p,itemSize:UR({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:Gw,estimatedItemSize:h,children:VR},b)}))})};var oL=M(nL);const iL=({model:e,rect:t,viewService:r,layoutService:n,qPivotDataPages:o,pageInfo:i,translator:a})=>{const{headerCellHeight:l,contentCellHeight:s}=FS(),u=((e,t,r)=>b((()=>{let{height:n}=e;return t.hasLimitedData&&(n-=22),r&&(n-=41),{...e,height:n}}),[e,t,r]))(t,n,i.shouldShowPagination),{visibleLeftDimensionInfo:c,visibleTopDimensionInfo:d}=((e,t)=>{const{qHyperCube:r}=e.layout,{qNoOfLeftDims:n,qEffectiveInterColumnSortOrder:o,qDimensionInfo:i}=r;return b((()=>{var e,r,a,l;const s=AC(null!==(e=null===(r=t[0])||void 0===r?void 0:r.qLeft)&&void 0!==e?e:[]),u=AC(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(LC(i,o,0)),visibleTopDimensionInfo:u.map(LC(i,o,n))}}),[i,o,n,t])})(n,o),{changeSortOrder:p,changeActivelySortedHeader:f}=((e,t)=>{const r=b((()=>({changeSortOrder:async(t,r)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:n,dimensionInfoIndex:o}=t,i=[];("D"===r&&!n||"A"===r&&n)&&i.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!n).toString()});try{return await e.applyPatches(i,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}},changeActivelySortedHeader:async r=>{if(!e)throw new Error("No Model provided!");const{colIdx:n,qLibraryId:o,fieldId:i,sortDirection:a}=r,l=[{qPath:"/qHyperCubeDef/activelySortedColumn",qOp:t.activelySortedColumn?"Replace":"Add",qValue:JSON.stringify({colIdx:n,qLibraryId:o,fieldId:i,sortDirection:a})}];try{return await(null==e?void 0:e.applyPatches(l,!0)),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}})),[e,t.activelySortedColumn]);return r})(e,n.layout.qHyperCube),{headersData:h,measureData:m,topDimensionData:g,leftDimensionData:y,attrExprInfoIndexes:x,nextPageHandler:S}=SC(o,n,i,c,d),E=wC({model:e,nextPageHandler:S,pageInfo:i,layoutService:n}),{onHorizontalScrollHandler:C,onVerticalScrollHandler:w,verticalScrollableContainerRef:R,leftGridHorizontalScrollableContainerRef:L,dataGridHorizontalScrollableContainerRef:I,dataGridRef:M,leftGridRef:P,topGridRef:k,verticalScrollbarWidth:T,horizontalScrollbarHeight:q,horizontalScrollbarHeightSetter:N,verticalScrollDirection:F,horizontalScrollDirection:z}=(({layoutService:e,viewService:t,pageInfo:r,tableRect:n,mockedRefs:o})=>{var i,a,l,s,u,c;const{theme:d}=kS(),p=A(null!==(i=null==o?void 0:o.verticalScrollableContainerRef)&&void 0!==i?i:null),f=A(null!==(a=null==o?void 0:o.leftGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),h=A(null!==(l=null==o?void 0:o.dataGridHorizontalScrollableContainerRef)&&void 0!==l?l:null),m=A(null!==(s=null==o?void 0:o.topGridRef)&&void 0!==s?s:[]),g=A(null!==(u=null==o?void 0:o.leftGridRef)&&void 0!==u?u:[]),b=A(null!==(c=null==o?void 0:o.dataGridRef)&&void 0!==c?c:null),y=A(0),x=A(0),S=A(Pt.None),E=A(Pt.None),[C,w]=v(0),[R,L]=v(0),_=d.name(),I=e=>{E.current=RC(e.currentTarget.scrollLeft,y.current),y.current=e.currentTarget.scrollLeft,S.current=RC(e.currentTarget.scrollTop,x.current),x.current=e.currentTarget.scrollTop};O((()=>{e.triggerdByExpandOrCollapse||(f.current&&(f.current.scrollLeft=0),h.current&&(h.current.scrollLeft=0),p.current&&(p.current.scrollTop=0))}),[e]),O((()=>{if(e.triggerdByExpandOrCollapse){var t,r,n,o,i,a;const e=null!==(t=null===(r=h.current)||void 0===r?void 0:r.scrollLeft)&&void 0!==t?t:0,l=null!==(n=null===(o=p.current)||void 0===o?void 0:o.scrollTop)&&void 0!==n?n:0;null===(i=g.current)||void 0===i||i.forEach((e=>null==e?void 0:e.scrollTo(l))),null===(a=m.current)||void 0===a||a.forEach((t=>null==t?void 0:t.scrollTo(e)))}}),[e]),O((()=>{f.current&&(f.current.scrollLeft=0),h.current&&(h.current.scrollLeft=0),p.current&&(p.current.scrollTop=0)}),[r.page]);const M=D((e=>{if(e)return void L(0);let t=0;if(f.current){const e=f.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}if(h.current){const e=h.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}L(t)}),[L]);return O((()=>{if(p.current){const e=p.current,t=e.offsetWidth-e.clientWidth;w(t)}M()}),[M,e,n.width,n.height,_]),O((()=>{e.isSnapshot&&p.current&&h.current&&f.current&&(p.current.scrollTop=t.scrollTop,h.current.scrollLeft=t.scrollLeft,f.current.scrollLeft=t.leftGridScrollLeft)}),[e.isSnapshot,t.scrollTop,t.scrollLeft,t.leftGridScrollLeft,p,h]),{onHorizontalScrollHandler:e=>{var r,n;e.target instanceof HTMLDivElement&&(e.target.dataset.key===`scrollable-container--${Ot.LEFT_GRID}`&&(t.leftGridScrollLeft=e.currentTarget.scrollLeft),e.target.dataset.key===`scrollable-container--${Ot.DATA_GRID}`&&(I(e),null===(r=m.current)||void 0===r||r.forEach((t=>null==t?void 0:t.scrollTo(e.currentTarget.scrollLeft))),null===(n=b.current)||void 0===n||n.scrollTo({scrollLeft:e.currentTarget.scrollLeft}),t.scrollLeft=e.currentTarget.scrollLeft))},onVerticalScrollHandler:e=>{var r,n;e.target instanceof HTMLDivElement&&(I(e),null===(r=g.current)||void 0===r||r.filter(Boolean).forEach((t=>t.scrollTo(e.currentTarget.scrollTop))),null===(n=b.current)||void 0===n||n.scrollTo({scrollTop:e.currentTarget.scrollTop}),t.scrollTop=e.currentTarget.scrollTop)},verticalScrollableContainerRef:p,leftGridHorizontalScrollableContainerRef:f,dataGridHorizontalScrollableContainerRef:h,dataGridRef:b,leftGridRef:g,topGridRef:m,verticalScrollbarWidth:C,horizontalScrollbarHeight:R,horizontalScrollbarHeightSetter:M,verticalScrollDirection:S,horizontalScrollDirection:E}})({layoutService:n,viewService:r,pageInfo:i,tableRect:u}),{containerHeight:$,headerGridHeight:j,topGridHeight:G,leftGridHeight:B,dataGridHeight:H,allRowsVisible:W}=function({pageInfo:e,headersData:t,topDimensionData:r,tableRect:n,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=FS(),l=e.rowsOnCurrentPage*a,s=i*t.size.y,u=l+s,c=i*Math.max(t.size.y,r.rowCount,1);return{containerHeight:u,headerGridHeight:s,topGridHeight:c,leftGridHeight:Math.min(n.height-s-Kt,l),dataGridHeight:Math.min(n.height-c-Kt,l),allRowsVisible:c+Kt+l+o<=n.height}}({pageInfo:i,headersData:h,topDimensionData:g,tableRect:u,horizontalScrollbarHeight:q}),{leftGridWidth:V,leftGridColumnWidths:Y,rightGridWidth:U,totalWidth:K,showLastRightBorder:X,getRightGridColumnWidth:J,getHeaderCellsIconsVisibilityStatus:Z,overrideLeftGridWidth:Q}=function({layoutService:e,tableWidth:t,headersData:r,visibleTopDimensionInfo:n,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i}){const a=FS(),{measureText:l}=Bo(a.header),s=rE({layoutService:e,tableWidth:t,headersData:r}),u=nE({layoutService:e,tableWidth:t,visibleTopDimensionInfo:n,verticalScrollbarWidth:o,leftGridWidth:s.leftGridWidth}),c=s.leftGridWidth+u.rightGridFullWidth+Kt,d=c<t,p=D(((e,t,r="")=>{const n=s.leftGridColumnWidths[e];let o=!1,i=!1,a=l(r)+BS;return t&&a+GS<=n&&(i=!0,a+=GS),a+jS<=n&&(o=!0),{shouldShowMenuIcon:o,shouldShowLockIcon:i}}),[s.leftGridColumnWidths,l]);return _((()=>{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:n,tableWidth:u.width,headersData:h,visibleTopDimensionInfo:d,verticalScrollbarWidth:T,horizontalScrollbarHeightSetter:N}),{rootWrapper:ee,leftWrapper:te,rightWrapper:re}=(({tableRect:e,containerHeight:t,headerGridHeight:r,leftGridHeight:n,topGridHeight:o,dataGridHeight:i,allRowsVisible:a,totalWidth:l,leftGridWidth:s,rightGridWidth:u,verticalScrollbarWidth:c,horizontalScrollbarHeight:d})=>{const p=o+i+Kt,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:r},leftGrid:{width:s,height:n-m+f}},rightWrapper:{containers:{scrollable:{width:u+Kt-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:$,headerGridHeight:j,leftGridHeight:B,topGridHeight:G,dataGridHeight:H,allRowsVisible:W,totalWidth:K,leftGridWidth:V,rightGridWidth:U,verticalScrollbarWidth:T,horizontalScrollbarHeight:q}),ne=D((()=>l),[l]),oe=D((()=>s),[s]);return oi.jsx(MC,{ref:R,...ee.scrollable,onScroll:w,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:Ot.CONTAINER_GRID,children:oi.jsx(DC,{...ee.fullSize,children:oi.jsxs(OC,{...ee.sticky,style:{display:"grid",gridTemplateColumns:V?`${te.containers.scrollable.width}px ${re.containers.scrollable.width}px`:`${re.containers.scrollable.width}px`},children:[Boolean(V)&&oi.jsx(MC,{ref:L,...te.containers.scrollable,onScroll:C,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ot.LEFT_GRID,children:oi.jsx(DC,{isLeftGrid:!0,...te.containers.fullSize,children:oi.jsxs(OC,{isLeftGrid:!0,...te.containers.sticky,children:[oi.jsx(gR,{dataModel:E,columnWidths:Y,getHeaderCellsIconsVisibilityStatus:Z,rowHight:l,height:te.headerGrid.height,headersData:h,translator:a,changeSortOrder:p,changeActivelySortedHeader:f,overrideLeftGridWidth:Q,layoutService:n}),oi.jsx(eL,{dataModel:E,leftGridRef:P,...te.leftGrid,columnWidths:Y,layoutService:n,leftDimensionData:y,showLastBorder:{right:!1,bottom:W},visibleLeftDimensionInfo:c,pageInfo:i})]})})}),oi.jsx(MC,{ref:I,...re.containers.scrollable,onScroll:C,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ot.DATA_GRID,children:oi.jsx(DC,{...re.containers.fullSize,children:oi.jsxs(OC,{...re.containers.sticky,children:[oi.jsx(oL,{dataModel:E,topGridRef:k,rowHightCallback:ne,...re.topGrid,layoutService:n,topDimensionData:g,showLastBorder:{right:X,bottom:!1},getRightGridColumnWidth:J,headersData:h}),oi.jsx(Vw,{dataModel:E,dataGridRef:M,rowHightCallback:oe,...re.dataGrid,viewService:r,layoutService:n,measureData:m,leftDimensionData:y,topDimensionData:g,visibleTopDimensionInfo:d,visibleLeftDimensionInfo:c,attrExprInfoIndexes:x.measures,showLastBorder:{right:X,bottom:W},getRightGridColumnWidth:J,pageInfo:i,verticalScrollDirection:F,horizontalScrollDirection:z})]})})})]})})})},aL=e=>{const{layoutService:t,translator:r,pageInfo:n,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=kS(),{layout:u,hasData:c}=t;return oi.jsxs(oi.Fragment,{children:[c&&oi.jsx(iL,{...e}),oi.jsx(qS,{translator:r,layoutService:t}),oi.jsx(OS,{paginationNeeded:n.shouldShowPagination,handleChangePage:e=>o({page:e}),pageInfo:n,totalRowCount:n.totalRowCount,totalColumnCount:0,totalPages:n.totalPages,keyboard:a,translator:r,theme:l,interactions:s,rect:i,layout:u})]})},lL={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",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:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},sL=12,uL=14,cL=16,dL=24,pL=3,fL=300,hL=400,mL=600,gL=700,bL={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Yd(lL.GREYSCALE_0,.05),Yd(lL.GREEN_PALE,.5),Yd(lL.BLUE_PALE,.5),Yd(lL.GREEN_PALE,.5),Yd(lL.BLUE_PALE,.5),Yd(lL.GREEN_PALE,.5),Yd(lL.BLUE_PALE,.5);var vL;function yL(){return yL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yL.apply(this,arguments)}Yd(lL.GREEN_PALE,.5),Yd(lL.BLUE_PALE,.5),Yd(lL.GREEN_PALE,.5),Yd(lL.BLUE_PALE,.5);var xL,SL=function(e){return E.createElement("svg",yL({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),vL||(vL=E.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function EL(){return EL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},EL.apply(this,arguments)}var CL=function(e){return E.createElement("svg",EL({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),xL||(xL=E.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 wL({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return y.createElement("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r},t)}var RL=(e={})=>y.createElement(wL,{...e},y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},y.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),y.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"}))),LL=(e={})=>y.createElement(wL,{...e},y.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},y.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},y.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),y.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),AL=(e={})=>y.createElement(wL,{fontSize:"medium",...e},y.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},y.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},y.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),DL=(e={})=>y.createElement(wL,{fontSize:"medium",...e},y.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),y.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"}))),_L=({className:e})=>y.createElement(wL,{fontSize:"small",className:e},y.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},y.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},y.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},y.createElement("g",{transform:"translate(4.324187, 1.300372)"},y.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"}),y.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"})))))),IL=(e={})=>y.createElement(wL,{...e},y.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},y.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},y.createElement("rect",{stroke:lL.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const ML={MuiAccordion:{styleOverrides:{root:{backgroundColor:lL.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:lL.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:y.createElement(SL,{"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 ${lL.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:lL.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${lL.MISC_FOCUS_BORDER}`,borderRadius:pL,backgroundColor:lL.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 ${lL.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:lL.WHITE,color:lL.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:pL},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${lL.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:lL.GREYSCALE_0_15,backgroundColor:lL.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:lL.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${lL.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:lL.GREEN_PALE},"&:active":{backgroundColor:lL.GREEN_DARK},"&.Mui-focusVisible":{borderColor:lL.GREEN_PALE,boxShadow:`0 0 0 3px ${rc(lL.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:lL.BLUE_PALE},"&:active":{backgroundColor:lL.BLUE_DARK},"&.Mui-focusVisible":{borderColor:lL.BLUE_PALE,boxShadow:`0 0 0 3px ${rc(lL.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:pL,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:lL.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${lL.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:lL.GREYSCALE_0_15,backgroundColor:lL.GREYSCALE_100_60,"&:active":{backgroundColor:lL.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:lL.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${lL.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:lL.PURPLE,"&.Mui-focusVisible":{borderColor:lL.PURPLE,boxShadow:`0 0 0 3px ${rc(lL.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:lL.GREEN,"&.Mui-focusVisible":{borderColor:lL.GREEN,boxShadow:`0 0 0 3px ${rc(lL.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:lL.BLUE,"&.Mui-focusVisible":{borderColor:lL.BLUE,boxShadow:`0 0 0 3px ${rc(lL.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:lL.ORANGE,"&.Mui-focusVisible":{borderColor:lL.ORANGE,boxShadow:`0 0 0 3px ${rc(lL.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:lL.RED,"&.Mui-focusVisible":{borderColor:lL.RED,boxShadow:`0 0 0 3px ${rc(lL.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:lL.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:lL.PURPLE_PALE},"&:active":{backgroundColor:lL.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:lL.PURPLE_PALE,boxShadow:`0 0 0 3px ${rc(lL.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:lL.GREEN_PALE},"&:active":{backgroundColor:lL.GREEN_DARK},"&.Mui-focusVisible":{borderColor:lL.GREEN_PALE,boxShadow:`0 0 0 3px ${rc(lL.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:lL.BLUE_PALE},"&:active":{backgroundColor:lL.BLUE_DARK},"&.Mui-focusVisible":{borderColor:lL.BLUE_PALE,boxShadow:`0 0 0 3px ${rc(lL.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:lL.ORANGE_PALE},"&:active":{backgroundColor:lL.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:lL.ORANGE_PALE,boxShadow:`0 0 0 3px ${rc(lL.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:lL.RED_PALE},"&:active":{backgroundColor:lL.RED_DARK},"&.Mui-focusVisible":{borderColor:lL.RED_PALE,boxShadow:`0 0 0 3px ${rc(lL.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:lL.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:lL.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:pL,boxShadow:`inset 0 0 0 2px ${lL.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:y.createElement(CL,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:sL,borderRadius:pL,color:lL.TEXT_PRIMARY,backgroundColor:lL.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:lL.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${lL.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:lL.GREYSCALE_0_05,color:lL.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:lL.GREEN,borderColor:lL.GREEN},"&.MuiChip-outlinedInfo":{color:lL.BLUE,borderColor:lL.BLUE},"&.MuiChip-outlinedWarning":{color:lL.ORANGE,borderColor:lL.ORANGE},"&.MuiChip-outlinedError":{color:lL.RED,borderColor:lL.RED}},outlined:{border:`solid 1px ${lL.GREYSCALE_0_15}`,backgroundColor:lL.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:pL,boxShadow:"none",backgroundColor:lL.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:lL.GREEN,borderColor:lL.GREEN},outlinedSecondary:{color:lL.BLUE,borderColor:lL.BLUE},label:{fontFamily:bL.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:y.createElement(CL,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:y.createElement(SL,{"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:pL},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:pL,fontSize:uL,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:lL.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${lL.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:lL.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:lL.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:lL.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:pL,border:`solid 1px ${lL.GREYSCALE_0_15}`,color:lL.GREYSCALE_0_60,marginRight:0,width:dL,height:dL},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${lL.GREYSCALE_0_15}`},clearIndicator:{borderRadius:pL,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:lL.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:uL}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:sL,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:lL.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:lL.GREYSCALE_25,fontSize:sL,fontFamily:bL.FONT_FAMILY,fontWeight:mL,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:lL.TEXT_PRIMARY},"&.Mui-error":{color:lL.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:lL.TEXT_SECONDARY,content:"'(optional)'",fontWeight:hL,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:lL.TEXT_SECONDARY,content:"'(required)'",fontWeight:hL,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:uL,lineHeight:"16px",backgroundColor:lL.WHITE,borderRadius:pL,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${lL.GREYSCALE_0_05}`,borderColor:lL.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${lL.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${lL.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${lL.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${lL.RED}`,boxShadow:`0px 0px 0px 1px ${lL.RED}, inset 0 2px 0 0 ${lL.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${lL.GREYSCALE_0_10}`,borderColor:lL.GREYSCALE_0_10,backgroundColor:lL.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:lL.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:lL.GREYSCALE_0_15,borderRadius:pL,boxShadow:`inset 0 2px 0 0 ${lL.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>y.createElement(SL,{...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:lL.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:lL.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:lL.GREYSCALE_0_03},"&:active":{backgroundColor:lL.GREYSCALE_0_10},"&:focus":{backgroundColor:lL.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${lL.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${lL.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:lL.GREYSCALE_0_30,"&:hover":{backgroundColor:lL.GREYSCALE_0_0,borderColor:lL.GREYSCALE_0_15},"& ~svg":{color:lL.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${lL.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:pL}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:lL.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${lL.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:lL.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:uL,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:sL,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:sL,fontWeight:mL,color:lL.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:mL}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${lL.GREYSCALE_0_15}, 0px 0px 0px 1px ${lL.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:y.createElement(AL,null),checkedIcon:y.createElement(DL,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:lL.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${lL.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:lL.GREEN_PALE,boxShadow:`0 0 0 3px ${rc(lL.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:lL.BLUE_PALE,boxShadow:`0 0 0 3px ${rc(lL.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:lL.GREYSCALE_0_20}},"&.Mui-disabled":{fill:lL.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:y.createElement(IL,null),checkedIcon:y.createElement(RL,null),indeterminateIcon:y.createElement(LL,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:pL,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:lL.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:lL.GREYSCALE_0_55,color:lL.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:lL.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:lL.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:lL.GREYSCALE_0_55,"&:hover":{color:lL.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:lL.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:lL.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:uL,color:lL.TEXT_PRIMARY,lineHeight:"16px",fontWeight:mL},secondary:{fontSize:sL,color:lL.GREYSCALE_45,fontWeight:hL,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:uL,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:lL.GREYSCALE_0_03},"&:active":{backgroundColor:lL.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:uL,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:lL.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:sL,borderBottom:`solid 1px ${lL.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:uL,color:lL.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:lL.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:lL.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:lL.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:lL.RED}}},"&.Mui-focusVisible":{backgroundColor:lL.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:lL.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:lL.GREEN,height:"24px","&.Mui-disabled":{color:lL.GREYSCALE_0_15}},rail:{backgroundColor:lL.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${lL.GREYSCALE_0_05}`,borderRadius:pL,boxShadow:`inset 0px 0px 0px 1px ${lL.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${lL.GREYSCALE_0_05}`,borderRadius:pL},thumb:{height:"16px",width:"16px",borderRadius:pL,backgroundColor:lL.WHITE,boxShadow:`0px 1px 2px 0px ${lL.GREYSCALE_0_15}, 0px 0px 0px 1px ${lL.GREYSCALE_0_05}`,"&:hover":{borderRadius:pL,boxShadow:`0 2px 4px 0 ${lL.GREYSCALE_0_30}, 0 0 0 1px ${lL.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${lL.GREYSCALE_0_15}, 0 0 0 1px ${lL.GREYSCALE_0_06}, 0 0 0 2px ${lL.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${lL.GREYSCALE_0_15}, 0 0 0 1px ${lL.GREYSCALE_0_06}, 0 0 0 2px ${lL.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:lL.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:lL.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:lL.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:lL.GREYSCALE_0_15},markLabel:{color:lL.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:lL.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:lL.WHITE,color:lL.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:lL.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:lL.GREEN_PALE,boxShadow:`0 0 0 3px ${rc(lL.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:lL.BLUE_PALE,boxShadow:`0 0 0 3px ${rc(lL.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:lL.GREYSCALE_0_15,borderRadius:pL},thumb:{height:"16px",width:"16px",borderRadius:pL,backgroundColor:lL.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:uL,fontWeight:mL,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${lL.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${lL.MISC_FOCUS_BORDER}`,backgroundColor:lL.GREYSCALE_0_03,borderRadius:pL},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:lL.GREYSCALE_25,"&.Mui-selected":{color:lL.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:uL,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${lL.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${lL.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${lL.GREYSCALE_85}`,borderRight:`1px solid ${lL.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:mL,backgroundColor:lL.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:lL.GREYSCALE_98,borderBottom:`1px solid ${lL.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${lL.GREYSCALE_85}`,borderTop:`1px solid ${lL.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:lL.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:lL.GREYSCALE_0_05,"&:hover":{backgroundColor:lL.GREYSCALE_0_03}},"&&:hover":{backgroundColor:lL.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>y.createElement(_L,{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 ${lL.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:uL,borderRadius:pL,padding:"7px 16px",border:`1px solid ${lL.GREYSCALE_0_15}`,backgroundColor:lL.GREYSCALE_100_60,color:lL.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:lL.GREYSCALE_0_10,border:`1px solid ${lL.GREYSCALE_0_30}`},"&:hover":{backgroundColor:lL.GREYSCALE_0_03,border:`1px solid ${lL.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:lL.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${lL.MISC_FOCUS_BORDER}`,border:`1px solid ${lL.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:lL.GREYSCALE_25,backgroundColor:lL.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:lL.GREYSCALE_0_10,border:`1px solid ${lL.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:sL,height:24,width:24,padding:7},sizeLarge:{fontSize:cL,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:uL,borderRadius:pL}}},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:lL.GREYSCALE_20},tooltip:{backgroundColor:lL.GREYSCALE_20,fontSize:sL,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var OL=e=>ML;const PL={mode:"light",primary:{light:lL.GREEN_PALE,main:lL.GREEN,dark:lL.GREEN_DARK,contrastText:lL.WHITE},secondary:{light:lL.BLUE_PALE,main:lL.BLUE,dark:lL.BLUE_DARK,contrastText:lL.WHITE},error:{light:lL.RED_PALE,main:lL.RED,dark:lL.RED_DARK,contrastText:lL.WHITE},warning:{light:lL.ORANGE_PALE,main:lL.ORANGE,dark:lL.ORANGE_DARK,contrastText:lL.WHITE},success:{light:lL.GREEN_PALE,main:lL.GREEN,dark:lL.GREEN_DARK,contrastText:lL.WHITE},info:{light:lL.BLUE_PALE,main:lL.BLUE,dark:lL.BLUE_DARK,contrastText:lL.WHITE},text:{primary:lL.TEXT_PRIMARY,secondary:lL.TEXT_SECONDARY,disabled:lL.GREYSCALE_0_30},action:{hover:lL.GREYSCALE_0_03,hoverOpacity:.05,selected:lL.GREYSCALE_0_05,focus:lL.MISC_FOCUS_BORDER},amethyst:{main:lL.PURPLE,light:lL.PURPLE_PALE,dark:lL.PURPLE_DARK,contrastText:lL.WHITE},background:{paper:lL.WHITE,default:lL.GREYSCALE_95},divider:lL.GREYSCALE_0_15},kL=e=>PL,TL=(e="light")=>({components:OL(),palette:kL(),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:uL,fontWeightLight:fL,fontWeightRegular:hL,fontWeightMedium:mL,fontWeightBold:gL,htmlFontSize:uL,fontFamily:bL.FONT_FAMILY,button:{fontWeight:mL,fontSize:uL,textTransform:"none"},body1:{fontSize:cL,lineHeight:"24px"},body2:{fontSize:uL,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:dL,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:cL,fontWeight:mL,lineHeight:"16px"},h6:{fontSize:uL,fontWeight:mL,lineHeight:"16px"},caption:{color:lL.TEXT_SECONDARY},subtitle1:{fontSize:uL,color:lL.TEXT_SECONDARY},subtitle2:{fontSize:sL,color:lL.TEXT_SECONDARY}},shape:{borderRadius:pL}});const qL=(e,t)=>{const{selections:r,styleService:n,app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,flags:c}=t,d=function(e){var t;const r=TL();return null!=r&&null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),dd({...r,direction:e})}("ltr");e.render(oi.jsx(y.StrictMode,{children:oi.jsx(Wd,{theme:d,children:oi.jsx(TS,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,flags:c,children:oi.jsx(tR,{selections:r,updatePageInfo:t.updatePageInfo,children:oi.jsx(zS,{styleService:n,children:oi.jsx(aL,{...t})})})})})}))},NL={darker:.15,brighter:.3,opacity:.03},FL={darker:.3,brighter:.5,opacity:.05};var zL,$L,jL,GL;!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"}(zL||(zL={})),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"}($L||($L={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(jL||(jL={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(GL||(GL={}));const BL=e=>e?`${parseInt(e,10)}px`:void 0,HL=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?Xt.Transparent:r}},WL=(e,t)=>+(parseInt(e,10)*Ut*t+8).toFixed(2),VL=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?Wt:"normal",YL=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",UL=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",KL=({fontStyle:e,fontWeight:t,fontSize:r,fontFamily:n})=>t?`${e} ${t} ${r} ${n}`:`${e} ${r} ${n}`,XL=(e,t)=>r((()=>((e,t)=>{var r,n;const{qHyperCube:o,nullValueRepresentation:i,snapshotData:a}=e,{qNoOfLeftDims:l,qEffectiveInterColumnSortOrder:s,qMeasureInfo:u,qDimensionInfo:c}=o,d=!!a,p={x:Math.min(e.qHyperCube.qSize.qcx,Yt),y:Math.min(e.qHyperCube.qSize.qcy,Vt)},f=s.slice(0,l),h=e=>f.some((t=>t===e)),m=h(KS),g=new Map(s.map((e=>{var t;return[null!==(t=c[e])&&void 0!==t?t:KS,e]}))),b=u.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==i?void 0:i.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(m)return 0;const r=e%b.length;return t?r:u.findIndex((e=>e===b[r]))},getDimensionInfo:e=>e===KS?KS:c[e],getDimensionInfoIndex:e=>{var t;return null!==(t=g.get(e))&&void 0!==t?t:-1},size:p,isSnapshot:d,hasLimitedData:!d&&p.x<e.qHyperCube.qSize.qcx,hasData:p.x>0&&p.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:!(null==t||null===(r=t.qHyperCubeDef)||void 0===r||!r.qShowTotalsAbove),hasPseudoDimOnLeft:m,leftDimensionInfoIndexes:f,isLeftDimension:h,isFullyExpanded:!(null==t||null===(n=t.qHyperCubeDef)||void 0===n||!n.qAlwaysFullyExpanded),triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:b}})(e,t)),[e,t]),JL={},ZL=e=>{const t=(e=>{const t=r((()=>({current:JL})),[]);return t.current=t.current===JL?e:t.current,t})(e);return t.current=e,t},QL=({model:e,layoutService:t,viewService:r,pageInfo:n,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=ZL((e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/Et.PixelsMin)}))(o));return Ln((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,r,n)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=n||t.gridRowStartIndex+t.gridHeight>=r))(l,r,u,c)||((e,t,r,n)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(n,l.qcx)||c<Math.min(r,l.qcy)})(i,n,u,c))){const t=((e,t,r,n,o,i)=>{const a=n.page*n.rowsPerPage,l=Math.min(a+n.rowsPerPage,r.qcy),s=Math.min(Yt,r.qcx);if(r.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,r=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),r>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:c,qWidth:Math.min(s-u,i),qHeight:Math.min(l-c,o)}})(l,r,i.qHyperCube.qSize,n,u,c);return t?e.getHyperCubePivotData(US,CC(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,r,n.page,n.rowsPerPage,s,l])},eA=({rowsPerPage:e,totalRowCount:t,page:r})=>Math.min(e,t-r*e),tA=(e,t)=>{const r=Vt;return{rowsPerPage:r,totalPages:Math.ceil(e/r),totalRowCount:e,rowsOnCurrentPage:eA({rowsPerPage:r,totalRowCount:e,page:t})}};var rA={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 nA=()=>{const e=l(),t=e.language();return r((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(rA).forEach((t=>{e.add(rA[t])}))}}(e)),[e]),{translator:e,language:t}},oA=e=>{const{flags:l}=e,b=s(),v=(e=>{const t=r((()=>Ho(e)),[e]);return o((()=>()=>t.unmount()),[t]),t})(b),y=u(),x=c(),S=d(),E=p(),C=f(),w=h(),[R,L]=((e,t)=>Ln((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(x,y),A=XL(y,R),D=m(),_=((e,n,o)=>{const i=t();return r((()=>({...i,background:Rn(i,e,n,o)})),[i.name(),e,n,o])})(b),I=_.name(),{translator:M,language:O}=nA(),{pageInfo:P,updatePageInfo:k}=(e=>{const{size:t,layout:{qHyperCube:{qSize:r}}}=e,[n,a]=i({page:0,shouldShowPagination:r.qcy>t.y,...tA(r.qcy,0)});return o((()=>{a((t=>({...t,...tA(e.layout.qHyperCube.qSize.qcy,t.page),shouldShowPagination:e.layout.qHyperCube.qSize.qcy>e.size.y})))}),[e.layout.qHyperCube.qSize.qcy,e.size.y,a]),o((()=>{const{page:e,totalPages:t}=n;if(e+1>t){const e=t-1,r=eA({...n,page:e});a({...n,page:e,rowsOnCurrentPage:r})}}),[n]),{pageInfo:n,updatePageInfo:e=>a({...n,...e,rowsOnCurrentPage:eA({...n,...e})})}})(A),T=((e,t)=>r((()=>{return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(r=null==(e=t.snapshotData)||null===(n=e.content)||void 0===n?void 0:n.scrollTop)&&void 0!==r?r:0,scrollLeft:null!==(o=null==e||null===(i=e.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==e||null===(l=e.content)||void 0===l?void 0:l.leftGridScrollLeft)&&void 0!==a?a:0};var e,r,n,o,i,a,l}),[e.page,t.snapshotData]))(P,y),q=(({layoutService:e,viewService:t,rect:r,model:n})=>{var o;return a((async e=>e.snapshotData&&n&&!e.snapshotData.content?(null!=n&&n.getHyperCubePivotData&&(e.snapshotData.content={qPivotDataPages:await n.getHyperCubePivotData(US,[{qLeft:t.gridColumnStartIndex,qTop:t.gridRowStartIndex,qWidth:t.gridWidth,qHeight:t.gridHeight}]),scrollTop:t.scrollTop,scrollLeft:t.scrollLeft,leftGridScrollLeft:t.leftGridScrollLeft},e.snapshotData.object.size.w=r.width,e.snapshotData.object.size.h=r.height),e):e)),null!==(o=e.layout.snapshotData)&&void 0!==o&&o.content?{left:r.left,top:r.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:r})({rect:g(),layoutService:A,viewService:T,model:x}),[N,F]=QL({model:x,layoutService:A,viewService:T,pageInfo:P,rect:q}),z=r((()=>((e,t,r)=>{var n,o,i,a,l,s,u,c,d,p,f,h,m,g,b,v,y,x,S,E,C,w,R,L,A,D,_,I,M,O,P,k,T,q,N,F,z,$,j,G,B,H,W,V,Y,U,K;const X=null===(n=t.layout.components)||void 0===n?void 0:n.find((e=>"theme"===e.key)),J=null==X?void 0:X.header,Z=null==X?void 0:X.dimensionValues,Q=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,re=null==X?void 0:X.nullValues,ne=null==X?void 0:X.grid,oe=(t,r,n)=>e.getStyle(t,r,n),ie=+(null!==(o=null!==(i=null==ne?void 0:ne[zL.LineClamp])&&void 0!==i?i:oe($L.Grid,jL.Grid,GL.LineClamp))&&void 0!==o?o:1),ae=r.isEnabled(Lt)?+(null!==(a=null!==(l=null==ne?void 0:ne[zL.ColumnLineClamp])&&void 0!==l?l:oe($L.Grid,jL.Grid,GL.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=HL(e,null==J?void 0:J[zL.Background]))&&void 0!==u?u:oe($L.Dimension,jL.LabelName,GL.BackgroundColor))&&void 0!==s?s:Xt.Transparent,se={header:{fontSize:null!==(c=null!==(d=BL(null==J?void 0:J[zL.FontSize]))&&void 0!==d?d:oe($L.Dimension,jL.LabelName,GL.FontSize))&&void 0!==c?c:Bt,fontFamily:null!==(p=null!==(f=null==J?void 0:J[zL.FontFamily])&&void 0!==f?f:oe($L.Dimension,jL.LabelName,GL.FontFamily))&&void 0!==p?p:Ht,fontWeight:VL(null==J?void 0:J[zL.FontStyle],Wt),fontStyle:YL(null==J?void 0:J[zL.FontStyle]),textDecoration:UL(null==J?void 0:J[zL.FontStyle]),color:null!==(h=null!==(m=HL(e,null==J?void 0:J[zL.FontColor]))&&void 0!==m?m:oe($L.Dimension,jL.LabelName,GL.Color))&&void 0!==h?h:Ny.TEXT,background:le,hoverBackground:Fy(le,NL),activeBackground:Fy(le,FL)},dimensionValues:{fontSize:null!==(g=null!==(b=BL(null==Z?void 0:Z[zL.FontSize]))&&void 0!==b?b:oe($L.Dimension,jL.LabelValue,GL.FontSize))&&void 0!==g?g:Bt,fontFamily:null!==(v=null!==(y=null==Z?void 0:Z[zL.FontFamily])&&void 0!==y?y:oe($L.Dimension,jL.LabelValue,GL.FontFamily))&&void 0!==v?v:Ht,fontWeight:VL(null==Z?void 0:Z[zL.FontStyle],void 0),fontStyle:YL(null==Z?void 0:Z[zL.FontStyle]),textDecoration:UL(null==Z?void 0:Z[zL.FontStyle]),color:null!==(x=null!==(S=HL(e,null==Z?void 0:Z[zL.FontColor]))&&void 0!==S?S:oe($L.Dimension,jL.LabelValue,GL.Color))&&void 0!==x?x:Ny.TEXT,background:null!==(E=null!==(C=HL(e,null==Z?void 0:Z[zL.Background]))&&void 0!==C?C:oe($L.Dimension,jL.LabelValue,GL.BackgroundColor))&&void 0!==E?E:Xt.Transparent},measureValues:{fontSize:null!==(w=null!==(R=BL(null==Q?void 0:Q[zL.FontSize]))&&void 0!==R?R:oe($L.Measure,jL.LabelValue,GL.FontSize))&&void 0!==w?w:Bt,fontFamily:null!==(L=null!==(A=null==Q?void 0:Q[zL.FontFamily])&&void 0!==A?A:oe($L.Measure,jL.LabelValue,GL.FontFamily))&&void 0!==L?L:Ht,fontWeight:VL(null==Q?void 0:Q[zL.FontStyle],"normal"),fontStyle:YL(null==Q?void 0:Q[zL.FontStyle]),textDecoration:UL(null==Q?void 0:Q[zL.FontStyle]),color:null!==(D=null!==(_=HL(e,null==Q?void 0:Q[zL.FontColor]))&&void 0!==_?_:oe($L.Measure,jL.LabelValue,GL.Color))&&void 0!==D?D:Xt.FontSecondary,background:null!==(I=null!==(M=HL(e,null==Q?void 0:Q[zL.Background]))&&void 0!==M?M:oe($L.Measure,jL.LabelValue,GL.BackgroundColor))&&void 0!==I?I:Xt.Transparent},measureLabels:{fontWeight:VL(null==ee?void 0:ee[zL.FontStyle],"normal"),fontStyle:YL(null==ee?void 0:ee[zL.FontStyle]),textDecoration:UL(null==ee?void 0:ee[zL.FontStyle]),color:null!==(O=null!==(P=HL(e,null==ee?void 0:ee[zL.FontColor]))&&void 0!==P?P:oe($L.Measure,jL.LabelName,GL.Color))&&void 0!==O?O:Xt.FontSecondary,background:null!==(k=null!==(T=HL(e,null==ee?void 0:ee[zL.Background]))&&void 0!==T?T:oe($L.Measure,jL.LabelName,GL.BackgroundColor))&&void 0!==k?k:Xt.Transparent},totalValues:{fontWeight:VL(null==te?void 0:te[zL.FontStyle],Wt),fontStyle:YL(null==te?void 0:te[zL.FontStyle]),textDecoration:UL(null==te?void 0:te[zL.FontStyle]),color:null!==(q=null!==(N=HL(e,null==te?void 0:te[zL.FontColor]))&&void 0!==N?N:oe($L.Total,jL.LabelValue,GL.Color))&&void 0!==q?q:Ny.TEXT,background:null!==(F=null!==(z=HL(e,null==te?void 0:te[zL.Background]))&&void 0!==z?z:oe($L.Total,jL.LabelValue,GL.BackgroundColor))&&void 0!==F?F:Xt.Transparent},nullValues:{fontWeight:VL(null==re?void 0:re[zL.FontStyle],"normal"),fontStyle:YL(null==re?void 0:re[zL.FontStyle]),textDecoration:UL(null==re?void 0:re[zL.FontStyle]),color:null!==($=null!==(j=HL(e,null==re?void 0:re[zL.FontColor]))&&void 0!==j?j:oe($L.Null,jL.LabelValue,GL.Color))&&void 0!==$?$:Ny.TEXT,background:null!==(G=null!==(B=HL(e,null==re?void 0:re[zL.Background]))&&void 0!==B?B:oe($L.Null,jL.LabelValue,GL.BackgroundColor))&&void 0!==G?G:Xt.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(H=null!==(W=HL(e,null==ne?void 0:ne[zL.Border]))&&void 0!==W?W:oe($L.Grid,jL.Grid,GL.BorderColor))&&void 0!==H?H:Xt.DividerLight,divider:null!==(V=null!==(Y=HL(e,null==ne?void 0:ne[zL.Divider]))&&void 0!==Y?Y:oe($L.Grid,jL.Divider,GL.BorderColor))&&void 0!==V?V:Xt.DividerDark,background:null!==(U=null!==(K=HL(e,null==ne?void 0:ne[zL.Background]))&&void 0!==K?K:oe($L.Grid,jL.Grid,GL.BackgroundColor))&&void 0!==U?U:Xt.Transparent}};return se.headerCellHeight=Math.max(WL(se.header.fontSize,ae),WL(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(WL(se.measureValues.fontSize,ie),WL(se.dimensionValues.fontSize,ie),24),se.contentRowHeight=Math.max(WL(se.measureValues.fontSize,1),WL(se.dimensionValues.fontSize,1)),se.contentTextHeight=se.contentRowHeight-8,se})(_,A,l)),[_.name(),A,l]),$=(e=>r((()=>[...new Set([KL(e.header),KL(e.dimensionValues),KL({...e.dimensionValues,...e.measureLabels}),KL({...e.dimensionValues,...e.nullValues}),KL({...e.dimensionValues,...e.totalValues}),KL(e.measureValues),KL({...e.measureValues,...e.nullValues}),KL({...e.measureValues,...e.totalValues})])]),[e]))(z),j=(e=>{const[t,r]=n((()=>Promise.all(e.map((e=>document.fonts.load(e))))),[e]);return r?(console.warn("Failed to load font:",r),!0):!!t})($);o((()=>{!F&&x&&(null==q?void 0:q.width)&&(null==q?void 0:q.height)&&D&&T&&A&&z&&!!N&&!L&&j&&qL(v,{model:x,app:S,rect:q,selections:D,viewService:T,layoutService:A,qPivotDataPages:N,styleService:z,translator:M,pageInfo:P,updatePageInfo:k,interactions:w,embed:E,keyboard:C,theme:_,flags:l})}),[x,S,q,null==q?void 0:q.width,null==q?void 0:q.height,w,D,T,A,F,N,z,v,j,M,O,P,k,R,L,E,C,_,I,l])},iA={version:"3.1.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:[]}}}}));
|
|
100
|
+
`),Ym.rippleVisible,eg,550,(({theme:e})=>e.transitions.easing.easeInOut),Ym.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Ym.child,Ym.childLeaving,tg,550,(({theme:e})=>e.transitions.easing.easeInOut),Ym.childPulsate,rg,(({theme:e})=>e.transitions.easing.easeInOut));var ig=w.forwardRef((function(e,t){const r=um({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=qp(r,Um),[l,s]=w.useState([]),u=w.useRef(0),c=w.useRef(null);w.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=w.useRef(!1),p=w.useRef(0),f=w.useRef(null),h=w.useRef(null);w.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const m=w.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;s((e=>[...e,li.jsx(og,{classes:{ripple:Au(o.ripple,Ym.ripple),rippleVisible:Au(o.rippleVisible,Ym.rippleVisible),ripplePulsate:Au(o.ripplePulsate,Ym.ripplePulsate),child:Au(o.child,Ym.child),childLeaving:Au(o.childLeaving,Ym.childLeaving),childPulsate:Au(o.childPulsate,Ym.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=w.useCallback(((e={},t={},r=(()=>{}))=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null: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:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,m]),b=w.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=w.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 w.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),li.jsx(ng,Tp({className:Au(Ym.root,o.root,i),ref:h},a,{children:li.jsx(Tm,{component:null,exit:!0,children:l})}))}));function ag(e){return zh("MuiButtonBase",e)}var lg=$h("MuiButtonBase",["root","disabled","focusVisible"]);const sg=["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"],ug=fm("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"},[`&.${lg.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),cg=w.forwardRef((function(e,t){const r=um({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:C,onTouchEnd:R,onTouchMove:L,onTouchStart:A,tabIndex:I=0,TouchRippleProps:D,touchRippleRef:_,type:M}=r,P=qp(r,sg),O=w.useRef(null),k=w.useRef(null),T=wh(k,_),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=kh(),[$,j]=w.useState(!1);s&&$&&j(!1),w.useImperativeHandle(n,(()=>({focusVisible:()=>{j(!0),O.current.focus()}})),[]);const[G,H]=w.useState(!1);w.useEffect((()=>{H(!0)}),[]);const B=G&&!u&&!s;function W(e,t,r=c){return Ch((n=>{t&&t(n);return!r&&k.current&&k.current[e](n),!0}))}w.useEffect((()=>{$&&d&&!u&&G&&k.current.pulsate()}),[u,d,$,G]);const V=W("start",S),Y=W("stop",m),U=W("stop",g),K=W("stop",C),X=W("stop",(e=>{$&&e.preventDefault(),E&&E(e)})),J=W("start",A),Z=W("stop",R),Q=W("stop",L),ee=W("stop",(e=>{F(e),!1===q.current&&j(!1),f&&f(e)}),!1),te=Ch((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&(j(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=w.useRef(!1),oe=Ch((e=>{d&&!ne.current&&$&&k.current&&" "===e.key&&(ne.current=!0,k.current.stop(e,(()=>{k.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=Ch((e=>{d&&" "===e.key&&k.current&&$&&!e.defaultPrevented&&(ne.current=!1,k.current.stop(e,(()=>{k.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(P.href||P.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===M?"button":M,le.disabled=s):(P.href||P.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=wh(t,z,O),ue=Tp({},r,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:$}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=pc({root:["root",t&&"disabled",r&&"focusVisible"]},ag,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return li.jsxs(ug,Tp({as:ae,className:Au(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:M},le,P,{children:[i,B?li.jsx(ig,Tp({ref:T,center:o},D)):null]}))}));var dg=cg;function pg(e){return zh("MuiTypography",e)}$h("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const fg=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],hg=fm("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${mh(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Tp({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}))),mg={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},gg={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},bg=w.forwardRef((function(e,t){const r=um({props:e,name:"MuiTypography"}),n=(e=>gg[e]||e)(r.color),o=Kf(Tp({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=mg}=o,f=qp(o,fg),h=Tp({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=l||(c?"p":p[d]||mg[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return pc({root:["root",i,"inherit"!==e.align&&`align${mh(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},pg,a)})(h);return li.jsx(hg,Tp({as:m,ref:t,ownerState:h,className:Au(g.root,a)},f))}));var vg=bg;const yg=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function xg(e){const t=[],r=[];return Array.from(e.querySelectorAll(yg)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Sg(){return!0}function Eg(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=xg,isEnabled:a=Sg,open:l}=e,s=w.useRef(!1),u=w.useRef(null),c=w.useRef(null),d=w.useRef(null),p=w.useRef(null),f=w.useRef(!1),h=w.useRef(null),m=dc(t.ref,h),g=w.useRef(null);w.useEffect((()=>{l&&h.current&&(f.current=!r)}),[r,l]),w.useEffect((()=>{if(!l||!h.current)return;const e=lc(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]),w.useEffect((()=>{if(!l||!h.current)return;const e=lc(h.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},r=()=>{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(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(h.current)),r.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return li.jsxs(w.Fragment,{children:[li.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),w.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),li.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const Cg=w.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=w.useState(null),l=dc(w.isValidElement(r)?r.ref:null,t);if(tc((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),tc((()=>{if(i&&!o)return uc(t,i),()=>{uc(t,null)}}),[t,i,o]),o){if(w.isValidElement(r)){const e={ref:l};return w.cloneElement(r,e)}return li.jsx(w.Fragment,{children:r})}return li.jsx(w.Fragment,{children:i?N.createPortal(r,i):i})}));function wg(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Rg(e){return parseInt(sc(e).getComputedStyle(e).paddingRight,10)||0}function Lg(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&wg(e,o)}))}function Ag(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function Ig(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=lc(e);return t.body===e?sc(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(lc(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Rg(n)+e}px`;const t=lc(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Rg(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=lc(n).body;else{const t=n.parentElement,r=sc(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const Dg=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&wg(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Lg(t,e.mount,e.modalRef,n,!0);const o=Ag(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=Ag(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=Ig(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Ag(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&wg(e.modalRef,t),Lg(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&wg(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function _g(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Dg,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=w.useRef({}),f=w.useRef(null),h=w.useRef(null),m=dc(h,d),[g,b]=w.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},E=cc((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||lc(f.current).body;o.add(x(),e),h.current&&S()})),C=w.useCallback((()=>o.isTopModal(x())),[o]),R=cc((e=>{f.current=e,e&&(c&&C()?S():h.current&&wg(h.current,y))})),L=w.useCallback((()=>{o.remove(x(),y)}),[y,o]);w.useEffect((()=>()=>{L()}),[L]),w.useEffect((()=>{c?E():v&&i||L()}),[c,L,v,i,E]);const A=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Hm(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=di({},r,t);return di({role:"presentation"},n,{onKeyDown:A(n),ref:m})},getBackdropProps:(e={})=>di({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:ac((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:ac((()=>{b(!0),l&&l(),i&&L()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:R,isTopModal:C,exited:g,hasTransition:v}}const Mg=["onChange","maxRows","minRows","style","value"];function Pg(e){return parseInt(e,10)||0}const Og={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function kg(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Tg=w.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,l=pi(e,Mg),{current:s}=w.useRef(null!=a),u=w.useRef(null),c=dc(t,u),d=w.useRef(null),p=w.useRef(0),[f,h]=w.useState({outerHeightStyle:0}),m=w.useCallback((()=>{const t=u.current,r=sc(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};const i=d.current;i.style.width=r.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=r.boxSizing,l=Pg(r.paddingBottom)+Pg(r.paddingTop),s=Pg(r.borderBottomWidth)+Pg(r.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),n&&(f=Math.min(Number(n)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[n,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:r,overflow:n}=t;return p.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(p.current+=1,{overflow:n,outerHeightStyle:r}):e},b=w.useCallback((()=>{const e=m();kg(e)||h((t=>g(t,e)))}),[m]);tc((()=>{const e=()=>{p.current=0,(()=>{const e=m();kg(e)||N.flushSync((()=>{h((t=>g(t,e)))}))})()};const t=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}(e),r=u.current,n=sc(r);let o;return n.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(r)),()=>{t.clear(),cancelAnimationFrame(undefined),n.removeEventListener("resize",t),o&&o.disconnect()}}),[m]),tc((()=>{b()})),w.useEffect((()=>{p.current=0}),[a]);return li.jsxs(w.Fragment,{children:[li.jsx("textarea",di({value:a,onChange:e=>{p.current=0,s||b(),r&&r(e)},ref:c,rows:o,style:di({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),li.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:di({},Og,i,{paddingTop:0,paddingBottom:0})})]})}));function qg({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}var Ng=w.createContext(void 0);function Fg(){return w.useContext(Ng)}function zg(e){return li.jsx(Vf,Tp({},e,{defaultTheme:lm,themeId:kp}))}function $g(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function jg(e,t=!1){return e&&($g(e.value)&&""!==e.value||t&&$g(e.defaultValue)&&""!==e.defaultValue)}function Gg(e){return zh("MuiInputBase",e)}var Hg=$h("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const Bg=["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"],Wg=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${mh(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Vg=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Yg=fm("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Wg})((({theme:e,ownerState:t})=>Tp({},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",[`&.${Hg.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Tp({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Ug=fm("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Vg})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=Tp({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return Tp({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Hg.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},[`&.${Hg.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"})})),Kg=li.jsx(zg,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Xg=w.forwardRef((function(e,t){var r;const n=um({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:y,minRows:x,multiline:S=!1,name:E,onBlur:C,onChange:R,onClick:L,onFocus:A,onKeyDown:I,onKeyUp:D,placeholder:_,readOnly:M,renderSuffix:P,rows:O,slotProps:k={},slots:T={},startAdornment:q,type:N="text",value:F}=n,z=qp(n,Bg),$=null!=b.value?b.value:F,{current:j}=w.useRef(null!=$),G=w.useRef(),H=w.useCallback((e=>{}),[]),B=wh(G,v,b.ref,H),[W,V]=w.useState(!1),Y=Fg(),U=qg({props:n,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=Y?Y.focused:W,w.useEffect((()=>{!Y&&d&&W&&(V(!1),C&&C())}),[Y,d,W,C]);const K=Y&&Y.onFilled,X=Y&&Y.onEmpty,J=w.useCallback((e=>{jg(e)?K&&K():X&&X()}),[K,X]);vh((()=>{j&&J({value:$})}),[$,J,j]);w.useEffect((()=>{J(G.current)}),[]);let Z=g,Q=b;S&&"input"===Z&&(Q=Tp(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:y,minRows:x},Q),Z=Tg);w.useEffect((()=>{Y&&Y.setAdornedStart(Boolean(q))}),[Y,q]);const ee=Tp({},n,{color:U.color||"primary",disabled:U.disabled,endAdornment:f,error:U.error,focused:U.focused,formControl:Y,fullWidth:h,hiddenLabel:U.hiddenLabel,multiline:S,size:U.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return pc({root:["root",`color${mh(r)}`,n&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${mh(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Gg,t)})(ee),re=T.root||s.Root||Yg,ne=k.root||u.root||{},oe=T.input||s.Input||Ug;return Q=Tp({},Q,null!=(r=k.input)?r:u.input),li.jsxs(w.Fragment,{children:[!p&&Kg,li.jsxs(re,Tp({},ne,!Gm(re)&&{ownerState:Tp({},ee,ne.ownerState)},{ref:t,onClick:e=>{G.current&&e.currentTarget===e.target&&G.current.focus(),L&&L(e)}},z,{className:Au(te.root,ne.className,l,M&&"MuiInputBase-readOnly"),children:[q,li.jsx(Ng.Provider,{value:null,children:li.jsx(oe,Tp({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:E,placeholder:_,readOnly:M,required:U.required,rows:O,value:$,onKeyDown:I,onKeyUp:D,type:N},Q,!Gm(oe)&&{as:Z,ownerState:Tp({},ee,Q.ownerState)},{ref:B,className:Au(te.input,Q.className,M&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),b.onBlur&&b.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||G.current;if(null==t)throw new Error(Op(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,P?P(Tp({},U,{startAdornment:q})):null]}))]})}));var Jg=Xg;function Zg(e){return zh("MuiInput",e)}var Qg=Tp({},Hg,$h("MuiInput",["root","underline","input"]));function eb(e){return zh("MuiOutlinedInput",e)}var tb=Tp({},Hg,$h("MuiOutlinedInput",["root","notchedOutline","input"]));function rb(e){return zh("MuiFilledInput",e)}var nb=Tp({},Hg,$h("MuiFilledInput",["root","underline","input"])),ob=function(e,t){function r(r,n){return li.jsx(ym,Tp({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=ym.muiName,w.memo(w.forwardRef(r))}(li.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const ib=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ab={entering:{opacity:1},entered:{opacity:1}},lb=w.forwardRef((function(e,t){const r=sm(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=n,TransitionComponent:b=Dm}=e,v=qp(e,ib),y=w.useRef(null),x=wh(y,a.ref,t),S=e=>t=>{if(e){const r=y.current;void 0===t?e(r):e(r,t)}},E=S(d),C=S(((e,t)=>{qm(e);const n=Nm({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),R=S(c),L=S(h),A=S((e=>{const t=Nm({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),I=S(f);return li.jsx(b,Tp({appear:i,in:s,nodeRef:y,onEnter:C,onEntered:R,onEntering:E,onExit:A,onExited:I,onExiting:L,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>w.cloneElement(a,Tp({style:Tp({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},ab[e],m,a.props.style),ref:x},t))}))}));var sb=lb;function ub(e){return zh("MuiBackdrop",e)}$h("MuiBackdrop",["root","invisible"]);const cb=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],db=fm("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>Tp({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"}))),pb=w.forwardRef((function(e,t){var r,n,o;const i=um({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=sb,transitionDuration:g}=i,b=qp(i,cb),v=Tp({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return pc({root:["root",r&&"invisible"]},ub,t)})(v),x=null!=(r=f.root)?r:c.root;return li.jsx(m,Tp({in:p,timeout:g},b,{children:li.jsx(db,Tp({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:s,className:Au(y.root,l,null==x?void 0:x.className),ownerState:Tp({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var fb=pb;var hb=$h("MuiBox",["root"]);const mb=am(),gb=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=zp("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(zf);return w.forwardRef((function(e,a){const l=Wf(r),s=Kf(e),{className:u,component:c="div"}=s,d=pi(s,Xf);return li.jsx(i,di({as:c,ref:a,className:Au(u,o?o(n):n),theme:t&&l[t]||l},d))}))}({themeId:kp,defaultTheme:mb,defaultClassName:hb.root,generateClassName:Nh.generate});var bb=gb;function vb(e){return zh("MuiButton",e)}var yb=$h("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 xb=w.createContext({});var Sb=w.createContext(void 0);const Eb=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Cb=e=>Tp({},"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}}),wb=fm(dg,{shouldForwardProp:e=>cm(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${mh(r.color)}`],t[`size${mh(r.size)}`],t[`${r.variant}Size${mh(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Tp({},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":Tp({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:dh(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})`:dh(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})`:dh(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":Tp({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${yb.focusVisible}`]:Tp({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${yb.disabled}`]:Tp({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 ${dh(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${yb.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${yb.disabled}`]:{boxShadow:"none"}})),Rb=fm("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${mh(r.size)}`]]}})((({ownerState:e})=>Tp({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Cb(e)))),Lb=fm("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${mh(r.size)}`]]}})((({ownerState:e})=>Tp({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Cb(e)))),Ab=w.forwardRef((function(e,t){const r=w.useContext(xb),n=w.useContext(Sb),o=um({props:Th(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,y=qp(o,Eb),x=Tp({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),S=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return Tp({},a,pc({root:["root",i,`${i}${mh(t)}`,`size${mh(o)}`,`${i}Size${mh(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${mh(o)}`],endIcon:["endIcon",`iconSize${mh(o)}`]},vb,a))})(x),E=g&&li.jsx(Rb,{className:S.startIcon,ownerState:x,children:g}),C=p&&li.jsx(Lb,{className:S.endIcon,ownerState:x,children:p}),R=n||"";return li.jsxs(wb,Tp({ownerState:x,className:Au(r.className,S.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:Au(S.focusVisible,f),ref:t,type:b},y,{classes:S,children:[E,i,C]}))}));var Ib=Ab;function Db(e){return zh("MuiModal",e)}$h("MuiModal",["root","hidden","backdrop"]);const _b=["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"],Mb=fm("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Tp({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Pb=fm(fb,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Ob=w.forwardRef((function(e,t){var r,n,o,i,a,l;const s=um({name:"MuiModal",props:e}),{BackdropComponent:u=Pb,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:A,open:I,slotProps:D,slots:_}=s,M=qp(s,_b),P=Tp({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:R,keepMounted:L}),{getRootProps:O,getBackdropProps:k,getTransitionProps:T,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=_g(Tp({},P,{rootRef:t})),$=Tp({},P,{exited:F}),j=(e=>{const{open:t,exited:r,classes:n}=e;return pc({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Db,n)})($),G={};if(void 0===f.props.tabIndex&&(G.tabIndex="-1"),z){const{onEnter:e,onExited:t}=T();G.onEnter=e,G.onExited=t}const H=null!=(r=null!=(n=null==_?void 0:_.root)?n:g.Root)?r:Mb,B=null!=(o=null!=(i=null==_?void 0:_.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==D?void 0:D.root)?a:b.root,V=null!=(l=null==D?void 0:D.backdrop)?l:b.backdrop,Y=Vm({elementType:H,externalSlotProps:W,externalForwardedProps:M,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:$,className:Au(d,null==W?void 0:W.className,null==j?void 0:j.root,!$.open&&$.exited&&(null==j?void 0:j.hidden))}),U=Vm({elementType:B,externalSlotProps:V,additionalProps:c,getSlotProps:e=>k(Tp({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Au(null==V?void 0:V.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:$});return L||I||z&&!F?li.jsx(Cg,{ref:q,container:h,disablePortal:S,children:li.jsxs(H,Tp({},Y,{children:[!R&&u?li.jsx(B,Tp({},U)):null,li.jsx(Eg,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:E,isEnabled:N,open:I,children:w.cloneElement(f,G)})]}))}):null}));var kb=Ob;function Tb(e){return zh("MuiDivider",e)}var qb=$h("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Nb=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Fb=fm("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Tp({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)`:dh(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})=>Tp({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Tp({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Tp({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Tp({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),zb=fm("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Tp({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)`}))),$b=w.forwardRef((function(e,t){const r=um({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=qp(r,Nb),h=Tp({},r,{absolute:n,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return pc({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Tb,n)})(h);return li.jsx(Fb,Tp({as:a,className:Au(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?li.jsx(zb,{className:m.wrapper,ownerState:h,children:o}):null}))}));$b.muiSkipListHighlight=!0;var jb=$b;const Gb=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Hb=fm(Yg,{shouldForwardProp:e=>cm(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Wg(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Tp({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}},[`&.${nb.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${nb.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${nb.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${nb.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(.${nb.disabled}, .${nb.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${nb.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Tp({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}))})),Bb=fm(Ug,{name:"MuiFilledInput",slot:"Input",overridesResolver:Vg})((({theme:e,ownerState:t})=>Tp({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}))),Wb=w.forwardRef((function(e,t){var r,n,o,i;const a=um({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=qp(a,Gb),g=Tp({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:r}=e;return Tp({},t,pc({root:["root",!r&&"underline"],input:["input"]},rb,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?hh(v,null!=p?p:s):v,x=null!=(r=null!=(n=f.root)?n:l.Root)?r:Hb,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:Bb;return li.jsx(Jg,Tp({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))}));Wb.muiName="Input";var Vb=Wb;const Yb=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ub(e){return`scale(${e}, ${e**2})`}const Kb={entering:{opacity:1,transform:Ub(1)},entered:{opacity:1,transform:"none"}},Xb="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Jb=w.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Dm}=e,g=qp(e,Yb),b=w.useRef(),v=w.useRef(),y=sm(),x=w.useRef(null),S=wh(x,o.ref,t),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=E(u),R=E(((e,t)=>{qm(e);const{duration:r,delay:n,easing:o}=Nm({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:n}),y.transitions.create("transform",{duration:Xb?a:.666*a,delay:n,easing:o})].join(","),l&&l(e,t)})),L=E(s),A=E(p),I=E((e=>{const{duration:t,delay:r,easing:n}=Nm({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:r}),y.transitions.create("transform",{duration:Xb?o:.666*o,delay:Xb?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Ub(.75),c&&c(e)})),D=E(d);return w.useEffect((()=>()=>{clearTimeout(b.current)}),[]),li.jsx(m,Tp({appear:n,in:a,nodeRef:x,onEnter:R,onEntered:L,onEntering:C,onExit:I,onExited:D,onExiting:A,addEndListener:e=>{"auto"===h&&(b.current=setTimeout(e,v.current||0)),r&&r(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>w.cloneElement(o,Tp({style:Tp({opacity:0,transform:Ub(.75),visibility:"exited"!==e||a?void 0:"hidden"},Kb[e],f,o.props.style),ref:S},t))}))}));Jb.muiSupportAuto=!0;var Zb=Jb;const Qb=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],ev=fm(Yg,{shouldForwardProp:e=>cm(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Wg(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Tp({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"},[`&.${Qg.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qg.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Qg.disabled}, .${Qg.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Qg.disabled}:before`]:{borderBottomStyle:"dotted"}})})),tv=fm(Ug,{name:"MuiInput",slot:"Input",overridesResolver:Vg})({}),rv=w.forwardRef((function(e,t){var r,n,o,i;const a=um({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=qp(a,Qb),b=(e=>{const{classes:t,disableUnderline:r}=e;return Tp({},t,pc({root:["root",!r&&"underline"],input:["input"]},Zg,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?hh(null!=f?f:u,v):v,x=null!=(r=null!=(n=h.root)?n:s.Root)?r:ev,S=null!=(o=null!=(i=h.input)?i:s.Input)?o:tv;return li.jsx(Jg,Tp({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));rv.muiName="Input";var nv=rv;function ov(e){return zh("MuiLink",e)}var iv=$h("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const av={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var lv=({theme:e,ownerState:t})=>{const r=(e=>av[e]||e)(t.color),n=Yp(e,`palette.${r}`,!1)||t.color,o=Yp(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:dh(n,.4)};const sv=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],uv=fm(vg,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${mh(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>Tp({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Tp({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:lv({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"},[`&.${iv.focusVisible}`]:{outline:"auto"}}))),cv=w.forwardRef((function(e,t){const r=um({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=r,p=qp(r,sv),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=kh(),[b,v]=w.useState(!1),y=wh(t,g),x=Tp({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),S=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return pc({root:["root",`underline${mh(o)}`,"button"===r&&"button",n&&"focusVisible"]},ov,t)})(x);return li.jsx(uv,Tp({color:o,className:Au(S.root,n),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:y,ownerState:x,variant:c,sx:[...Object.keys(av).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var dv=cv;var pv=w.createContext({});function fv(e){return zh("MuiList",e)}$h("MuiList",["root","padding","dense","subheader"]);const hv=["children","className","component","dense","disablePadding","subheader"],mv=fm("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>Tp({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var gv=w.forwardRef((function(e,t){const r=um({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=r,u=qp(r,hv),c=w.useMemo((()=>({dense:a})),[a]),d=Tp({},r,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return pc({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},fv,t)})(d);return li.jsx(pv.Provider,{value:c,children:li.jsxs(mv,Tp({as:i,className:Au(p.root,o),ref:t,ownerState:d},u,{children:[s,n]}))})}));function bv(e){return zh("MuiListItemIcon",e)}var vv=$h("MuiListItemIcon",["root","alignItemsFlexStart"]);const yv=["className"],xv=fm("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Tp({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var Sv=w.forwardRef((function(e,t){const r=um({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=qp(r,yv),i=Tp({},r,{alignItems:w.useContext(pv).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return pc({root:["root","flex-start"===t&&"alignItemsFlexStart"]},bv,r)})(i);return li.jsx(xv,Tp({className:Au(a.root,n),ownerState:i,ref:t},o))}));var Ev=$h("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const Cv=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function wv(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Rv(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Lv(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Av(e,t,r,n,o,i){let a=!1,l=o(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Lv(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}var Iv=w.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=qp(e,Cv),p=w.useRef(null),f=w.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});vh((()=>{n&&p.current.focus()}),[n]),w.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(gh(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const h=wh(p,t);let m=-1;w.Children.forEach(i,((e,t)=>{w.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=w.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),w.cloneElement(e,t)}return e}));return li.jsx(gv,Tp({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=gh(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Av(t,n,s,l,wv);else if("ArrowUp"===r)e.preventDefault(),Av(t,n,s,l,Rv);else if("Home"===r)e.preventDefault(),Av(t,null,s,l,wv);else if("End"===r)e.preventDefault(),Av(t,null,s,l,Rv);else if(1===r.length){const o=f.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=n&&!o.repeating&&Lv(n,o);o.previousKeyMatched&&(s||Av(t,n,!1,l,wv,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function Dv(e){return zh("MuiPopover",e)}$h("MuiPopover",["root","paper"]);const _v=["onEntering"],Mv=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Pv=["slotProps"];function Ov(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function kv(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Tv(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function qv(e){return"function"==typeof e?e():e}const Nv=fm(kb,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Fv=fm(jm,{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 zv=w.forwardRef((function(e,t){var r,n,o;const i=um({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:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=Zb,transitionDuration:E="auto",TransitionProps:{onEntering:C}={},disableScrollLock:R=!1}=i,L=qp(i.TransitionProps,_v),A=qp(i,Mv),I=null!=(r=null==y?void 0:y.paper)?r:b,D=w.useRef(),_=wh(D,I.ref),M=Tp({},i,{anchorOrigin:s,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:I,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:L}),P=(e=>{const{classes:t}=e;return pc({root:["root"],paper:["paper"]},Dv,t)})(M),O=w.useCallback((()=>{if("anchorPosition"===c)return u;const e=qv(l),t=(e&&1===e.nodeType?e:gh(D.current).body).getBoundingClientRect();return{top:t.top+Ov(t,s.vertical),left:t.left+kv(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),k=w.useCallback((e=>({vertical:Ov(e,x.vertical),horizontal:kv(e,x.horizontal)})),[x.horizontal,x.vertical]),T=w.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=k(t);if("none"===c)return{top:null,left:null,transformOrigin:Tv(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,u=bh(qv(l)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,r.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,r.horizontal+=e}else if(s>p){const e=s-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Tv(r)}}),[l,c,O,k,m]),[q,N]=w.useState(g),F=w.useCallback((()=>{const e=D.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);w.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);w.useEffect((()=>{g&&F()})),w.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),w.useEffect((()=>{if(!g)return;const e=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}((()=>{F()})),t=bh(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let z=E;"auto"!==E||S.muiSupportAuto||(z=void 0);const $=f||(l?gh(qv(l)).body:void 0),j=null!=(n=null==v?void 0:v.root)?n:Nv,G=null!=(o=null==v?void 0:v.paper)?o:Fv,H=Vm({elementType:G,externalSlotProps:Tp({},I,{style:q?I.style:Tp({},I.style,{opacity:0})}),additionalProps:{elevation:h,ref:_},ownerState:M,className:Au(P.paper,null==I?void 0:I.className)}),B=Vm({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:$,open:g},ownerState:M,className:Au(P.root,p)}),{slotProps:W}=B,V=qp(B,Pv);return li.jsx(j,Tp({},V,!Gm(j)&&{slotProps:W,disableScrollLock:R},{children:li.jsx(S,Tp({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),F()},onExited:()=>{N(!1)},timeout:z},L,{children:li.jsx(G,Tp({},H,{children:d}))}))}))}));function $v(e){return zh("MuiMenu",e)}$h("MuiMenu",["root","paper","list"]);const jv=["onEntering"],Gv=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Hv={vertical:"top",horizontal:"right"},Bv={vertical:"top",horizontal:"left"},Wv=fm(zv,{shouldForwardProp:e=>cm(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Vv=fm(Fv,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Yv=fm(Iv,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var Uv=w.forwardRef((function(e,t){var r,n;const o=um({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,y=qp(o.TransitionProps,jv),x=qp(o,Gv),S=sm(),E="rtl"===S.direction,C=Tp({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),R=(e=>{const{classes:t}=e;return pc({root:["root"],paper:["paper"],list:["list"]},$v,t)})(C),L=i&&!s&&d,A=w.useRef(null);let I=-1;w.Children.map(a,((e,t)=>{w.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===I)&&(I=t))}));const D=null!=(r=b.paper)?r:Vv,_=null!=(n=v.paper)?n:p,M=Vm({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[R.root,l]}),P=Vm({elementType:D,externalSlotProps:_,ownerState:C,className:R.paper});return li.jsx(Wv,Tp({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?Hv:Bv,slots:{paper:D,root:b.root},slotProps:{root:M,paper:P},open:d,ref:t,transitionDuration:h,TransitionProps:Tp({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,S),m&&m(e,t)}},y),ownerState:C},x,{classes:f,children:li.jsx(Yv,Tp({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===I||s),autoFocusItem:L,variant:g},u,{className:Au(R.list,u.className),children:a}))}))}));function Kv(e){return zh("MuiMenuItem",e)}var Xv=$h("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const Jv=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Zv=fm(dg,{shouldForwardProp:e=>cm(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Tp({},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"}},[`&.${Xv.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:dh(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Xv.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:dh(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Xv.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:dh(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})`:dh(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Xv.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Xv.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${qb.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${qb.inset}`]:{marginLeft:52},[`& .${Ev.root}`]:{marginTop:0,marginBottom:0},[`& .${Ev.inset}`]:{paddingLeft:36},[`& .${vv.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Tp({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${vv.root} svg`]:{fontSize:"1.25rem"}}))));var Qv=w.forwardRef((function(e,t){const r=um({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=r,p=qp(r,Jv),f=w.useContext(pv),h=w.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=w.useRef(null);vh((()=>{n&&m.current&&m.current.focus()}),[n]);const g=Tp({},r,{dense:h.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return Tp({},a,pc({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Kv,a))})(r),v=wh(m,t);let y;return r.disabled||(y=void 0!==c?c:-1),li.jsx(pv.Provider,{value:h,children:li.jsx(Zv,Tp({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:Au(b.focusVisible,s),className:Au(b.root,d)},p,{ownerState:g,classes:b}))})}));function ey(e){return zh("MuiNativeSelect",e)}var ty=$h("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const ry=["className","disabled","error","IconComponent","inputRef","variant"],ny=({ownerState:e,theme:t})=>Tp({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Tp({},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"},[`&.${ty.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}}),oy=fm("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:cm,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${ty.multiple}`]:t.multiple}]}})(ny),iy=({ownerState:e,theme:t})=>Tp({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${ty.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),ay=fm("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${mh(r.variant)}`],r.open&&t.iconOpen]}})(iy),ly=w.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=qp(e,ry),u=Tp({},e,{disabled:n,variant:l,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return pc({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${mh(r)}`,i&&"iconOpen",n&&"disabled"]},ey,t)})(u);return li.jsxs(w.Fragment,{children:[li.jsx(oy,Tp({ownerState:u,className:Au(c.select,r),disabled:n,ref:a||t},s)),e.multiple?null:li.jsx(ay,{as:i,ownerState:u,className:c.icon})]})}));var sy,uy=ly;const cy=["children","classes","className","label","notched"],dy=fm("fieldset",{shouldForwardProp:cm})({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%"}),py=fm("legend",{shouldForwardProp:cm})((({ownerState:e,theme:t})=>Tp({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&&Tp({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 fy=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],hy=fm(Yg,{shouldForwardProp:e=>cm(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Wg})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Tp({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${tb.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${tb.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${tb.focused} .${tb.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${tb.error} .${tb.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${tb.disabled} .${tb.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Tp({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),my=fm((function(e){const{className:t,label:r,notched:n}=e,o=qp(e,cy),i=null!=r&&""!==r,a=Tp({},e,{notched:n,withLabel:i});return li.jsx(dy,Tp({"aria-hidden":!0,className:t,ownerState:a},o,{children:li.jsx(py,{ownerState:a,children:i?li.jsx("span",{children:r}):sy||(sy=li.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}})),gy=fm(Ug,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Vg})((({theme:e,ownerState:t})=>Tp({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}))),by=w.forwardRef((function(e,t){var r,n,o,i,a;const l=um({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=qp(l,fy),b=(e=>{const{classes:t}=e;return Tp({},t,pc({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},eb,t))})(l),v=Fg(),y=qg({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=Tp({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),S=null!=(r=null!=(n=h.root)?n:s.Root)?r:hy,E=null!=(o=null!=(i=h.input)?i:s.Input)?o:gy;return li.jsx(Jg,Tp({slots:{root:S,input:E},renderSuffix:e=>li.jsx(my,{ownerState:x,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=li.jsxs(w.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:Tp({},b,{notchedOutline:null})}))}));by.muiName="Input";var vy=by;function yy(e){return zh("MuiSelect",e)}var xy,Sy=$h("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Ey=["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"],Cy=fm("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Sy.select}`]:t.select},{[`&.${Sy.select}`]:t[r.variant]},{[`&.${Sy.error}`]:t.error},{[`&.${Sy.multiple}`]:t.multiple}]}})(ny,{[`&.${Sy.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),wy=fm("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${mh(r.variant)}`],r.open&&t.iconOpen]}})(iy),Ry=fm("input",{shouldForwardProp:e=>dm(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 Ly(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Ay(e){return null==e||"string"==typeof e&&!e.trim()}const Iy=w.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:x,onChange:S,onClose:E,onFocus:C,onOpen:R,open:L,readOnly:A,renderValue:I,SelectDisplayProps:D={},tabIndex:_,value:M,variant:P="standard"}=e,O=qp(e,Ey),[k,T]=Eh({controlled:M,default:c,name:"Select"}),[q,N]=Eh({controlled:L,default:u,name:"Select"}),F=w.useRef(null),z=w.useRef(null),[$,j]=w.useState(null),{current:G}=w.useRef(null!=L),[H,B]=w.useState(),W=wh(t,m),V=w.useCallback((e=>{z.current=e,e&&j(e)}),[]),Y=null==$?void 0:$.parentNode;w.useImperativeHandle(W,(()=>({focus:()=>{z.current.focus()},node:F.current,value:k})),[k]),w.useEffect((()=>{u&&q&&$&&!G&&(B(a?null:Y.clientWidth),z.current.focus())}),[$,a]),w.useEffect((()=>{i&&z.current.focus()}),[i]),w.useEffect((()=>{if(!g)return;const e=gh(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):E&&E(t),G||(B(a?null:Y.clientWidth),N(e))},K=w.Children.toArray(l),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(v){r=Array.isArray(k)?k.slice():[];const t=k.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),k!==r&&(T(r),S)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:y}}),S(o,e)}v||U(!1,t)}},J=null!==$&&q;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(jg({value:k})||p)&&(I?Z=I(k):te=!0);const re=K.map((e=>{if(!w.isValidElement(e))return null;let t;if(v){if(!Array.isArray(k))throw new Error(Op(2));t=k.some((t=>Ly(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Ly(k,e.props.value),t&&te&&(Q=e.props.children);return w.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=v?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Q);let ne,oe=H;!a&&G&&$&&(oe=Y.clientWidth),ne=void 0!==_?_:d?null:0;const ie=D.id||(y?`mui-component-select-${y}`:void 0),ae=Tp({},e,{variant:P,value:k,open:J,error:f}),le=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return pc({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${mh(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},yy,t)})(ae),se=Tp({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=Sh();return li.jsxs(w.Fragment,{children:[li.jsx(Cy,Tp({ref:V,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!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&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:k,name:y}}),x(e))},onFocus:C},D,{ownerState:ae,className:Au(D.className,le.select,s),id:ie,children:Ay(Z)?xy||(xy=li.jsx("span",{className:"notranslate",children:""})):Z})),li.jsx(Ry,Tp({"aria-invalid":f,value:Array.isArray(k)?k.join(","):k,name:y,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},O)),li.jsx(wy,{as:h,className:le.icon,ownerState:ae}),li.jsx(Uv,Tp({id:`menu-${y||""}`,anchorEl:Y,open:J,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Tp({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:Tp({},b.slotProps,{paper:Tp({},se,{style:Tp({minWidth:oe},null!=se?se.style:null)})}),children:re}))]})}));var Dy=Iy;const _y=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],My=["root"],Py={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>cm(e)&&"variant"!==e,slot:"Root"},Oy=fm(nv,Py)(""),ky=fm(vy,Py)(""),Ty=fm(Vb,Py)(""),qy=w.forwardRef((function(e,t){const r=um({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=ob,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:E,variant:C="outlined"}=r,R=qp(r,_y),L=b?uy:Dy,A=qg({props:r,muiFormControl:Fg(),states:["variant","error"]}),I=A.variant||C,D=Tp({},r,{variant:I,classes:i}),_=(e=>{const{classes:t}=e;return t})(D),M=qp(_,My),P=d||{standard:li.jsx(Oy,{ownerState:D}),outlined:li.jsx(ky,{label:f,ownerState:D}),filled:li.jsx(Ty,{ownerState:D})}[I],O=wh(t,P.ref);return li.jsx(w.Fragment,{children:w.cloneElement(P,Tp({inputComponent:L,inputProps:Tp({children:o,error:A.error,IconComponent:u,variant:I,type:void 0,multiple:g},b?{id:c}:{autoWidth:n,defaultOpen:l,displayEmpty:s,labelId:h,MenuProps:m,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:Tp({id:c},E)},p,{classes:p?hh(M,p.classes):M},d?d.props.inputProps:{})},g&&b&&"outlined"===I?{notched:!0}:{},{ref:O,className:Au(P.props.className,a,_.root)},!d&&{variant:I},R))})}));qy.muiName="Select";var Ny=qy,Fy=(e={})=>S.createElement(yp,{...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{stroke:rp.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const zy={MuiAccordion:{styleOverrides:{root:{backgroundColor:rp.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:rp.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:S.createElement(gp,{"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 ${rp.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:rp.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${rp.MISC_FOCUS_BORDER}`,borderRadius:lp,backgroundColor:rp.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 ${rp.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:rp.WHITE,color:rp.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:lp},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${rp.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:rp.GREYSCALE_0_15,backgroundColor:rp.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:rp.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${rp.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:rp.GREEN_PALE},"&:active":{backgroundColor:rp.GREEN_DARK},"&.Mui-focusVisible":{borderColor:rp.GREEN_PALE,boxShadow:`0 0 0 3px ${dh(rp.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:rp.BLUE_PALE},"&:active":{backgroundColor:rp.BLUE_DARK},"&.Mui-focusVisible":{borderColor:rp.BLUE_PALE,boxShadow:`0 0 0 3px ${dh(rp.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:lp,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:rp.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${rp.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:rp.GREYSCALE_0_15,backgroundColor:rp.GREYSCALE_100_60,"&:active":{backgroundColor:rp.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:rp.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${rp.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:rp.PURPLE,"&.Mui-focusVisible":{borderColor:rp.PURPLE,boxShadow:`0 0 0 3px ${dh(rp.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:rp.GREEN,"&.Mui-focusVisible":{borderColor:rp.GREEN,boxShadow:`0 0 0 3px ${dh(rp.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:rp.BLUE,"&.Mui-focusVisible":{borderColor:rp.BLUE,boxShadow:`0 0 0 3px ${dh(rp.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:rp.ORANGE,"&.Mui-focusVisible":{borderColor:rp.ORANGE,boxShadow:`0 0 0 3px ${dh(rp.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:rp.RED,"&.Mui-focusVisible":{borderColor:rp.RED,boxShadow:`0 0 0 3px ${dh(rp.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:rp.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:rp.PURPLE_PALE},"&:active":{backgroundColor:rp.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:rp.PURPLE_PALE,boxShadow:`0 0 0 3px ${dh(rp.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:rp.GREEN_PALE},"&:active":{backgroundColor:rp.GREEN_DARK},"&.Mui-focusVisible":{borderColor:rp.GREEN_PALE,boxShadow:`0 0 0 3px ${dh(rp.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:rp.BLUE_PALE},"&:active":{backgroundColor:rp.BLUE_DARK},"&.Mui-focusVisible":{borderColor:rp.BLUE_PALE,boxShadow:`0 0 0 3px ${dh(rp.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:rp.ORANGE_PALE},"&:active":{backgroundColor:rp.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:rp.ORANGE_PALE,boxShadow:`0 0 0 3px ${dh(rp.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:rp.RED_PALE},"&:active":{backgroundColor:rp.RED_DARK},"&.Mui-focusVisible":{borderColor:rp.RED_PALE,boxShadow:`0 0 0 3px ${dh(rp.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:rp.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:rp.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:lp,boxShadow:`inset 0 0 0 2px ${rp.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:S.createElement(vp,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:np,borderRadius:lp,color:rp.TEXT_PRIMARY,backgroundColor:rp.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:rp.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${rp.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:rp.GREYSCALE_0_05,color:rp.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:rp.GREEN,borderColor:rp.GREEN},"&.MuiChip-outlinedInfo":{color:rp.BLUE,borderColor:rp.BLUE},"&.MuiChip-outlinedWarning":{color:rp.ORANGE,borderColor:rp.ORANGE},"&.MuiChip-outlinedError":{color:rp.RED,borderColor:rp.RED}},outlined:{border:`solid 1px ${rp.GREYSCALE_0_15}`,backgroundColor:rp.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:lp,boxShadow:"none",backgroundColor:rp.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:rp.GREEN,borderColor:rp.GREEN},outlinedSecondary:{color:rp.BLUE,borderColor:rp.BLUE},label:{fontFamily:pp.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:S.createElement(vp,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:S.createElement(gp,{"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:lp},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:lp,fontSize:op,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:rp.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${rp.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:rp.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:rp.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:rp.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:lp,border:`solid 1px ${rp.GREYSCALE_0_15}`,color:rp.GREYSCALE_0_60,marginRight:0,width:ap,height:ap},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${rp.GREYSCALE_0_15}`},clearIndicator:{borderRadius:lp,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:rp.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:op}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:np,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:rp.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:rp.GREYSCALE_25,fontSize:np,fontFamily:pp.FONT_FAMILY,fontWeight:cp,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:rp.TEXT_PRIMARY},"&.Mui-error":{color:rp.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:rp.TEXT_SECONDARY,content:"'(optional)'",fontWeight:up,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:rp.TEXT_SECONDARY,content:"'(required)'",fontWeight:up,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:op,lineHeight:"16px",backgroundColor:rp.WHITE,borderRadius:lp,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${rp.GREYSCALE_0_05}`,borderColor:rp.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${rp.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${rp.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${rp.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${rp.RED}`,boxShadow:`0px 0px 0px 1px ${rp.RED}, inset 0 2px 0 0 ${rp.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${rp.GREYSCALE_0_10}`,borderColor:rp.GREYSCALE_0_10,backgroundColor:rp.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:rp.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:rp.GREYSCALE_0_15,borderRadius:lp,boxShadow:`inset 0 2px 0 0 ${rp.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>S.createElement(gp,{...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:rp.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:rp.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:rp.GREYSCALE_0_03},"&:active":{backgroundColor:rp.GREYSCALE_0_10},"&:focus":{backgroundColor:rp.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${rp.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${rp.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:rp.GREYSCALE_0_30,"&:hover":{backgroundColor:rp.GREYSCALE_0_0,borderColor:rp.GREYSCALE_0_15},"& ~svg":{color:rp.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${rp.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:lp}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:rp.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${rp.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:rp.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:op,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:np,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:np,fontWeight:cp,color:rp.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:cp}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${rp.GREYSCALE_0_15}, 0px 0px 0px 1px ${rp.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:S.createElement(Ep,null),checkedIcon:S.createElement(Cp,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:rp.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${rp.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:rp.GREEN_PALE,boxShadow:`0 0 0 3px ${dh(rp.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:rp.BLUE_PALE,boxShadow:`0 0 0 3px ${dh(rp.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:rp.GREYSCALE_0_20}},"&.Mui-disabled":{fill:rp.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:S.createElement(Fy,null),checkedIcon:S.createElement(xp,null),indeterminateIcon:S.createElement(Sp,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:lp,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:rp.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:rp.GREYSCALE_0_55,color:rp.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:rp.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:rp.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:rp.GREYSCALE_0_55,"&:hover":{color:rp.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:rp.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:rp.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:op,color:rp.TEXT_PRIMARY,lineHeight:"16px",fontWeight:cp},secondary:{fontSize:np,color:rp.GREYSCALE_45,fontWeight:up,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:op,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:rp.GREYSCALE_0_03},"&:active":{backgroundColor:rp.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:op,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:rp.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:np,borderBottom:`solid 1px ${rp.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:op,color:rp.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:rp.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:rp.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:rp.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:rp.RED}}},"&.Mui-focusVisible":{backgroundColor:rp.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:rp.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:rp.GREEN,height:"24px","&.Mui-disabled":{color:rp.GREYSCALE_0_15}},rail:{backgroundColor:rp.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${rp.GREYSCALE_0_05}`,borderRadius:lp,boxShadow:`inset 0px 0px 0px 1px ${rp.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${rp.GREYSCALE_0_05}`,borderRadius:lp},thumb:{height:"16px",width:"16px",borderRadius:lp,backgroundColor:rp.WHITE,boxShadow:`0px 1px 2px 0px ${rp.GREYSCALE_0_15}, 0px 0px 0px 1px ${rp.GREYSCALE_0_05}`,"&:hover":{borderRadius:lp,boxShadow:`0 2px 4px 0 ${rp.GREYSCALE_0_30}, 0 0 0 1px ${rp.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${rp.GREYSCALE_0_15}, 0 0 0 1px ${rp.GREYSCALE_0_06}, 0 0 0 2px ${rp.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${rp.GREYSCALE_0_15}, 0 0 0 1px ${rp.GREYSCALE_0_06}, 0 0 0 2px ${rp.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:rp.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:rp.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:rp.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:rp.GREYSCALE_0_15},markLabel:{color:rp.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:rp.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:rp.WHITE,color:rp.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:rp.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:rp.GREEN_PALE,boxShadow:`0 0 0 3px ${dh(rp.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:rp.BLUE_PALE,boxShadow:`0 0 0 3px ${dh(rp.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:rp.GREYSCALE_0_15,borderRadius:lp},thumb:{height:"16px",width:"16px",borderRadius:lp,backgroundColor:rp.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:op,fontWeight:cp,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${rp.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${rp.MISC_FOCUS_BORDER}`,backgroundColor:rp.GREYSCALE_0_03,borderRadius:lp},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:rp.GREYSCALE_25,"&.Mui-selected":{color:rp.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:op,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${rp.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${rp.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${rp.GREYSCALE_85}`,borderRight:`1px solid ${rp.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:cp,backgroundColor:rp.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:rp.GREYSCALE_98,borderBottom:`1px solid ${rp.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${rp.GREYSCALE_85}`,borderTop:`1px solid ${rp.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:rp.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:rp.GREYSCALE_0_05,"&:hover":{backgroundColor:rp.GREYSCALE_0_03}},"&&:hover":{backgroundColor:rp.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>S.createElement(wp,{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 ${rp.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:op,borderRadius:lp,padding:"7px 16px",border:`1px solid ${rp.GREYSCALE_0_15}`,backgroundColor:rp.GREYSCALE_100_60,color:rp.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:rp.GREYSCALE_0_10,border:`1px solid ${rp.GREYSCALE_0_30}`},"&:hover":{backgroundColor:rp.GREYSCALE_0_03,border:`1px solid ${rp.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:rp.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${rp.MISC_FOCUS_BORDER}`,border:`1px solid ${rp.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:rp.GREYSCALE_25,backgroundColor:rp.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:rp.GREYSCALE_0_10,border:`1px solid ${rp.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:np,height:24,width:24,padding:7},sizeLarge:{fontSize:ip,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:op,borderRadius:lp}}},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:rp.GREYSCALE_20},tooltip:{backgroundColor:rp.GREYSCALE_20,fontSize:np,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const $y={mode:"light",primary:{light:rp.GREEN_PALE,main:rp.GREEN,dark:rp.GREEN_DARK,contrastText:rp.WHITE},secondary:{light:rp.BLUE_PALE,main:rp.BLUE,dark:rp.BLUE_DARK,contrastText:rp.WHITE},error:{light:rp.RED_PALE,main:rp.RED,dark:rp.RED_DARK,contrastText:rp.WHITE},warning:{light:rp.ORANGE_PALE,main:rp.ORANGE,dark:rp.ORANGE_DARK,contrastText:rp.WHITE},success:{light:rp.GREEN_PALE,main:rp.GREEN,dark:rp.GREEN_DARK,contrastText:rp.WHITE},info:{light:rp.BLUE_PALE,main:rp.BLUE,dark:rp.BLUE_DARK,contrastText:rp.WHITE},text:{primary:rp.TEXT_PRIMARY,secondary:rp.TEXT_SECONDARY,disabled:rp.GREYSCALE_0_30},action:{hover:rp.GREYSCALE_0_03,hoverOpacity:.05,selected:rp.GREYSCALE_0_05,focus:rp.MISC_FOCUS_BORDER},amethyst:{main:rp.PURPLE,light:rp.PURPLE_PALE,dark:rp.PURPLE_DARK,contrastText:rp.WHITE},background:{paper:rp.WHITE,default:rp.GREYSCALE_95},divider:rp.GREYSCALE_0_15},jy=e=>({components:zy,palette:$y,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:op,fontWeightLight:sp,fontWeightRegular:up,fontWeightMedium:cp,fontWeightBold:dp,htmlFontSize:op,fontFamily:pp.FONT_FAMILY,button:{fontWeight:cp,fontSize:op,textTransform:"none"},body1:{fontSize:ip,lineHeight:"24px"},body2:{fontSize:op,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:ap,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:ip,fontWeight:cp,lineHeight:"16px"},h6:{fontSize:op,fontWeight:cp,lineHeight:"16px"},caption:{color:rp.TEXT_SECONDARY},subtitle1:{fontSize:op,color:rp.TEXT_SECONDARY},subtitle2:{fontSize:np,color:rp.TEXT_SECONDARY}},shape:{borderRadius:lp}}),Gy={...tp,MISC_FOCUS_BORDER:rp.MISC_FOCUS_BORDER},Hy=jy().palette,By={TEXT:Hy.text.primary,DISABLED:Hy.text.disabled,HOVER:Hy.action.hover,WHITE:Gy.GREYSCALE_100,BORDER_LIGHT:Gy.GREYSCALE_90,BORDER_MEDIUM:Gy.GREYSCALE_85,BORDER_HEAVY:Gy.GREYSCALE_50,DARK_MODE_TEXT:Gy.GREYSCALE_95,DARK_MODE_BORDER:Gy.GREYSCALE_95,DARK_MODE_DISABLED:Gy.GREYSCALE_70,DARK_MODE_BACKGROUND:Gy.GREYSCALE_20},Wy=(e,t)=>{const r=wn(e),n=r.l<70;return 0===r.opacity?(r.opacity=t.opacity,r.toString()):n?r.brighter(t.brighter).toString():r.darker(t.darker).toString()},Vy=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,Yy=e=>{const t=(e=>{const t=Vy.exec(e);if(t){const[,e,r,n,o]=t;return Kr(+r,+n,+o,+e/255)}return Kr(e)})(e);return Number.isNaN(t.r)?null:t.toString()},Uy=e=>{e.stopPropagation(),e.preventDefault()},Ky=fm(bb,{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({pointerEvents:"auto",touchAction:"none",display:"flex",position:"absolute",height:"100%",top:0,cursor:"col-resize",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",marginLeft:"-4px","&:hover:not(:focus, :active)":{[`& .${Ct}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${Ct}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),Xy=fm(bb)({position:"absolute",height:"100%",width:"3px"}),Jy=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,isNewHeadCellMenuEnabled:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:l,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:c})=>{const d=y((()=>({initWidth:e,columnWidth:e,initX:0})),[e]),p=n||o?wt.PixelsMin:wt.PixelsMinTable,f=r?0:1,h={left:n&&!c?d.columnWidth-f:"100%"},m=e=>{const t=Math.max(d.initWidth+e,p);d.columnWidth=t,a(t)},g=()=>{if(d.columnWidth!==d.initWidth){const e={type:Rt.Pixels,pixels:d.columnWidth};l(e)}else null==u||u(!1)},b=e=>{const t=e.clientX-d.initX;m(t)},v=e=>{Uy(e),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",v),g()},x=e=>{const t=e.touches[0].clientX-d.initX;m(t)},E=e=>{Uy(e),document.removeEventListener("touchmove",x),document.removeEventListener("touchend",E),g()},C=!n&&s?e=>{if(e.key===St.LEFT||e.key===St.RIGHT){Uy(e);const t=d.columnWidth-d.initWidth,r=5,n=e.key===St.LEFT?t-r:t+r;m(n)}else e.key===St.SPACE||e.key===St.ENTER?(Uy(e),s(e),g()):e.key===St.ESC&&(Uy(e),s(e),m(d.initWidth))}:void 0;return S.createElement(Ky,{className:Et,isLastColumn:r,hoverColor:i,style:h,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",b),document.addEventListener("mouseup",v),null==u||u(!0),d.initX=e.clientX},onDoubleClick:()=>l({type:Rt.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",x),document.addEventListener("touchend",E),null==u||u(!0),d.initX=e.touches[0].clientX)},onKeyDown:C,onBlur:s,"data-testid":Et},S.createElement(Xy,{className:Ct}))};function Zy(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Qy=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Zy(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),ex=I(Qy);function tx(){return tx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tx.apply(this,arguments)}const rx=fm(bb,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),nx=fm(ex,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),ox=fm(Uv)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),ix=fm(jb)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),ax=fm(Qv)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),lx=fm(Qv,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden ",boxSizing:"border-box !important",background:""+(r?"rgba(0, 0, 0, 0.05)":"transparent")}))),sx=fm("div")((({theme:e})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),ux=fm("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),cx=fm(vg)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),dx=fm(Sv)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function px(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const fx=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){px(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),hx=I(fx);let mx={};const gx=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=x(!1),p=D(null),f=_((e=>{e.stopPropagation(),d(!1)}),[d]);return S.createElement(S.Fragment,null,S.createElement(lx,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),mx={}),null!=a&&a.length&&(d(!0),mx[n]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&S.createElement(sx,null),S.createElement(ux,null,S.createElement(dx,null,S.createElement(o,null)),S.createElement(cx,{variant:"body2"},n)),null!=a&&a.length?S.createElement(hx,null):null),(null==a?void 0:a.length)&&S.createElement(vx,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(h=a,m=mx,h.map((e=>e.map((e=>{var t;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(t=e.items)||void 0===t?void 0:t.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(m).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var h,m},bx=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map((e=>{var n;return[[e.groupHeading&&S.createElement(ax,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(n=e.items)||void 0===n?void 0:n.map((e=>S.createElement(gx,tx({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:r}))))].filter(Boolean)]})),vx=({anchorEl:e,open:t,onClose:r,ariaLabel:n,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,handleHeadCellMenuKeyDown:s})=>o.length?S.createElement(ox,tx({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:r,"aria-labelledby":n},a?{anchorOrigin:a}:{},i?{transformOrigin:i}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map(((n,o)=>[bx({menuGroup:n,isSubMenu:t,handleHeadCellMenuKeyDown:r}),o<e.length-1?S.createElement(ix,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:o,isSubMenu:l,handleHeadCellMenuKeyDown:s})):null,yx={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},xx=(e,t)=>e.some((e=>t[e]>0));function Sx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ex=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Sx(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})),Cx=I(Ex);function wx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Rx=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){wx(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"})),Lx=I(Rx);function Ax(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ix=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Ax(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})),Dx=I(Ix);function _x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Mx=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){_x(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})),Px=I(Mx);function Ox(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const kx=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Ox(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})),Tx=I(kx);function qx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Nx=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){qx(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})),Fx=I(Nx);function zx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const $x=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){zx(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),jx=I($x);function Gx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Hx=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Gx(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),Bx=I(Hx);function Wx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Vx=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Wx(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),Yx=I(Vx);function Ux(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Kx=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Ux(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})),Xx=I(Kx);let Jx=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const Zx=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,changeActivelySortedHeader:i,interactions:a,embedListbox:l,fieldInstance:s,selectionActionsEnabledStatus:u,anchorRef:c,setFocusOnColumnAdjuster:d})=>{const p=[];if(r[Jx.SORTING]&&p.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"A")),n(!1),await(null==i?void 0:i(e))},icon:Cx,enabled:!!e.isActivelySorted||"D"===e.sortDirection,isActive:e.isActivelySorted&&"A"===e.sortDirection,autoFocus:e.isActivelySorted?"A"===e.sortDirection:"D"===e.sortDirection},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"D")),n(!1),await(null==i?void 0:i(e))},icon:Px,enabled:!!e.isActivelySorted||"A"===e.sortDirection,isActive:e.isActivelySorted&&"D"===e.sortDirection,autoFocus:e.isActivelySorted?"D"===e.sortDirection:"A"===e.sortDirection}]}]),e.isDim&&null!=a&&a.select){const e=[];r[Jx.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),l()},icon:Tx,enabled:!0}]}]),r[Jx.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:Xx,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectAll())},icon:Fx,enabled:u.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectPossible())},icon:Yx,enabled:u.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectAlternative())},icon:jx,enabled:u.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectExcluded())},icon:Bx,enabled:u.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.clear())},icon:Lx,enabled:u.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return r[Jx.ADJUST_HEADER_SIZE]&&p.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),null==d||d(c)},icon:Dx,enabled:!0}]}]),p},Qx=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const h=Jo({translator:o}),{headTextAlign:m,qLibraryId:g,fieldId:b}=n,{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:E,updateSelectionActionsEnabledStatus:C}=(({headerData:e,app:t})=>{const[r,n]=x(null),[o,i]=x(yx);return M((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(n).catch(console.error)}),[t,e]),{fieldInstance:r,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:_((()=>i(yx)),[]),updateSelectionActionsEnabledStatus:_((t=>{const r=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));r&&i({canSelectAll:xx(["qOption","qAlternative","qExcluded","qDeselected"],r.qStateCounts),canClearSelections:xx(["qSelected"],r.qStateCounts),canSelectPossible:xx(["qOption"],r.qStateCounts),canSelectAlternative:xx(["qAlternative"],r.qStateCounts),canSelectExcluded:xx(["qAlternative","qExcluded"],r.qStateCounts)})}),[e.label,i])}})({headerData:n,app:null==d?void 0:d.app}),w=_((()=>{const e=g?{qLibraryId:g,type:"dimension"}:b;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:r}=c;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}})}}),[c,b,g]);M((()=>{e||(E(),null!=d&&d.model&&d.model.getLayout().then((e=>{C(e)})).catch((e=>console.error(e))))}),[e,E,C,null==d?void 0:d.model]);const R=_((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?S.createElement(rx,{rightAligned:"right"===m,shouldShowMenuIcon:s},s&&S.createElement(nx,{height:yt,className:xt,"data-testid":xt,"aria-controls":e?"nebula-table-utils-head-menu":void 0,"aria-expanded":e?"true":void 0,"aria-haspopup":"true",isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},S.createElement(ex,null)),S.createElement(vx,{open:e,anchorEl:r.current,onClose:R,menuGroups:Zx({headerData:n,translator:h,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:w,interactions:i,fieldInstance:v,selectionActionsEnabledStatus:y,anchorRef:r,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),ariaLabel:"nebula-table-utils-head-menu-button",handleHeadCellMenuKeyDown:a})):null},eS=e=>e.isDark?{background:e.color,borderColor:By.DARK_MODE_BORDER,color:By.DARK_MODE_TEXT,disabledColor:By.DARK_MODE_DISABLED,iconColor:By.DARK_MODE_TEXT}:{background:e.color,borderColor:By.BORDER_MEDIUM,color:By.TEXT,disabledColor:By.DISABLED},tS=fm(bb,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`}))),rS=fm(Ny,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),nS=fm(Ib,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)}))),oS=fm(vg)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),iS=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=y((()=>eS(n.background)),[n]);if(!r.active)return null;const a=o?S.createElement(tS,{footerStyle:i},e):null;return t?q.createPortal(e,t):a},aS=P({}),lS=()=>E(aS),sS=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=y((()=>eS(p.background)),[p]),v=o?o.getBoundingClientRect().width:h.width,x=Jo({translator:d}),E=y((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:x,theme:p,interactions:f,rect:h,layout:m,footerStyle:b,tabIndex:g,width:v})),[t,r,n,o,i,a,l,s,u,c,x,p,f,h,m,b,g,v]);return S.createElement(aS.Provider,{value:E},e)};let uS=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),cS=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});function dS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const pS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){dS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),fS=I(pS);function hS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const mS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){hS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),gS=I(mS);function bS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const vS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){bS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),yS=I(vS),xS={FirstPage:gS,PreviousPage:fS,NextPage:hx,LastPage:yS,FirstPageRTL:yS,PreviousPageRTL:hx,NextPageRTL:fS,LastPageRTL:gS},SS=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=lS(),u=xS[`${r}${"rtl"===n?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},ES=()=>{const{pageInfo:e,width:t}=lS(),r=0===e.page,{IconComponent:n,styledProps:o}=SS({type:uS.FirstPage,disabledCondition:r,pageNumber:0});return t<=cS.FirstPage?null:S.createElement(nS,o,S.createElement(n,{height:yt}))},CS=(e,t,r=!1)=>{r&&e.key===St.TAB&&!e.shiftKey&&(Uy(e),((e,t,r)=>{var n,o,i,a;const l=null!==(n=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==n?n:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,r)})(e.target,t,!1))},wS=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=lS(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=SS({type:uS.LastPage,disabledCondition:i,pageNumber:r-1}),s=t.enabled?e=>CS(e,t,n):null;return o<=cS.LastPage?null:S.createElement(nS,tx({},l,{onKeyDown:s}),S.createElement(a,{height:yt}))},RS=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=lS(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=SS({type:uS.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>cS.FirstPage&&o>cS.LastPage)&&t.enabled?e=>CS(e,t,n):null;return S.createElement(nS,tx({},l,{onKeyDown:s}),S.createElement(a,{height:yt}))},LS=()=>{const{pageInfo:e}=lS(),t=0===e.page,{IconComponent:r,styledProps:n}=SS({type:uS.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return S.createElement(nS,n,S.createElement(r,{height:yt}))},AS=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=lS(),{page:o,rowsPerPage:i}=r;if(t<=cS.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return S.createElement(oS,{variant:"caption"},a)},IS=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=lS(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return S.createElement(S.Fragment,null,S.createElement(oS,{variant:"caption",id:d},u,":"),S.createElement(rS,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:p},r))},DS=()=>{var e;const{pageInfo:t,isSelectionMode:r,totalColumnCount:n,width:o,handleChangeRowsPerPage:i}=lS();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!r&&o>cS.RowsPerPage&&n<=100)||void 0===t.rowsPerPageOptions)return null;const a=S.createElement(S.Fragment,null,t.rowsPerPageOptions.map((e=>S.createElement("option",{key:e,value:e},e))));return S.createElement(IS,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},_S=1e3,MS="…",PS=({totalPages:e,page:t})=>{const r=Math.min(e,_S),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-_S):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return S.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(S.createElement("option",{key:"startMoreOptions",value:MS,disabled:!0},MS)),o<e-1&&a.push(S.createElement("option",{key:"endMoreOptions",value:MS,disabled:!0},MS)),S.createElement(S.Fragment,null,a)},OS=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=lS(),{page:o}=e;if(t<=cS.SelectPage)return null;const i=S.createElement(PS,{totalPages:r,page:o});return S.createElement(IS,{name:"SelectPage",value:o,options:i,handleChange:e=>n(+e.target.value)})};var kS=O((e=>S.createElement(sS,e,S.createElement(DS,null),S.createElement(OS,null),S.createElement(AS,null),S.createElement(ES,null),S.createElement(LS,null),S.createElement(RS,null),S.createElement(wS,null))));const TS=e=>S.createElement(iS,e,S.createElement(kS,e)),qS=P({}),NS=()=>E(qS),FS=({children:e,model:t,app:r,interactions:n,embed:o,theme:i,keyboard:a,flags:l})=>{const s=y((()=>({model:t,app:r,interactions:n,embed:o,theme:i,keyboard:a,flags:l})),[r,n,t,o,i,a,l]);return li.jsx(qS.Provider,{value:s,children:e})},zS=e=>{const{text:t,fontFamily:r,fontSize:n,justifyContent:o,alignItems:i,height:a}=(({translator:e,layoutService:t})=>{var r;const{theme:n}=NS(),o=null!==(r=n.getStyle("","","fontFamily"))&&void 0!==r?r:Yt;return t.hasData?t.hasLimitedData?{text:e.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:e.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})(e);return void 0===t?null:li.jsx("div",{style:{display:"flex",justifyContent:o,alignItems:i,width:"100%",height:a},children:li.jsx("span",{style:{...or,fontFamily:r,fontSize:n,fontStyle:"italic",color:"#7b7a78"},children:t})})},$S=P({}),jS=()=>E($S),GS=({children:e,styleService:t})=>li.jsx($S.Provider,{value:t,children:e}),HS=21,BS=20,WS=BS,VS=16+Zt+1,YS=.75;let US=function(e){return e.Text="text",e.Link="link",e.Image="image",e}({}),KS=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const XS=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===US.Image},JS="/qHyperCubeDef",ZS=-1,QS="PSEUDO-DIM",eE=e=>void 0===e?Ut:e,tE=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,rE=e=>tE(e,wt.PixelsDefault),nE=(e,t)=>tE(e,wt.PercentageDefault)*t/100,oE=(e,t,r)=>{switch(null==t?void 0:t.type){case Rt.Pixels:return rE(t.pixels);case Rt.Percentage:return nE(t.percentage,e);case Rt.FitToContent:case Rt.Auto:default:return r}};function iE({layoutService:e,tableWidth:t,headersData:r}){const n=jS(),{measureText:o}=Vo(n.header),{estimateWidth:i}=Vo({...n.dimensionValues,fontWeight:eE(n.dimensionValues.fontWeight)}),{measureText:a}=Vo({...n.dimensionValues,...n.measureLabels}),l=_(((n,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:s,topHeadersColumnWidth:u}},visibleMeasureInfo:c,isFullyExpanded:d}=e,p=(e=0)=>c.reduce(((r,{qFallbackTitle:n,columnWidth:o})=>{const i=a(n)+VS;return Math.max(r,oE(t,o,Math.max(i,e)))}),0),f=e=>r.data.reduce(((t,r)=>{const n=r[e];if(!n)return t;if(n.id===QS)return t;const i=(e=>{const{label:t,isLocked:r}=e,n=r?WS:0;return VS+o(t)+BS+n})(n);return Math.max(i,t)}),0);let h=0;const m=r.data.at(-1).map(((r,o)=>{let a=VS;if(n&&void 0!==l&&l===r.colIdx)a=n;else{let n;r.columnWidthLocation===Ot.Pivot?n=u:r.columnWidthLocation===Ot.Dimension&&({columnWidth:n}=r);let l=0;r.isLeftDimension?l=r.id===QS?p():Math.max(f(o),((t,r)=>{const{qApprMaxGlyphCount:n,isLeftDimension:o,dimensionInfoIndex:a}=t,l=e.getDimensionInfo(a);if(XS(l))return wt.PixelsDefault;const u=!d&&o&&r<s-1?HS:0;return VS+i(n)+u})(r,o)):r.isLeftDimension||(l=f(o),r.columnWidthLocation===Ot.Measures&&(l=p(l))),a=oE(t,n,l)}return h+=a,a}));return{leftGridWidth:Math.min(t*YS,h),leftGridColumnWidths:m,leftGridFullWidth:h}}),[i,r.data,e,o,a,t]),[s,u]=x(l);Ko((()=>{u(l())}),[l]);const c=_(((e,t)=>{u(l(e,t))}),[l]);return{...s,overrideLeftGridWidth:c}}function aE({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:n,leftGridWidth:o}){const{layout:{qHyperCube:{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:a}},size:l,visibleMeasureInfo:s}=e,u=jS(),{estimateWidth:c,measureText:d}=Vo(u.measureValues),{estimateWidth:p}=Vo({...u.dimensionValues,fontWeight:eE(u.dimensionValues.fontWeight)}),f=t-o-Zt,h=r.at(-1),m=h===ZS,g=a.length-i>r.length?HS:0,b=y((()=>{const e=m?s:[h],t=l.x/e.length,r=[],n=[];let o=f;const i=(e,n)=>{r[e]=Math.min(wt.PixelsMax,Math.max(wt.PixelsMin,n)),o-=r[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:r,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:u}=e;switch(r){case Rt.Pixels:i(t,rE(o));break;case Rt.Percentage:i(t,nE(a,f));break;case Rt.FitToContent:i(t,((e,t,r)=>r?wt.PixelsDefault:VS+(m?Math.max(c(e),d(t)):Math.max(Math.max(...s.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+g)))(l,u,XS(e)));break;case Rt.Auto:default:n.push(t)}}else n.push(t)})),n.length){const e=n.length*t,i=o/e;n.forEach((e=>{r[e]=Math.max(wt.AutoMin,i)}))}return r}),[m,s,h,l.x,f,c,d,p,g]),v=y((()=>{if(m){return s.reduce(((e,t,r)=>e+b[r]),0)/s.length}return b[0]}),[m,b,s]),x=parseFloat((n/e.size.x).toFixed(12)),S=_((t=>m&&void 0!==t?b[e.getMeasureInfoIndexFromCellIndex(t,!0)]-x:v-x),[m,b,e,v,x]),E=l.x*v;return{rightGridFullWidth:E,rightGridWidth:Math.min(E,f),getRightGridColumnWidth:S}}let lE;const sE=new Uint8Array(16);function uE(){if(!lE&&(lE="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!lE))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return lE(sE)}const cE=[];for(let e=0;e<256;++e)cE.push((e+256).toString(16).slice(1));var dE={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function pE(e,t,r){if(dE.randomUUID&&!t&&!e)return dE.randomUUID();const n=(e=e||{}).random||(e.rng||uE)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return function(e,t=0){return cE[e[t+0]]+cE[e[t+1]]+cE[e[t+2]]+cE[e[t+3]]+"-"+cE[e[t+4]]+cE[e[t+5]]+"-"+cE[e[t+6]]+cE[e[t+7]]+"-"+cE[e[t+8]]+cE[e[t+9]]+"-"+cE[e[t+10]]+cE[e[t+11]]+cE[e[t+12]]+cE[e[t+13]]+cE[e[t+14]]+cE[e[t+15]]}(n)}const fE=()=>{var e,t,r;return null!==(e=null===(t=crypto)||void 0===t||null===(r=t.randomUUID)||void 0===r?void 0:r.call(t))&&void 0!==e?e:pE()},hE=e=>e===ZS?QS:(({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:fE()})(e),mE=(e,t,r)=>{var n;const o=hE(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===ZS?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isActivelySorted:!1,isLocked:!1,isDim:!1,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:r,columnWidthLocation:Ot.Measures}:{id:o,colIdx:0,label:t.qFallbackTitle,qReverseSort:t.qReverseSort,sortDirection:t.qSortIndicator&&"N"!==t.qSortIndicator?t.qSortIndicator:"A",qLibraryId:t.qLibraryId,fieldId:t.qGroupFieldDefs[t.qGroupPos],isActivelySorted:!1,isLocked:null!==(n=t.qLocked)&&void 0!==n&&n,columnWidth:t.columnWidth,qApprMaxGlyphCount:t.qApprMaxGlyphCount,isDim:!0,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:r,columnWidthLocation:Ot.Dimension}},gE=({layoutService:e,lastRow:t,lastCol:r})=>{let n=r;var o;t.length>0&&(n=(o=r).at(-1)===ZS?o.slice(0,-1):o);const i=n.length+(t.length?1:0),a=Math.max(1,t.length),l=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(i,a);return t.forEach(((t,r,n)=>{const o=r===n.length-1;l[i-1][r]=mE(e,t,o)})),n.forEach(((t,r,n)=>{const o=r===n.length-1;l[r][a-1]=mE(e,t,o)})),l},bE=(e,t,r)=>{var n,o;const i=((e,t,r)=>{let n;if(n=0===t.length||t.includes(ZS)?gE({layoutService:e,lastRow:r,lastCol:t}):(e=>e[0].map(((t,r)=>e.map((e=>e[r])))))(gE({layoutService:e,lastRow:t,lastCol:r})),n.length)for(const[t,a]of n[n.length-1].entries()){var o,i;a&&(a.canBeResized=!0,a.isActivelySorted=t===(null!==(o=null===(i=e.layout.qHyperCube.activelySortedColumn)||void 0===i?void 0:i.colIdx)&&void 0!==o?o:0),a.colIdx=a.colIdx||t,a.dimensionInfoIndex===ZS?a.columnWidthLocation=Ot.Measures:a.isLeftDimension?a.columnWidthLocation=Ot.Dimension:r.at(-1)===ZS?a.columnWidthLocation=Ot.Measures:e.hasPseudoDimOnLeft&&(a.columnWidthLocation=Ot.Pivot))}return n})(e,t,r);return{data:i,size:{x:null!==(n=null===(o=i[0])||void 0===o?void 0:o.length)&&void 0!==n?n:0,y:i.length}}};function vE(e){return vE="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},vE(e)}function yE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xE(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),n)}var o,i}function SE(e,t,r){return t&&xE(e.prototype,t),r&&xE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function EE(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wE(e,t)}function CE(e){return CE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},CE(e)}function wE(e,t){return wE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wE(e,t)}function RE(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function LE(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=CE(e);if(t){var o=CE(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return RE(this,r)}}function AE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return IE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return IE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function IE(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var DE={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var r,n=e.indexOf("="),o="",i=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),i=!0),t.push(function(e,t,r){return{key:_E(e),value:_E(t),useEqualSign:r}}(r,o,i))}})),t}};function _E(e){try{return decodeURIComponent(e)}catch(t){return e}}function ME(e){if(!(this instanceof ME))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return DE.fromSearchString(t.search)}}})}function PE(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}ME.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},ME.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=PE((t=e[n]).key),t.value?r+="=".concat(PE(t.value)):r+=t.useEqualSign?"=":"";return r};var OE,kE=function(){function e(t){yE(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return SE(e,[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}]),e}(),TE=function(){function e(){yE(this,e)}return SE(e,[{key:"decode",value:function(e){for(var t,r="",n=new kE(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),qE=function(e){return e>=0&&e<=1114111},NE=function(e){return e.match(/[\s]/)},FE=function(e){EE(r,e);var t=LE(r);function r(){return yE(this,r),t.apply(this,arguments)}return SE(r,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,r=0;r<5&&(null!=(n=e.next())&&!NE(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return qE(a)?String.fromCharCode(a):"�"}}]),r}(TE),zE=function(){function e(t,r){yE(this,e),this._key=t,this._value=r}return SE(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}}]),e}(),$E=function(){function e(){yE(this,e)}return SE(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,r,n){var o,i;if(t.length===r)return i=this._value,this.setValue(n),i;var a=t.charAt(r);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return zE.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return zE.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||zE.newInstanceIfNeeded(e,t,this._value)}}]),e}(),jE=function(){function e(){yE(this,e),this.clear()}return SE(e,[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new $E);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),GE=function(){var e,t,r,n=[],o=[],i=new jE;for(e in n["""]="34",n["&"]="38",n["<"]="60",n[">"]="62",n[" "]="160",n["¡"]="161",n["¢"]="162",n["£"]="163",n["¤"]="164",n["¥"]="165",n["¦"]="166",n["§"]="167",n["¨"]="168",n["©"]="169",n["ª"]="170",n["«"]="171",n["¬"]="172",n["­"]="173",n["®"]="174",n["¯"]="175",n["°"]="176",n["±"]="177",n["²"]="178",n["³"]="179",n["´"]="180",n["µ"]="181",n["¶"]="182",n["·"]="183",n["¸"]="184",n["¹"]="185",n["º"]="186",n["»"]="187",n["¼"]="188",n["½"]="189",n["¾"]="190",n["¿"]="191",n["À"]="192",n["Á"]="193",n["Â"]="194",n["Ã"]="195",n["Ä"]="196",n["Å"]="197",n["Æ"]="198",n["Ç"]="199",n["È"]="200",n["É"]="201",n["Ê"]="202",n["Ë"]="203",n["Ì"]="204",n["Í"]="205",n["Î"]="206",n["Ï"]="207",n["Ð"]="208",n["Ñ"]="209",n["Ò"]="210",n["Ó"]="211",n["Ô"]="212",n["Õ"]="213",n["Ö"]="214",n["×"]="215",n["Ø"]="216",n["Ù"]="217",n["Ú"]="218",n["Û"]="219",n["Ü"]="220",n["Ý"]="221",n["Þ"]="222",n["ß"]="223",n["à"]="224",n["á"]="225",n["â"]="226",n["ã"]="227",n["ä"]="228",n["å"]="229",n["æ"]="230",n["ç"]="231",n["è"]="232",n["é"]="233",n["ê"]="234",n["ë"]="235",n["ì"]="236",n["í"]="237",n["î"]="238",n["ï"]="239",n["ð"]="240",n["ñ"]="241",n["ò"]="242",n["ó"]="243",n["ô"]="244",n["õ"]="245",n["ö"]="246",n["÷"]="247",n["ø"]="248",n["ù"]="249",n["ú"]="250",n["û"]="251",n["ü"]="252",n["ý"]="253",n["þ"]="254",n["ÿ"]="255",n["&OElig"]="338",n["&oelig"]="339",n["&Scaron"]="352",n["&scaron"]="353",n["&Yuml"]="376",n["&fnof"]="402",n["&circ"]="710",n["&tilde"]="732",n["&Alpha"]="913",n["&Beta"]="914",n["&Gamma"]="915",n["&Delta"]="916",n["&Epsilon"]="917",n["&Zeta"]="918",n["&Eta"]="919",n["&Theta"]="920",n["&Iota"]="921",n["&Kappa"]="922",n["&Lambda"]="923",n["&Mu"]="924",n["&Nu"]="925",n["&Xi"]="926",n["&Omicron"]="927",n["&Pi"]="928",n["&Rho"]="929",n["&Sigma"]="931",n["&Tau"]="932",n["&Upsilon"]="933",n["&Phi"]="934",n["&Chi"]="935",n["&Psi"]="936",n["&Omega"]="937",n["&alpha"]="945",n["&beta"]="946",n["&gamma"]="947",n["&delta"]="948",n["&epsilon"]="949",n["&zeta"]="950",n["&eta"]="951",n["&theta"]="952",n["&iota"]="953",n["&kappa"]="954",n["&lambda"]="955",n["&mu"]="956",n["&nu"]="957",n["&xi"]="958",n["&omicron"]="959",n["&pi"]="960",n["&rho"]="961",n["&sigmaf"]="962",n["&sigma"]="963",n["&tau"]="964",n["&upsilon"]="965",n["&phi"]="966",n["&chi"]="967",n["&psi"]="968",n["&omega"]="969",n["&thetasym"]="977",n["&upsih"]="978",n["&piv"]="982",n["&ensp"]="8194",n["&emsp"]="8195",n["&thinsp"]="8201",n["&zwnj"]="8204",n["&zwj"]="8205",n["&lrm"]="8206",n["&rlm"]="8207",n["&ndash"]="8211",n["&mdash"]="8212",n["&lsquo"]="8216",n["&rsquo"]="8217",n["&sbquo"]="8218",n["&ldquo"]="8220",n["&rdquo"]="8221",n["&bdquo"]="8222",n["&dagger"]="8224",n["&Dagger"]="8225",n["&bull"]="8226",n["&hellip"]="8230",n["&permil"]="8240",n["&prime"]="8242",n["&Prime"]="8243",n["&lsaquo"]="8249",n["&rsaquo"]="8250",n["&oline"]="8254",n["&frasl"]="8260",n["&euro"]="8364",n["&image"]="8365",n["&weierp"]="8472",n["&real"]="8476",n["&trade"]="8482",n["&alefsym"]="8501",n["&larr"]="8592",n["&uarr"]="8593",n["&rarr"]="8594",n["&darr"]="8595",n["&harr"]="8596",n["&crarr"]="8629",n["&lArr"]="8656",n["&uArr"]="8657",n["&rArr"]="8658",n["&dArr"]="8659",n["&hArr"]="8660",n["&forall"]="8704",n["&part"]="8706",n["&exist"]="8707",n["&empty"]="8709",n["&nabla"]="8711",n["&isin"]="8712",n["¬in"]="8713",n["&ni"]="8715",n["&prod"]="8719",n["&sum"]="8721",n["&minus"]="8722",n["&lowast"]="8727",n["&radic"]="8730",n["&prop"]="8733",n["&infin"]="8734",n["&ang"]="8736",n["&and"]="8743",n["&or"]="8744",n["&cap"]="8745",n["&cup"]="8746",n["&int"]="8747",n["&there4"]="8756",n["&sim"]="8764",n["&cong"]="8773",n["&asymp"]="8776",n["&ne"]="8800",n["&equiv"]="8801",n["&le"]="8804",n["&ge"]="8805",n["&sub"]="8834",n["&sup"]="8835",n["&nsub"]="8836",n["&sube"]="8838",n["&supe"]="8839",n["&oplus"]="8853",n["&otimes"]="8855",n["&perp"]="8869",n["&sdot"]="8901",n["&lceil"]="8968",n["&rceil"]="8969",n["&lfloor"]="8970",n["&rfloor"]="8971",n["&lang"]="9001",n["&rang"]="9002",n["&loz"]="9674",n["&spades"]="9824",n["&clubs"]="9827",n["&hearts"]="9829",n["&diams"]="9830",n)"function"!=typeof n[e]&&n.hasOwnProperty(e)&&(o[n[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(r=o[t].toLowerCase().substr(1),i.put(r,String.fromCharCode(t)));return i}(),HE=function(e){EE(r,e);var t=LE(r);function r(){return yE(this,r),t.apply(this,arguments)}return SE(r,[{key:"decodeCharacter",value:function(e){var t;e.mark();var r=e.next();if(null==r||"&"!==r)return e.reset(),null;var n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(null!=(t=this._getNumericEntity(e)))return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,r,n,o="";for(t=Math.min(e.remainder().length,GE.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=GE.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,16);return!Number.isNaN(+n)&&qE(n)?String.fromCharCode(n):null}},{key:"_parseNumber",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,10);return!Number.isNaN(+n)&&qE(n)?String.fromCharCode(n):null}}]),r}(TE),BE=function(e){EE(r,e);var t=LE(r);function r(){return yE(this,r),t.apply(this,arguments)}return SE(r,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",r=0;r<2;r++)null!=(n=e.nextHex())&&(t+=n);return 2===t.length&&(o=parseInt(t,16),qE(o))?String.fromCharCode(o):(e.reset(),null)}}]),r}(TE),WE=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(OE=document.createElement("div"));var VE=Array.prototype.indexOf,YE=[",",".","_"," "],UE={default:[",",".","-","_"," "]},KE={width:["%"],height:["%"]},XE={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},JE={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":XE.image,"background-color":XE.color,"border-color":XE.color,"border-image":XE.image,color:XE.color,icon:XE.image,"list-style-image":XE.image,"outline-color":XE.color},ZE={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function QE(e,t,r){var n;if(t){if(VE)return VE.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function eC(e){if(null==e)return"";var t,r=document.createTextNode(e);return OE.appendChild(r),t=OE.innerHTML,OE.removeChild(r),t}function tC(e,t,r){var n,o,i,a,l,s,u,c,d;if(e=nC(e).toLowerCase(),t=nC(t),QE(e,ZE.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<ZE.attr_val;i++)if(t.toLowerCase().match(ZE.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=KE[e])||(n=UE.default),o="",!r){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=l}o+='="'}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&QE(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function rC(e,t,r){var n,o,i,a,l,s,u,c,d,p;if(e=nC(e).toLowerCase(),t=nC(t),QE(e,ZE.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<ZE.css_val.length;n++)if(t.toLowerCase().indexOf(ZE.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=JE[e])||(o=XE.default),i="",!r){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=l}i+=": "}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&QE(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function nC(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var l=[new HE,new BE,new FE];!a;){n=r;for(var s=0;s<l.length;s++)(i=l[s].decode(r))!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}for(var oC=[],iC=0;iC<255;iC++)oC[iC]=iC>=48&&iC<=57||iC>=65&&iC<=90||iC>=97&&iC<=122?null:iC.toString(16);var aC=function(e){return eC(e.unsafe)},lC=function(e){var t,r=[],n=[],o={},i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=rC(t,r[t],!0),i+=rC(t,r[t],!0),o[t]=n[t]);return e.map?o:i},sC=function(e){var t=[],r=[],n={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(r[i]=tC(i,t[i],!0),o+=tC(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function uC(e,t){throw new Error(t)}var cC={canonicalize:nC,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===vE(arguments[0])?function(){for(var e,t,r,n=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(n===(r=e[t]))continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?aC(e):"css"===e.context?(null!=e.map&&"object"!==vE(e.map)&&uC(this,"Invalid parameter type"),lC(e)):"attr"===e.context?(null!=e.map&&"object"!==vE(e.map)&&uC(this,"Invalid parameter type"),sC(e)):void uC(this,"Invalid parameter type")},encodeForAttr:tC,encodeForAttr2:function(e){return tC("nonsens",e,!0)},encodeForCSS:rC,encodeForHref:function(e){nC(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new ME(e),r=ME.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+ME.encodeSearchParams(n)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var r,n,o,i,a,l;for(t||(t=YE),l="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),QE(o,t)>=0||null==oC[i]?l+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),l+="\\x".concat(a).concat(n.toUpperCase())):(a="0000".substr(n.length),l+="\\u".concat(a).concat(n.toUpperCase())));return l},encodeForHTML:eC,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=nC(t).toLowerCase():uC(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':""},isSafeDataURL:function(e,t){var r=null!=t?t:{},n=r.maxByteSizeSvg,o=void 0===n?5e5:n,i=r.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,r=AE(null!==(t=WE.exec(e.trim()))&&void 0!==t?t:[],4),n=r[1];return{encoding:r[2],data:r[3],mimeType:null==n?void 0:n.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,r){var n={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(r)],n).size}catch(e){return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a}};const dC=(e,t)=>{var r;const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps;return null==n||null===(r=n.qValues)||void 0===r?void 0:r[e]},pC=e=>{switch(e){case"topLeft":default:return{horizontal:"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"flex-end",vertical:"center"};case"topRight":return{horizontal:"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"flex-end",vertical:"flex-end"}}},fC=({text:e,url:t,imageSize:r,imagePosition:n})=>n&&t&&!t.toLowerCase().includes("javascript:")&&cC.isSafeDataURL(t)?{type:US.Image,url:t,text:e,imageSize:r,resolvedImagePosition:pC(n)}:{type:US.Text,url:void 0,text:e},hC=(e,t,r)=>{var n;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(n=o.qValues)||void 0===n?void 0:n[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==r?void 0:r.urlPosition)===KS.Attribute||null==r?void 0:r.urlLabel},mC=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:US.Link,url:cC.encodeForHref(t),text:e}}catch(t){return{type:US.Text,url:void 0,text:e}}},gC=(e,t,r,n,o,i)=>{switch((e=>{switch(null==e?void 0:e.type){case"url":return US.Link;case"image":return US.Image;default:return US.Text}})(t)){case US.Image:return((e,t,r,n)=>{const{imageSize:o,imagePosition:i,imageSetting:a,imageLabel:l}=null!=t?t:{};if("url"===a){var s;const t=e.qText,n=null===(s=dC(null!=r?r:-1,e))||void 0===s?void 0:s.qText;return fC({text:t,url:n,imageSize:o,imagePosition:i})}if("label"===a){var u,c;const t=e.qText;if(-1===n||void 0===n)return fC({text:l||t||"",url:t,imageSize:o,imagePosition:i});const r=null!==(u=null===(c=dC(n,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return fC({text:r,url:t,imageSize:o,imagePosition:i})}return{type:US.Text,url:void 0,text:e.qText}})(e,t,o,i);case US.Link:return((e,t,r,n)=>{const{urlPosition:o}=null!=t?t:{};if(o===KS.Attribute){const n=hC(r,e,t),o=e.qText||n||"";return mC({text:o,url:n})}if(o===KS.Dimension){const r=hC(n,e,t)||e.qText;return mC({text:r,url:e.qText})}return{type:US.Text,url:void 0,text:e.qText}})(e,t,r,n);default:return{type:US.Text,url:void 0,text:e.qText}}},bC=(e,t)=>{var r,n;const o=t.qAttrExps,i=null==o||null===(r=o.qValues)||void 0===r||null===(r=r[null==e?void 0:e.cellForegroundColor])||void 0===r?void 0:r.qText,a=null==o||null===(n=o.qValues)||void 0===n||null===(n=n[null==e?void 0:e.cellBackgroundColor])||void 0===n?void 0:n.qText,l=a?Yy(a):null,s=i?Yy(i):null,u=((e,t)=>e||!t?null:An(t)?By.WHITE:By.TEXT)(s,l);return{color:null!=u?u:s,background:l}},vC=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:vC(e,t)),e),yC=(e,t,r,n,o,i)=>{if(o)return vC(0,e);const a=i?Kt-r:Xt-n;let l=e.qUp+e.qDown;if(i&&0===r){const r=(t+e.qUp)%Kt;l=e.qDown+r}return Math.min(a,vC(l,e))},xC=({node:e,parent:t,root:r,x:n,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentLevel:d})=>{const p=!c&&e.qType===Nt.NX_DIM_CELL_PSEUDO;let f="";if(u&&e.indentLabel){const{label:t,delimeter:r,suffix:n}=e.indentLabel;f=`${t} ${!n||!t&&n?"":r} ${n}`.trim()}else f=e.qText;const h={id:fE(),ref:e,x:n,y:o,pageX:n,pageY:i,mainAxisPageCoord:u?i:n,isLeftColumn:u,parent:t,root:r,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:yC(e,o,i,n,a.isSnapshot,u),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===Nt.NX_DIM_CELL_TOTAL||!(null==t||!t.isTotal),isEmpty:e.qType===Nt.NX_DIM_CELL_EMPTY||-4===e.qElemNo,isNull:e.qType===Nt.NX_DIM_CELL_NULL,isPseudoDimension:p,expressionColor:bC(s,e),selectionCellType:u?Pt.NX_CELL_LEFT:Pt.NX_CELL_TOP,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:p?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:gC({...e,qText:f},l===ZS?void 0:l.representation,s.link,s.linkLabel,s.imageUrl,s.imageLabel),...void 0!==d&&{indentLevel:d}};return t&&(t.children[h.mainAxisPageCoord-t.mainAxisPageCoord]=h),h},SC=(e,t,r,n,o,i,a)=>{const{isIndentModeEnabled:l}=o;if(!t.length)return e;let s=0;return function t(u,c,d,p=0,f=-1){e[p]||(e[p]={}),l&&f++;const h=o.leftDimensionInfoIndexes.indexOf(-1);d.forEach(((d,m)=>{var g;s+=0===m?0:1;const b=r.qTop-n.page*n.rowsPerPage,v=Math.max(0,b+s-d.qUp),y=r.qTop+s-d.qUp;if(l&&o.hasPseudoDimOnLeft&&f<=h){const e={label:d.qText,suffix:"",delimeter:"-"};if(d.qType===Nt.NX_DIM_CELL_NORMAL||d.qType===Nt.NX_DIM_CELL_NULL)f<h&&(e.suffix=`${o.visibleMeasureInfo[0].qFallbackTitle}`),d={...d,indentLabel:e};else if(d.qType===Nt.NX_DIM_CELL_PSEUDO){var x,S,E,C,w;e.label=null!==(x=null===(S=c||u)||void 0===S||null===(S=S.ref)||void 0===S||null===(S=S.indentLabel)||void 0===S?void 0:S.label)&&void 0!==x?x:"",e.suffix=d.qText;const t=d.qSubNodes;d={...null===(E=c||u)||void 0===E?void 0:E.ref,...d.qText?{qText:d.qText}:{},qSubNodes:t,indentLabel:e},f=null!==(C=null===(w=c||u)||void 0===w?void 0:w.indentLevel)&&void 0!==C?C:0}}let R=p;l&&(R=f===h?f+1:f);const L=l&&void 0===(null===(g=e[p][v])||void 0===g?void 0:g.ref.qText)||!e[p][v]?xC({node:d,parent:c,root:u,x:R,y:y,pageY:v,layoutService:o,dimensionInfo:i[R],attrExprInfoIndex:a[R],isLeftColumn:!0,...l&&{isIndentModeEnabled:l,indentLevel:f}}):e[p][v];if(e[p][v]=L,d.qSubNodes.length){const e=l?0:p+1;t(u||L,L,d.qSubNodes,e,f)}}))}(null,null,t,0,-1),e},EC=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,r,n)=>{const o=n[r+1];e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},CC=e=>{const t=e[0],r=t?Object.values(t):[],n=null==t?void 0:t[0],o=r.at(-1);return null!=n&&n.isTotal?n.isLeafNode?n.mainAxisPageCoord:n.mainAxisPageCoord+n.leafCount-1:null!=o&&o.isTotal?o.mainAxisPageCoord-1:-1},wC=({prevData:e,nextDataPage:t,pageInfo:r,layoutService:n,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i})=>{const{qLeft:a,qArea:l}=t;if(!a.length)return e;const s=SC(e.grid,a,l,r,n,o,i);EC(s,r.rowsOnCurrentPage);const u=CC(s);return{...e,grid:s,columnCount:s.length,totalDividerIndex:u}},RC=({qArea:e,prevData:t,pivotValuePoints:r,pageInfo:n})=>{const o=[...t];return r.forEach(((t,r)=>{t.forEach(((t,i)=>{var a;const l=e.qTop-n.page*n.rowsPerPage+r,s=e.qLeft+i;Array.isArray(o[l])||(o[l]=[]);const u=t.qType===Nt.NX_DIM_CELL_NULL;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:fE(),ref:t,isNull:u}}))})),o},LC=({prevData:e,dataPage:t,pageInfo:r})=>{const{qData:n,qArea:o}=t;return n.length?RC({qArea:o,prevData:e,pivotValuePoints:n,pageInfo:r}):e},AC=(e,t,r,n,o,i,a)=>{if(!t.length)return e;let l=0;!function t(a,s,u,c=0){e[c]||(e[c]={}),u.forEach(((u,d)=>{var p;l+=0===d?0:1;const f=r.qLeft+l-u.qUp,h=null!==(p=e[c][f])&&void 0!==p?p:xC({node:u,parent:s,root:a,x:f,y:c,pageY:c,layoutService:n,dimensionInfo:o[c],attrExprInfoIndex:i[c],isLeftColumn:!1});e[c][f]=h,u.qSubNodes.length&&t(a||h,h,u.qSubNodes,c+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},IC=({prevData:e,nextDataPage:t,layoutService:r,visibleTopDimensionInfo:n,attrExprInfoIndexes:o,headerRows:i})=>{const{qTop:a,qArea:l}=t;if(!a.length)return e;const s=AC(e.grid,a,l,r,n,o,i);EC(s,r.size.x);const u=CC(s);return{...e,grid:s,rowCount:s.length,totalDividerIndex:u}},DC=e=>{if(e===ZS)return{cellForegroundColor:-1,cellBackgroundColor:-1,imageUrl:-1,imageLabel:-1,link:-1,linkLabel:-1};const t=e.qAttrExprInfo,r=t.findIndex((({id:e})=>e===kt.CellForegroundColor.toString())),n=t.findIndex((({id:e})=>e===kt.CellBackgroundColor.toString())),o=t.findIndex((({id:e})=>e===kt.ImageUrl.toString())),i=t.findIndex((({id:e})=>e===kt.ImageLabel.toString()));return{cellForegroundColor:r,cellBackgroundColor:n,imageUrl:o,link:t.findIndex((({id:e})=>e===kt.Link.toString())),linkLabel:t.findIndex((({id:e})=>e===kt.LinkLabel.toString())),imageLabel:i}},_C=(e,t,r,n,o)=>{const[i,a]=x(null),l=((e,t,r)=>y((()=>({left:e.map(DC),top:t.map(DC),measures:r.map(DC)})),[r,e,t]))(n,o,t.visibleMeasureInfo),s=y((()=>bE(t,o,n)),[t,o,n]),u=_((()=>e.slice(1).reduce(((e,t)=>LC({prevData:e,dataPage:t,pageInfo:r})),((e,t)=>{const{qData:r,qArea:n}=e;return RC({qArea:n,prevData:[],pivotValuePoints:r,pageInfo:t})})(e[0],r))),[e,r]),c=_((()=>e.slice(1).reduce(((e,r)=>IC({prevData:e,nextDataPage:r,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:l.top,headerRows:s.size.y})),((e,t,r,n,o)=>{const{qArea:i,qTop:a}=e,l=AC([],a,i,t,r,n,o);EC(l,t.size.x);const s=CC(l);return{grid:l,rowCount:l.length,layoutSize:t.size,totalDividerIndex:s}})(e[0],t,o,l.top,s.size.y))),[e,t,o,l.top,s.size.y]),d=_((()=>e.slice(1).reduce(((e,o)=>wC({prevData:e,nextDataPage:o,pageInfo:r,layoutService:t,visibleLeftDimensionInfo:n,attrExprInfoIndexes:l.left})),((e,t,r,n,o)=>{const{qArea:i,qLeft:a}=e,l=SC([],a,i,r,t,n,o);EC(l,r.rowsOnCurrentPage);const s=CC(l);return{grid:l,columnCount:l.length,layoutSize:t.size,totalDividerIndex:s}})(e[0],t,r,n,l.left))),[e,t,r,n,l]),[p,f]=x((()=>u())),[h,m]=x((()=>c())),[g,b]=x((()=>d()));Ko((()=>{f(u())}),[u]),Ko((()=>{m(c())}),[c]),Ko((()=>{b(d())}),[d]),Ko((()=>{i&&i.forEach((e=>{f((t=>LC({prevData:t,dataPage:e,pageInfo:r}))),m((r=>IC({prevData:r,nextDataPage:e,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:l.top,headerRows:s.size.y}))),b((o=>wC({prevData:o,nextDataPage:e,pageInfo:r,layoutService:t,visibleLeftDimensionInfo:n,attrExprInfoIndexes:l.left})))}))}),[i]);const v=_((e=>{a(e)}),[]);return{headersData:s,measureData:p,topDimensionData:h,leftDimensionData:g,attrExprInfoIndexes:l,nextPageHandler:v}},MC=Math.sqrt(1e4),PC=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],r=Math.ceil(e.qWidth/MC),n=Math.ceil(e.qHeight/MC);for(let o=0;o<r;o++)for(let r=0;r<n;r++)t.push({qLeft:e.qLeft+o*MC,qTop:e.qTop+r*MC,qWidth:Math.min(MC,e.qWidth-o*MC),qHeight:Math.min(MC,e.qHeight-r*MC)});return t};function OC({model:e,nextPageHandler:t,pageInfo:r,layoutService:n}){const o=(e=>{const t=D(e);return t.current=e,t})(r.page),i=e,a=_((async(e,t)=>{var r;await(null==i||null===(r=i.collapseLeft)||void 0===r?void 0:r.call(i,JS,e,t,!1))}),[i]),l=_((async(e,t)=>{await(null==i?void 0:i.collapseTop(JS,e,t,!1))}),[i]),s=_((async(e,t)=>{await(null==i?void 0:i.expandLeft(JS,e,t,!1))}),[i]),u=_((async(e,t)=>{await(null==i?void 0:i.expandTop(JS,e,t,!1))}),[i]),c=_((async e=>{if(null!=i&&i.getHyperCubePivotData&&0!==e.length)try{const n=await i.getHyperCubePivotData(JS,e.reduce(((e,t)=>[...e,...PC(t)]),[]));o.current===r.page&&t(n)}catch(e){console.error(e)}}),[i,t,r,o]),d=_(((t,{dimensionInfoIndex:r,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=n.layout.qHyperCube;let c=[];switch(a){case Ot.Dimension:c=[{qPath:`${JS}/qDimensions/${r}/qDef/columnWidth`,oldValue:s[r].columnWidth}];break;case Ot.Measures:if(o)c=l.map(((e,t)=>({qPath:`${JS}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=n.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${JS}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case Ot.Pivot:c=[{qPath:`${JS}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((e=>{const{qPath:r,oldValue:n}=e;return{qPath:r,qOp:n?"Replace":"Add",qValue:JSON.stringify({...n,...t})}}));null==e||e.applyPatches(d,!0)}),[e,n]);return y((()=>({collapseLeft:a,collapseTop:l,expandLeft:s,expandTop:u,applyColumnWidth:d,fetchPages:c})),[a,l,s,u,d,c])}const kC=(e,t)=>e>t?qt.Forward:e<t?qt.Backward:qt.None,TC=(e,t,r)=>(n,o)=>{if(n===Nt.NX_DIM_CELL_PSEUDO)return ZS;const i=t[r+o];return e[i]},qC=e=>{const t=[],r=(e,n=0)=>{e.slice(0,1).forEach((e=>{t[n]=e.qType,e.qSubNodes.length&&r(e.qSubNodes,n+1)}))};return r(e),t},NC=({width:e,height:t,children:r,isLeftGrid:n})=>li.jsx("div",{"data-testid":"full-size-container",style:{display:"block",width:n?"fit-content":e,height:t+Zt},children:r}),FC=e=>`scrollable-container--${e}`,zC=(e,t)=>{const{width:r,height:n,children:o,onScroll:i,style:a,showVerticalScrollbar:l,showHorizontalScrollbar:s,origin:u}=e,{interactions:c}=NS();return li.jsx("div",{ref:t,"data-key":FC(u),style:{width:r,height:n,overscrollBehaviorX:"contain",overflowX:c.active&&s?"auto":"hidden",overflowY:c.active&&l?"auto":"hidden",...a},onScroll:i,children:o})};var $C=S.forwardRef(zC);const jC=({width:e,height:t,children:r,style:n,isLeftGrid:o})=>li.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:0,left:0,width:o?"fit-content":e,height:t,...n},children:r});function GC(){return GC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},GC.apply(this,arguments)}function HC(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BC(e,t){return BC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},BC(e,t)}function WC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,BC(e,t)}var VC=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function YC(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],o=t[r],!(n===o||VC(n)&&VC(o)))return!1;var n,o;return!0}function UC(e,t){var r;void 0===t&&(t=YC);var n,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}function KC(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var XC="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function JC(e){cancelAnimationFrame(e.id)}function ZC(e,t){var r=XC();var n={id:requestAnimationFrame((function o(){XC()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var QC=-1;function ew(e){if(void 0===e&&(e=!1),-1===QC||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),QC=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return QC}var tw=null;function rw(e){if(void 0===e&&(e=!1),null===tw||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?tw="positive-descending":(t.scrollLeft=1,tw=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),tw}return tw}var nw=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function ow(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=h(n.props,HC(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:HC(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=UC((function(e,t,r,o,i,a,l,s){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),n._callOnScroll=void 0,n._callOnScroll=UC((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=n._getItemStyleCache(m&&l,m&&s,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=r(n.props,t,n._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=UC((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(rw()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&JC(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=ZC(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}WC(t,e),t.getDerivedStateFromProps=function(e,t){return iw(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=ew();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?s(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(rw()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&JC(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?nw:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],w=S[1],R=this._getVerticalRangeToRender(),L=R[0],A=R[1],I=[];if(n>0&&g)for(var D=L;D<=A;D++)for(var _=E;_<=w;_++)I.push(C(t,{columnIndex:_,data:d,isScrolling:v?x:void 0,key:f({columnIndex:_,data:d,rowIndex:D}),rowIndex:D,style:this._getItemStyle(D,_)}));var M=a(this.props,this._instanceProps),P=l(this.props,this._instanceProps);return C(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:GC({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},C(u||c||"div",{children:I,ref:s,style:{height:M,pointerEvents:x?"none":void 0,width:P}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=r||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),h=f(this.props,d,u,this._instanceProps),m=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(T),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var iw=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},aw=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},lw=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},sw=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},uw=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?cw(e,t,r,i,0,n):dw(e,t,r,Math.max(0,i),n)},cw=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),l=sw(e,t,a,r).offset;if(l===i)return a;l<i?o=a+1:l>i&&(n=a-1)}return o>0?o-1:0},dw=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&sw(e,t,n,r).offset<o;)n+=a,a*=2;return cw(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},pw=function(e,t,r,n,o,i,a){var l="column"===e?t.width:t.height,s=sw(e,t,r,i),u="column"===e?lw(t,i):aw(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===n&&(n=o>=d-l&&o<=c+l?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},fw=ow({getColumnOffset:function(e,t,r){return sw("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return uw("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=sw("column",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=sw("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:aw,getEstimatedTotalWidth:lw,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return pw("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return pw("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return sw("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return uw("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=sw("row",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=sw("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),hw=function(e,t){return e};function mw(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=s(n.props,HC(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:HC(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=UC((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=UC((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,l=i.itemSize,s=i.layout,c=n._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===s,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=UC((function(e,t,r){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(rw()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&JC(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=ZC(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}WC(t,e),t.getDerivedStateFromProps=function(e,t){return gw(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?ew():0:s.scrollHeight>s.clientHeight?ew():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(rw()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&JC(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?hw:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),w=E[0],R=E[1],L=[];if(u>0)for(var A=w;A<=R;A++)L.push(C(t,{data:c,key:p(A,c),index:A,isScrolling:b?y:void 0,style:this._getItemStyle(A)}));var I=n(this.props,this._instanceProps);return C(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:GC({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},C(l||s||"div",{children:L,ref:a,style:{height:x?"100%":I,pointerEvents:y?"none":void 0,width:x?I:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,s=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(T),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var gw=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},bw=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=n(s);o[s]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},vw=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=bw(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},yw=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&bw(e,r,t).offset<n;)r+=i,i*=2;return vw(e,t,Math.min(r,o-1),Math.floor(r/2),n)},xw=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},Sw=mw({getItemOffset:function(e,t,r){return bw(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:xw,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=bw(e,t,o),p=xw(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=h-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return n>=h&&n<=f?n:n<h?h:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?vw(e,t,o,0,r):yw(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=bw(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=bw(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function Ew(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var Cw=["style"],ww=["style"];function Rw(e,t){var r=e.style,n=KC(e,Cw),o=t.style,i=KC(t,ww);return!Ew(r,o)&&!Ew(n,i)}const Lw=(e,t)=>void 0!==e&&(e.isLeafNode?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),Aw=10,Iw=(e,t)=>e.current===qt.Backward?t:0,Dw=(e,t,r,n)=>{for(let o=r;o<r+n;o++){const r=e[o];if(void 0===r||void 0===r[t])return!0}return!1},_w=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,Mw=({pageInfo:e,measureData:t,pageTop:r,qHeight:n,startLeft:o,endLeft:i})=>{const a=[],l=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(Dw(t,e,r,n)){const t=a[a.length-1],o={qLeft:e,qTop:r+l,qWidth:1,qHeight:n};void 0!==t&&_w(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},Pw=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=n,u=r.current===qt.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return Mw({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},Ow=({pageInfo:e,measureData:t,scrollDirection:r,layoutService:n,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:l,qHeight:s}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=e.size.x,s=Iw(r,Aw),u=Math.max(n-s,0);return{startLeft:u,endLeft:u+Math.min(i+Aw,l-u),pageTop:o,qHeight:a}})(n,o,r),u=Mw({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...Pw({pageInfo:e,measureData:t,scrollDirection:r,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:n.size.x})]:u},kw=(e,t,r,n)=>{const o=e[r];if(void 0===o)return!0;for(let e=t;e<t+n;e++){if(void 0===o[e])return!0}return!1},Tw=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,qw=({startTop:e,endTop:t,qLeft:r,qWidth:n,measureData:o,pageInfo:i})=>{const a=[],l=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(kw(o,r,i,n)){const e=a.at(-1),t={qLeft:r,qTop:i+l,qWidth:n,qHeight:1};void 0!==e&&Tw(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},Nw=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:l}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=Iw(r,Aw),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+Aw,e.rowsOnCurrentPage-s),qLeft:n,qWidth:i}})(e,n,r),s=qw({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const n=r.current===qt.Backward?Math.max(0,o-25):i,u=Math.min(n+25,e.rowsOnCurrentPage),c=qw({startTop:n,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},Fw=async(e,t,r,n,o,i,a)=>{const{gridColumnStartIndex:l,gridRowStartIndex:s,gridWidth:u,gridHeight:c}=o;let d=[],p=[];i.current!==qt.None&&(d=Nw({pageInfo:n,measureData:r,scrollDirection:i,viewService:o})),a.current!==qt.None&&(p=Ow({pageInfo:n,measureData:r,scrollDirection:a,layoutService:t,viewService:o})),i.current===qt.None&&a.current===qt.None&&(d=qw({measureData:r,pageInfo:n,qLeft:l,qWidth:u,startTop:s,endTop:s+c})),await e.fetchPages([...d,...p])},zw=function(e){var t,r,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];r=l;var u=Date.now()-i,c=function(){i=Date.now(),n=0,e.apply(t,r)};n||(u>=o?c():n=setTimeout(c,o-u))}}(Fw,100),$w=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}(Fw,75),jw=({style:e,index:t,isLastRow:r,isLastColumn:n,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{grid:{border:l,divider:s}}=jS();return li.jsx("div",{style:{...e,...nr,...lr(r,n,l,o),...ur({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},Gw=(e,t,r)=>{if(!r.isEnabled(Lt)||null!=e&&e.auto)return t;switch(null==e?void 0:e.align){case"center":return"center";case"left":return"flex-start";case"right":return"flex-end";default:return t}},Hw={display:"flex",flexDirection:"row",alignItems:"center",height:"100%"},Bw={alignItems:"center",display:"flex",flexDirection:"row",height:"100%",backgroundClip:"padding-box"},Ww=(e,t,r,n)=>t?{...Bw,...e.nullValues}:r?{...Hw,color:e.totalValues.color,background:null!=n?n:e.totalValues.background}:{...Hw,color:e.measureValues.color,background:null!=n?n:e.measureValues.background},Vw=(e,t,r,n,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...or,...!r&&ir(e.grid.lineClamp),...t&&{color:t},alignSelf:"flex-start",fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.nullValues;return{...l,fontWeight:t,fontStyle:r,textDecoration:n}}if(n){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.totalValues;return{...l,fontWeight:t,fontStyle:r,textDecoration:n}}const{fontWeight:s,fontStyle:u,textDecoration:c}=e.measureValues;return{...l,fontWeight:void 0===s?Ut:s,fontStyle:u,textDecoration:c}},Yw=(e,t,r)=>{const{textAlign:n}=e;return Gw(n,t?"flex-end":"center",r)},Uw=(e,t)=>{var r,n;return null!==(r=null==e||null===(n=e[t])||void 0===n?void 0:n.visibleMeasureInfoIndex)&&void 0!==r?r:0},Kw=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o;const i=jS(),{flags:a}=NS(),{background:l}=i.measureValues,{grid:s,layoutService:u,showLastBorder:c,shouldShowTotalCellBottomDivider:d,shouldShowTotalCellRightDivider:p,isTotalValue:f,pageInfo:h,lastRow:m,lastColumn:g,attrExprInfoIndexes:b}=n,v=null===(o=s[t])||void 0===o?void 0:o[e],y=t===h.rowsOnCurrentPage-1,x=e===u.size.x-1;if(!v)return li.jsx(jw,{style:{...r,background:l},isLastRow:y,isLastColumn:x,showLastBorder:c,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const S=!v.isNull&&f(e,t),E=v.isNull?u.getNullValueText():v.ref.qText,C=!v.isNull||!Number.isNaN(+E),w=u.hasPseudoDimOnLeft?Uw(g,t):Uw(m,e),R=bC(b[w],v.ref),L={...Ww(i,v.isNull,S,R.background),...lr(y,x,i.grid.border,c),...ur({bottomDivider:d(t),rightDivider:p(e),borderColor:i.grid.divider}),...nr,display:"flex",justifyContent:Yw(u.visibleMeasureInfo[w],C,a)};return li.jsx("div",{title:E,style:r,"data-testid":"measure-cell","data-row-index":t,"data-col-index":e,children:li.jsx("div",{style:L,children:li.jsx("span",{style:Vw(i,R.color,C,S,v.isNull),children:E})})})};var Xw=S.memo(Kw,Rw);const Jw=(e,t)=>{var r,n;return null!==(r=null===(n=t.list[e])||void 0===n?void 0:n.id)&&void 0!==r?r:e.toString()},Zw=({columnIndex:e,rowIndex:t,data:r})=>{var n,o;return null!==(n=null===(o=r.grid[t])||void 0===o||null===(o=o[e])||void 0===o?void 0:o.id)&&void 0!==n?n:`${t}-${e}`},Qw={...rr,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},eR=({dataModel:e,dataGridRef:t,height:r,rowHightCallback:n,width:o,viewService:i,layoutService:a,measureData:l,leftDimensionData:s,topDimensionData:u,visibleTopDimensionInfo:c,visibleLeftDimensionInfo:d,attrExprInfoIndexes:p,showLastBorder:f,getRightGridColumnWidth:h,pageInfo:m,verticalScrollDirection:g,horizontalScrollDirection:b})=>{const{grid:{divider:v},contentCellHeight:y}=jS(),x={...Qw,borderColor:v,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},S=(e=>_((t=>{var r;const n=null===(r=e.grid.at(-1))||void 0===r?void 0:r[t];return Lw(n,e.totalDividerIndex)}),[e]))(s),E=(e=>_((t=>{var r;const n=null===(r=e.grid.at(-1))||void 0===r?void 0:r[t];return Lw(n,e.totalDividerIndex)}),[e]))(u),C=((e,t)=>_(((r,n)=>{var o,i;return!!(null!==(o=t.grid.at(-1))&&void 0!==o&&null!==(o=o[r])&&void 0!==o&&o.isTotal||null!==(i=e.grid.at(-1))&&void 0!==i&&null!==(i=i[n])&&void 0!==i&&i.isTotal)}),[t,e]))(s,u),w=(({viewService:e,dataModel:t,measureData:r,layoutService:n,pageInfo:o,leftColumnCount:i,topRowCount:a,verticalScrollDirection:l,horizontalScrollDirection:s})=>_((async({overscanColumnStartIndex:u,overscanColumnStopIndex:c,overscanRowStartIndex:d,overscanRowStopIndex:p})=>{e.gridColumnStartIndex=u,e.gridRowStartIndex=d,e.gridWidth=c-u+1,e.gridHeight=p-d+1;const f=e.gridWidth+i+(s.current===qt.None?0:Aw),h=e.gridHeight+a+(l.current===qt.None?0:Aw);let m=zw;h*f>1500&&(m=$w),await m(t,n,r,o,e,l,s)}),[e,n,t,r,l,s,o,i,a]))({viewService:i,layoutService:a,dataModel:e,measureData:l,pageInfo:m,leftColumnCount:s.columnCount,topRowCount:u.rowCount,verticalScrollDirection:g,horizontalScrollDirection:b});return Ko((()=>{t.current&&t.current.resetAfterColumnIndex(0,!1)}),[t,e,l]),k((()=>{t.current&&t.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[o,r,t,y]),0===a.size.x?null:li.jsx(fw,{ref:t,style:x,columnCount:a.size.x,columnWidth:h,height:r,rowCount:m.rowsOnCurrentPage,rowHeight:n,width:o,itemData:{layoutService:a,grid:l,dataModel:e,showLastBorder:f,isTotalValue:C,shouldShowTotalCellBottomDivider:S,shouldShowTotalCellRightDivider:E,pageInfo:m,lastRow:u.grid.at(c.length-1),lastColumn:s.grid.at(d.length-1),attrExprInfoIndexes:p},onItemsRendered:w,estimatedRowHeight:n(),estimatedColumnWidth:h(),itemKey:Zw,children:Xw})};var tR=O(eR);function rR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const nR=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){rR(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),S.createElement("use",{fillRule:"evenodd"})),oR=I(nR),iR=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(Et)},aR=e=>{const[t,r]=x(!1);return Ko((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}};function lR(e,t){const r=e.isActive(),[n,o]=x(new Map),[i,a]=x(null);M((()=>{const r=()=>{a(null),o(new Map)},n=()=>{r(),t({page:0})};return e.on("deactivated",r),e.on("canceled",r),e.on("confirmed",n),e.on("cleared",r),()=>{e.removeListener("deactivated",r),e.removeListener("canceled",r),e.removeListener("confirmed",n),e.removeListener("cleared",r)}}),[e,t]);const l=_((e=>0!==n.size&&null!==i&&(e.selectionCellType!==i.selectionCellType||(e.selectionCellType===Pt.NX_CELL_LEFT?i.coord!==e.x:i.coord!==e.y))),[n,i]),s=_((t=>async r=>{if(iR(r))return;if(e.isActive()||await e.begin([JS]),l(t))return;const{nextSelectedPivotCells:s,nextSelectedField:u}=((e,t,r)=>{const n=new Map(t);return n.has(e.ref.qElemNo)?(n.delete(e.ref.qElemNo),{nextSelectedPivotCells:n,nextSelectedField:0===n.size?null:r}):(n.set(e.ref.qElemNo,e),{nextSelectedPivotCells:n,nextSelectedField:{selectionCellType:e.selectionCellType,coord:e.selectionCellType===Pt.NX_CELL_LEFT?e.x:e.y}})})(t,n,i);try{await e.select({method:"selectPivotCells",params:[JS,Array.from(s,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]}),o(s),a(u)}catch(e){console.error(e)}}),[e,l,n,i]),u=_((e=>r&&!l(e)&&n.has(e.ref.qElemNo)),[n,l,r]);return y((()=>({select:s,isSelected:u,isActive:r,isLocked:l})),[s,u,r,l])}const sR=P({select:()=>()=>Promise.resolve(),isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),uR=()=>E(sR),cR=({children:e,selections:t,updatePageInfo:r})=>{const n=lR(t,r);return li.jsx(sR.Provider,{value:n,children:e})};const dR=({cellInfo:e,columnWidth:t,dataModel:r,isLastColumn:n,overrideLeftGridWidth:o,setIsAdjustingWidth:i})=>{const{interactions:a}=NS(),{isActive:l}=uR(),s=jS(),[,u]=x({});if(!(e.canBeResized&&!!a.active&&!l))return null;const c=function(e,t){var r,n,o,i;const a=null!==(r=null===(n=t.expressionColor)||void 0===n?void 0:n.background)&&void 0!==r?r:e.dimensionValues.background,l=t.isLeftColumn?e.header.background:a,s=l===Qt.Transparent?By.WHITE:l,u=null===(o=Wr(e.grid.border))||void 0===o?void 0:o.rgb(),c=null===(i=Wr(s))||void 0===i?void 0:i.rgb();if(c&&u&&u.opacity<1){const e=1-u.opacity;return`rgb(${u.opacity*u.r+e*c.r}, ${u.opacity*u.g+e*c.g}, ${u.opacity*u.b+e*c.g})`}return e.grid.border}(s,e);return li.jsx(Jy,{isPivot:!0,columnWidth:t,isLastColumn:n,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:c,updateWidthCallback:t=>{u({}),o&&void 0!==e.colIdx&&o(t,e.colIdx)},confirmWidthCallback:t=>null==r?void 0:r.applyColumnWidth(t,e),setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn})};var pR=function(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=function(e,t,r="Mui"){const n=Du[t];return n?`${r}-${n}`:`${Ru.generate(e)}-${t}`}(e,t,r)})),n}("MuiBox",["root"]);const fR=bd(),hR=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=is("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(fu),a=w.forwardRef((function(e,a){const l=function(e=yu){return vu(e)}(r),s=Eu(e),{className:u,component:c="div"}=s,d=pi(s,Iu);return li.jsx(i,di({as:c,ref:a,className:Au(u,o?o(n):n),theme:t&&l[t]||l},d))}));return a}({themeId:ci,defaultTheme:fR,defaultClassName:pR.root,generateClassName:Ru.generate});const mR=Ud(hR,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:r,shouldShowMenuIcon:n,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:n?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?r:t}}))),gR=Ud("div")({position:"absolute",left:0,bottom:0}),bR=Ud("div")({...tr,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}),vR=Ud("div")((()=>({...tr}))),yR=Ud("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:r,fontStyle:n,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:r,fontSize:e,fontFamily:t,fontStyle:n,textDecoration:o}))),xR={[Jx.SORTING]:!0,[Jx.SELECTIONS]:!0,[Jx.SEARCHING]:!0},SR=({dataModel:e,cell:t,style:r,isFirstColumn:n,isLastColumn:o,isLastRow:i,translator:a,changeSortOrder:l,changeActivelySortedHeader:s,iconsVisibilityStatus:u,columnWidth:c,overrideLeftGridWidth:d,layoutService:p})=>{var f;const h=D(null),m=jS(),{app:g,model:b,interactions:v,embed:y,flags:S}=NS(),{fontSize:E,fontFamily:C,fontStyle:w,fontWeight:R,textDecoration:L,color:A,background:I,hoverBackground:_,activeBackground:M}=m.header,P=D(null),{shouldShowLockIcon:O,shouldShowMenuIcon:k}=u,{open:T,setOpen:q,handleOpenMenu:N,setIsAdjustingWidth:F}=(({interactions:e,dataModel:t})=>{const[r,n]=x(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=aR([t]);return{open:r,setOpen:n,handleOpenMenu:t=>e.active&&!iR(t)&&!o&&n(!0),setIsAdjustingWidth:i}})({interactions:v,dataModel:e}),z={sortFromMenu:async(e,r)=>{e.stopPropagation(),await l(t,r)},changeActivelySortedHeader:s},$={embed:y,listboxRef:h},j={model:b,app:g},{labelTextAlign:G}=null!==(f=p.getDimensionInfo(t.dimensionInfoIndex))&&void 0!==f?f:{},H=Gw(G,"flex-start",S);return li.jsxs(mR,{title:t.label,interactions:v,background:T?M:I,hoverBackground:_,shouldShowMenuIcon:k,isDimension:t.isDim,style:{...r,...nr,...sr(t,i,n,o,m.grid.border),color:A},"data-testid":"title-cell",onClick:N,children:[li.jsxs(bR,{children:[O&&li.jsx(vR,{children:li.jsx(oR,{height:12})}),li.jsx(yR,{fontFamily:C,fontSize:E,fontStyle:w,fontWeight:R,textDecoration:L,justifyContent:H,children:li.jsx("span",{style:or,children:t.label})})]}),t.isDim&&li.jsxs(li.Fragment,{children:[li.jsx(Qx,{headerData:t,translator:a,anchorRef:P,open:T,setOpen:q,interactions:v,menuAvailabilityFlags:xR,sortRelatedArgs:z,searchRelatedArgs:$,selectionRelatedArgs:j,shouldShowMenuIcon:k}),li.jsx(gR,{ref:h}),li.jsx(gR,{ref:P})]}),li.jsx(dR,{cellInfo:{...t,isLeftColumn:!0},columnWidth:c,dataModel:e,isLastColumn:o,overrideLeftGridWidth:d,setIsAdjustingWidth:F})]})},ER=({rowSpan:e,columnSpan:t})=>{const r=jS();return e>0&&t>0?li.jsx("div",{style:{...rr,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"0px 1px 0px 0px",borderColor:r.grid.border,background:r.grid.background},"data-testid":"empty-header-cell"}):null},CR={display:"grid",width:"fit-content"},wR=({dataModel:e,columnWidths:t,rowHight:r,headersData:n,translator:o,changeSortOrder:i,changeActivelySortedHeader:a,getHeaderCellsIconsVisibilityStatus:l,height:s,overrideLeftGridWidth:u,layoutService:c})=>li.jsxs("div",{style:{...CR,gridTemplateColumns:t.map((e=>`${e}px`)).join(" "),gridTemplateRows:n.data.map((()=>`${r}px`)).join(" "),height:s},children:[n.size.y>1&&li.jsx(ER,{columnSpan:n.size.x-1,rowSpan:n.size.y-1}),n.data.map(((s,d)=>s.reduce(((s,p,f)=>{if(p){const h=l(f,p.isLocked,p.label);s.push(li.jsx(SR,{dataModel:e,style:{width:t[f],height:r,gridColumn:f+1,gridRow:d+1,zIndex:n.size.x-f},isLastRow:d===n.size.y-1,isFirstColumn:0===f,isLastColumn:f===n.size.x-1,translator:o,changeSortOrder:i,changeActivelySortedHeader:a,cell:p,iconsVisibilityStatus:h,columnWidth:t[f],overrideLeftGridWidth:u,layoutService:c},p.id))}return s}),[])))]});var RR=O(wR);const LR=(e,t,r,n,o)=>{k((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,r,n,o])},AR=(e,t)=>{Ko((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},IR=(e,t,r,n)=>{var o;const i=r?"flex-start":"center";var a,l;if(e.representation.type===US.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:r}=null!==(s=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==s?s:{};return Gw(r,i,n)}const{textAlign:u}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return Gw(u,i,n)};var DR;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(DR||(DR={}));const _R={brighter:.5,darker:.3,opacity:.03},MR=(e,{cell:t,styleService:r})=>{if(e===DR.Background||e===DR.Color){const r=t.expressionColor[e];if(r)return r}return t.isNull?r.nullValues[e]:t.isPseudoDimension?r.measureLabels[e]:t.isTotal?r.totalValues[e]:r.dimensionValues[e]},PR=({styleService:e,isCellSelected:t,cell:r,isCellLocked:n})=>{if(t)return"#0aaf54";const o=MR(DR.Background,{cell:r,styleService:e});return!n||!o||r.isPseudoDimension||r.isEmpty||r.isNull||r.isTotal?MR(DR.Background,{cell:r,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${Wy(i=o,_R)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},OR=({cell:e,styleService:t,isCellSelected:r})=>r?"white":MR(DR.Color,{cell:e,styleService:t}),kR=({cell:e,styleService:t})=>{const{qCanCollapse:r,qCanExpand:n}=e.ref,o=MR(DR.FontWeight,{cell:e,styleService:t});return void 0===o&&(n||r)?Ut:o},TR=({cell:e,styleService:t})=>MR(DR.FontStyle,{cell:e,styleService:t}),qR=({cell:e,styleService:t})=>MR(DR.TextDecoration,{cell:e,styleService:t}),NR=e=>e?"pointer":"default",FR=()=>{},zR=({children:e,text:t,reactWindowStyle:r,cell:n,data:o,showTotalCellDivider:i,isLastRow:a,isLastColumn:l,isLeftColumn:s,isCellSelected:u,isAdjustingWidth:c})=>{var d;const p=jS(),{interactions:f,flags:h}=NS(),{select:m,isLocked:g}=uR(),{layoutService:b,showLastBorder:v}=o,y=g(n)||n.isLockedByDimension,x=!(y||!f.active||!f.select||n.isEmpty||n.isNull||n.isPseudoDimension||n.isTotal||c),S=x?m(n):void 0;return li.jsx("div",{title:f.passive?t:void 0,style:{...r,...lr(a,l,p.grid.border,v),...ur({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:p.grid.divider}),...nr,padding:"0px 4px",cursor:NR(x),background:PR({styleService:p,isCellSelected:u,cell:n,isCellLocked:y}),zIndex:s?void 0:b.size.x-n.x,justifyContent:IR(n,b,s,h),display:"flex",...b.isIndentModeEnabled&&s&&{paddingLeft:24*(null!==(d=n.indentLevel)&&void 0!==d?d:0)}},"aria-hidden":"true",onClick:S,onKeyUp:FR,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":n.x,"data-page-x":n.pageX,"data-y":n.y,"data-page-y":n.pageY,"data-cell-type":n.ref.qType,children:e})};function $R(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const jR=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){$R(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})),GR=I(jR);function HR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const BR=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){HR(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})),WR=I(BR),VR=({expandOrCollapse:e,cell:t})=>r=>{null==e||e(t.y,t.x),r.stopPropagation()},YR=({cell:e,dataModel:t,isLeftColumn:r,isCellSelected:n})=>{const o=jS(),{interactions:i}=NS(),{isActive:a}=uR();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!t,s=OR({cell:e,styleService:o,isCellSelected:n}),u=a?.4:1,c=o.contentRowHeight/2,d=e.ref.qCanExpand?WR:GR;let p;return p=e.ref.qCanExpand?r?null==t?void 0:t.expandLeft:null==t?void 0:t.expandTop:r?null==t?void 0:t.collapseLeft:null==t?void 0:t.collapseTop,li.jsx(d,{opacity:u,color:s,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",padding:4,marginTop:r?c-6.5-4:void 0},onClick:l?void 0:VR({cell:e,expandOrCollapse:p})})},UR=e=>e.stopPropagation(),KR=({href:e,text:t,interactions:r,color:n})=>S.createElement(dv,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:UR,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}},t),XR=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},JR=e=>{switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},ZR=(e,t)=>{const r=`calc(100% - ${e.ref.qCanCollapse||e.ref.qCanExpand?21:0}px)`,n=e.isLeftColumn?t.contentCellHeight:t.headerCellHeight,o=e.isLeftColumn?n*Math.max(e.leafCount,1):n;switch(e.representation.imageSize){case"originalSize":return{maxWidth:r,maxHeight:o};case"fitWidth":return{width:r,maxHeight:o};case"fitHeight":return{height:o,maxWidth:r};case"fill":return{height:o,width:r};default:return{width:r,height:n}}},QR=(e,t)=>{if("alwaysFit"===e)switch(null==t?void 0:t.vertical){case"flex-start":return"center top";case"flex-end":return"center bottom";default:return"center center"}},eL=e=>{if("alwaysFit"===e)return"contain"},tL=({cell:e,styleService:t,textStyle:r})=>{const{url:n,text:o,imageSize:i,resolvedImagePosition:a}=e.representation,{overflow:l,...s}=r;return li.jsx("div",{"data-key":"image-container",style:{display:"flex",flexDirection:"column",justifyContent:null==a?void 0:a.vertical,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...ZR(e,t)},children:li.jsx("img",{src:n,alt:o,style:{width:JR(i),height:XR(i),objectFit:eL(i),objectPosition:QR(i,a),...s}})})},rL=e=>e.contentRowHeight/2-e.contentTextHeight/2,nL=({children:e,styleService:t,isLeftColumn:r,textStyle:n})=>li.jsx("span",{style:{...n,marginTop:r?rL(t):void 0,padding:"0px 4px"},children:e}),oL=({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n})=>{const{isActive:o}=uR(),{interactions:i,flags:a}=NS();let l=e.representation.text;if(e.isEmpty)return null;const s=(({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n})=>({...or,...ir(n?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:OR({cell:e,styleService:t,isCellSelected:r}),fontWeight:kR({cell:e,styleService:t}),fontStyle:TR({cell:e,styleService:t}),textDecoration:qR({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n});return e.representation.type===US.Image&&!e.isTotal&&a.isEnabled(It)?li.jsx(tL,{cell:e,styleService:t,textStyle:s}):(e.representation.type!==US.Link||o||e.isTotal||!a.isEnabled(Dt)||(l=li.jsx(KR,{text:e.representation.text,href:e.representation.url,interactions:i,color:e.expressionColor.color})),li.jsx(nL,{isLeftColumn:n,textStyle:s,styleService:t,children:l}))},iL=e=>{const{type:t,imageSize:r}=e.representation;return t===US.Image&&("fill"===r||"fitWidth"===r)?"100%":"fit-content"},aL=({children:e,isLeftColumn:t,cell:r})=>{const n=(e=>{const t=e.isLeftColumn?"flex-start":"center";var r;return e.representation.type===US.Image?(e=>"fill"===e.representation.imageSize)(e)?t:null===(r=e.representation.resolvedImagePosition)||void 0===r?void 0:r.vertical:t})(r);return li.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",overflow:"hidden",flexDirection:"row",alignItems:n,width:iL(r),maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:t?void 0:4,alignSelf:n},children:e})},lL=({index:e,style:t,data:r})=>{const n=jS(),{isSelected:o}=uR(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=aR([r]),{dataModel:l,isLeftColumn:s=!1,showLastBorder:u,itemCount:c,isLast:d,totalDividerIndex:p}=r,f=((e,t)=>{const{isLast:r,list:n,listValues:o}=t;return r?n[e]:o[e]})(e,r),h=s?e===c-1:d,m=s?d:e===c-1,g=Lw(f,p);if(void 0===f){const{background:r}=n.dimensionValues;return li.jsx(jw,{style:{...t,background:r},index:e,isLastRow:h,isLastColumn:m,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:g})}const b=o(f);return li.jsxs(zR,{text:f.representation.text,reactWindowStyle:t,isLeftColumn:s,isLastRow:h,isLastColumn:m,isCellSelected:b,showTotalCellDivider:g,cell:f,data:r,isAdjustingWidth:i,children:[li.jsxs(aL,{isLeftColumn:s,cell:f,children:[li.jsx(YR,{isLeftColumn:s,isCellSelected:b,cell:f,dataModel:l}),li.jsx(oL,{isLeftColumn:s,isCellSelected:b,cell:f,styleService:n})]}),li.jsx(dR,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?Ot.Measures:Ot.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:m,setIsAdjustingWidth:a})]})};var sL=S.memo(lL,Rw);const uL=({list:e,listValues:t,isLastRow:r,getRightGridColumnWidth:n})=>o=>{var i;const a=r?e[o]:t[o];return 0===o&&(null==a?void 0:a.x)>0?(a.leafCount+a.x+a.distanceToNextCell)*n():r||void 0===a?n(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o):(a.leafCount+a.distanceToNextCell)*n()},cL=(e,t,r,n)=>{const o=Object.values(e);let i,a=o.length;return n&&(a=r,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},dL=(e,t)=>r=>{e.current&&(e.current[t]=r)},pL={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...rr},fL={overflow:"hidden",willChange:"auto",flexShrink:0},hL=({dataModel:e,leftGridRef:t,width:r,columnWidths:n,height:o,layoutService:i,leftDimensionData:a,showLastBorder:l,visibleLeftDimensionInfo:s,pageInfo:u})=>{const{qSize:c}=i.layout.qHyperCube,{contentCellHeight:d,grid:{divider:p}}=jS();AR(t,a),LR(t,r,o,d,i);const f=u.rowsOnCurrentPage*d;return li.jsx("div",{style:{...pL,borderColor:p},children:a.grid.map(((r,p)=>{const h=p===a.columnCount-1,m=hE(s[p]),{itemCount:g,estimatedItemSize:b,listValues:v}=cL(r,f,u.rowsOnCurrentPage,h),y=i.isIndentModeEnabled?()=>d:((e,t,r,n,o)=>i=>{const a=n?e[i]:t[i];if(0===i&&(null==a?void 0:a.pageY)>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*r;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)*r}return r})(r,v,d,h,c.qcy);return li.jsx(Sw,{ref:dL(t,p),style:{...fL,flexGrow:h?1:0},height:o,width:n[p],itemCount:g,itemSize:y,layout:"vertical",itemData:{layoutService:i,dataModel:e,list:r,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:l,listValues:v,totalDividerIndex:a.totalDividerIndex},itemKey:Jw,estimatedItemSize:b,children:sL},m)}))})};var mL=O(hL);const gL={overflow:"hidden",willChange:"auto"},bL={...rr,borderWidth:"0px 0px 0px 1px"},vL=({dataModel:e,topGridRef:t,rowHightCallback:r,width:n,height:o,layoutService:i,topDimensionData:a,showLastBorder:l,getRightGridColumnWidth:s,headersData:u})=>{const{grid:{divider:c},headerCellHeight:d}=jS(),p={...bL,borderColor:c,height:o};AR(t,a),LR(t,n,o,d,i);const f=i.size.x*s();return 0===a.rowCount?li.jsx("div",{style:{width:n,height:o,...bL}}):li.jsx("div",{style:p,children:a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=cL(o,f,i.size.x,d),g=i.getDimensionInfo(u.data[c][u.size.x-1].dimensionInfoIndex),b=g?hE(g):`empty ${c}`;return li.jsx(Sw,{ref:dL(t,c),style:gL,height:r(),width:n,itemCount:p,itemSize:uL({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:Jw,estimatedItemSize:h,children:sL},b)}))})};var yL=O(vL);const xL=({model:e,rect:t,viewService:r,layoutService:n,qPivotDataPages:o,pageInfo:i,translator:a})=>{const{headerCellHeight:l,contentCellHeight:s}=jS(),u=((e,t,r)=>y((()=>{let{height:n}=e;return t.hasLimitedData&&(n-=22),r&&(n-=41),{...e,height:n}}),[e,t,r]))(t,n,i.shouldShowPagination),{visibleLeftDimensionInfo:c,visibleTopDimensionInfo:d}=((e,t)=>{const{qHyperCube:r}=e.layout,{qNoOfLeftDims:n,qEffectiveInterColumnSortOrder:o,qDimensionInfo:i}=r;return y((()=>{var e,r,a,l;const s=qC(null!==(e=null===(r=t[0])||void 0===r?void 0:r.qLeft)&&void 0!==e?e:[]),u=qC(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(TC(i,o,0)),visibleTopDimensionInfo:u.map(TC(i,o,n))}}),[i,o,n,t])})(n,o),{changeSortOrder:p,changeActivelySortedHeader:f}=((e,t)=>{const r=y((()=>({changeSortOrder:async(t,r)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:n,dimensionInfoIndex:o}=t,i=[];("D"===r&&!n||"A"===r&&n)&&i.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!n).toString()});try{return await e.applyPatches(i,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}},changeActivelySortedHeader:async r=>{if(!e)throw new Error("No Model provided!");const{colIdx:n,qLibraryId:o,fieldId:i,sortDirection:a}=r,l=[{qPath:"/qHyperCubeDef/activelySortedColumn",qOp:t.activelySortedColumn?"Replace":"Add",qValue:JSON.stringify({colIdx:n,qLibraryId:o,fieldId:i,sortDirection:a})}];try{return await(null==e?void 0:e.applyPatches(l,!0)),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}})),[e,t.activelySortedColumn]);return r})(e,n.layout.qHyperCube),{headersData:h,measureData:m,topDimensionData:g,leftDimensionData:b,attrExprInfoIndexes:v,nextPageHandler:S}=_C(o,n,i,c,d),E=OC({model:e,nextPageHandler:S,pageInfo:i,layoutService:n}),{onHorizontalScrollHandler:C,onVerticalScrollHandler:w,verticalScrollableContainerRef:R,leftGridHorizontalScrollableContainerRef:L,dataGridHorizontalScrollableContainerRef:A,dataGridRef:I,leftGridRef:P,topGridRef:O,verticalScrollbarWidth:T,horizontalScrollbarHeight:q,horizontalScrollbarHeightSetter:N,verticalScrollDirection:F,horizontalScrollDirection:z}=(({layoutService:e,viewService:t,pageInfo:r,tableRect:n,mockedRefs:o})=>{var i,a,l,s,u,c;const{theme:d,flags:p}=NS(),f=D(null!==(i=null==o?void 0:o.verticalScrollableContainerRef)&&void 0!==i?i:null),h=D(null!==(a=null==o?void 0:o.leftGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),m=D(null!==(l=null==o?void 0:o.dataGridHorizontalScrollableContainerRef)&&void 0!==l?l:null),g=D(null!==(s=null==o?void 0:o.topGridRef)&&void 0!==s?s:[]),b=D(null!==(u=null==o?void 0:o.leftGridRef)&&void 0!==u?u:[]),v=D(null!==(c=null==o?void 0:o.dataGridRef)&&void 0!==c?c:null),y=D(0),S=D(0),E=D(qt.None),C=D(qt.None),[w,R]=x(0),[L,A]=x(0),I=d.name(),M=e=>{C.current=kC(e.currentTarget.scrollLeft,y.current),y.current=e.currentTarget.scrollLeft,E.current=kC(e.currentTarget.scrollTop,S.current),S.current=e.currentTarget.scrollTop};k((()=>{e.triggerdByExpandOrCollapse||(h.current&&(h.current.scrollLeft=0),m.current&&(m.current.scrollLeft=0),f.current&&(f.current.scrollTop=0))}),[e]),k((()=>{if(e.triggerdByExpandOrCollapse){var t,r,n,o,i,a;const e=null!==(t=null===(r=m.current)||void 0===r?void 0:r.scrollLeft)&&void 0!==t?t:0,l=null!==(n=null===(o=f.current)||void 0===o?void 0:o.scrollTop)&&void 0!==n?n: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]),k((()=>{h.current&&(h.current.scrollLeft=0),m.current&&(m.current.scrollLeft=0),f.current&&(f.current.scrollTop=0)}),[r.page]);const P=_((e=>{if(e)return void A(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)}A(t)}),[A]);return k((()=>{if(f.current){const e=f.current,r=e.offsetWidth-e.clientWidth;R(r),p.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD")&&r>0&&(t.verticalScrollbarWidth=r)}P()}),[P,e,t,n.width,n.height,I,p]),k((()=>{(p.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD")||p.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"))&&f.current&&m.current&&h.current&&(f.current.scrollTop=t.scrollTop,m.current.scrollLeft=t.scrollLeft,h.current.scrollLeft=t.leftGridScrollLeft,R(-1*((null==t?void 0:t.verticalScrollbarWidth)||0)))}),[p,t.scrollTop,t.scrollLeft,t.leftGridScrollLeft,null==t?void 0:t.verticalScrollbarWidth,f,m,h]),{onHorizontalScrollHandler:e=>{var r,n;e.target instanceof HTMLDivElement&&(e.target.dataset.key===`scrollable-container--${Tt.LEFT_GRID}`&&(t.leftGridScrollLeft=e.currentTarget.scrollLeft),e.target.dataset.key===`scrollable-container--${Tt.DATA_GRID}`&&(M(e),null===(r=g.current)||void 0===r||r.forEach((t=>null==t?void 0:t.scrollTo(e.currentTarget.scrollLeft))),null===(n=v.current)||void 0===n||n.scrollTo({scrollLeft:e.currentTarget.scrollLeft}),t.scrollLeft=e.currentTarget.scrollLeft))},onVerticalScrollHandler:e=>{var r,n;e.target instanceof HTMLDivElement&&(M(e),null===(r=b.current)||void 0===r||r.filter(Boolean).forEach((t=>t.scrollTo(e.currentTarget.scrollTop))),null===(n=v.current)||void 0===n||n.scrollTo({scrollTop:e.currentTarget.scrollTop}),t.scrollTop=e.currentTarget.scrollTop)},verticalScrollableContainerRef:f,leftGridHorizontalScrollableContainerRef:h,dataGridHorizontalScrollableContainerRef:m,dataGridRef:v,leftGridRef:b,topGridRef:g,verticalScrollbarWidth:w,horizontalScrollbarHeight:L,horizontalScrollbarHeightSetter:P,verticalScrollDirection:E,horizontalScrollDirection:C}})({layoutService:n,viewService:r,pageInfo:i,tableRect:u}),{containerHeight:$,headerGridHeight:j,topGridHeight:G,leftGridHeight:H,dataGridHeight:B,allRowsVisible:W}=function({pageInfo:e,headersData:t,topDimensionData:r,tableRect:n,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=jS(),l=e.rowsOnCurrentPage*a,s=i*t.size.y,u=l+s,c=i*Math.max(t.size.y,r.rowCount,1);return{containerHeight:u,headerGridHeight:s,topGridHeight:c,leftGridHeight:Math.min(n.height-s-Zt,l),dataGridHeight:Math.min(n.height-c-Zt,l),allRowsVisible:c+Zt+l+o<=n.height}}({pageInfo:i,headersData:h,topDimensionData:g,tableRect:u,horizontalScrollbarHeight:q}),{leftGridWidth:V,leftGridColumnWidths:Y,rightGridWidth:U,totalWidth:K,showLastRightBorder:X,getRightGridColumnWidth:J,getHeaderCellsIconsVisibilityStatus:Z,overrideLeftGridWidth:Q}=function({layoutService:e,tableWidth:t,headersData:r,visibleTopDimensionInfo:n,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i}){const a=jS(),{measureText:l}=Vo(a.header),s=iE({layoutService:e,tableWidth:t,headersData:r}),u=aE({layoutService:e,tableWidth:t,visibleTopDimensionInfo:n,verticalScrollbarWidth:o,leftGridWidth:s.leftGridWidth}),c=s.leftGridWidth+u.rightGridFullWidth+Zt,d=c<t,p=_(((e,t,r="")=>{const n=s.leftGridColumnWidths[e];let o=!1,i=!1,a=l(r)+VS;return t&&a+WS<=n&&(i=!0,a+=WS),a+BS<=n&&(o=!0),{shouldShowMenuIcon:o,shouldShowLockIcon:i}}),[s.leftGridColumnWidths,l]);return M((()=>{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:n,tableWidth:u.width,headersData:h,visibleTopDimensionInfo:d,verticalScrollbarWidth:T,horizontalScrollbarHeightSetter:N}),{rootWrapper:ee,leftWrapper:te,rightWrapper:re}=(({tableRect:e,containerHeight:t,headerGridHeight:r,leftGridHeight:n,topGridHeight:o,dataGridHeight:i,allRowsVisible:a,totalWidth:l,leftGridWidth:s,rightGridWidth:u,verticalScrollbarWidth:c,horizontalScrollbarHeight:d})=>{const p=o+i+Zt,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:r},leftGrid:{width:s,height:n-m+f}},rightWrapper:{containers:{scrollable:{width:u+Zt-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:$,headerGridHeight:j,leftGridHeight:H,topGridHeight:G,dataGridHeight:B,allRowsVisible:W,totalWidth:K,leftGridWidth:V,rightGridWidth:U,verticalScrollbarWidth:T,horizontalScrollbarHeight:q}),ne=_((()=>l),[l]),oe=_((()=>s),[s]);return li.jsx($C,{ref:R,...ee.scrollable,onScroll:w,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:Tt.CONTAINER_GRID,children:li.jsx(NC,{...ee.fullSize,children:li.jsxs(jC,{...ee.sticky,style:{display:"grid",gridTemplateColumns:V?`${te.containers.scrollable.width}px ${re.containers.scrollable.width}px`:`${re.containers.scrollable.width}px`},children:[Boolean(V)&&li.jsx($C,{ref:L,...te.containers.scrollable,onScroll:C,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Tt.LEFT_GRID,children:li.jsx(NC,{isLeftGrid:!0,...te.containers.fullSize,children:li.jsxs(jC,{isLeftGrid:!0,...te.containers.sticky,children:[li.jsx(RR,{dataModel:E,columnWidths:Y,getHeaderCellsIconsVisibilityStatus:Z,rowHight:l,height:te.headerGrid.height,headersData:h,translator:a,changeSortOrder:p,changeActivelySortedHeader:f,overrideLeftGridWidth:Q,layoutService:n}),li.jsx(mL,{dataModel:E,leftGridRef:P,...te.leftGrid,columnWidths:Y,layoutService:n,leftDimensionData:b,showLastBorder:{right:!1,bottom:W},visibleLeftDimensionInfo:c,pageInfo:i})]})})}),li.jsx($C,{ref:A,...re.containers.scrollable,onScroll:C,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Tt.DATA_GRID,children:li.jsx(NC,{...re.containers.fullSize,children:li.jsxs(jC,{...re.containers.sticky,children:[li.jsx(yL,{dataModel:E,topGridRef:O,rowHightCallback:ne,...re.topGrid,layoutService:n,topDimensionData:g,showLastBorder:{right:X,bottom:!1},getRightGridColumnWidth:J,headersData:h}),li.jsx(tR,{dataModel:E,dataGridRef:I,rowHightCallback:oe,...re.dataGrid,viewService:r,layoutService:n,measureData:m,leftDimensionData:b,topDimensionData:g,visibleTopDimensionInfo:d,visibleLeftDimensionInfo:c,attrExprInfoIndexes:v.measures,showLastBorder:{right:X,bottom:W},getRightGridColumnWidth:J,pageInfo:i,verticalScrollDirection:F,horizontalScrollDirection:z})]})})})]})})})},SL=e=>{const{layoutService:t,translator:r,pageInfo:n,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=NS(),{layout:u,hasData:c}=t;return li.jsxs(li.Fragment,{children:[c&&li.jsx(xL,{...e}),li.jsx(zS,{translator:r,layoutService:t}),li.jsx(TS,{paginationNeeded:n.shouldShowPagination,handleChangePage:e=>o({page:e}),pageInfo:n,totalRowCount:n.totalRowCount,totalColumnCount:0,totalPages:n.totalPages,keyboard:a,translator:r,theme:l,interactions:s,rect:i,layout:u})]})},EL={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",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:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},CL=12,wL=14,RL=16,LL=24,AL=3,IL=300,DL=400,_L=600,ML=700,PL={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Zd(EL.GREYSCALE_0,.05),Zd(EL.GREEN_PALE,.5),Zd(EL.BLUE_PALE,.5),Zd(EL.GREEN_PALE,.5),Zd(EL.BLUE_PALE,.5),Zd(EL.GREEN_PALE,.5),Zd(EL.BLUE_PALE,.5);var OL;function kL(){return kL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kL.apply(this,arguments)}Zd(EL.GREEN_PALE,.5),Zd(EL.BLUE_PALE,.5),Zd(EL.GREEN_PALE,.5),Zd(EL.BLUE_PALE,.5);var TL,qL=function(e){return w.createElement("svg",kL({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),OL||(OL=w.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function NL(){return NL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},NL.apply(this,arguments)}var FL=function(e){return w.createElement("svg",NL({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),TL||(TL=w.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 zL({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return S.createElement("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r},t)}var $L=(e={})=>S.createElement(zL,{...e},S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},S.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),S.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"}))),jL=(e={})=>S.createElement(zL,{...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),S.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),GL=(e={})=>S.createElement(zL,{fontSize:"medium",...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},S.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),HL=(e={})=>S.createElement(zL,{fontSize:"medium",...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),S.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"}))),BL=({className:e})=>S.createElement(zL,{fontSize:"small",className:e},S.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},S.createElement("g",{transform:"translate(4.324187, 1.300372)"},S.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"}),S.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"})))))),WL=(e={})=>S.createElement(zL,{...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{stroke:EL.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const VL={MuiAccordion:{styleOverrides:{root:{backgroundColor:EL.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:EL.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:S.createElement(qL,{"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 ${EL.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:EL.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${EL.MISC_FOCUS_BORDER}`,borderRadius:AL,backgroundColor:EL.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 ${EL.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:EL.WHITE,color:EL.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:AL},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${EL.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:EL.GREYSCALE_0_15,backgroundColor:EL.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:EL.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${EL.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:EL.GREEN_PALE},"&:active":{backgroundColor:EL.GREEN_DARK},"&.Mui-focusVisible":{borderColor:EL.GREEN_PALE,boxShadow:`0 0 0 3px ${ic(EL.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:EL.BLUE_PALE},"&:active":{backgroundColor:EL.BLUE_DARK},"&.Mui-focusVisible":{borderColor:EL.BLUE_PALE,boxShadow:`0 0 0 3px ${ic(EL.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:AL,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:EL.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${EL.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:EL.GREYSCALE_0_15,backgroundColor:EL.GREYSCALE_100_60,"&:active":{backgroundColor:EL.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:EL.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${EL.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:EL.PURPLE,"&.Mui-focusVisible":{borderColor:EL.PURPLE,boxShadow:`0 0 0 3px ${ic(EL.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:EL.GREEN,"&.Mui-focusVisible":{borderColor:EL.GREEN,boxShadow:`0 0 0 3px ${ic(EL.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:EL.BLUE,"&.Mui-focusVisible":{borderColor:EL.BLUE,boxShadow:`0 0 0 3px ${ic(EL.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:EL.ORANGE,"&.Mui-focusVisible":{borderColor:EL.ORANGE,boxShadow:`0 0 0 3px ${ic(EL.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:EL.RED,"&.Mui-focusVisible":{borderColor:EL.RED,boxShadow:`0 0 0 3px ${ic(EL.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:EL.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:EL.PURPLE_PALE},"&:active":{backgroundColor:EL.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:EL.PURPLE_PALE,boxShadow:`0 0 0 3px ${ic(EL.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:EL.GREEN_PALE},"&:active":{backgroundColor:EL.GREEN_DARK},"&.Mui-focusVisible":{borderColor:EL.GREEN_PALE,boxShadow:`0 0 0 3px ${ic(EL.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:EL.BLUE_PALE},"&:active":{backgroundColor:EL.BLUE_DARK},"&.Mui-focusVisible":{borderColor:EL.BLUE_PALE,boxShadow:`0 0 0 3px ${ic(EL.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:EL.ORANGE_PALE},"&:active":{backgroundColor:EL.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:EL.ORANGE_PALE,boxShadow:`0 0 0 3px ${ic(EL.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:EL.RED_PALE},"&:active":{backgroundColor:EL.RED_DARK},"&.Mui-focusVisible":{borderColor:EL.RED_PALE,boxShadow:`0 0 0 3px ${ic(EL.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:EL.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:EL.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:AL,boxShadow:`inset 0 0 0 2px ${EL.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:S.createElement(FL,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:CL,borderRadius:AL,color:EL.TEXT_PRIMARY,backgroundColor:EL.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:EL.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${EL.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:EL.GREYSCALE_0_05,color:EL.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:EL.GREEN,borderColor:EL.GREEN},"&.MuiChip-outlinedInfo":{color:EL.BLUE,borderColor:EL.BLUE},"&.MuiChip-outlinedWarning":{color:EL.ORANGE,borderColor:EL.ORANGE},"&.MuiChip-outlinedError":{color:EL.RED,borderColor:EL.RED}},outlined:{border:`solid 1px ${EL.GREYSCALE_0_15}`,backgroundColor:EL.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:AL,boxShadow:"none",backgroundColor:EL.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:EL.GREEN,borderColor:EL.GREEN},outlinedSecondary:{color:EL.BLUE,borderColor:EL.BLUE},label:{fontFamily:PL.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:S.createElement(FL,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:S.createElement(qL,{"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:AL},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:AL,fontSize:wL,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:EL.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${EL.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:EL.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:EL.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:EL.GREYSCALE_0_05}}},popupIndicator:{borderRadius:AL,border:`solid 1px ${EL.GREYSCALE_0_15}`,color:EL.GREYSCALE_0_60,marginRight:0,width:LL,height:LL},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${EL.GREYSCALE_0_15}`},clearIndicator:{borderRadius:AL,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:EL.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:wL}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:CL,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:EL.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:EL.GREYSCALE_25,fontSize:CL,fontFamily:PL.FONT_FAMILY,fontWeight:_L,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:EL.TEXT_PRIMARY},"&.Mui-error":{color:EL.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:EL.TEXT_SECONDARY,content:"'(optional)'",fontWeight:DL,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:EL.TEXT_SECONDARY,content:"'(required)'",fontWeight:DL,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:wL,lineHeight:"16px",backgroundColor:EL.WHITE,borderRadius:AL,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${EL.GREYSCALE_0_05}`,borderColor:EL.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${EL.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${EL.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${EL.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${EL.RED}`,boxShadow:`0px 0px 0px 1px ${EL.RED}, inset 0 2px 0 0 ${EL.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${EL.GREYSCALE_0_10}`,borderColor:EL.GREYSCALE_0_10,backgroundColor:EL.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:EL.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:EL.GREYSCALE_0_15,borderRadius:AL,boxShadow:`inset 0 2px 0 0 ${EL.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>S.createElement(qL,{...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:EL.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:EL.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:EL.GREYSCALE_0_03},"&:active":{backgroundColor:EL.GREYSCALE_0_10},"&:focus":{backgroundColor:EL.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${EL.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${EL.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:EL.GREYSCALE_0_30,"&:hover":{backgroundColor:EL.GREYSCALE_0_0,borderColor:EL.GREYSCALE_0_15},"& ~svg":{color:EL.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${EL.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:AL}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:EL.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${EL.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:EL.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:wL,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:CL,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:CL,fontWeight:_L,color:EL.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:_L}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${EL.GREYSCALE_0_15}, 0px 0px 0px 1px ${EL.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:S.createElement(GL,null),checkedIcon:S.createElement(HL,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:EL.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${EL.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:EL.GREEN_PALE,boxShadow:`0 0 0 3px ${ic(EL.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:EL.BLUE_PALE,boxShadow:`0 0 0 3px ${ic(EL.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:EL.GREYSCALE_0_20}},"&.Mui-disabled":{fill:EL.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:S.createElement(WL,null),checkedIcon:S.createElement($L,null),indeterminateIcon:S.createElement(jL,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:AL,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:EL.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:EL.GREYSCALE_0_55,color:EL.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:EL.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:EL.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:EL.GREYSCALE_0_55,"&:hover":{color:EL.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:EL.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:EL.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:wL,color:EL.TEXT_PRIMARY,lineHeight:"16px",fontWeight:_L},secondary:{fontSize:CL,color:EL.GREYSCALE_45,fontWeight:DL,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:wL,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:EL.GREYSCALE_0_03},"&:active":{backgroundColor:EL.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:wL,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:EL.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:CL,borderBottom:`solid 1px ${EL.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:wL,color:EL.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:EL.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:EL.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:EL.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:EL.RED}}},"&.Mui-focusVisible":{backgroundColor:EL.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:EL.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:EL.GREEN,height:"24px","&.Mui-disabled":{color:EL.GREYSCALE_0_15}},rail:{backgroundColor:EL.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${EL.GREYSCALE_0_05}`,borderRadius:AL,boxShadow:`inset 0px 0px 0px 1px ${EL.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${EL.GREYSCALE_0_05}`,borderRadius:AL},thumb:{height:"16px",width:"16px",borderRadius:AL,backgroundColor:EL.WHITE,boxShadow:`0px 1px 2px 0px ${EL.GREYSCALE_0_15}, 0px 0px 0px 1px ${EL.GREYSCALE_0_05}`,"&:hover":{borderRadius:AL,boxShadow:`0 2px 4px 0 ${EL.GREYSCALE_0_30}, 0 0 0 1px ${EL.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${EL.GREYSCALE_0_15}, 0 0 0 1px ${EL.GREYSCALE_0_06}, 0 0 0 2px ${EL.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${EL.GREYSCALE_0_15}, 0 0 0 1px ${EL.GREYSCALE_0_06}, 0 0 0 2px ${EL.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:EL.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:EL.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:EL.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:EL.GREYSCALE_0_15},markLabel:{color:EL.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:EL.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:EL.WHITE,color:EL.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:EL.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:EL.GREEN_PALE,boxShadow:`0 0 0 3px ${ic(EL.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:EL.BLUE_PALE,boxShadow:`0 0 0 3px ${ic(EL.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:EL.GREYSCALE_0_15,borderRadius:AL},thumb:{height:"16px",width:"16px",borderRadius:AL,backgroundColor:EL.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:wL,fontWeight:_L,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${EL.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${EL.MISC_FOCUS_BORDER}`,backgroundColor:EL.GREYSCALE_0_03,borderRadius:AL},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:EL.GREYSCALE_25,"&.Mui-selected":{color:EL.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:wL,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${EL.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${EL.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${EL.GREYSCALE_85}`,borderRight:`1px solid ${EL.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:_L,backgroundColor:EL.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:EL.GREYSCALE_98,borderBottom:`1px solid ${EL.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${EL.GREYSCALE_85}`,borderTop:`1px solid ${EL.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:EL.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:EL.GREYSCALE_0_05,"&:hover":{backgroundColor:EL.GREYSCALE_0_03}},"&&:hover":{backgroundColor:EL.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>S.createElement(BL,{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 ${EL.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:wL,borderRadius:AL,padding:"7px 16px",border:`1px solid ${EL.GREYSCALE_0_15}`,backgroundColor:EL.GREYSCALE_100_60,color:EL.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:EL.GREYSCALE_0_10,border:`1px solid ${EL.GREYSCALE_0_30}`},"&:hover":{backgroundColor:EL.GREYSCALE_0_03,border:`1px solid ${EL.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:EL.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${EL.MISC_FOCUS_BORDER}`,border:`1px solid ${EL.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:EL.GREYSCALE_25,backgroundColor:EL.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:EL.GREYSCALE_0_10,border:`1px solid ${EL.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:CL,height:24,width:24,padding:7},sizeLarge:{fontSize:RL,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:wL,borderRadius:AL}}},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:EL.GREYSCALE_20},tooltip:{backgroundColor:EL.GREYSCALE_20,fontSize:CL,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var YL=e=>VL;const UL={mode:"light",primary:{light:EL.GREEN_PALE,main:EL.GREEN,dark:EL.GREEN_DARK,contrastText:EL.WHITE},secondary:{light:EL.BLUE_PALE,main:EL.BLUE,dark:EL.BLUE_DARK,contrastText:EL.WHITE},error:{light:EL.RED_PALE,main:EL.RED,dark:EL.RED_DARK,contrastText:EL.WHITE},warning:{light:EL.ORANGE_PALE,main:EL.ORANGE,dark:EL.ORANGE_DARK,contrastText:EL.WHITE},success:{light:EL.GREEN_PALE,main:EL.GREEN,dark:EL.GREEN_DARK,contrastText:EL.WHITE},info:{light:EL.BLUE_PALE,main:EL.BLUE,dark:EL.BLUE_DARK,contrastText:EL.WHITE},text:{primary:EL.TEXT_PRIMARY,secondary:EL.TEXT_SECONDARY,disabled:EL.GREYSCALE_0_30},action:{hover:EL.GREYSCALE_0_03,hoverOpacity:.05,selected:EL.GREYSCALE_0_05,focus:EL.MISC_FOCUS_BORDER},amethyst:{main:EL.PURPLE,light:EL.PURPLE_PALE,dark:EL.PURPLE_DARK,contrastText:EL.WHITE},background:{paper:EL.WHITE,default:EL.GREYSCALE_95},divider:EL.GREYSCALE_0_15},KL=e=>UL,XL=(e="light")=>({components:YL(),palette:KL(),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:wL,fontWeightLight:IL,fontWeightRegular:DL,fontWeightMedium:_L,fontWeightBold:ML,htmlFontSize:wL,fontFamily:PL.FONT_FAMILY,button:{fontWeight:_L,fontSize:wL,textTransform:"none"},body1:{fontSize:RL,lineHeight:"24px"},body2:{fontSize:wL,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:LL,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:RL,fontWeight:_L,lineHeight:"16px"},h6:{fontSize:wL,fontWeight:_L,lineHeight:"16px"},caption:{color:EL.TEXT_SECONDARY},subtitle1:{fontSize:wL,color:EL.TEXT_SECONDARY},subtitle2:{fontSize:CL,color:EL.TEXT_SECONDARY}},shape:{borderRadius:AL}});const JL=(e,t)=>{const{selections:r,styleService:n,app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,flags:c}=t,d=function(e){var t;const r=XL();return null!=r&&null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),bd({...r,direction:e})}("ltr");e.render(li.jsx(S.StrictMode,{children:li.jsx(Xd,{theme:d,children:li.jsx(FS,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,flags:c,children:li.jsx(cR,{selections:r,updatePageInfo:t.updatePageInfo,children:li.jsx(GS,{styleService:n,children:li.jsx(SL,{...t})})})})})}))},ZL={darker:.15,brighter:.3,opacity:.03},QL={darker:.3,brighter:.5,opacity:.05};var eA,tA,rA,nA;!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"}(eA||(eA={})),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"}(tA||(tA={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(rA||(rA={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(nA||(nA={}));const oA=e=>e?`${parseInt(e,10)}px`:void 0,iA=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?Qt.Transparent:r}},aA=(e,t)=>+(parseInt(e,10)*Jt*t+8).toFixed(2),lA=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?Ut:"normal",sA=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",uA=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",cA=({fontStyle:e,fontWeight:t,fontSize:r,fontFamily:n})=>t?`${e} ${t} ${r} ${n}`:`${e} ${r} ${n}`,dA=(e,t,n)=>r((()=>(({layout:e,flags:t,effectiveProperties:r})=>{var n,o;const{qHyperCube:i,nullValueRepresentation:a,snapshotData:l}=e,{qNoOfLeftDims:s,qEffectiveInterColumnSortOrder:u,qMeasureInfo:c,qDimensionInfo:d}=i,p=!!l,f={x:Math.min(e.qHyperCube.qSize.qcx,Xt),y:Math.min(e.qHyperCube.qSize.qcy,Kt)},h=u.slice(0,s),m=e=>h.some((t=>t===e)),g=m(ZS),b=new Map(u.map((e=>{var t;return[null!==(t=d[e])&&void 0!==t?t:ZS,e]}))),v=c.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==a?void 0:a.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(g)return 0;const r=e%v.length;return t?r:c.findIndex((e=>e===v[r]))},getDimensionInfo:e=>e===ZS?ZS:d[e],getDimensionInfoIndex:e=>{var t;return null!==(t=b.get(e))&&void 0!==t?t:-1},size:f,isSnapshot:p,hasLimitedData:!p&&f.x<e.qHyperCube.qSize.qcx,hasData:f.x>0&&f.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:!(null==r||null===(n=r.qHyperCubeDef)||void 0===n||!n.qShowTotalsAbove),hasPseudoDimOnLeft:g,leftDimensionInfoIndexes:h,isLeftDimension:m,isFullyExpanded:!(null==r||null===(o=r.qHyperCubeDef)||void 0===o||!o.qAlwaysFullyExpanded),triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:v,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled(_t)}})({layout:e,flags:t,effectiveProperties:n})),[e,n,t]),pA={},fA=e=>{const t=(e=>{const t=r((()=>({current:pA})),[]);return t.current=t.current===pA?e:t.current,t})(e);return t.current=e,t},hA=({model:e,layoutService:t,viewService:r,pageInfo:n,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=fA((e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/wt.PixelsMin)}))(o));return Dn((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,r,n)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=n||t.gridRowStartIndex+t.gridHeight>=r))(l,r,u,c)||((e,t,r,n)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(n,l.qcx)||c<Math.min(r,l.qcy)})(i,n,u,c))){const t=((e,t,r,n,o,i)=>{const a=n.page*n.rowsPerPage,l=Math.min(a+n.rowsPerPage,r.qcy),s=Math.min(Xt,r.qcx);if(r.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,r=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),r>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:c,qWidth:Math.min(s-u,i),qHeight:Math.min(l-c,o)}})(l,r,i.qHyperCube.qSize,n,u,c);return t?e.getHyperCubePivotData(JS,PC(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,r,n.page,n.rowsPerPage,s,l])},mA=({rowsPerPage:e,totalRowCount:t,page:r})=>Math.min(e,t-r*e),gA=(e,t)=>{const r=Kt;return{rowsPerPage:r,totalPages:Math.ceil(e/r),totalRowCount:e,rowsOnCurrentPage:mA({rowsPerPage:r,totalRowCount:e,page:t})}},bA=e=>({gridColumnStartIndex:e.gridColumnStartIndex,gridRowStartIndex:e.gridRowStartIndex,gridWidth:e.gridWidth,gridHeight:e.gridHeight,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,verticalScrollbarWidth:e.verticalScrollbarWidth});var vA={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 yA=()=>{const e=s(),t=e.language();return r((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(vA).forEach((t=>{e.add(vA[t])}))}}(e)),[e]),{translator:e,language:t}},xA=e=>{const{flags:s}=e,y=c(),x=(e=>{const t=r((()=>Yo(e)),[e]);return o((()=>()=>t.unmount()),[t]),t})(y),S=d(),E=p(),C=f(),w=h(),R=m(),L=g(),[A,I]=((e,t)=>Dn((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(E,S),D=dA(S,s,A),_=b(),M=((e,n,o)=>{const i=t();return r((()=>({...i,background:In(i,e,n,o)})),[i.name(),e,n,o])})(y),P=M.name(),{translator:O,language:k}=yA(),{pageInfo:T,updatePageInfo:q}=(e=>{const{size:t,layout:{qHyperCube:{qSize:r}}}=e,[n,a]=i({page:0,shouldShowPagination:r.qcy>t.y,...gA(r.qcy,0)});return o((()=>{a((t=>({...t,...gA(e.layout.qHyperCube.qSize.qcy,t.page),shouldShowPagination:e.layout.qHyperCube.qSize.qcy>e.size.y})))}),[e.layout.qHyperCube.qSize.qcy,e.size.y,a]),o((()=>{const{page:e,totalPages:t}=n;if(e+1>t){const e=t-1,r=mA({...n,page:e});a({...n,page:e,rowsOnCurrentPage:r})}}),[n]),{pageInfo:n,updatePageInfo:e=>a({...n,...e,rowsOnCurrentPage:mA({...n,...e})})}})(D),N=((e,t)=>{const{viewState:n}=u();return r((()=>((e,t)=>{var r,n,o,i,a,l,s,u,c,d,p,f,h,m,g,b,v,y,x,S,E,C,w,R;return{gridColumnStartIndex:null!==(r=null!==(n=null==t||null===(o=t.content)||void 0===o?void 0:o.gridColumnStartIndex)&&void 0!==n?n:null==e?void 0:e.gridColumnStartIndex)&&void 0!==r?r:0,gridRowStartIndex:null!==(i=null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.gridRowStartIndex)&&void 0!==a?a:null==e?void 0:e.gridRowStartIndex)&&void 0!==i?i:0,gridWidth:null!==(s=null!==(u=null==t||null===(c=t.content)||void 0===c?void 0:c.gridWidth)&&void 0!==u?u:null==e?void 0:e.gridWidth)&&void 0!==s?s:0,gridHeight:null!==(d=null!==(p=null==t||null===(f=t.content)||void 0===f?void 0:f.gridHeight)&&void 0!==p?p:null==e?void 0:e.gridHeight)&&void 0!==d?d:0,scrollTop:null!==(h=null!==(m=null==t||null===(g=t.content)||void 0===g?void 0:g.scrollTop)&&void 0!==m?m:null==e?void 0:e.scrollTop)&&void 0!==h?h:0,scrollLeft:null!==(b=null!==(v=null==t||null===(y=t.content)||void 0===y?void 0:y.scrollLeft)&&void 0!==v?v:null==e?void 0:e.scrollLeft)&&void 0!==b?b:0,leftGridScrollLeft:null!==(x=null!==(S=null==t||null===(E=t.content)||void 0===E?void 0:E.leftGridScrollLeft)&&void 0!==S?S:null==e?void 0:e.leftGridScrollLeft)&&void 0!==x?x:0,verticalScrollbarWidth:null!==(C=null!==(w=null==t||null===(R=t.content)||void 0===R?void 0:R.verticalScrollbarWidth)&&void 0!==w?w:null==e?void 0:e.verticalScrollbarWidth)&&void 0!==C?C:0}})(n,t.snapshotData)),[n,e.page,t.snapshotData])})(T,S),F=(({layoutService:e,viewService:t,rect:r,model:n})=>{var o;return a((async e=>{if(!e.snapshotData||!n||e.snapshotData.content)return e;if(null!=n&&n.getHyperCubePivotData){const{gridColumnStartIndex:o,gridRowStartIndex:i,gridWidth:a,gridHeight:l,scrollTop:s,scrollLeft:u,leftGridScrollLeft:c,verticalScrollbarWidth:d}=bA(t);e.snapshotData.content={qPivotDataPages:await n.getHyperCubePivotData(JS,[{qLeft:t.gridColumnStartIndex,qTop:t.gridRowStartIndex,qWidth:t.gridWidth,qHeight:t.gridHeight}]),gridColumnStartIndex:o,gridRowStartIndex:i,gridWidth:a,gridHeight:l,scrollTop:s,scrollLeft:u,leftGridScrollLeft:c,verticalScrollbarWidth:d},e.snapshotData.object.size.w=r.width,e.snapshotData.object.size.h=r.height}return e})),l((()=>({getViewState:()=>bA(t)})),[t]),null!==(o=e.layout.snapshotData)&&void 0!==o&&o.content?{left:r.left,top:r.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:r})({rect:v(),layoutService:D,viewService:N,model:E}),[z,$]=hA({model:E,layoutService:D,viewService:N,pageInfo:T,rect:F}),j=r((()=>((e,t,r)=>{var n,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,D,_,M,P,O,k,T,q,N,F,z,$,j,G,H,B,W,V,Y,U,K;const X=null===(n=t.layout.components)||void 0===n?void 0:n.find((e=>"theme"===e.key)),J=null==X?void 0:X.header,Z=null==X?void 0:X.dimensionValues,Q=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,re=null==X?void 0:X.nullValues,ne=null==X?void 0:X.grid,oe=(t,r,n)=>e.getStyle(t,r,n),ie=+(null!==(o=null!==(i=null==ne?void 0:ne[eA.LineClamp])&&void 0!==i?i:oe(tA.Grid,rA.Grid,nA.LineClamp))&&void 0!==o?o:1),ae=r.isEnabled(It)?+(null!==(a=null!==(l=null==ne?void 0:ne[eA.ColumnLineClamp])&&void 0!==l?l:oe(tA.Grid,rA.Grid,nA.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=iA(e,null==J?void 0:J[eA.Background]))&&void 0!==u?u:oe(tA.Dimension,rA.LabelName,nA.BackgroundColor))&&void 0!==s?s:Qt.Transparent,se={header:{fontSize:null!==(c=null!==(d=oA(null==J?void 0:J[eA.FontSize]))&&void 0!==d?d:oe(tA.Dimension,rA.LabelName,nA.FontSize))&&void 0!==c?c:Vt,fontFamily:null!==(p=null!==(f=null==J?void 0:J[eA.FontFamily])&&void 0!==f?f:oe(tA.Dimension,rA.LabelName,nA.FontFamily))&&void 0!==p?p:Yt,fontWeight:lA(null==J?void 0:J[eA.FontStyle],Ut),fontStyle:sA(null==J?void 0:J[eA.FontStyle]),textDecoration:uA(null==J?void 0:J[eA.FontStyle]),color:null!==(h=null!==(m=iA(e,null==J?void 0:J[eA.FontColor]))&&void 0!==m?m:oe(tA.Dimension,rA.LabelName,nA.Color))&&void 0!==h?h:By.TEXT,background:le,hoverBackground:Wy(le,ZL),activeBackground:Wy(le,QL)},dimensionValues:{fontSize:null!==(g=null!==(b=oA(null==Z?void 0:Z[eA.FontSize]))&&void 0!==b?b:oe(tA.Dimension,rA.LabelValue,nA.FontSize))&&void 0!==g?g:Vt,fontFamily:null!==(v=null!==(y=null==Z?void 0:Z[eA.FontFamily])&&void 0!==y?y:oe(tA.Dimension,rA.LabelValue,nA.FontFamily))&&void 0!==v?v:Yt,fontWeight:lA(null==Z?void 0:Z[eA.FontStyle],void 0),fontStyle:sA(null==Z?void 0:Z[eA.FontStyle]),textDecoration:uA(null==Z?void 0:Z[eA.FontStyle]),color:null!==(x=null!==(S=iA(e,null==Z?void 0:Z[eA.FontColor]))&&void 0!==S?S:oe(tA.Dimension,rA.LabelValue,nA.Color))&&void 0!==x?x:By.TEXT,background:null!==(E=null!==(C=iA(e,null==Z?void 0:Z[eA.Background]))&&void 0!==C?C:oe(tA.Dimension,rA.LabelValue,nA.BackgroundColor))&&void 0!==E?E:Qt.Transparent},measureValues:{fontSize:null!==(w=null!==(R=oA(null==Q?void 0:Q[eA.FontSize]))&&void 0!==R?R:oe(tA.Measure,rA.LabelValue,nA.FontSize))&&void 0!==w?w:Vt,fontFamily:null!==(L=null!==(A=null==Q?void 0:Q[eA.FontFamily])&&void 0!==A?A:oe(tA.Measure,rA.LabelValue,nA.FontFamily))&&void 0!==L?L:Yt,fontWeight:lA(null==Q?void 0:Q[eA.FontStyle],"normal"),fontStyle:sA(null==Q?void 0:Q[eA.FontStyle]),textDecoration:uA(null==Q?void 0:Q[eA.FontStyle]),color:null!==(I=null!==(D=iA(e,null==Q?void 0:Q[eA.FontColor]))&&void 0!==D?D:oe(tA.Measure,rA.LabelValue,nA.Color))&&void 0!==I?I:Qt.FontSecondary,background:null!==(_=null!==(M=iA(e,null==Q?void 0:Q[eA.Background]))&&void 0!==M?M:oe(tA.Measure,rA.LabelValue,nA.BackgroundColor))&&void 0!==_?_:Qt.Transparent},measureLabels:{fontWeight:lA(null==ee?void 0:ee[eA.FontStyle],"normal"),fontStyle:sA(null==ee?void 0:ee[eA.FontStyle]),textDecoration:uA(null==ee?void 0:ee[eA.FontStyle]),color:null!==(P=null!==(O=iA(e,null==ee?void 0:ee[eA.FontColor]))&&void 0!==O?O:oe(tA.Measure,rA.LabelName,nA.Color))&&void 0!==P?P:Qt.FontSecondary,background:null!==(k=null!==(T=iA(e,null==ee?void 0:ee[eA.Background]))&&void 0!==T?T:oe(tA.Measure,rA.LabelName,nA.BackgroundColor))&&void 0!==k?k:Qt.Transparent},totalValues:{fontWeight:lA(null==te?void 0:te[eA.FontStyle],Ut),fontStyle:sA(null==te?void 0:te[eA.FontStyle]),textDecoration:uA(null==te?void 0:te[eA.FontStyle]),color:null!==(q=null!==(N=iA(e,null==te?void 0:te[eA.FontColor]))&&void 0!==N?N:oe(tA.Total,rA.LabelValue,nA.Color))&&void 0!==q?q:By.TEXT,background:null!==(F=null!==(z=iA(e,null==te?void 0:te[eA.Background]))&&void 0!==z?z:oe(tA.Total,rA.LabelValue,nA.BackgroundColor))&&void 0!==F?F:Qt.Transparent},nullValues:{fontWeight:lA(null==re?void 0:re[eA.FontStyle],"normal"),fontStyle:sA(null==re?void 0:re[eA.FontStyle]),textDecoration:uA(null==re?void 0:re[eA.FontStyle]),color:null!==($=null!==(j=iA(e,null==re?void 0:re[eA.FontColor]))&&void 0!==j?j:oe(tA.Null,rA.LabelValue,nA.Color))&&void 0!==$?$:By.TEXT,background:null!==(G=null!==(H=iA(e,null==re?void 0:re[eA.Background]))&&void 0!==H?H:oe(tA.Null,rA.LabelValue,nA.BackgroundColor))&&void 0!==G?G:Qt.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(B=null!==(W=iA(e,null==ne?void 0:ne[eA.Border]))&&void 0!==W?W:oe(tA.Grid,rA.Grid,nA.BorderColor))&&void 0!==B?B:Qt.DividerLight,divider:null!==(V=null!==(Y=iA(e,null==ne?void 0:ne[eA.Divider]))&&void 0!==Y?Y:oe(tA.Grid,rA.Divider,nA.BorderColor))&&void 0!==V?V:Qt.DividerDark,background:null!==(U=null!==(K=iA(e,null==ne?void 0:ne[eA.Background]))&&void 0!==K?K:oe(tA.Grid,rA.Grid,nA.BackgroundColor))&&void 0!==U?U:Qt.Transparent}};return se.headerCellHeight=Math.max(aA(se.header.fontSize,ae),aA(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(aA(se.measureValues.fontSize,ie),aA(se.dimensionValues.fontSize,ie),24),se.contentRowHeight=Math.max(aA(se.measureValues.fontSize,1),aA(se.dimensionValues.fontSize,1)),se.contentTextHeight=se.contentRowHeight-8,se})(M,D,s)),[M.name(),D,s]),G=(e=>r((()=>[...new Set([cA(e.header),cA(e.dimensionValues),cA({...e.dimensionValues,...e.measureLabels}),cA({...e.dimensionValues,...e.nullValues}),cA({...e.dimensionValues,...e.totalValues}),cA(e.measureValues),cA({...e.measureValues,...e.nullValues}),cA({...e.measureValues,...e.totalValues})])]),[e]))(j),H=(e=>{const[t,r]=n((()=>Promise.all(e.map((e=>document.fonts.load(e))))),[e]);return r?(console.warn("Failed to load font:",r),!0):!!t})(G);o((()=>{!$&&E&&(null==F?void 0:F.width)&&(null==F?void 0:F.height)&&_&&N&&D&&j&&!!z&&!I&&H&&JL(x,{model:E,app:C,rect:F,selections:_,viewService:N,layoutService:D,qPivotDataPages:z,styleService:j,translator:O,pageInfo:T,updatePageInfo:q,interactions:L,embed:w,keyboard:R,theme:M,flags:s})}),[E,C,F,null==F?void 0:F.width,null==F?void 0:F.height,L,_,N,D,$,z,j,x,H,O,k,T,q,A,I,w,R,M,P,s])},SA={version:"3.2.0",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]}}}}));
|