@nebula.js/sn-pivot-table 4.6.2 → 4.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  /*
2
- * @nebula.js/sn-pivot-table v4.6.2
2
+ * @nebula.js/sn-pivot-table v4.6.3
3
3
  * Copyright (c) 2025 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- System.register(["react","@nebula.js/stardust","react-dom","picasso-plugin-q","picasso.js"],(function(e){"use strict";var t,r,n,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,L,I,M,D,A,P,O,k,T,_,q,N,F,j,z,G;return{setters:[function(e){t=e.default,r=e,n=e.useContext,o=e.createElement,i=e.isValidElement,a=e.cloneElement,l=e.Children,s=e.useMemo,u=e.useState,c=e.useRef,d=e.forwardRef,p=e.useCallback,f=e.useEffect,m=e.createContext,h=e.memo,g=e.useLayoutEffect,b=e.PureComponent,v=e.useReducer},function(e){y=e.useMemo,x=e.useOptions,S=e.usePromise,E=e.useState,C=e.useEffect,w=e.useTheme,R=e.useInteractionState,L=e.onContextMenu,I=e.onTakeSnapshot,M=e.useImperativeHandle,D=e.useTranslator,A=e.useElement,P=e.useStaleLayout,O=e.useModel,k=e.useApp,T=e.useEmbed,_=e.useKeyboard,q=e.useSelections,N=e.useRect},function(e){F=e.default,j=e},function(e){z=e.default},function(e){G=e.default}],execute:function(){function B(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $(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:gO()},data:Mt(e)},ext:Lg(e),component(){mO(e)}}}));var W={exports:{}};self,W.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Pe});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var l=a[i];return a[i]=r,{updated:r,previous:l}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var l=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(l);if(-1!==r){var n=t.indexOf(s);if(-1!==n)return t.substring(r+l.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var l=S({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),r=e.indexOf(s);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),L={},I=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function D(e){return void 0===e}function A(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function P(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=D(e[r||t])?i:e[t],e=e[r||t]}})),e}function O(e,t){var r=!0;if(M(e)&&M(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){O(e[n],t[n])||(r=!1)})),r);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!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)||A(t,o)||(D(a)?n.push({op:"add",path:l,value:i}):M(i)&&M(a)?n=n.concat(L.generate(a,i,l)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&D(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(O(t,o))return n;if(!D(t[0])&&D(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(n.push({op:"remove",path:"".concat(r,"/").concat(l)}),o.splice(l,1)):n=n.concat(L.generate(o[l],t[i],"".concat(r,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(n.push({op:"move",path:"".concat(r,"/").concat(s),from:"".concat(r,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return n}(a,i,l)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){D(t[o])&&!A(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},L.apply=function(e,t){t.forEach((function(t){var r,n,o=P(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(M(a)&&M(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!A(r,e)&&delete r[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=P(e,t.from);I(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])}))},L.clone=function(e){return R({},e)},L.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},L.updateObject=function(e,t){Object.keys(e).length?L.apply(e,L.generate(e,t)):R(e,t)};const k=L,T=function(e,r,n){if(!e)return Promise.resolve();var o=k.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var _="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===_)return r[n]}function N(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===_)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const j={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(r,s),p=E.getAboveComp(r,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=q(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=q(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(_))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var z="movingAverage";function G(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===z)return r[n]}function B(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===z)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var $={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return r;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),m=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,$)},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(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=G(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=G(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(z))return!1;var i=G(t,e);return i&&!i.disabled}};return r}};var H="timeSeriesDecomposition";function V(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===H)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===H)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,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,Y),""===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(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=V(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var r=V(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(H))return!1;var i=V(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var l=ae(t),s=le(t,r,n),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,s,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Le="qDef.base.qAggrFunc",Ie={initBase:function(e,t){(t||Ie.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,we,i(e,Ee)))},restoreBase:function(e){Ie.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,Ee,i(e,we)),i(e,Re)&&i(e,Le)&&r(e,Re,i(e,Le)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const Me=Ie;function De(e){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}var Ae={accumulation:j,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Pe={modifiers:Ae,apply:ke,applyModifiers:Te,cleanUpMeasure:_e,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:Me.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ae[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Ae[e]&&Ae[e].isApplicable({properties:r,layout:n})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=ze(e);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var Oe={};function ke(){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"===De(n))return Te({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Oe[r.id].lastReloadTime;if(Oe[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ue({modifiers:ze(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Be(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return m&&function(e){var t=e.properties;je(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===De(e)&&!e.disabled){if(r++,"object"!==De(Ae[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Ae[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),Te({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===De(e.base)}))}(p)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return je(n).forEach((function(e){return _e(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(s)}function Te(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=s?t()(!0,{},o):o),Be(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(r||(r=je(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return _e(e)})),Promise.resolve();var s=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ue({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Me.isValid(r)||Me.initBase(r,!0);var s=r.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===De(e)&&!e.disabled){if(l++,"object"!==De(Ae[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ae[e.type].initModifier(e,r);var s=r.qLibraryId||c&&c.qLibraryId;s?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Ae[n.type].generateExpression({expression:l,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:s,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Ae[n.type].updateModifier&&Ae[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),l=""===a?a:Ae[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),$e(r)):_e(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function _e(e){!function(e){var t=ze(e);return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&!Ae[e.type]}))}(e)?Me.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,$e(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:ze(e),properties:r,layout:n})}))}function Ne(e){var t=ze(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Ae[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||Ae[t.type].enableTotalsFunction(e)}function je(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function ze(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function Ge(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){je(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&Ge(r)!==e.qDef.qDef?delete e.qDef.base:!Me.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function $e(e){var t=ze(e);Array.isArray(t)&&t.forEach((function(t){"object"===De(t)&&(t.disabled||!Ae[t.type]&&Ge(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function He(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,r=e.properties,n=e.layout;return!He(t)&&Ue({modifiers:ze(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==De(e)||e.disabled||!Ae[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ae[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):T(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&Ae[e.type]&&Ae[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=je(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=ze(t);if(Ue({modifiers:n,properties:e})){var i=He(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(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 ke({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:()=>Be});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var l=n[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(645),f=r.n(p);const m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var l,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,s(n.qMeasures));var a,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(n=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=a}var S=r(229),E=r.n(S);function C(e,t){var r=E()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function w(e,t){return E()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var L=Math.pow(2,53)-1;function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const D=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},A=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},P=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},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}}},k=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},T=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=r.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},_=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=r.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},q=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},l=R(a.max,o.dimensions.length,L),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,L),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},N=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},r,o)).components&&(o.components=[]),o},j=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>r&&r>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},G=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return I(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},B=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return M(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?M(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},$=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const H={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,r||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?O():w,L=s.defaultMeasure,I=void 0===L?k():L;v.qDimensions.length=0,v.qMeasures.length=0,j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),T({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),_({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:I}),G({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),A("qMaxStackedCells",b,v),A("qNoOfLeftDims",b,v),P("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),P("qMode",b,v,"S"),P("qReductionMode",b,v,"N"),P("qSortbyYValue",b,v),P("qIndentMode",b,v),P("qShowTotalsAbove",b,v),D(g,t,n),h.qProperty=g;var M=i.getValue(c||{},"support.modifiers");return $({measures:v.qMeasures,modifierTypes:M}),p&&W(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&W(h.qProperty,"dynamicScript"),h}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(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 Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!V[e])throw new Error("Attribute Expressions Util: ID required");var 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(U(a,t,n,o),Y(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})),t.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}))}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(n,o);var s=n[n.length-1];if(s){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,l={};switch(e){case"dimension":r.qLibraryId?(l.type="dimension",l.name=r.qLibraryId,l.id=r.qLibraryId):(l.type="field",t?(l.name=r.label||r.qDef,l.id=r.qDef):(l.name=r.qDef.qFieldDefs[0],l.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(l.expression=i)):(l.type="expression",t?(l.name=r.label||r.qExpression,l.id=r.qExpression):(l.name=r.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(re(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:l,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}i.auto=!1,i.mode=a}function le(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===l}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?le(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==l&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:l,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||n[0])),!!l}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=H.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=H.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(r,"unsupportedAutoMinMax")||E()(r.measureAxis,t.measureAxis):W(r,"supportedAutoMinMax")||E()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,r.properties.measureAxes[t[0].axis])):E()(l,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},Ee={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function we(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(r,n,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(r,n,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Le="qHyperCubeDef.qMeasures",Ie="conditionalColoring",Me="measures",De="qDef.conditionalColoring";const Ae={quarantine:function(e){we({properties:e,arrayPath:Le,quarantineName:Ie,arrayName:Me,itemPath:De})},unquarantine:function(e){Re({properties:e,arrayPath:Le,itemPath:De,arrayName:Me,quarantineName:Ie})}};var Pe="qHyperCubeDef.qMeasures",Oe="measures",ke="qHyperCubeDef.qDimensions",Te="dimensions",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",je="qCalcCondition",ze="conditionalShowHide";const Ge={quarantine:function(e){we({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:Oe,itemPath:je}),we({properties:e,arrayPath:ke,quarantineName:ze,arrayName:Te,itemPath:je})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:Oe,itemPath:je}),Re({properties:e,arrayPath:ke,quarantineName:ze,arrayName:Te,itemPath:je})},quarantineAlternative:function(e){we({properties:e,arrayPath:_e,quarantineName:ze,arrayName:qe,itemPath:je}),we({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:_e,quarantineName:ze,arrayName:qe,itemPath:je}),Re({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})}},Be={hypercube:H,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:Ae,conditionalShow:Ge}})(),n.default})();var H=B(W.exports);const V="qHyperCubeDef.qMeasures",U="measures",Y="qHyperCubeDef.qDimensions",K="dimensions",X="qDef.representation",J="tableRepresentation",Z="qDef.conditionalColoring",Q="conditionalColoring",ee="qMiniChartDef",te="miniChartDef",re=e=>{H.unquarantineArrayProp({properties:e,arrayPath:Y,itemPath:X,arrayName:K,quarantineName:J}),H.unquarantineArrayProp({properties:e,arrayPath:V,itemPath:X,arrayName:U,quarantineName:J}),H.unquarantineArrayProp({properties:e,arrayPath:V,itemPath:Z,arrayName:U,quarantineName:Q}),H.unquarantineArrayProp({properties:e,arrayPath:V,itemPath:ee,arrayName:U,quarantineName:te})},ne=e=>{H.quarantineArrayProp({properties:e,arrayPath:Y,itemPath:X,arrayName:K,quarantineName:J}),H.quarantineArrayProp({properties:e,arrayPath:V,itemPath:X,arrayName:U,quarantineName:J}),H.quarantineArrayProp({properties:e,arrayPath:V,itemPath:Z,arrayName:U,quarantineName:Q}),H.quarantineArrayProp({properties:e,arrayPath:V,itemPath:ee,arrayName:U,quarantineName:te})};function oe(e){return"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function ie(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length&&oe(t[0]))return(t[0].r<<16)+(t[0].g<<8)+t[0].b;var n=0,o=0,i=0;if(1===t.length&&"string"==typeof t[0]){var a,l=t[0];(a=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(l))?(n=parseInt(a[1],10),o=parseInt(a[2],10),i=parseInt(a[3],10)):(a=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(l))?(n=parseInt(a[1],16),o=parseInt(a[2],16),i=parseInt(a[3],16)):(a=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(l))&&(n=parseInt(a[1]+a[1],16),o=parseInt(a[2]+a[2],16),i=parseInt(a[3]+a[3],16))}return(n<<16)+(o<<8)+i}function ae(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var se={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},ue="qcm-color";function ce(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o,i,a,l,s,u,c,d,p,f={type:ue,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},m=0,h=0,g=0,b=1;if((null===(e=r[0])||void 0===e?void 0:e.type)===ue){var v=r[0];m=v.r,h=v.g,g=v.b,b=v.a,f.invalid=r[0].invalid,f.spaces=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?le(Object(r),!0).forEach((function(t){ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r[0].spaces)}else if(r.length<3)if("string"==typeof r[0]){var y,x=r[0];if(y=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10);else if(y=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10),b=parseFloat(y[4]);else if(y=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))b=parseInt(y[1],10)/255,m=parseInt(y[2],10),h=parseInt(y[3],10),g=parseInt(y[4],10);else if(y=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(x))m=parseInt(y[1],16),h=parseInt(y[2],16),g=parseInt(y[3],16),b=1;else if(y=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(x))m=parseInt(y[1]+y[1],16),h=parseInt(y[2]+y[2],16),g=parseInt(y[3]+y[3],16),b=1;else if(y=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var S=[];switch(c=Math.floor(c)){case 0:S=[u,d,0];break;case 1:S=[d,u,0];break;case 2:S=[0,u,d];break;case 3:S=[0,d,u];break;case 4:S=[d,0,u];break;case 5:S=[u,0,d];break;default:S=[0,0,0]}p=l-.5*u,m=S[0]+p,h=S[1]+p,g=S[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(y=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),b=parseFloat(y[7]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var E=[];switch(c=Math.floor(c)){case 0:E=[u,d,0];break;case 1:E=[d,u,0];break;case 2:E=[0,u,d];break;case 3:E=[0,d,u];break;case 4:E=[d,0,u];break;case 5:E=[u,0,d];break;default:E=[0,0,0]}p=l-.5*u,m=E[0]+p,h=E[1]+p,g=E[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g)}else if(y=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),s=parseFloat(y[5]),c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)*(i=(i/=100)<0?0:i>1?1:i))*(1-Math.abs(c%2-1));var C=[];switch(c=Math.floor(c)){case 0:C=[u,d,0];break;case 1:C=[d,u,0];break;case 2:C=[0,u,d];break;case 3:C=[0,d,u];break;case 4:C=[d,0,u];break;case 5:C=[u,0,d];break;default:C=[0,0,0]}p=s-u,m=C[0]+p,h=C[1]+p,g=C[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(se[x.toLowerCase()]){a=x.toLowerCase();var w=se[a];m=w.r,h=w.g,g=w.b,b="number"==typeof se[a].a?se[a].a:1}else f.invalid=!0}else"number"==typeof r[0]&&r[0]>=0&&"argb"===r[1]?(b=(4278190080&r[0])>>>24,b/=255,m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):"number"==typeof r[0]&&r[0]>=0?(m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):f.invalid=!0;else r.length>=3&&r.length<=4?(m=r[0],h=r[1],g=r[2],b=arguments.length>=4?r[3]:1):f.invalid=!0;return Number.isNaN(+m+h+g+b)&&(f.invalid=!0),f.r=Math.floor(m),f.g=Math.floor(h),f.b=Math.floor(g),f.a=b,f.l=l,f}function de(e){var t,r,n=0,o="string"==typeof e?ce(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=s;if(s===u)t=0,n=0;else{switch(t=0==(r=s-u)?0:r/c,s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function pe(e){if(oe(e))return"rgb(".concat([e.r,e.g,e.b].join(", "),")");var t="string"==typeof e?ie(e):e,r=(65280&t)>>8,n=255&t;return"rgb(".concat((16711680&t)>>16,", ").concat(r,", ").concat(n,")")}function fe(e,t){return oe(e)?"rgba(".concat([e.r,e.g,e.b,e.a].join(", "),")"):fe(ce(e))}function me(e){return oe(e)?1===e.a?pe(e):fe(e):me(ce(e))}var he,ge,be=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function ve(){var e=ce.apply(void 0,arguments);return e.invalid||function(e){return.2126*be(e.r)+.7152*be(e.g)+.0722*be(e.b)}(e)<.4}function ye(){var e=ce.apply(void 0,arguments),t={type:e.type,r:e.r,g:e.g,b:e.b,a:e.a,invalid:e.invalid,spaces:e.spaces},r=function(){return t.spaces.hsla||(t.spaces.hsla=function(e){var t,r,n=0,o="string"==typeof e?ce(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=o.a,u=Math.max(i,a,l),c=Math.min(i,a,l),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsla(".concat(360*n,", ").concat(100*t,", ").concat(100*d,", ").concat(s,")")}(t)),t.spaces.hsla},n=function(e){var t=r(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),o=parseFloat(n[1]),i=parseFloat(n[3]),a=parseFloat(n[7]),l=parseFloat(n[5]),s=Math.max(0,Math.min(l+e,100));return"hsla(".concat(o,", ").concat(i,", ").concat(s,", ").concat(a,")")};return{get type(){return t.type},isInvalid:function(){return t.invalid},get r(){return t.r},get g(){return t.g},get b(){return t.b},get a(){return t.a},getR:function(){return t.r},getG:function(){return t.g},getB:function(){return t.b},getAlpha:function(){return t.a},setAlpha:function(e){t.a=e,t.spaces={}},isEqualTo:function(e){var r=e.type===t.type?e:ce(e);return r.r===t.r&&r.g===t.g&&r.b===t.b&&r.a===t.a},isDark:function(){return ve(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=pe(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=fe(t)),t.spaces.rgba},getString:function(){return t.spaces.string||(t.spaces.string=me(t)),t.spaces.string},getHex:function(){return t.spaces.hex||(t.spaces.hex=function(e){var t,r,n;if(oe(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat([t,r,n].join(""));var o="string"==typeof e?ie(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat(t).concat(r).concat(n)}(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=function(e){var t,r,n=0,o="string"==typeof e?ce(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=(s+u)/2;if(s===u)t=0,n=0;else{switch(r=s-u,t=c>.5?r/(2-s-u):r/(s+u),s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsl(".concat(360*n,", ").concat(100*t,", ").concat(100*c,")")}(t)),t.spaces.hsl},getHSLA:r,getShiftedHSLA:n,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=function(e){var t=de(e),r=t.h,n=t.s,o=t.v;return"hsv(".concat(r,", ").concat(n,", ").concat(o,")")}(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=de(t)),t.spaces.hsvObject},blend:function(e,r){var n=Math.floor(t.r+(e.r-t.r)*r),o=Math.floor(t.g+(e.g-t.g)*r),i=Math.floor(t.b+(e.b-t.b)*r),a=Math.floor(t.a+(e.getAlpha()-t.a)*r);return"rgba(".concat([n,o,i,a].join(", "),")")},getBrightenedColor:function(){return ye(n(18*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))},getDarkenedColor:function(){return ye(n(18*-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))}}}var xe=function(){if(ge)return he;ge=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return he=function e(){var t,r,n,s,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(s=l(t,r))&&(m&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(m,c,s)})):void 0!==s&&a(d,{name:r,newValue:s}));return d},he}();function Se(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Ee(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Ce(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(xe);var we=1/.7,Re="\\s*([+-]?\\d+)\\s*",Le="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ie="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Me=/^#([0-9a-f]{3,8})$/,De=new RegExp(`^rgb\\(${Re},${Re},${Re}\\)$`),Ae=new RegExp(`^rgb\\(${Ie},${Ie},${Ie}\\)$`),Pe=new RegExp(`^rgba\\(${Re},${Re},${Re},${Le}\\)$`),Oe=new RegExp(`^rgba\\(${Ie},${Ie},${Ie},${Le}\\)$`),ke=new RegExp(`^hsl\\(${Le},${Ie},${Ie}\\)$`),Te=new RegExp(`^hsla\\(${Le},${Ie},${Ie},${Le}\\)$`),_e={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function qe(){return this.rgb().formatHex()}function Ne(){return this.rgb().formatRgb()}function Fe(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Me.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?je(t):3===r?new $e(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?ze(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?ze(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=De.exec(e))?new $e(t[1],t[2],t[3],1):(t=Ae.exec(e))?new $e(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Pe.exec(e))?ze(t[1],t[2],t[3],t[4]):(t=Oe.exec(e))?ze(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ke.exec(e))?Ke(t[1],t[2]/100,t[3]/100,1):(t=Te.exec(e))?Ke(t[1],t[2]/100,t[3]/100,t[4]):_e.hasOwnProperty(e)?je(_e[e]):"transparent"===e?new $e(NaN,NaN,NaN,0):null}function je(e){return new $e(e>>16&255,e>>8&255,255&e,1)}function ze(e,t,r,n){return n<=0&&(e=t=r=NaN),new $e(e,t,r,n)}function Ge(e){return e instanceof Ce||(e=Fe(e)),e?new $e((e=e.rgb()).r,e.g,e.b,e.opacity):new $e}function Be(e,t,r,n){return 1===arguments.length?Ge(e):new $e(e,t,r,null==n?1:n)}function $e(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function We(){return`#${Ye(this.r)}${Ye(this.g)}${Ye(this.b)}`}function He(){const e=Ve(this.opacity);return`${1===e?"rgb(":"rgba("}${Ue(this.r)}, ${Ue(this.g)}, ${Ue(this.b)}${1===e?")":`, ${e})`}`}function Ve(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ue(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ye(e){return((e=Ue(e))<16?"0":"")+e.toString(16)}function Ke(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Je(e,t,r,n)}function Xe(e){if(e instanceof Je)return new Je(e.h,e.s,e.l,e.opacity);if(e instanceof Ce||(e=Fe(e)),!e)return new Je;if(e instanceof Je)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Je(a,l,s,e.opacity)}function Je(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Ze(e){return(e=(e||0)%360)<0?e+360:e}function Qe(e){return Math.max(0,Math.min(1,e||0))}function et(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Se(Ce,Fe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:qe,formatHex:qe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Xe(this).formatHsl()},formatRgb:Ne,toString:Ne}),Se($e,Be,Ee(Ce,{brighter(e){return e=null==e?we:Math.pow(we,e),new $e(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new $e(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new $e(Ue(this.r),Ue(this.g),Ue(this.b),Ve(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:We,formatHex:We,formatHex8:function(){return`#${Ye(this.r)}${Ye(this.g)}${Ye(this.b)}${Ye(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:He,toString:He})),Se(Je,(function(e,t,r,n){return 1===arguments.length?Xe(e):new Je(e,t,r,null==n?1:n)}),Ee(Ce,{brighter(e){return e=null==e?we:Math.pow(we,e),new Je(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Je(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new $e(et(e>=240?e-240:e+120,o,n),et(e,o,n),et(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Je(Ze(this.h),Qe(this.s),Qe(this.l),Ve(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ve(this.opacity);return`${1===e?"hsl(":"hsla("}${Ze(this.h)}, ${100*Qe(this.s)}%, ${100*Qe(this.l)}%${1===e?")":`, ${e})`}`}}));const tt=Math.PI/180,rt=180/Math.PI,nt=4/29,ot=6/29,it=3*ot*ot;function at(e){if(e instanceof lt)return new lt(e.l,e.a,e.b,e.opacity);if(e instanceof pt)return ft(e);e instanceof $e||(e=Ge(e));var t,r,n=dt(e.r),o=dt(e.g),i=dt(e.b),a=st((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=st((.4360747*n+.3850649*o+.1430804*i)/.96422),r=st((.0139322*n+.0971045*o+.7141733*i)/.82521)),new lt(116*a-16,500*(t-a),200*(a-r),e.opacity)}function lt(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function st(e){return e>.008856451679035631?Math.pow(e,1/3):e/it+nt}function ut(e){return e>ot?e*e*e:it*(e-nt)}function ct(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function dt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function pt(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function ft(e){if(isNaN(e.h))return new lt(e.l,0,0,e.opacity);var t=e.h*tt;return new lt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Se(lt,(function(e,t,r,n){return 1===arguments.length?at(e):new lt(e,t,r,null==n?1:n)}),Ee(Ce,{brighter(e){return new lt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new lt(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new $e(ct(3.1338561*(t=.96422*ut(t))-1.6168667*(e=1*ut(e))-.4906146*(r=.82521*ut(r))),ct(-.9787684*t+1.9161415*e+.033454*r),ct(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Se(pt,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof pt)return new pt(e.h,e.c,e.l,e.opacity);if(e instanceof lt||(e=at(e)),0===e.a&&0===e.b)return new pt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*rt;return new pt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new pt(e,t,r,null==n?1:n)}),Ee(Ce,{brighter(e){return new pt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new pt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ft(this).rgb()}}));var mt=e=>()=>e;function ht(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):mt(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?ht:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):mt(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Be(e)).r,(t=Be(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=ht(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var gt="center",bt="bottom";[{key:"NoDataExist",alignment:gt,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:gt,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:gt,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:gt},{key:"DataRangeIncludingZero",alignment:bt},{key:"LimitedData",alignment:bt},{key:"NegativeOrZeroValues",alignment:bt}].reduce((function(e,t){return e[t.key]=t,e}),{});var vt,yt=["__proto__","constructor"];function xt(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!yt.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var l=n[a];void 0===i[l]&&(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}}}function St(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function Et(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=wt)):void 0===t&&(t=Ct);for(var r,n,o,i,a,l=new It(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new It(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(Lt)}function Ct(e){return e.children}function wt(e){return Array.isArray(e)?e[1]:null}function Rt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Lt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function It(e){this.data=e,this.depth=this.height=0,this.parent=null}function Mt(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,r,n){const o="rows"===(null==n?void 0:n.type)?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")},filters:{description:()=>t.get("SimpleProperties.Filters.Filter")}}]}}It.prototype=Et.prototype={constructor:It,count:function(){return this.eachAfter(St)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return Et(this).eachBefore(Rt)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},vt=function(e){
7
+ System.register(["react","@nebula.js/stardust","react-dom","picasso-plugin-q","picasso.js"],(function(e){"use strict";var t,r,n,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,L,I,M,D,A,P,O,k,T,_,q,N,F,j,z,G;return{setters:[function(e){t=e.default,r=e,n=e.useContext,o=e.createElement,i=e.isValidElement,a=e.cloneElement,l=e.Children,s=e.useMemo,u=e.useState,c=e.useRef,d=e.forwardRef,p=e.useCallback,f=e.useEffect,m=e.createContext,h=e.memo,g=e.useLayoutEffect,b=e.PureComponent,v=e.useReducer},function(e){y=e.useMemo,x=e.useOptions,S=e.usePromise,E=e.useState,C=e.useEffect,w=e.useTheme,R=e.useInteractionState,L=e.onContextMenu,I=e.onTakeSnapshot,M=e.useImperativeHandle,D=e.useTranslator,A=e.useElement,P=e.useStaleLayout,O=e.useModel,k=e.useApp,T=e.useEmbed,_=e.useKeyboard,q=e.useSelections,N=e.useRect},function(e){F=e.default,j=e},function(e){z=e.default},function(e){G=e.default}],execute:function(){function B(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $(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:yO()},data:Mt(e)},ext:Lg(e),component(){bO(e)}}}));var W={exports:{}};self,W.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Pe});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var l=a[i];return a[i]=r,{updated:r,previous:l}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var l=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(l);if(-1!==r){var n=t.indexOf(s);if(-1!==n)return t.substring(r+l.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var l=S({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),r=e.indexOf(s);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),L={},I=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function D(e){return void 0===e}function A(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function P(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=D(e[r||t])?i:e[t],e=e[r||t]}})),e}function O(e,t){var r=!0;if(M(e)&&M(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){O(e[n],t[n])||(r=!1)})),r);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!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)||A(t,o)||(D(a)?n.push({op:"add",path:l,value:i}):M(i)&&M(a)?n=n.concat(L.generate(a,i,l)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&D(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(O(t,o))return n;if(!D(t[0])&&D(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(n.push({op:"remove",path:"".concat(r,"/").concat(l)}),o.splice(l,1)):n=n.concat(L.generate(o[l],t[i],"".concat(r,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(n.push({op:"move",path:"".concat(r,"/").concat(s),from:"".concat(r,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return n}(a,i,l)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){D(t[o])&&!A(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},L.apply=function(e,t){t.forEach((function(t){var r,n,o=P(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(M(a)&&M(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!A(r,e)&&delete r[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=P(e,t.from);I(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])}))},L.clone=function(e){return R({},e)},L.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},L.updateObject=function(e,t){Object.keys(e).length?L.apply(e,L.generate(e,t)):R(e,t)};const k=L,T=function(e,r,n){if(!e)return Promise.resolve();var o=k.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var _="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===_)return r[n]}function N(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===_)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const j={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(r,s),p=E.getAboveComp(r,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=q(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=q(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(_))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var z="movingAverage";function G(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===z)return r[n]}function B(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===z)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var $={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return r;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),m=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,$)},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(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=G(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=G(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(z))return!1;var i=G(t,e);return i&&!i.disabled}};return r}};var H="timeSeriesDecomposition";function V(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===H)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===H)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,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,Y),""===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(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=V(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var r=V(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(H))return!1;var i=V(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var l=ae(t),s=le(t,r,n),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,s,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Le="qDef.base.qAggrFunc",Ie={initBase:function(e,t){(t||Ie.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,we,i(e,Ee)))},restoreBase:function(e){Ie.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,Ee,i(e,we)),i(e,Re)&&i(e,Le)&&r(e,Re,i(e,Le)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const Me=Ie;function De(e){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}var Ae={accumulation:j,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Pe={modifiers:Ae,apply:ke,applyModifiers:Te,cleanUpMeasure:_e,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:Me.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ae[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Ae[e]&&Ae[e].isApplicable({properties:r,layout:n})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=ze(e);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var Oe={};function ke(){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"===De(n))return Te({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Oe[r.id].lastReloadTime;if(Oe[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ue({modifiers:ze(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Be(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return m&&function(e){var t=e.properties;je(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===De(e)&&!e.disabled){if(r++,"object"!==De(Ae[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Ae[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),Te({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===De(e.base)}))}(p)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return je(n).forEach((function(e){return _e(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(s)}function Te(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=s?t()(!0,{},o):o),Be(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(r||(r=je(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return _e(e)})),Promise.resolve();var s=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ue({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Me.isValid(r)||Me.initBase(r,!0);var s=r.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===De(e)&&!e.disabled){if(l++,"object"!==De(Ae[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ae[e.type].initModifier(e,r);var s=r.qLibraryId||c&&c.qLibraryId;s?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Ae[n.type].generateExpression({expression:l,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:s,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Ae[n.type].updateModifier&&Ae[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),l=""===a?a:Ae[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),$e(r)):_e(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function _e(e){!function(e){var t=ze(e);return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&!Ae[e.type]}))}(e)?Me.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,$e(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:ze(e),properties:r,layout:n})}))}function Ne(e){var t=ze(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Ae[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||Ae[t.type].enableTotalsFunction(e)}function je(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function ze(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function Ge(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){je(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&Ge(r)!==e.qDef.qDef?delete e.qDef.base:!Me.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function $e(e){var t=ze(e);Array.isArray(t)&&t.forEach((function(t){"object"===De(t)&&(t.disabled||!Ae[t.type]&&Ge(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function He(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,r=e.properties,n=e.layout;return!He(t)&&Ue({modifiers:ze(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==De(e)||e.disabled||!Ae[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ae[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):T(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&Ae[e.type]&&Ae[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=je(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=ze(t);if(Ue({modifiers:n,properties:e})){var i=He(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(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 ke({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:()=>Be});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var l=n[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(645),f=r.n(p);const m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var l,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,s(n.qMeasures));var a,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(n=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=a}var S=r(229),E=r.n(S);function C(e,t){var r=E()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function w(e,t){return E()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var L=Math.pow(2,53)-1;function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const D=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},A=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},P=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},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}}},k=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},T=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=r.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},_=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=r.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},q=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},l=R(a.max,o.dimensions.length,L),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,L),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},N=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},r,o)).components&&(o.components=[]),o},j=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>r&&r>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},G=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return I(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},B=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return M(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?M(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},$=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const H={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,r||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?O():w,L=s.defaultMeasure,I=void 0===L?k():L;v.qDimensions.length=0,v.qMeasures.length=0,j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),T({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),_({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:I}),G({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),A("qMaxStackedCells",b,v),A("qNoOfLeftDims",b,v),P("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),P("qMode",b,v,"S"),P("qReductionMode",b,v,"N"),P("qSortbyYValue",b,v),P("qIndentMode",b,v),P("qShowTotalsAbove",b,v),D(g,t,n),h.qProperty=g;var M=i.getValue(c||{},"support.modifiers");return $({measures:v.qMeasures,modifierTypes:M}),p&&W(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&W(h.qProperty,"dynamicScript"),h}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(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 Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!V[e])throw new Error("Attribute Expressions Util: ID required");var 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(U(a,t,n,o),Y(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})),t.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}))}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(n,o);var s=n[n.length-1];if(s){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,l={};switch(e){case"dimension":r.qLibraryId?(l.type="dimension",l.name=r.qLibraryId,l.id=r.qLibraryId):(l.type="field",t?(l.name=r.label||r.qDef,l.id=r.qDef):(l.name=r.qDef.qFieldDefs[0],l.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(l.expression=i)):(l.type="expression",t?(l.name=r.label||r.qExpression,l.id=r.qExpression):(l.name=r.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(re(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:l,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}i.auto=!1,i.mode=a}function le(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===l}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?le(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==l&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:l,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||n[0])),!!l}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=H.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=H.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(r,"unsupportedAutoMinMax")||E()(r.measureAxis,t.measureAxis):W(r,"supportedAutoMinMax")||E()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,r.properties.measureAxes[t[0].axis])):E()(l,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},Ee={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function we(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(r,n,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(r,n,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Le="qHyperCubeDef.qMeasures",Ie="conditionalColoring",Me="measures",De="qDef.conditionalColoring";const Ae={quarantine:function(e){we({properties:e,arrayPath:Le,quarantineName:Ie,arrayName:Me,itemPath:De})},unquarantine:function(e){Re({properties:e,arrayPath:Le,itemPath:De,arrayName:Me,quarantineName:Ie})}};var Pe="qHyperCubeDef.qMeasures",Oe="measures",ke="qHyperCubeDef.qDimensions",Te="dimensions",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",je="qCalcCondition",ze="conditionalShowHide";const Ge={quarantine:function(e){we({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:Oe,itemPath:je}),we({properties:e,arrayPath:ke,quarantineName:ze,arrayName:Te,itemPath:je})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:Oe,itemPath:je}),Re({properties:e,arrayPath:ke,quarantineName:ze,arrayName:Te,itemPath:je})},quarantineAlternative:function(e){we({properties:e,arrayPath:_e,quarantineName:ze,arrayName:qe,itemPath:je}),we({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:_e,quarantineName:ze,arrayName:qe,itemPath:je}),Re({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})}},Be={hypercube:H,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:Ae,conditionalShow:Ge}})(),n.default})();var H=B(W.exports);const V="qHyperCubeDef.qMeasures",U="measures",Y="qHyperCubeDef.qDimensions",K="dimensions",X="qDef.representation",J="tableRepresentation",Z="qDef.conditionalColoring",Q="conditionalColoring",ee="qMiniChartDef",te="miniChartDef",re=e=>{H.unquarantineArrayProp({properties:e,arrayPath:Y,itemPath:X,arrayName:K,quarantineName:J}),H.unquarantineArrayProp({properties:e,arrayPath:V,itemPath:X,arrayName:U,quarantineName:J}),H.unquarantineArrayProp({properties:e,arrayPath:V,itemPath:Z,arrayName:U,quarantineName:Q}),H.unquarantineArrayProp({properties:e,arrayPath:V,itemPath:ee,arrayName:U,quarantineName:te})},ne=e=>{H.quarantineArrayProp({properties:e,arrayPath:Y,itemPath:X,arrayName:K,quarantineName:J}),H.quarantineArrayProp({properties:e,arrayPath:V,itemPath:X,arrayName:U,quarantineName:J}),H.quarantineArrayProp({properties:e,arrayPath:V,itemPath:Z,arrayName:U,quarantineName:Q}),H.quarantineArrayProp({properties:e,arrayPath:V,itemPath:ee,arrayName:U,quarantineName:te})};function oe(e){return"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function ie(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length&&oe(t[0]))return(t[0].r<<16)+(t[0].g<<8)+t[0].b;var n=0,o=0,i=0;if(1===t.length&&"string"==typeof t[0]){var a,l=t[0];(a=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(l))?(n=parseInt(a[1],10),o=parseInt(a[2],10),i=parseInt(a[3],10)):(a=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(l))?(n=parseInt(a[1],16),o=parseInt(a[2],16),i=parseInt(a[3],16)):(a=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(l))&&(n=parseInt(a[1]+a[1],16),o=parseInt(a[2]+a[2],16),i=parseInt(a[3]+a[3],16))}return(n<<16)+(o<<8)+i}function ae(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var se={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},ue="qcm-color";function ce(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o,i,a,l,s,u,c,d,p,f={type:ue,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},m=0,h=0,g=0,b=1;if((null===(e=r[0])||void 0===e?void 0:e.type)===ue){var v=r[0];m=v.r,h=v.g,g=v.b,b=v.a,f.invalid=r[0].invalid,f.spaces=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?le(Object(r),!0).forEach((function(t){ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r[0].spaces)}else if(r.length<3)if("string"==typeof r[0]){var y,x=r[0];if(y=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10);else if(y=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10),b=parseFloat(y[4]);else if(y=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))b=parseInt(y[1],10)/255,m=parseInt(y[2],10),h=parseInt(y[3],10),g=parseInt(y[4],10);else if(y=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(x))m=parseInt(y[1],16),h=parseInt(y[2],16),g=parseInt(y[3],16),b=1;else if(y=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(x))m=parseInt(y[1]+y[1],16),h=parseInt(y[2]+y[2],16),g=parseInt(y[3]+y[3],16),b=1;else if(y=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var S=[];switch(c=Math.floor(c)){case 0:S=[u,d,0];break;case 1:S=[d,u,0];break;case 2:S=[0,u,d];break;case 3:S=[0,d,u];break;case 4:S=[d,0,u];break;case 5:S=[u,0,d];break;default:S=[0,0,0]}p=l-.5*u,m=S[0]+p,h=S[1]+p,g=S[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(y=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),b=parseFloat(y[7]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var E=[];switch(c=Math.floor(c)){case 0:E=[u,d,0];break;case 1:E=[d,u,0];break;case 2:E=[0,u,d];break;case 3:E=[0,d,u];break;case 4:E=[d,0,u];break;case 5:E=[u,0,d];break;default:E=[0,0,0]}p=l-.5*u,m=E[0]+p,h=E[1]+p,g=E[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g)}else if(y=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),s=parseFloat(y[5]),c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)*(i=(i/=100)<0?0:i>1?1:i))*(1-Math.abs(c%2-1));var C=[];switch(c=Math.floor(c)){case 0:C=[u,d,0];break;case 1:C=[d,u,0];break;case 2:C=[0,u,d];break;case 3:C=[0,d,u];break;case 4:C=[d,0,u];break;case 5:C=[u,0,d];break;default:C=[0,0,0]}p=s-u,m=C[0]+p,h=C[1]+p,g=C[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(se[x.toLowerCase()]){a=x.toLowerCase();var w=se[a];m=w.r,h=w.g,g=w.b,b="number"==typeof se[a].a?se[a].a:1}else f.invalid=!0}else"number"==typeof r[0]&&r[0]>=0&&"argb"===r[1]?(b=(4278190080&r[0])>>>24,b/=255,m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):"number"==typeof r[0]&&r[0]>=0?(m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):f.invalid=!0;else r.length>=3&&r.length<=4?(m=r[0],h=r[1],g=r[2],b=arguments.length>=4?r[3]:1):f.invalid=!0;return Number.isNaN(+m+h+g+b)&&(f.invalid=!0),f.r=Math.floor(m),f.g=Math.floor(h),f.b=Math.floor(g),f.a=b,f.l=l,f}function de(e){var t,r,n=0,o="string"==typeof e?ce(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=s;if(s===u)t=0,n=0;else{switch(t=0==(r=s-u)?0:r/c,s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function pe(e){if(oe(e))return"rgb(".concat([e.r,e.g,e.b].join(", "),")");var t="string"==typeof e?ie(e):e,r=(65280&t)>>8,n=255&t;return"rgb(".concat((16711680&t)>>16,", ").concat(r,", ").concat(n,")")}function fe(e,t){return oe(e)?"rgba(".concat([e.r,e.g,e.b,e.a].join(", "),")"):fe(ce(e))}function me(e){return oe(e)?1===e.a?pe(e):fe(e):me(ce(e))}var he,ge,be=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function ve(){var e=ce.apply(void 0,arguments);return e.invalid||function(e){return.2126*be(e.r)+.7152*be(e.g)+.0722*be(e.b)}(e)<.4}function ye(){var e=ce.apply(void 0,arguments),t={type:e.type,r:e.r,g:e.g,b:e.b,a:e.a,invalid:e.invalid,spaces:e.spaces},r=function(){return t.spaces.hsla||(t.spaces.hsla=function(e){var t,r,n=0,o="string"==typeof e?ce(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=o.a,u=Math.max(i,a,l),c=Math.min(i,a,l),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsla(".concat(360*n,", ").concat(100*t,", ").concat(100*d,", ").concat(s,")")}(t)),t.spaces.hsla},n=function(e){var t=r(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),o=parseFloat(n[1]),i=parseFloat(n[3]),a=parseFloat(n[7]),l=parseFloat(n[5]),s=Math.max(0,Math.min(l+e,100));return"hsla(".concat(o,", ").concat(i,", ").concat(s,", ").concat(a,")")};return{get type(){return t.type},isInvalid:function(){return t.invalid},get r(){return t.r},get g(){return t.g},get b(){return t.b},get a(){return t.a},getR:function(){return t.r},getG:function(){return t.g},getB:function(){return t.b},getAlpha:function(){return t.a},setAlpha:function(e){t.a=e,t.spaces={}},isEqualTo:function(e){var r=e.type===t.type?e:ce(e);return r.r===t.r&&r.g===t.g&&r.b===t.b&&r.a===t.a},isDark:function(){return ve(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=pe(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=fe(t)),t.spaces.rgba},getString:function(){return t.spaces.string||(t.spaces.string=me(t)),t.spaces.string},getHex:function(){return t.spaces.hex||(t.spaces.hex=function(e){var t,r,n;if(oe(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat([t,r,n].join(""));var o="string"==typeof e?ie(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat(t).concat(r).concat(n)}(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=function(e){var t,r,n=0,o="string"==typeof e?ce(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=(s+u)/2;if(s===u)t=0,n=0;else{switch(r=s-u,t=c>.5?r/(2-s-u):r/(s+u),s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsl(".concat(360*n,", ").concat(100*t,", ").concat(100*c,")")}(t)),t.spaces.hsl},getHSLA:r,getShiftedHSLA:n,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=function(e){var t=de(e),r=t.h,n=t.s,o=t.v;return"hsv(".concat(r,", ").concat(n,", ").concat(o,")")}(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=de(t)),t.spaces.hsvObject},blend:function(e,r){var n=Math.floor(t.r+(e.r-t.r)*r),o=Math.floor(t.g+(e.g-t.g)*r),i=Math.floor(t.b+(e.b-t.b)*r),a=Math.floor(t.a+(e.getAlpha()-t.a)*r);return"rgba(".concat([n,o,i,a].join(", "),")")},getBrightenedColor:function(){return ye(n(18*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))},getDarkenedColor:function(){return ye(n(18*-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))}}}var xe=function(){if(ge)return he;ge=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return he=function e(){var t,r,n,s,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(s=l(t,r))&&(m&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(m,c,s)})):void 0!==s&&a(d,{name:r,newValue:s}));return d},he}();function Se(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Ee(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Ce(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(xe);var we=1/.7,Re="\\s*([+-]?\\d+)\\s*",Le="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ie="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Me=/^#([0-9a-f]{3,8})$/,De=new RegExp(`^rgb\\(${Re},${Re},${Re}\\)$`),Ae=new RegExp(`^rgb\\(${Ie},${Ie},${Ie}\\)$`),Pe=new RegExp(`^rgba\\(${Re},${Re},${Re},${Le}\\)$`),Oe=new RegExp(`^rgba\\(${Ie},${Ie},${Ie},${Le}\\)$`),ke=new RegExp(`^hsl\\(${Le},${Ie},${Ie}\\)$`),Te=new RegExp(`^hsla\\(${Le},${Ie},${Ie},${Le}\\)$`),_e={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function qe(){return this.rgb().formatHex()}function Ne(){return this.rgb().formatRgb()}function Fe(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Me.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?je(t):3===r?new $e(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?ze(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?ze(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=De.exec(e))?new $e(t[1],t[2],t[3],1):(t=Ae.exec(e))?new $e(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Pe.exec(e))?ze(t[1],t[2],t[3],t[4]):(t=Oe.exec(e))?ze(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ke.exec(e))?Ke(t[1],t[2]/100,t[3]/100,1):(t=Te.exec(e))?Ke(t[1],t[2]/100,t[3]/100,t[4]):_e.hasOwnProperty(e)?je(_e[e]):"transparent"===e?new $e(NaN,NaN,NaN,0):null}function je(e){return new $e(e>>16&255,e>>8&255,255&e,1)}function ze(e,t,r,n){return n<=0&&(e=t=r=NaN),new $e(e,t,r,n)}function Ge(e){return e instanceof Ce||(e=Fe(e)),e?new $e((e=e.rgb()).r,e.g,e.b,e.opacity):new $e}function Be(e,t,r,n){return 1===arguments.length?Ge(e):new $e(e,t,r,null==n?1:n)}function $e(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function We(){return`#${Ye(this.r)}${Ye(this.g)}${Ye(this.b)}`}function He(){const e=Ve(this.opacity);return`${1===e?"rgb(":"rgba("}${Ue(this.r)}, ${Ue(this.g)}, ${Ue(this.b)}${1===e?")":`, ${e})`}`}function Ve(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ue(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ye(e){return((e=Ue(e))<16?"0":"")+e.toString(16)}function Ke(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Je(e,t,r,n)}function Xe(e){if(e instanceof Je)return new Je(e.h,e.s,e.l,e.opacity);if(e instanceof Ce||(e=Fe(e)),!e)return new Je;if(e instanceof Je)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Je(a,l,s,e.opacity)}function Je(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Ze(e){return(e=(e||0)%360)<0?e+360:e}function Qe(e){return Math.max(0,Math.min(1,e||0))}function et(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Se(Ce,Fe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:qe,formatHex:qe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Xe(this).formatHsl()},formatRgb:Ne,toString:Ne}),Se($e,Be,Ee(Ce,{brighter(e){return e=null==e?we:Math.pow(we,e),new $e(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new $e(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new $e(Ue(this.r),Ue(this.g),Ue(this.b),Ve(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:We,formatHex:We,formatHex8:function(){return`#${Ye(this.r)}${Ye(this.g)}${Ye(this.b)}${Ye(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:He,toString:He})),Se(Je,(function(e,t,r,n){return 1===arguments.length?Xe(e):new Je(e,t,r,null==n?1:n)}),Ee(Ce,{brighter(e){return e=null==e?we:Math.pow(we,e),new Je(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Je(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new $e(et(e>=240?e-240:e+120,o,n),et(e,o,n),et(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Je(Ze(this.h),Qe(this.s),Qe(this.l),Ve(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ve(this.opacity);return`${1===e?"hsl(":"hsla("}${Ze(this.h)}, ${100*Qe(this.s)}%, ${100*Qe(this.l)}%${1===e?")":`, ${e})`}`}}));const tt=Math.PI/180,rt=180/Math.PI,nt=4/29,ot=6/29,it=3*ot*ot;function at(e){if(e instanceof lt)return new lt(e.l,e.a,e.b,e.opacity);if(e instanceof pt)return ft(e);e instanceof $e||(e=Ge(e));var t,r,n=dt(e.r),o=dt(e.g),i=dt(e.b),a=st((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=st((.4360747*n+.3850649*o+.1430804*i)/.96422),r=st((.0139322*n+.0971045*o+.7141733*i)/.82521)),new lt(116*a-16,500*(t-a),200*(a-r),e.opacity)}function lt(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function st(e){return e>.008856451679035631?Math.pow(e,1/3):e/it+nt}function ut(e){return e>ot?e*e*e:it*(e-nt)}function ct(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function dt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function pt(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function ft(e){if(isNaN(e.h))return new lt(e.l,0,0,e.opacity);var t=e.h*tt;return new lt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Se(lt,(function(e,t,r,n){return 1===arguments.length?at(e):new lt(e,t,r,null==n?1:n)}),Ee(Ce,{brighter(e){return new lt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new lt(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new $e(ct(3.1338561*(t=.96422*ut(t))-1.6168667*(e=1*ut(e))-.4906146*(r=.82521*ut(r))),ct(-.9787684*t+1.9161415*e+.033454*r),ct(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Se(pt,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof pt)return new pt(e.h,e.c,e.l,e.opacity);if(e instanceof lt||(e=at(e)),0===e.a&&0===e.b)return new pt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*rt;return new pt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new pt(e,t,r,null==n?1:n)}),Ee(Ce,{brighter(e){return new pt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new pt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ft(this).rgb()}}));var mt=e=>()=>e;function ht(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):mt(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?ht:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):mt(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Be(e)).r,(t=Be(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=ht(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var gt="center",bt="bottom";[{key:"NoDataExist",alignment:gt,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:gt,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:gt,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:gt},{key:"DataRangeIncludingZero",alignment:bt},{key:"LimitedData",alignment:bt},{key:"NegativeOrZeroValues",alignment:bt}].reduce((function(e,t){return e[t.key]=t,e}),{});var vt,yt=["__proto__","constructor"];function xt(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!yt.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var l=n[a];void 0===i[l]&&(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}}}function St(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function Et(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=wt)):void 0===t&&(t=Ct);for(var r,n,o,i,a,l=new It(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new It(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(Lt)}function Ct(e){return e.children}function wt(e){return Array.isArray(e)?e[1]:null}function Rt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Lt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function It(e){this.data=e,this.depth=this.height=0,this.parent=null}function Mt(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,r,n){const o="rows"===(null==n?void 0:n.type)?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")},filters:{description:()=>t.get("SimpleProperties.Filters.Filter")}}]}}It.prototype=Et.prototype={constructor:It,count:function(){return this.eachAfter(St)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return Et(this).eachBefore(Rt)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},vt=function(e){
8
8
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
9
9
  e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},vt({exports:{}});const Dt="qHyperCubeDef.qDimensions",At="dimensions",Pt="qOtherTotalSpec.qTotalMode",Ot="totalMode",kt={quarantine(e){H.quarantineArrayProp({properties:e,arrayPath:Dt,quarantineName:Ot,arrayName:At,itemPath:Pt})},unquarantine(e){H.unquarantineArrayProp({properties:e,arrayPath:Dt,quarantineName:Ot,arrayName:At,itemPath:Pt})}};function Tt(e){const t=Mt(e);return(e,r,n,o)=>{var i,a,l;const s=H.hypercube.importProperties({exportFormat:e,initialProperties:r,dataDefinition:t.targets[0],hypercubePath:o}),u=s.qProperty.qHyperCubeDef.qDimensions.length,c=s.qProperty.qHyperCubeDef.qMeasures.length;let d,p=s.qProperty.qHyperCubeDef.qInterColumnSortOrder,f=!0;u+c===p.length&&xt(s,"qProperty.qLayoutExclude.quarantine.interColSortOrder",p.concat());const m=null===(i=s.qProperty.qLayoutExclude.quarantine)||void 0===i?void 0:i.pivotInterColSortOrder;m?(p=m,d=[...m],xt(s,"qProperty.qHyperCubeDef.qInterColumnSortOrder",p),s.qProperty.qLayoutExclude.quarantine&&delete s.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):p.length=0;const h=+(p.indexOf(-1)>-1),g=u+h;if(g>p.length)for(let e=p.length;e<g;e++)p.indexOf(e)<0&&p.push(e-h);for(let e=p.length-1;e>=0;e--)p[e]>=u&&p.splice(e,1);c>1&&p.indexOf(-1)<0?p.push(-1):c<2&&p.indexOf(-1)>-1&&p.splice(p.indexOf(-1),1);const b=null!==(a=s.qProperty.qHyperCubeDef.qNoOfLeftDims)&&void 0!==a?a:-1;if(u>0&&-1===b&&xt(s,"qProperty.qHyperCubeDef.qNoOfLeftDims",u),(null===(l=d)||void 0===l?void 0:l.length)===p.length){for(let e=0;e<d.length;e++)if(d[e]!==p[e]){f=!1;break}f&&H.unquarantineProperty(s.qProperty,"noOfLeftDims")}return H.conditionalShow.unquarantine(s.qProperty),kt.unquarantine(s.qProperty),re(s.qProperty),H.unquarantineProperty(s.qProperty,"pivotTableIndentMode"),s}}function _t(e,t){var r;const n=e.qProperty.qHyperCubeDef.qInterColumnSortOrder,o=n.slice(),i=n.indexOf(-1);i>-1&&n.splice(i,1);const a=H.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),l=a.properties.qHyperCubeDef,s=l.qDimensions.length,u=l.qMeasures.length;let c=l.qInterColumnSortOrder;xt(a,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",o),H.quarantineProperty(a.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete a.properties.qHyperCubeDef.qNoOfLeftDims;const d=null===(r=a.properties.qLayoutExclude.quarantine)||void 0===r?void 0:r.interColSortOrder;d&&(c=d,xt(a,"properties.qHyperCubeDef.qInterColumnSortOrder",c),xt(a,"data.0.interColumnSortOrder",c),a.properties.qLayoutExclude.quarantine&&delete a.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=c.length;e<s+u;e++)c.length<=e&&c.push(e);return H.quarantineProperty(a.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),H.conditionalShow.quarantine(a.properties),kt.quarantine(a.properties),ne(a.properties),a}const qt={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},Nt="12px",Ft="nebula-table-utils-head-menu-button",jt="sn-copy-cell";let zt=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e}({});const Gt="nebula-table-utils-column-adjuster";let Bt=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),$t=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const Wt={darker:.15,brighter:.3,opacity:.03},Ht={darker:.3,brighter:.5,opacity:.05};let Vt=function(e){return e.Single="N",e.DrillDown="H",e.Cyclic="C",e}({}),Ut=function(e){return e.Text="text",e.Link="link",e.Image="image",e.Indicator="indicator",e.MiniChart="miniChart",e.EditableText="editableText",e}({}),Yt=function(e){return e.Attribute="attribute",e.Dimension="dimension",e.Measure="measure",e}({});const Kt=e=>{switch(null==e?void 0:e.type){case"url":return Ut.Link;case"image":return Ut.Image;case"indicator":return Ut.Indicator;case"miniChart":return Ut.MiniChart;default:return Ut.Text}},Xt=({args:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t,isImagesSupportedInIndentMode:r}={}})=>{var n;return null===(n=e.properties.qHyperCubeDef)||void 0===n||!n.qIndentMode||!(!t&&!r)},Jt=({isImagesEnabled:e,supportedFeaturesInIndentMode:t})=>{const{isLinksSupportedInIndentMode:r,isImagesSupportedInIndentMode:n}=null!=t?t:{};return{uses:"dimensionRepresentationItems.representationType",show:(e,t,o)=>Xt({args:o,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:r,isImagesSupportedInIndentMode:n}}),options(t,o,i){const{qIndentMode:a}=i.properties.qHyperCubeDef,l=[{value:"text",translation:"Object.Table.Representation.Text"}];return a&&!r||l.push({value:"url",translation:"Object.Table.Representation.Link"}),(!a&&e||a&&n)&&l.push({value:"image",translation:"Object.Table.Representation.Image"}),l}}},Zt=e=>({representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:(t,r,n)=>Kt(t.qDef.representation)===Ut.Link&&Xt({args:n,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:e}})},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:(t,r,n)=>{var o;return Kt(t.qDef.representation)===Ut.Link&&(null===(o=t.qDef.representation)||void 0===o?void 0:o.urlPosition)===Yt.Dimension&&Xt({args:n,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:e}})}},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:(t,r,n)=>{var o;return Kt(t.qDef.representation)===Ut.Link&&(null===(o=t.qDef.representation)||void 0===o?void 0:o.urlPosition)===Yt.Attribute&&Xt({args:n,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:e}})}}}),Qt=(e,t)=>{if(e||t)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:(e,r,n)=>Kt(e.qDef.representation)===Ut.Image&&Xt({args:n,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:t}}),items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},...t&&{imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,r)=>{var n,o;if(!r.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:i,qNoOfLeftDims:a,qDimensions:l,qIndentMode:s}=r.properties.qHyperCubeDef;let u=!1;null==i||i.indexOf(-1);const c=null!==(n=null==l?void 0:l.indexOf(e))&&void 0!==n?n:1/0;return(null!==(o=null==i?void 0:i.slice(0,a))&&void 0!==o?o:[]).indexOf(c)>-1&&(u=!0),u&&s}}}}}}},er=e=>{var t,r;const{anything:n,flags:o}=e,i=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_LINKS"),a=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES"),l=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(t=n.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"tableImages"));return{representationType:Jt({isImagesEnabled:l,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:i,isImagesSupportedInIndentMode:a}}),...Zt(i),...Qt(l,a)}},tr=(e,t)=>{var r;const{flags:n,anything:o}=e,i=null===(r=o.sense)||void 0===r?void 0:r.isUnsupportedFeature,a=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=i&&i("tableImages"))&&t.some((e=>e===Ut.Image)),l=!(null!=i&&i("qMiniChartDef"))&&t.some((e=>e===Ut.MiniChart)),s=n.isEnabled("CLIENT_IM_6696_INDICATORS")&&!(null!=i&&i("tableIndicators"))&&t.some((e=>e===Ut.Indicator));return{representationType:{uses:"measureRepresentationItems.representationType",show:(e,t,r)=>Xt({args:r}),options:(e,t,r)=>(e=>{var t;const{qIndentMode:r}=null!==(t=e.properties.qHyperCubeDef)&&void 0!==t?t:{},n=[{value:"text",translation:"Object.Table.Representation.Text"}];return!r&&a&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),s&&n.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),l&&n.push({value:"miniChart",translation:"Common.MiniChart"}),n})(r)},representationImage:a?{uses:"measureRepresentationItems.representationImage",show:(e,t,r)=>Kt(e.qDef.representation)===Ut.Image&&Xt({args:r}),items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:s?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:l?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var rr,nr,or,ir;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(rr||(rr={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(nr||(nr={})),function(e){e.TopGrid="topGrid",e.LeftGrid="leftGrid",e.DataGrid="dataGrid"}(or||(or={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(ir||(ir={}));const ar="image",lr=(e,t,r)=>{var n,o,i;if(!r.properties.qHyperCubeDef.qIndentMode)return!0;const a=null!==(n=null===(o=r.properties.qHyperCubeDef.qInterColumnSortOrder)||void 0===o?void 0:o.indexOf(-1))&&void 0!==n?n:-1;let l=null!==(i=r.properties.qHyperCubeDef.qNoOfLeftDims)&&void 0!==i?i:-1;a>-1&&a<l&&(l-=1);const s=r.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===s||s>=l},sr=()=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:$t.Auto,translation:"Common.Auto"},{value:$t.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:$t.Pixels,translation:"Object.Table.Column.Pixels"},{value:$t.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:$t.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:Bt.PixelsDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===$t.Pixels},change(e){var t;void 0!==(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.pixels)&&(e.qDef.columnWidth.pixels=Math.max(Bt.PixelsMin,Math.min(Bt.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:Bt.PercentageDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===$t.Percentage},change:e=>{var t;void 0!==(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.percentage)&&(e.qDef.columnWidth.percentage=Math.max(Bt.PercentageMin,Math.min(Bt.PercentageMax,e.qDef.columnWidth.percentage)))}}}),ur=({key:e,translation:t,env:r})=>{var n,o;const i=r.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(n=r.anything.sense)&&void 0!==n&&null!==(o=n.isUnsupportedFeature)&&void 0!==o&&o.call(n,"tableImages"));return{[`${e}Auto`]:{ref:`qDef.${e}.auto`,type:"boolean",component:"switch",translation:t,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0,show:t=>{var r;return!i||"labelTextAlign"===e||(null===(r=t.qDef.representation)||void 0===r?void 0:r.type)!==ar}},[e]:{ref:`qDef.${e}.align`,type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:t=>{var r;return void 0!==t.qDef[e]&&!t.qDef[e].auto&&(!i||"labelTextAlign"===e||(null===(r=t.qDef.representation)||void 0===r?void 0:r.type)!==ar)}}}},cr="TOTAL_OFF",dr={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:nr.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:nr.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nr.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nr.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nr.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nr.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},pr="TOTAL_OFF",fr={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:nr.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:nr.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nr.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nr.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nr.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nr.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},mr=e=>{var t,r,n;const{translator:o,anything:i,flags:a}=e,l=(e=>{var t,r;const{translator:n,anything:o}=e;return{type:"items",component:"data-assets-panel-pivot",translation:"Common.Data",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:cr,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:cr,translation:"properties.off"},show:(null===(t=o.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r||!r.call(t,"totals"))&&lr},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>n.get("Object.Table.Totals"),show(e,t,r){var n,i,a;return!(null!==(n=o.sense)&&void 0!==n&&null!==(i=n.isUnsupportedFeature)&&void 0!==i&&i.call(n,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==cr&&lr(e,0,r)}},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:dr,...ur({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ur({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...er(e),...sr()}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:dr,...ur({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ur({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...tr(e,[Ut.Image]),...sr()}}}}}}})(e),s=(null===(t=a.isPreviewToggleEnabled)||void 0===t?void 0:t.call(a,"IM_7101_PREVIEW_SIMPLE_MODE_OFF"))||!1;return a.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?l:{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Property.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:pr,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:pr,translation:"properties.off"},show:(null===(r=i.sense)||void 0===r||null===(n=r.isUnsupportedFeature)||void 0===n||!n.call(r,"totals"))&&lr},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>o.get("Object.Table.Totals"),show(e,t,r){var n,o,a;return!(null!==(n=i.sense)&&void 0!==n&&null!==(o=n.isUnsupportedFeature)&&void 0!==o&&o.call(n,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==pr&&lr(e,0,r)}},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:fr,...ur({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ur({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...er(e),...sr()}},measures:{type:"array",component:"measures",translation:"Common.Measures",ref:"qHyperCubeDef.qMeasures",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.measures.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:fr,...ur({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ur({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...tr(e,[Ut.Image]),...sr()}},filters:{type:"items",translation:"SimpleProperties.Filters.Filters",ref:"filters",allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:"properties.filters.add",grouped:!0,show:s,items:{filter:{type:"object",component:"filter-item",ref:"filter"}}}}}};function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hr.apply(null,arguments)}var gr={exports:{}};function br(){}function vr(){}vr.resetWarningCache=br;gr.exports=function(){function e(e,t,r,n,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:vr,resetWarningCache:br};return r.PropTypes=r,r}();var yr=B(gr.exports);function xr(e){if(e.type)return e;if("#"===e.charAt(0))return xr(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map((function(e){return parseFloat(e)}))}}function Sr(e,t){return e=xr(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}(e)}function Er(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function Cr(e,t){return Cr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cr(e,t)}function wr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Cr(e,t)}function Rr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const Lr={GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF"},Ir={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Lr,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_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_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Mr=12,Dr=14,Ar=16,Pr=24,Or=3,kr=300,Tr=400,_r=600,qr=700,Nr={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Sr(Ir.GREYSCALE_0,.05),Sr(Ir.GREEN_PALE,.5),Sr(Ir.BLUE_PALE,.5),Sr(Ir.GREEN_PALE,.5),Sr(Ir.BLUE_PALE,.5),Sr(Ir.GREEN_PALE,.5),Sr(Ir.BLUE_PALE,.5);Sr(Ir.GREEN_PALE,.5),Sr(Ir.BLUE_PALE,.5),Sr(Ir.GREEN_PALE,.5),Sr(Ir.BLUE_PALE,.5);var Fr={exports:{}},jr={},zr=t,Gr=Symbol.for("react.element"),Br=Symbol.for("react.fragment"),$r=Object.prototype.hasOwnProperty,Wr=zr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Hr={key:!0,ref:!0,__self:!0,__source:!0};function Vr(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)$r.call(t,n)&&!Hr.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:Gr,type:e,key:i,ref:a,props:o,_owner:Wr.current}}jr.Fragment=Br,jr.jsx=Vr,jr.jsxs=Vr,Fr.exports=jr;var Ur,Yr=Fr.exports;function Kr(){return Kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kr.apply(null,arguments)}var Xr,Jr=function(e){return r.createElement("svg",Kr({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Ur||(Ur=r.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Zr(){return Zr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zr.apply(null,arguments)}var Qr=function(e){return r.createElement("svg",Zr({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Xr||(Xr=r.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 en({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Yr.jsx("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})}function tn(e={}){return Yr.jsx(en,{...e,children:Yr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Yr.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Yr.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function rn(e={}){return Yr.jsx(en,{...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Yr.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Yr.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function nn(e={}){return Yr.jsx(en,{fontSize:"medium",...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Yr.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function on(e={}){return Yr.jsx(en,{fontSize:"medium",...e,children:Yr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Yr.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Yr.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function an({className:e}){return Yr.jsx(en,{fontSize:"small",className:e,children:Yr.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Yr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Yr.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Yr.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Yr.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Yr.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}Yr.jsx(Qr,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Yr.jsx(Jr,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Yr.jsx(nn,{}),Yr.jsx(on,{}),Yr.jsx((function(e={}){return Yr.jsx(en,{...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Yr.jsx("rect",{stroke:"#000000",fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}),{}),Yr.jsx(tn,{}),Yr.jsx(rn,{}),Yr.jsx(Jr,{style:{color:Ir.TEXT_PRIMARY},"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16});const ln={black:"#000",white:"#fff"},sn="#e57373",un="#ef5350",cn="#f44336",dn="#d32f2f",pn="#c62828",fn="#f3e5f5",mn="#ce93d8",hn="#ba68c8",gn="#ab47bc",bn="#9c27b0",vn="#7b1fa2",yn="#e3f2fd",xn="#90caf9",Sn="#42a5f5",En="#1976d2",Cn="#1565c0",wn="#4fc3f7",Rn="#29b6f6",Ln="#03a9f4",In="#0288d1",Mn="#01579b",Dn="#81c784",An="#66bb6a",Pn="#4caf50",On="#388e3c",kn="#2e7d32",Tn="#1b5e20",_n="#ffb74d",qn="#ffa726",Nn="#ff9800",Fn="#f57c00",jn="#e65100",zn={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 Gn(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 Bn="$$material";function $n(){return $n=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},$n.apply(this,arguments)}function Wn(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function Hn(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 Vn=function(){return Vn=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},Vn.apply(this,arguments)};function Un(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 Yn="-ms-",Kn="-moz-",Xn="-webkit-",Jn="comm",Zn="rule",Qn="decl",eo="@keyframes",to=Math.abs,ro=String.fromCharCode,no=Object.assign;function oo(e){return e.trim()}function io(e,t){return(e=t.exec(e))?e[0]:e}function ao(e,t,r){return e.replace(t,r)}function lo(e,t,r){return e.indexOf(t,r)}function so(e,t){return 0|e.charCodeAt(t)}function uo(e,t,r){return e.slice(t,r)}function co(e){return e.length}function po(e){return e.length}function fo(e,t){return t.push(e),e}function mo(e,t){return e.filter((function(e){return!io(e,t)}))}var ho=1,go=1,bo=0,vo=0,yo=0,xo="";function So(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:ho,column:go,length:a,return:"",siblings:l}}function Eo(e,t){return no(So("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Co(e){for(;e.root;)e=Eo(e.root,{children:[e]});fo(e,e.siblings)}function wo(){return yo=vo>0?so(xo,--vo):0,go--,10===yo&&(go=1,ho--),yo}function Ro(){return yo=vo<bo?so(xo,vo++):0,go++,10===yo&&(go=1,ho++),yo}function Lo(){return so(xo,vo)}function Io(){return vo}function Mo(e,t){return uo(xo,e,t)}function Do(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 Ao(e){return oo(Mo(vo-1,ko(91===e?e+2:40===e?e+1:e)))}function Po(e){for(;(yo=Lo())&&yo<33;)Ro();return Do(e)>2||Do(yo)>3?"":" "}function Oo(e,t){for(;--t&&Ro()&&!(yo<48||yo>102||yo>57&&yo<65||yo>70&&yo<97););return Mo(e,Io()+(t<6&&32==Lo()&&32==Ro()))}function ko(e){for(;Ro();)switch(yo){case e:return vo;case 34:case 39:34!==e&&39!==e&&ko(yo);break;case 40:41===e&&ko(e);break;case 92:Ro()}return vo}function To(e,t){for(;Ro()&&e+yo!==57&&(e+yo!==84||47!==Lo()););return"/*"+Mo(t,vo-1)+"*"+ro(47===e?e:Ro())}function _o(e){for(;!Do(Lo());)Ro();return Mo(e,vo)}function qo(e){return function(e){return xo="",e}(No("",null,null,null,[""],e=function(e){return ho=go=1,bo=co(xo=e),vo=0,[]}(e),0,[0],e))}function No(e,t,r,n,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,E=n,C=y;g;)switch(m=v,v=Ro()){case 40:if(108!=m&&58==so(C,d-1)){-1!=lo(C+=ao(Ao(v),"&","&\f"),"&\f",to(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Ao(v);break;case 9:case 10:case 13:case 32:C+=Po(m);break;case 92:C+=Oo(Io()-1,7);continue;case 47:switch(Lo()){case 42:case 47:fo(jo(To(Ro(),Io()),t,r,s),s);break;default:C+="/"}break;case 123*h:l[u++]=co(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=ao(C,/\f/g,"")),f>0&&co(C)-d&&fo(f>32?zo(C+";",n,r,d-1,s):zo(ao(C," ","")+";",n,r,d-2,s),s);break;case 59:C+=";";default:if(fo(E=Fo(C,t,r,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)No(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===so(C,3)?100:p){case 100:case 108:case 109:case 115:No(e,E,E,n&&fo(Fo(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,n?x:S);break;default:No(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+co(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==wo())continue;switch(C+=ro(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(co(C)-1)*b,b=1;break;case 64:45===Lo()&&(C+=Ao(Ro())),p=Lo(),c=d=co(y=C+=_o(Io())),v++;break;case 45:45===m&&2==co(C)&&(h=0)}}return i}function Fo(e,t,r,n,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=po(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=uo(e,p+1,p=to(g=a[h])),x=e;v<m;++v)(x=oo(g>0?f[v]+" "+y:ao(y,/&\f/g,f[v])))&&(s[b++]=x);return So(e,t,r,0===o?Zn:l,s,u,c,d)}function jo(e,t,r,n){return So(e,t,r,Jn,ro(yo),uo(e,2,-2),0,n)}function zo(e,t,r,n,o){return So(e,t,r,Qn,uo(e,0,n),uo(e,n+1,-1),n,o)}function Go(e,t,r){switch(function(e,t){return 45^so(e,0)?(((t<<2^so(e,0))<<2^so(e,1))<<2^so(e,2))<<2^so(e,3):0}(e,t)){case 5103:return Xn+"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 Xn+e+e;case 4789:return Kn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Xn+e+Kn+e+Yn+e+e;case 5936:switch(so(e,t+11)){case 114:return Xn+e+Yn+ao(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Xn+e+Yn+ao(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Xn+e+Yn+ao(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Xn+e+Yn+e+e;case 6165:return Xn+e+Yn+"flex-"+e+e;case 5187:return Xn+e+ao(e,/(\w+).+(:[^]+)/,Xn+"box-$1$2"+Yn+"flex-$1$2")+e;case 5443:return Xn+e+Yn+"flex-item-"+ao(e,/flex-|-self/g,"")+(io(e,/flex-|baseline/)?"":Yn+"grid-row-"+ao(e,/flex-|-self/g,""))+e;case 4675:return Xn+e+Yn+"flex-line-pack"+ao(e,/align-content|flex-|-self/g,"")+e;case 5548:return Xn+e+Yn+ao(e,"shrink","negative")+e;case 5292:return Xn+e+Yn+ao(e,"basis","preferred-size")+e;case 6060:return Xn+"box-"+ao(e,"-grow","")+Xn+e+Yn+ao(e,"grow","positive")+e;case 4554:return Xn+ao(e,/([^-])(transform)/g,"$1"+Xn+"$2")+e;case 6187:return ao(ao(ao(e,/(zoom-|grab)/,Xn+"$1"),/(image-set)/,Xn+"$1"),e,"")+e;case 5495:case 3959:return ao(e,/(image-set\([^]*)/,Xn+"$1$`$1");case 4968:return ao(ao(e,/(.+:)(flex-)?(.*)/,Xn+"box-pack:$3"+Yn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Xn+e+e;case 4200:if(!io(e,/flex-|baseline/))return Yn+"grid-column-align"+uo(e,t)+e;break;case 2592:case 3360:return Yn+ao(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,io(e.props,/grid-\w+-end/)}))?~lo(e+(r=r[t].value),"span",0)?e:Yn+ao(e,"-start","")+e+Yn+"grid-row-span:"+(~lo(r,"span",0)?io(r,/\d+/):+io(r,/\d+/)-+io(e,/\d+/))+";":Yn+ao(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return io(e.props,/grid-\w+-start/)}))?e:Yn+ao(ao(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return ao(e,/(.+)-inline(.+)/,Xn+"$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(co(e)-1-t>6)switch(so(e,t+1)){case 109:if(45!==so(e,t+4))break;case 102:return ao(e,/(.+:)(.+)-([^]+)/,"$1"+Xn+"$2-$3$1"+Kn+(108==so(e,t+3)?"$3":"$2-$3"))+e;case 115:return~lo(e,"stretch",0)?Go(ao(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return ao(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,l){return Yn+r+":"+n+l+(o?Yn+r+"-span:"+(i?a:+a-+n)+l:"")+e}));case 4949:if(121===so(e,t+6))return ao(e,":",":"+Xn)+e;break;case 6444:switch(so(e,45===so(e,14)?18:11)){case 120:return ao(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Xn+(45===so(e,14)?"inline-":"")+"box$3$1"+Xn+"$2$3$1"+Yn+"$2box$3")+e;case 100:return ao(e,":",":"+Yn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ao(e,"scroll-","scroll-snap-")+e}return e}function Bo(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function $o(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Qn:return e.return=e.return||e.value;case Jn:return"";case eo:return e.return=e.value+"{"+Bo(e.children,n)+"}";case Zn:if(!co(e.value=e.props.join(",")))return""}return co(r=Bo(e.children,n))?e.return=e.value+"{"+r+"}":""}function Wo(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Qn:return void(e.return=Go(e.value,e.length,r));case eo:return Bo([Eo(e,{value:ao(e.value,"@","@"+Xn)})],n);case Zn:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(io(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Co(Eo(e,{props:[ao(t,/:(read-\w+)/,":-moz-$1")]})),Co(Eo(e,{props:[t]})),no(e,{props:mo(r,n)});break;case"::placeholder":Co(Eo(e,{props:[ao(t,/:(plac\w+)/,":"+Xn+"input-$1")]})),Co(Eo(e,{props:[ao(t,/:(plac\w+)/,":-moz-$1")]})),Co(Eo(e,{props:[ao(t,/:(plac\w+)/,Yn+"input-$1")]})),Co(Eo(e,{props:[t]})),no(e,{props:mo(r,n)})}return""}))}}var Ho={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Vo="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Uo="active",Yo="data-styled-version",Ko="6.1.15",Xo="/*!sc*/\n",Jo="undefined"!=typeof window&&"HTMLElement"in window,Zo=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),Qo={},ei=Object.freeze([]),ti=Object.freeze({});function ri(e,t,r){return void 0===r&&(r=ti),e.theme!==r.theme&&e.theme||t||r.theme}var ni=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"]),oi=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ii=/(^-|-$)/g;function ai(e){return e.replace(oi,"-").replace(ii,"")}var li=/(a)(d)/gi,si=function(e){return String.fromCharCode(e+(e>25?39:97))};function ui(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=si(t%52)+r;return(si(t%52)+r).replace(li,"$1-$2")}var ci,di=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},pi=function(e){return di(5381,e)};function fi(e){return ui(pi(e)>>>0)}function mi(e){return"string"==typeof e&&!0}var hi="function"==typeof Symbol&&Symbol.for,gi=hi?Symbol.for("react.memo"):60115,bi=hi?Symbol.for("react.forward_ref"):60112,vi={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},yi={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},xi={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Si=((ci={})[bi]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ci[gi]=xi,ci);function Ei(e){return("type"in(t=e)&&t.type.$$typeof)===gi?xi:"$$typeof"in e?Si[e.$$typeof]:vi;var t}var Ci=Object.defineProperty,wi=Object.getOwnPropertyNames,Ri=Object.getOwnPropertySymbols,Li=Object.getOwnPropertyDescriptor,Ii=Object.getPrototypeOf,Mi=Object.prototype;function Di(e,t,r){if("string"!=typeof t){if(Mi){var n=Ii(t);n&&n!==Mi&&Di(e,n,r)}var o=wi(t);Ri&&(o=o.concat(Ri(t)));for(var i=Ei(e),a=Ei(t),l=0;l<o.length;++l){var s=o[l];if(!(s in yi||r&&r[s]||a&&s in a||i&&s in i)){var u=Li(t,s);try{Ci(e,s,u)}catch(e){}}}}return e}function Ai(e){return"function"==typeof e}function Pi(e){return"object"==typeof e&&"styledComponentId"in e}function Oi(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ki(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function Ti(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function _i(e,t,r){if(void 0===r&&(r=!1),!r&&!Ti(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=_i(e[n],t[n]);else if(Ti(t))for(var n in t)e[n]=_i(e[n],t[n]);return e}function qi(e,t){Object.defineProperty(e,"toString",{value:t})}function Ni(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 Fi=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 Ni(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(Xo);return t},e}(),ji=new Map,zi=new Map,Gi=1,Bi=function(e){if(ji.has(e))return ji.get(e);for(;zi.has(Gi);)Gi++;var t=Gi++;return ji.set(e,t),zi.set(t,e),t},$i=function(e,t){Gi=t+1,ji.set(e,t),zi.set(t,e)},Wi="style[".concat(Vo,"][").concat(Yo,'="').concat(Ko,'"]'),Hi=new RegExp("^".concat(Vo,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Vi=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)},Ui=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Xo),o=[],i=0,a=n.length;i<a;i++){var l=n[i].trim();if(l){var s=l.match(Hi);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&($i(c,u),Vi(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},Yi=function(e){for(var t=document.querySelectorAll(Wi),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Vo)!==Uo&&(Ui(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Ki=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Vo,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Vo,Uo),n.setAttribute(Yo,Ko);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Xi=function(){function e(e){this.element=Ki(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 Ni(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}(),Ji=function(){function e(e){this.element=Ki(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}(),Zi=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Qi=Jo,ea={isServer:!Jo,useCSSOMInjection:!Zo},ta=function(){function e(e,t,r){void 0===e&&(e=ti),void 0===t&&(t={});var n=this;this.options=Vn(Vn({},ea),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Jo&&Qi&&(Qi=!1,Yi(this)),qi(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return zi.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(r);if(void 0===i||!i.size||0===a.length)return"continue";var l="".concat(Vo,".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(Xo)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return Bi(e)},e.prototype.rehydrate=function(){!this.server&&Jo&&Yi(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(Vn(Vn({},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 Zi(r):t?new Xi(r):new Ji(r)}(this.options),new Fi(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(Bi(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(Bi(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Bi(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),ra=/&/g,na=/^\s*\/\/.*$/gm;function oa(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=oa(e.children,t)),e}))}var ia=new ta,aa=function(){var e,t,r,n=ti,o=n.options,i=void 0===o?ti:o,a=n.plugins,l=void 0===a?ei:a,s=function(r,n,o){return o.startsWith(t)&&o.endsWith(t)&&o.replaceAll(t,"").length>0?".".concat(e):r},u=l.slice();u.push((function(e){e.type===Zn&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(ra,t).replace(r,s))})),i.prefix&&u.push(Wo),u.push($o);var c=function(n,o,a,l){void 0===o&&(o=""),void 0===a&&(a=""),void 0===l&&(l="&"),e=l,t=o,r=new RegExp("\\".concat(t,"\\b"),"g");var s=n.replace(na,""),c=qo(a||o?"".concat(a," ").concat(o," { ").concat(s," }"):s);i.namespace&&(c=oa(c,i.namespace));var d,p=[];return Bo(c,function(e){var t=po(e);return function(r,n,o,i){for(var a="",l=0;l<t;l++)a+=e[l](r,n,o,i)||"";return a}}(u.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return c.hash=l.length?l.reduce((function(e,t){return t.name||Ni(15),di(e,t.name)}),5381).toString():"",c}(),la=t.createContext({shouldForwardProp:void 0,styleSheet:ia,stylis:aa});function sa(){return n(la)}la.Consumer;var ua=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=aa);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,qi(this,(function(){throw Ni(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=aa),this.name+e.hash},e}(),ca=function(e){return e>="A"&&e<="Z"};function da(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;ca(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var pa=function(e){return null==e||!1===e||""===e},fa=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!pa(i)&&(Array.isArray(i)&&i.isCss||Ai(i)?n.push("".concat(da(o),":"),i,";"):Ti(i)?n.push.apply(n,Un(Un(["".concat(o," {")],fa(i),!1),["}"],!1)):n.push("".concat(da(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in Ho||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function ma(e,t,r,n){return pa(e)?[]:Pi(e)?[".".concat(e.styledComponentId)]:Ai(e)?!Ai(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:ma(e(t),t,r,n):e instanceof ua?r?(e.inject(r,n),[e.getName(n)]):[e]:Ti(e)?fa(e):Array.isArray(e)?Array.prototype.concat.apply(ei,e.map((function(e){return ma(e,t,r,n)}))):[e.toString()];var o}function ha(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ai(r)&&!Pi(r))return!1}return!0}var ga=pi(Ko),ba=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&ha(e),this.componentId=t,this.baseHash=di(ga,t),this.baseStyle=r,ta.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=Oi(n,this.staticRulesId);else{var o=ki(ma(this.rules,e,t,r)),i=ui(di(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=Oi(n,i),this.staticRulesId=i}else{for(var l=di(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=ki(ma(c,e,t,r));l=di(l,d+u),s+=d}}if(s){var p=ui(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(s,".".concat(p),void 0,this.componentId)),n=Oi(n,p)}}return n},e}(),va=t.createContext(void 0);va.Consumer;var ya={};function xa(e,r,n){var i=Pi(e),a=e,l=!mi(e),s=r.attrs,u=void 0===s?ei:s,c=r.componentId,d=void 0===c?function(e,t){var r="string"!=typeof e?"sc":ai(e);ya[r]=(ya[r]||0)+1;var n="".concat(r,"-").concat(fi(Ko+r+ya[r]));return t?"".concat(t,"-").concat(n):n}(r.displayName,r.parentComponentId):c,p=r.displayName,f=void 0===p?function(e){return mi(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):p,m=r.displayName&&r.componentId?"".concat(ai(r.displayName),"-").concat(r.componentId):r.componentId||d,h=i&&a.attrs?a.attrs.concat(u).filter(Boolean):u,g=r.shouldForwardProp;if(i&&a.shouldForwardProp){var b=a.shouldForwardProp;if(r.shouldForwardProp){var v=r.shouldForwardProp;g=function(e,t){return b(e,t)&&v(e,t)}}else g=b}var y=new ba(n,m,i?a.componentStyle:void 0);function x(e,r){return function(e,r,n){var i=e.attrs,a=e.componentStyle,l=e.defaultProps,s=e.foldedComponentIds,u=e.styledComponentId,c=e.target,d=t.useContext(va),p=sa(),f=e.shouldForwardProp||p.shouldForwardProp,m=ri(r,d,l)||ti,h=function(e,t,r){for(var n,o=Vn(Vn({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=Ai(n=e[i])?n(o):n;for(var l in a)o[l]="className"===l?Oi(o[l],a[l]):"style"===l?Vn(Vn({},o[l]),a[l]):a[l]}return t.className&&(o.className=Oi(o.className,t.className)),o}(i,r,m),g=h.as||c,b={};for(var v in h)void 0===h[v]||"$"===v[0]||"as"===v||"theme"===v&&h.theme===m||("forwardedAs"===v?b.as=h.forwardedAs:f&&!f(v,g)||(b[v]=h[v]));var y=function(e,t){var r=sa();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(a,h),x=Oi(s,u);return y&&(x+=" "+y),h.className&&(x+=" "+h.className),b[mi(g)&&!ni.has(g)?"class":"className"]=x,n&&(b.ref=n),o(g,b)}(S,e,r)}x.displayName=f;var S=t.forwardRef(x);return S.attrs=h,S.componentStyle=y,S.displayName=f,S.shouldForwardProp=g,S.foldedComponentIds=i?Oi(a.foldedComponentIds,a.styledComponentId):"",S.styledComponentId=m,S.target=i?a.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)_i(e,o[n],!0);return e}({},a.defaultProps,e):e}}),qi(S,(function(){return".".concat(S.styledComponentId)})),l&&Di(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function Sa(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 Ea=function(e){return Object.assign(e,{isCss:!0})};function Ca(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Ai(e)||Ti(e))return Ea(ma(Sa(ei,Un([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?ma(n):Ea(ma(Sa(n,t)))}function wa(e,t,r){if(void 0===r&&(r=ti),!t)throw Ni(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,Ca.apply(void 0,Un([n],o,!1)))};return n.attrs=function(n){return wa(e,t,Vn(Vn({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return wa(e,t,Vn(Vn({},r),n))},n}var Ra=function(e){return wa(xa,e)},La=Ra;ni.forEach((function(e){La[e]=Ra(e)}));var Ia=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ha(e),ta.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(ki(ma(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&&ta.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Ma(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=ki(Ca.apply(void 0,Un([e],t,!1))),o=fi(n);return new ua(o,n)}function Da(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}Da.propTypes={children:yr.node,injectFirst:yr.bool};const Aa=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=Ca.apply(void 0,Un([e],r,!1)),i="sc-global-".concat(fi(JSON.stringify(o))),a=new Ia(o,i),l=function(e){var r=sa(),n=t.useContext(va),o=t.useRef(r.styleSheet.allocateGSInstance(i)).current;return r.styleSheet.server&&s(o,e,r.styleSheet,n,r.stylis),t.useLayoutEffect((function(){if(!r.styleSheet.server)return s(o,e,r.styleSheet,n,r.stylis),function(){return a.removeStyles(o,r.styleSheet)}}),[o,e,r.styleSheet,n,r.stylis]),null};function s(e,t,r,n,o){if(a.isStatic)a.renderStyles(e,Qo,r,o);else{var i=Vn(Vn({},t),{theme:ri(t,n,l.defaultProps)});a.renderStyles(e,i,r,o)}}return t.memo(l)}((e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n}));
10
10
  /**
@@ -98,7 +98,7 @@ function Pa(e,t){let r;return r=t?La(e).withConfig({displayName:t.label,shouldFo
98
98
  }
99
99
  `),Oc.rippleVisible,jc,550,(({theme:e})=>e.transitions.easing.easeInOut),Oc.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Oc.child,Oc.childLeaving,zc,550,(({theme:e})=>e.transitions.easing.easeInOut),Oc.childPulsate,Gc,(({theme:e})=>e.transitions.easing.easeInOut)),Wc=r.forwardRef((function(e,t){const n=ku({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,l=Wn(n,kc),[s,u]=r.useState([]),c=r.useRef(0),d=r.useRef(null);r.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[s]);const p=r.useRef(!1),f=r.useRef(0),m=r.useRef(null),h=r.useRef(null);r.useEffect((()=>()=>{f.current&&clearTimeout(f.current)}),[]);const g=r.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:a}=e;u((e=>[...e,Yr.jsx($c,{classes:{ripple:ju(i.ripple,Oc.ripple),rippleVisible:ju(i.rippleVisible,Oc.rippleVisible),ripplePulsate:ju(i.ripplePulsate,Oc.ripplePulsate),child:ju(i.child,Oc.child),childLeaving:ju(i.childLeaving,Oc.childLeaving),childPulsate:ju(i.childPulsate,Oc.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},c.current)])),c.current+=1,d.current=a}),[i]),b=r.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:n=!1,center:i=o||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)d=Math.sqrt((2*s.width**2+s.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===m.current&&(m.current=()=>{g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})},f.current=setTimeout((()=>{m.current&&(m.current(),m.current=null)}),80)):g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})}),[o,g]),v=r.useCallback((()=>{b({},{pulsate:!0})}),[b]),y=r.useCallback(((e,t)=>{if(clearTimeout(f.current),"touchend"===(null==e?void 0:e.type)&&m.current)return m.current(),m.current=null,void(f.current=setTimeout((()=>{y(e,t)})));m.current=null,u((e=>e.length>0?e.slice(1):e)),d.current=t}),[]);return r.useImperativeHandle(t,(()=>({pulsate:v,start:b,stop:y})),[v,b,y]),Yr.jsx(Bc,$n({className:ju(Oc.root,i.root,a),ref:h},l,{children:Yr.jsx(xc,{component:null,exit:!0,children:s})}))}));function Hc(e){return uu("MuiButtonBase",e)}const Vc=cu("MuiButtonBase",["root","disabled","focusVisible"]),Uc=["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"],Yc=qu("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Vc.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Kc=r.forwardRef((function(e,t){const n=ku({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:m,onClick:h,onContextMenu:g,onDragLeave:b,onFocus:v,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:I,tabIndex:M=0,TouchRippleProps:D,touchRippleRef:A,type:P}=n,O=Wn(n,Uc),k=r.useRef(null),T=r.useRef(null),_=Ks(T,A),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=ou(),[z,G]=r.useState(!1);u&&z&&G(!1),r.useImperativeHandle(o,(()=>({focusVisible:()=>{G(!0),k.current.focus()}})),[]);const[B,$]=r.useState(!1);r.useEffect((()=>{$(!0)}),[]);const W=B&&!c&&!u;function H(e,t,r=d){return Ys((n=>{t&&t(n);return!r&&T.current&&T.current[e](n),!0}))}r.useEffect((()=>{z&&p&&!c&&B&&T.current.pulsate()}),[c,p,z,B]);const V=H("start",E),U=H("stop",g),Y=H("stop",b),K=H("stop",w),X=H("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=H("start",I),Z=H("stop",R),Q=H("stop",L),ee=H("stop",(e=>{F(e),!1===q.current&&G(!1),m&&m(e)}),!1),te=Ys((e=>{k.current||(k.current=e.currentTarget),N(e),!0===q.current&&(G(!0),y&&y(e)),v&&v(e)})),re=()=>{const e=k.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=r.useRef(!1),oe=Ys((e=>{p&&!ne.current&&z&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!u&&(e.preventDefault(),h&&h(e))})),ie=Ys((e=>{p&&" "===e.key&&T.current&&z&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(O.href||O.to)&&(ae=f);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=u):(O.href||O.to||(le.role="button"),u&&(le["aria-disabled"]=u));const se=Ks(t,j,k),ue=$n({},n,{centerRipple:i,component:s,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:M,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=dl({root:["root",t&&"disabled",r&&"focusVisible"]},Hc,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Yr.jsxs(Yc,$n({as:ae,className:ju(ce.root,l),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:u?-1:M,type:P},le,O,{children:[a,W?Yr.jsx(Wc,$n({ref:_,center:i},D)):null]}))}));function Xc(e){return uu("MuiTypography",e)}cu("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Jc=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Zc=qu("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${zs(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>$n({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),Qc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ed={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},td=r.forwardRef((function(e,t){const r=ku({props:e,name:"MuiTypography"}),n=(e=>ed[e]||e)(r.color),o=xs($n({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Qc}=o,f=Wn(o,Jc),m=$n({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||Qc[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return dl({root:["root",i,"inherit"!==e.align&&`align${zs(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},Xc,a)})(m);return Yr.jsx(Zc,$n({as:h,ref:t,ownerState:m,className:ju(g.root,a)},f))})),rd=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function nd(e){const t=[],r=[];return Array.from(e.querySelectorAll(rd)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function od(){return!0}function id(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:a=nd,isEnabled:l=od,open:s}=e,u=r.useRef(!1),c=r.useRef(null),d=r.useRef(null),p=r.useRef(null),f=r.useRef(null),m=r.useRef(!1),h=r.useRef(null),g=ul(t.ref,h),b=r.useRef(null);r.useEffect((()=>{s&&h.current&&(m.current=!n)}),[n,s]),r.useEffect((()=>{if(!s||!h.current)return;const e=ol(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),m.current&&h.current.focus()),()=>{i||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[s]),r.useEffect((()=>{if(!s||!h.current)return;const e=ol(h.current),t=t=>{b.current=t,!o&&l()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!l()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!m.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=a(h.current)),r.length>0){var n,i;const e=Boolean((null==(n=b.current)?void 0:n.shiftKey)&&"Tab"===(null==(i=b.current)?void 0:i.key)),t=r[0],o=r[r.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const n=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[n,o,i,l,s,a]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0};return Yr.jsxs(r.Fragment,{children:[Yr.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),r.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0,f.current=e.target;const r=t.props.onFocus;r&&r(e)}}),Yr.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const ad=r.forwardRef((function(e,t){const{children:n,container:o,disablePortal:i=!1}=e,[a,l]=r.useState(null),s=ul(r.isValidElement(n)?n.ref:null,t);if(ll((()=>{i||l(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,i]),ll((()=>{if(a&&!i)return al(t,a),()=>{al(t,null)}}),[t,a,i]),i){if(r.isValidElement(n)){const e={ref:s};return r.cloneElement(n,e)}return Yr.jsx(r.Fragment,{children:n})}return Yr.jsx(r.Fragment,{children:a?j.createPortal(n,a):a})}));function ld(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function sd(e){return parseInt(il(e).getComputedStyle(e).paddingRight,10)||0}function ud(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&ld(e,o)}))}function cd(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function dd(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=ol(e);return t.body===e?il(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)}(ol(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${sd(n)+e}px`;const t=ol(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${sd(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=ol(n).body;else{const t=n.parentElement,r=il(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const pd=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&ld(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);ud(t,e.mount,e.modalRef,n,!0);const o=cd(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=cd(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=dd(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=cd(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&ld(e.modalRef,t),ud(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&ld(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function fd(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:i=pd,closeAfterTransition:a=!1,onTransitionEnter:l,onTransitionExited:s,children:u,onClose:c,open:d,rootRef:p}=e,f=r.useRef({}),m=r.useRef(null),h=r.useRef(null),g=ul(h,p),[b,v]=r.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(f.current.modalRef=h.current,f.current.mount=m.current,f.current),E=()=>{i.mount(S(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},C=sl((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||ol(m.current).body;i.add(S(),e),h.current&&E()})),w=r.useCallback((()=>i.isTopModal(S())),[i]),R=sl((e=>{m.current=e,e&&(d&&w()?E():h.current&&ld(h.current,x))})),L=r.useCallback((()=>{i.remove(S(),x)}),[x,i]);r.useEffect((()=>()=>{L()}),[L]),r.useEffect((()=>{d?C():y&&a||L()}),[d,L,y,a,C]);const I=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},M=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Mc(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=hr({},r,t);return hr({role:"presentation"},n,{onKeyDown:I(n),ref:g})},getBackdropProps:(e={})=>hr({"aria-hidden":!0},e,{onClick:M(e),open:d}),getTransitionProps:()=>({onEnter:nl((()=>{v(!1),l&&l()}),null==u?void 0:u.props.onEnter),onExited:nl((()=>{v(!0),s&&s(),a&&L()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:R,isTopModal:w,exited:b,hasTransition:y}}const md=["onChange","maxRows","minRows","style","value"];function hd(e){return parseInt(e,10)||0}const gd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function bd(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const vd=r.forwardRef((function(e,t){const{onChange:n,maxRows:o,minRows:i=1,style:a,value:l}=e,s=Er(e,md),{current:u}=r.useRef(null!=l),c=r.useRef(null),d=ul(t,c),p=r.useRef(null),f=r.useRef(0),[m,h]=r.useState({outerHeightStyle:0}),g=r.useCallback((()=>{const t=c.current,r=il(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};const n=p.current;n.style.width=r.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=r.boxSizing,l=hd(r.paddingBottom)+hd(r.paddingTop),s=hd(r.borderBottomWidth)+hd(r.borderTopWidth),u=n.scrollHeight;n.value="x";const d=n.scrollHeight;let f=u;i&&(f=Math.max(Number(i)*d,f)),o&&(f=Math.min(Number(o)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-u)<=1}}),[o,i,e.placeholder]),b=(e,t)=>{const{outerHeightStyle:r,overflow:n}=t;return f.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(f.current+=1,{overflow:n,outerHeightStyle:r}):e},v=r.useCallback((()=>{const e=g();bd(e)||h((t=>b(t,e)))}),[g]);ll((()=>{const e=()=>{f.current=0,(()=>{const e=g();bd(e)||j.flushSync((()=>{h((t=>b(t,e)))}))})()};const t=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}(e),r=c.current,n=il(r);let o;return n.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(r)),()=>{t.clear(),cancelAnimationFrame(undefined),n.removeEventListener("resize",t),o&&o.disconnect()}}),[g]),ll((()=>{v()})),r.useEffect((()=>{f.current=0}),[l]);return Yr.jsxs(r.Fragment,{children:[Yr.jsx("textarea",hr({value:l,onChange:e=>{f.current=0,u||v(),n&&n(e)},ref:d,rows:i,style:hr({height:m.outerHeightStyle,overflow:m.overflow?"hidden":void 0},a)},s)),Yr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:hr({},gd,a,{paddingTop:0,paddingBottom:0})})]})}));function yd({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}const xd=r.createContext(void 0);function Sd(){return r.useContext(xd)}function Ed(e){return Yr.jsx(vs,$n({},e,{defaultTheme:Pu,themeId:Bn}))}function Cd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function wd(e,t=!1){return e&&(Cd(e.value)&&""!==e.value||t&&Cd(e.defaultValue)&&""!==e.defaultValue)}function Rd(e){return uu("MuiInputBase",e)}const Ld=cu("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Id=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Md=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${zs(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Dd=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Ad=qu("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Md})((({theme:e,ownerState:t})=>$n({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ld.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&$n({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Pd=qu("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Dd})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=$n({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 $n({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ld.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Ld.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),Od=Yr.jsx(Ed,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),kd=r.forwardRef((function(e,t){var n;const o=ku({props:e,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:l,className:s,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:m,fullWidth:h=!1,id:g,inputComponent:b="input",inputProps:v={},inputRef:y,maxRows:x,minRows:S,multiline:E=!1,name:C,onBlur:w,onChange:R,onClick:L,onFocus:I,onKeyDown:M,onKeyUp:D,placeholder:A,readOnly:P,renderSuffix:O,rows:k,slotProps:T={},slots:_={},startAdornment:q,type:N="text",value:F}=o,j=Wn(o,Id),z=null!=v.value?v.value:F,{current:G}=r.useRef(null!=z),B=r.useRef(),$=r.useCallback((e=>{}),[]),W=Ks(B,y,v.ref,$),[H,V]=r.useState(!1),U=Sd(),Y=yd({props:o,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:H,r.useEffect((()=>{!U&&p&&H&&(V(!1),w&&w())}),[U,p,H,w]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=r.useCallback((e=>{wd(e)?K&&K():X&&X()}),[K,X]);$s((()=>{G&&J({value:z})}),[z,J,G]);r.useEffect((()=>{J(B.current)}),[]);let Z=b,Q=v;E&&"input"===Z&&(Q=$n(k?{type:void 0,minRows:k,maxRows:k}:{type:void 0,maxRows:x,minRows:S},Q),Z=vd);r.useEffect((()=>{U&&U.setAdornedStart(Boolean(q))}),[U,q]);const ee=$n({},o,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:m,error:Y.error,focused:Y.focused,formControl:U,fullWidth:h,hiddenLabel:Y.hiddenLabel,multiline:E,size:Y.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return dl({root:["root",`color${zs(r)}`,n&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${zs(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Rd,t)})(ee),re=_.root||u.Root||Ad,ne=T.root||c.root||{},oe=_.input||u.Input||Pd;return Q=$n({},Q,null!=(n=T.input)?n:c.input),Yr.jsxs(r.Fragment,{children:[!f&&Od,Yr.jsxs(re,$n({},ne,!Ic(re)&&{ownerState:$n({},ee,ne.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),L&&L(e)}},j,{className:ju(te.root,ne.className,s,P&&"MuiInputBase-readOnly"),children:[q,Yr.jsx(xd.Provider,{value:null,children:Yr.jsx(oe,$n({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":i,autoComplete:a,autoFocus:l,defaultValue:d,disabled:Y.disabled,id:g,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:C,placeholder:A,readOnly:P,required:Y.required,rows:k,value:z,onKeyDown:M,onKeyUp:D,type:N},Q,!Ic(oe)&&{as:Z,ownerState:$n({},ee,Q.ownerState)},{ref:W,className:ju(te.input,Q.className,P&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),v.onBlur&&v.onBlur(e),U&&U.onBlur?U.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!G){const t=e.target||B.current;if(null==t)throw new Error(Gn(1));J({value:t.value})}v.onChange&&v.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(I&&I(e),v.onFocus&&v.onFocus(e),U&&U.onFocus?U.onFocus(e):V(!0))}}))}),m,O?O($n({},Y,{startAdornment:q})):null]}))]})}));function Td(e){return uu("MuiInput",e)}const _d=$n({},Ld,cu("MuiInput",["root","underline","input"]));function qd(e){return uu("MuiOutlinedInput",e)}const Nd=$n({},Ld,cu("MuiOutlinedInput",["root","notchedOutline","input"]));function Fd(e){return uu("MuiFilledInput",e)}const jd=$n({},Ld,cu("MuiFilledInput",["root","underline","input"]));var zd=function(e,t){function n(r,n){return Yr.jsx($u,$n({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return n.muiName=$u.muiName,r.memo(r.forwardRef(n))}(Yr.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Gd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Bd={entering:{opacity:1},entered:{opacity:1}},$d=r.forwardRef((function(e,t){const n=Ou(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:s,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:m,onExiting:h,style:g,timeout:b=o,TransitionComponent:v=mc}=e,y=Wn(e,Gd),x=r.useRef(null),S=Ks(x,l.ref,t),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=E(p),w=E(((e,t)=>{Sc(e);const r=Ec({style:g,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),R=E(d),L=E(h),I=E((e=>{const t=Ec({style:g,timeout:b,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),M=E(m);return Yr.jsx(v,$n({appear:a,in:u,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:I,onExited:M,onExiting:L,addEndListener:e=>{i&&i(x.current,e)},timeout:b},y,{children:(e,t)=>r.cloneElement(l,$n({style:$n({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},Bd[e],g,l.props.style),ref:S},t))}))}));function Wd(e){return uu("MuiBackdrop",e)}cu("MuiBackdrop",["root","invisible"]);const Hd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Vd=qu("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>$n({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"}))),Ud=r.forwardRef((function(e,t){var r,n,o;const i=ku({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=$d,transitionDuration:g}=i,b=Wn(i,Hd),v=$n({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return dl({root:["root",r&&"invisible"]},Wd,t)})(v),x=null!=(r=f.root)?r:c.root;return Yr.jsx(h,$n({in:p,timeout:g},b,{children:Yr.jsx(Vd,$n({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:s,className:ju(y.root,l,null==x?void 0:x.className),ownerState:$n({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),Yd=cu("MuiBox",["root"]),Kd=Au(),Xd=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:i}=e,a=Pa("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ds);return r.forwardRef((function(e,r){const l=bs(n),s=xs(e),{className:u,component:c="div"}=s,d=Er(s,Ss);return Yr.jsx(a,hr({as:c,ref:r,className:fl(u,i?i(o):o),theme:t&&l[t]||l},d))}))}({themeId:Bn,defaultTheme:Kd,defaultClassName:Yd.root,generateClassName:lu.generate});function Jd(e){return uu("MuiButton",e)}const Zd=cu("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Qd=r.createContext({}),ep=r.createContext(void 0),tp=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],rp=e=>$n({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),np=qu(Kc,{shouldForwardProp:e=>Tu(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${zs(r.color)}`],t[`size${zs(r.size)}`],t[`${r.variant}Size${zs(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return $n({},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":$n({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:qs(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:qs(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:qs(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":$n({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Zd.focusVisible}`]:$n({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Zd.disabled}`]:$n({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${qs(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Zd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Zd.disabled}`]:{boxShadow:"none"}})),op=qu("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${zs(r.size)}`]]}})((({ownerState:e})=>$n({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},rp(e)))),ip=qu("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${zs(r.size)}`]]}})((({ownerState:e})=>$n({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},rp(e)))),ap=r.forwardRef((function(e,t){const n=r.useContext(Qd),o=r.useContext(ep),i=ku({props:iu(n,e),name:"MuiButton"}),{children:a,color:l="primary",component:s="button",className:u,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:p=!1,endIcon:f,focusVisibleClassName:m,fullWidth:h=!1,size:g="medium",startIcon:b,type:v,variant:y="text"}=i,x=Wn(i,tp),S=$n({},i,{color:l,component:s,disabled:c,disableElevation:d,disableFocusRipple:p,fullWidth:h,size:g,type:v,variant:y}),E=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return $n({},a,dl({root:["root",i,`${i}${zs(t)}`,`size${zs(o)}`,`${i}Size${zs(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${zs(o)}`],endIcon:["endIcon",`iconSize${zs(o)}`]},Jd,a))})(S),C=b&&Yr.jsx(op,{className:E.startIcon,ownerState:S,children:b}),w=f&&Yr.jsx(ip,{className:E.endIcon,ownerState:S,children:f}),R=o||"";return Yr.jsxs(np,$n({ownerState:S,className:ju(n.className,E.root,u,R),component:s,disabled:c,focusRipple:!p,focusVisibleClassName:ju(E.focusVisible,m),ref:t,type:v},x,{classes:E,children:[C,a,w]}))}));function lp(e){return uu("MuiModal",e)}cu("MuiModal",["root","hidden","backdrop"]);const sp=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],up=qu("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>$n({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),cp=qu(Ud,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),dp=r.forwardRef((function(e,t){var n,o,i,a,l,s;const u=ku({name:"MuiModal",props:e}),{BackdropComponent:c=cp,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:m,container:h,component:g,components:b={},componentsProps:v={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:I,open:M,slotProps:D,slots:A}=u,P=Wn(u,sp),O=$n({},u,{closeAfterTransition:f,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:k,getBackdropProps:T,getTransitionProps:_,portalRef:q,isTopModal:N,exited:F,hasTransition:j}=fd($n({},O,{rootRef:t})),z=$n({},O,{exited:F}),G=(e=>{const{open:t,exited:r,classes:n}=e;return dl({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},lp,n)})(z),B={};if(void 0===m.props.tabIndex&&(B.tabIndex="-1"),j){const{onEnter:e,onExited:t}=_();B.onEnter=e,B.onExited=t}const $=null!=(n=null!=(o=null==A?void 0:A.root)?o:b.Root)?n:up,W=null!=(i=null!=(a=null==A?void 0:A.backdrop)?a:b.Backdrop)?i:c,H=null!=(l=null==D?void 0:D.root)?l:v.root,V=null!=(s=null==D?void 0:D.backdrop)?s:v.backdrop,U=Pc({elementType:$,externalSlotProps:H,externalForwardedProps:P,getSlotProps:k,additionalProps:{ref:t,as:g},ownerState:z,className:ju(p,null==H?void 0:H.className,null==G?void 0:G.root,!z.open&&z.exited&&(null==G?void 0:G.hidden))}),Y=Pc({elementType:W,externalSlotProps:V,additionalProps:d,getSlotProps:e=>T($n({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:ju(null==V?void 0:V.className,null==d?void 0:d.className,null==G?void 0:G.backdrop),ownerState:z});return L||M||j&&!F?Yr.jsx(ad,{ref:q,container:h,disablePortal:E,children:Yr.jsxs($,$n({},U,{children:[!R&&c?Yr.jsx(W,$n({},Y)):null,Yr.jsx(id,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:N,open:M,children:r.cloneElement(m,B)})]}))}):null}));function pp(e){return uu("MuiDivider",e)}const fp=cu("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),mp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],hp=qu("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>$n({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:qs(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>$n({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>$n({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>$n({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>$n({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),gp=qu("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>$n({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),bp=r.forwardRef((function(e,t){const r=ku({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=Wn(r,mp),m=$n({},r,{absolute:n,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return dl({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},pp,n)})(m);return Yr.jsx(hp,$n({as:a,className:ju(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Yr.jsx(gp,{className:h.wrapper,ownerState:m,children:o}):null}))}));bp.muiSkipListHighlight=!0;const vp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],yp=qu(Ad,{shouldForwardProp:e=>Tu(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Md(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return $n({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${jd.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${jd.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${jd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${jd.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${jd.disabled}, .${jd.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${jd.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&$n({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),xp=qu(Pd,{name:"MuiFilledInput",slot:"Input",overridesResolver:Dd})((({theme:e,ownerState:t})=>$n({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),Sp=r.forwardRef((function(e,t){var r,n,o,i;const a=ku({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=Wn(a,vp),g=$n({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:r}=e;return $n({},t,dl({root:["root",!r&&"underline"],input:["input"]},Fd,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?js(v,null!=p?p:s):v,x=null!=(r=null!=(n=f.root)?n:l.Root)?r:yp,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:xp;return Yr.jsx(kd,$n({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));Sp.muiName="Input";const Ep=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Cp(e){return`scale(${e}, ${e**2})`}const wp={entering:{opacity:1,transform:Cp(1)},entered:{opacity:1,transform:"none"}},Rp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Lp=r.forwardRef((function(e,t){const{addEndListener:n,appear:o=!0,children:i,easing:a,in:l,onEnter:s,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:m,timeout:h="auto",TransitionComponent:g=mc}=e,b=Wn(e,Ep),v=r.useRef(),y=r.useRef(),x=Ou(),S=r.useRef(null),E=Ks(S,i.ref,t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},w=C(c),R=C(((e,t)=>{Sc(e);const{duration:r,delay:n,easing:o}=Ec({style:m,timeout:h,easing:a},{mode:"enter"});let i;"auto"===h?(i=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=i):i=r,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:n}),x.transitions.create("transform",{duration:Rp?i:.666*i,delay:n,easing:o})].join(","),s&&s(e,t)})),L=C(u),I=C(f),M=C((e=>{const{duration:t,delay:r,easing:n}=Ec({style:m,timeout:h,easing:a},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:Rp?o:.666*o,delay:Rp?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Cp(.75),d&&d(e)})),D=C(p);return r.useEffect((()=>()=>{clearTimeout(v.current)}),[]),Yr.jsx(g,$n({appear:o,in:l,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:M,onExited:D,onExiting:I,addEndListener:e=>{"auto"===h&&(v.current=setTimeout(e,y.current||0)),n&&n(S.current,e)},timeout:"auto"===h?null:h},b,{children:(e,t)=>r.cloneElement(i,$n({style:$n({opacity:0,transform:Cp(.75),visibility:"exited"!==e||l?void 0:"hidden"},wp[e],m,i.props.style),ref:E},t))}))}));Lp.muiSupportAuto=!0;const Ip=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Mp=qu(Ad,{shouldForwardProp:e=>Tu(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Md(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),$n({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${_d.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${_d.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${_d.disabled}, .${_d.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${_d.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Dp=qu(Pd,{name:"MuiInput",slot:"Input",overridesResolver:Dd})({}),Ap=r.forwardRef((function(e,t){var r,n,o,i;const a=ku({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=Wn(a,Ip),b=(e=>{const{classes:t,disableUnderline:r}=e;return $n({},t,dl({root:["root",!r&&"underline"],input:["input"]},Td,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?js(null!=f?f:u,v):v,x=null!=(r=null!=(n=m.root)?n:s.Root)?r:Mp,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:Dp;return Yr.jsx(kd,$n({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));function Pp(e){return uu("MuiLink",e)}Ap.muiName="Input";const Op=cu("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),kp={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Tp=({theme:e,ownerState:t})=>{const r=(e=>kp[e]||e)(t.color),n=Sl(e,`palette.${r}`,!1)||t.color,o=Sl(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:qs(n,.4)},_p=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],qp=qu(td,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${zs(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>$n({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&$n({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Tp({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Op.focusVisible}`]:{outline:"auto"}}))),Np=r.forwardRef((function(e,t){const n=ku({props:e,name:"MuiLink"}),{className:o,color:i="primary",component:a="a",onBlur:l,onFocus:s,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:p}=n,f=Wn(n,_p),{isFocusVisibleRef:m,onBlur:h,onFocus:g,ref:b}=ou(),[v,y]=r.useState(!1),x=Ks(t,b),S=$n({},n,{color:i,component:a,focusVisible:v,underline:c,variant:d}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return dl({root:["root",`underline${zs(o)}`,"button"===r&&"button",n&&"focusVisible"]},Pp,t)})(S);return Yr.jsx(qp,$n({color:i,className:ju(E.root,o),classes:u,component:a,onBlur:e=>{h(e),!1===m.current&&y(!1),l&&l(e)},onFocus:e=>{g(e),!0===m.current&&y(!0),s&&s(e)},ref:x,ownerState:S,variant:d,sx:[...Object.keys(kp).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},f))})),Fp=r.createContext({});function jp(e){return uu("MuiList",e)}cu("MuiList",["root","padding","dense","subheader"]);const zp=["children","className","component","dense","disablePadding","subheader"],Gp=qu("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>$n({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Bp=r.forwardRef((function(e,t){const n=ku({props:e,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:l=!1,disablePadding:s=!1,subheader:u}=n,c=Wn(n,zp),d=r.useMemo((()=>({dense:l})),[l]),p=$n({},n,{component:a,dense:l,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return dl({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},jp,t)})(p);return Yr.jsx(Fp.Provider,{value:d,children:Yr.jsxs(Gp,$n({as:a,className:ju(f.root,i),ref:t,ownerState:p},c,{children:[u,o]}))})}));function $p(e){return uu("MuiListItemIcon",e)}const Wp=cu("MuiListItemIcon",["root","alignItemsFlexStart"]),Hp=["className"],Vp=qu("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>$n({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),Up=r.forwardRef((function(e,t){const n=ku({props:e,name:"MuiListItemIcon"}),{className:o}=n,i=Wn(n,Hp),a=$n({},n,{alignItems:r.useContext(Fp).alignItems}),l=(e=>{const{alignItems:t,classes:r}=e;return dl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},$p,r)})(a);return Yr.jsx(Vp,$n({className:ju(l.root,o),ownerState:a,ref:t},i))})),Yp=cu("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Kp=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Xp(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Jp(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Zp(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Qp(e,t,r,n,o,i){let a=!1,l=o(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Zp(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}const ef=r.forwardRef((function(e,t){const{actions:n,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:s=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,p=Wn(e,Kp),f=r.useRef(null),m=r.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});$s((()=>{o&&f.current.focus()}),[o]),r.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const r=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&r){const r=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(Gs(e))}px`;f.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}})),[]);const h=Ks(f,t);let g=-1;r.Children.forEach(a,((e,t)=>{r.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===t&&(g+=1,g>=a.length&&(g=-1))}));const b=r.Children.map(a,((e,t)=>{if(t===g){const t={};return i&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),r.cloneElement(e,t)}return e}));return Yr.jsx(Bp,$n({role:"menu",ref:h,className:l,onKeyDown:e=>{const t=f.current,r=e.key,n=Gs(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Qp(t,n,u,s,Xp);else if("ArrowUp"===r)e.preventDefault(),Qp(t,n,u,s,Jp);else if("Home"===r)e.preventDefault(),Qp(t,null,u,s,Xp);else if("End"===r)e.preventDefault(),Qp(t,null,u,s,Jp);else if(1===r.length){const o=m.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=n&&!o.repeating&&Zp(n,o);o.previousKeyMatched&&(l||Qp(t,n,!1,s,Xp,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:o?0:-1},p,{children:b}))}));function tf(e){return uu("MuiPopover",e)}cu("MuiPopover",["root","paper"]);const rf=["onEntering"],nf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],of=["slotProps"];function af(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function lf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function sf(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function uf(e){return"function"==typeof e?e():e}const cf=qu(dp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),df=qu(Lc,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),pf=r.forwardRef((function(e,t){var n,o,i;const a=ku({props:e,name:"MuiPopover"}),{action:l,anchorEl:s,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:f,container:m,elevation:h=8,marginThreshold:g=16,open:b,PaperProps:v={},slots:y,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=Lp,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=a,L=Wn(a.TransitionProps,rf),I=Wn(a,nf),M=null!=(n=null==x?void 0:x.paper)?n:v,D=r.useRef(),A=Ks(D,M.ref),P=$n({},a,{anchorOrigin:u,anchorReference:d,elevation:h,marginThreshold:g,externalPaperSlotProps:M,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),O=(e=>{const{classes:t}=e;return dl({root:["root"],paper:["paper"]},tf,t)})(P),k=r.useCallback((()=>{if("anchorPosition"===d)return c;const e=uf(s),t=(e&&1===e.nodeType?e:Gs(D.current).body).getBoundingClientRect();return{top:t.top+af(t,u.vertical),left:t.left+lf(t,u.horizontal)}}),[s,u.horizontal,u.vertical,c,d]),T=r.useCallback((e=>({vertical:af(e,S.vertical),horizontal:lf(e,S.horizontal)})),[S.horizontal,S.vertical]),_=r.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=T(t);if("none"===d)return{top:null,left:null,transformOrigin:sf(r)};const n=k();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=Bs(uf(s)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,r.vertical+=e}else if(null!==g&&a>c){const e=a-c;o-=e,r.vertical+=e}if(null!==g&&i<g){const e=i-g;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:sf(r)}}),[s,d,k,T,g]),[q,N]=r.useState(b),F=r.useCallback((()=>{const e=D.current;if(!e)return;const t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[_]);r.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[s,R,F]);r.useEffect((()=>{b&&F()})),r.useImperativeHandle(l,(()=>b?{updatePosition:()=>{F()}}:null),[b,F]),r.useEffect((()=>{if(!b)return;const e=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}((()=>{F()})),t=Bs(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,b,F]);let j=C;"auto"!==C||E.muiSupportAuto||(j=void 0);const z=m||(s?Gs(uf(s)).body:void 0),G=null!=(o=null==y?void 0:y.root)?o:cf,B=null!=(i=null==y?void 0:y.paper)?i:df,$=Pc({elementType:B,externalSlotProps:$n({},M,{style:q?M.style:$n({},M.style,{opacity:0})}),additionalProps:{elevation:h,ref:A},ownerState:P,className:ju(O.paper,null==M?void 0:M.className)}),W=Pc({elementType:G,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:I,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:b},ownerState:P,className:ju(O.root,f)}),{slotProps:H}=W,V=Wn(W,of);return Yr.jsx(G,$n({},V,!Ic(G)&&{slotProps:H,disableScrollLock:R},{children:Yr.jsx(E,$n({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:j},L,{children:Yr.jsx(B,$n({},$,{children:p}))}))}))}));function ff(e){return uu("MuiMenu",e)}cu("MuiMenu",["root","paper","list"]);const mf=["onEntering"],hf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],gf={vertical:"top",horizontal:"right"},bf={vertical:"top",horizontal:"left"},vf=qu(pf,{shouldForwardProp:e=>Tu(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),yf=qu(df,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),xf=qu(ef,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Sf=r.forwardRef((function(e,t){var n,o;const i=ku({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:s,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:f={},PopoverClasses:m,transitionDuration:h="auto",TransitionProps:{onEntering:g}={},variant:b="selectedMenu",slots:v={},slotProps:y={}}=i,x=Wn(i.TransitionProps,mf),S=Wn(i,hf),E=Ou(),C="rtl"===E.direction,w=$n({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:h,TransitionProps:x,variant:b}),R=(e=>{const{classes:t}=e;return dl({root:["root"],paper:["paper"],list:["list"]},ff,t)})(w),L=a&&!u&&p,I=r.useRef(null);let M=-1;r.Children.map(l,((e,t)=>{r.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===M)&&(M=t))}));const D=null!=(n=v.paper)?n:yf,A=null!=(o=y.paper)?o:f,P=Pc({elementType:v.root,externalSlotProps:y.root,ownerState:w,className:[R.root,s]}),O=Pc({elementType:D,externalSlotProps:A,ownerState:w,className:R.paper});return Yr.jsx(vf,$n({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?gf:bf,slots:{paper:D,root:v.root},slotProps:{root:P,paper:O},open:p,ref:t,transitionDuration:h,TransitionProps:$n({onEntering:(e,t)=>{I.current&&I.current.adjustStyleForScrollbar(e,E),g&&g(e,t)}},x),ownerState:w},S,{classes:m,children:Yr.jsx(xf,$n({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:I,autoFocus:a&&(-1===M||u),autoFocusItem:L,variant:b},c,{className:ju(R.list,c.className),children:l}))}))}));function Ef(e){return uu("MuiMenuItem",e)}const Cf=cu("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),wf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Rf=qu(Kc,{shouldForwardProp:e=>Tu(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>$n({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Cf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:qs(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Cf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:qs(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Cf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:qs(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:qs(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Cf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Cf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${fp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${fp.inset}`]:{marginLeft:52},[`& .${Yp.root}`]:{marginTop:0,marginBottom:0},[`& .${Yp.inset}`]:{paddingLeft:36},[`& .${Wp.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&$n({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Wp.root} svg`]:{fontSize:"1.25rem"}})))),Lf=r.forwardRef((function(e,t){const n=ku({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:s=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=n,f=Wn(n,wf),m=r.useContext(Fp),h=r.useMemo((()=>({dense:a||m.dense||!1,disableGutters:s})),[m.dense,a,s]),g=r.useRef(null);$s((()=>{o&&g.current&&g.current.focus()}),[o]);const b=$n({},n,{dense:h.dense,divider:l,disableGutters:s}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return $n({},a,dl({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Ef,a))})(n),y=Ks(g,t);let x;return n.disabled||(x=void 0!==d?d:-1),Yr.jsx(Fp.Provider,{value:h,children:Yr.jsx(Rf,$n({ref:y,role:c,tabIndex:x,component:i,focusVisibleClassName:ju(v.focusVisible,u),className:ju(v.root,p)},f,{ownerState:b,classes:v}))})}));function If(e){return uu("MuiNativeSelect",e)}const Mf=cu("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Df=["className","disabled","error","IconComponent","inputRef","variant"],Af=({ownerState:e,theme:t})=>$n({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":$n({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Mf.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Pf=qu("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Tu,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Mf.multiple}`]:t.multiple}]}})(Af),Of=({ownerState:e,theme:t})=>$n({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Mf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),kf=qu("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${zs(r.variant)}`],r.open&&t.iconOpen]}})(Of),Tf=r.forwardRef((function(e,t){const{className:n,disabled:o,error:i,IconComponent:a,inputRef:l,variant:s="standard"}=e,u=Wn(e,Df),c=$n({},e,{disabled:o,variant:s,error:i}),d=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return dl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${zs(r)}`,i&&"iconOpen",n&&"disabled"]},If,t)})(c);return Yr.jsxs(r.Fragment,{children:[Yr.jsx(Pf,$n({ownerState:c,className:ju(d.select,n),disabled:o,ref:l||t},u)),e.multiple?null:Yr.jsx(kf,{as:a,ownerState:c,className:d.icon})]})}));var _f;const qf=["children","classes","className","label","notched"],Nf=qu("fieldset",{shouldForwardProp:Tu})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Ff=qu("legend",{shouldForwardProp:Tu})((({ownerState:e,theme:t})=>$n({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&&$n({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const jf=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],zf=qu(Ad,{shouldForwardProp:e=>Tu(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Md})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return $n({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Nd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Nd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Nd.focused} .${Nd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Nd.error} .${Nd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Nd.disabled} .${Nd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&$n({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Gf=qu((function(e){const{className:t,label:r,notched:n}=e,o=Wn(e,qf),i=null!=r&&""!==r,a=$n({},e,{notched:n,withLabel:i});return Yr.jsx(Nf,$n({"aria-hidden":!0,className:t,ownerState:a},o,{children:Yr.jsx(Ff,{ownerState:a,children:i?Yr.jsx("span",{children:r}):_f||(_f=Yr.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}})),Bf=qu(Pd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Dd})((({theme:e,ownerState:t})=>$n({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}))),$f=r.forwardRef((function(e,t){var n,o,i,a,l;const s=ku({props:e,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:f=!1,notched:m,slots:h={},type:g="text"}=s,b=Wn(s,jf),v=(e=>{const{classes:t}=e;return $n({},t,dl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},qd,t))})(s),y=Sd(),x=yd({props:s,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=$n({},s,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:y,fullWidth:c,hiddenLabel:x.hiddenLabel,multiline:f,size:x.size,type:g}),E=null!=(n=null!=(o=h.root)?o:u.Root)?n:zf,C=null!=(i=null!=(a=h.input)?a:u.Input)?i:Bf;return Yr.jsx(kd,$n({slots:{root:E,input:C},renderSuffix:e=>Yr.jsx(Gf,{ownerState:S,className:v.notchedOutline,label:null!=p&&""!==p&&x.required?l||(l=Yr.jsxs(r.Fragment,{children:[p," ","*"]})):p,notched:void 0!==m?m:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:d,multiline:f,ref:t,type:g},b,{classes:$n({},v,{notchedOutline:null})}))}));function Wf(e){return uu("MuiSelect",e)}$f.muiName="Input";const Hf=cu("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Vf;const Uf=["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"],Yf=qu("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Hf.select}`]:t.select},{[`&.${Hf.select}`]:t[r.variant]},{[`&.${Hf.error}`]:t.error},{[`&.${Hf.multiple}`]:t.multiple}]}})(Af,{[`&.${Hf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Kf=qu("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${zs(r.variant)}`],r.open&&t.iconOpen]}})(Of),Xf=qu("input",{shouldForwardProp:e=>_u(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Jf(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Zf(e){return null==e||"string"==typeof e&&!e.trim()}const Qf=r.forwardRef((function(e,t){var n;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:l,children:s,className:u,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:f,error:m=!1,IconComponent:h,inputRef:g,labelId:b,MenuProps:v={},multiple:y,name:x,onBlur:S,onChange:E,onClose:C,onFocus:w,onOpen:R,open:L,readOnly:I,renderValue:M,SelectDisplayProps:D={},tabIndex:A,value:P,variant:O="standard"}=e,k=Wn(e,Uf),[T,_]=Us({controlled:P,default:d,name:"Select"}),[q,N]=Us({controlled:L,default:c,name:"Select"}),F=r.useRef(null),j=r.useRef(null),[z,G]=r.useState(null),{current:B}=r.useRef(null!=L),[$,W]=r.useState(),H=Ks(t,g),V=r.useCallback((e=>{j.current=e,e&&G(e)}),[]),U=null==z?void 0:z.parentNode;r.useImperativeHandle(H,(()=>({focus:()=>{j.current.focus()},node:F.current,value:T})),[T]),r.useEffect((()=>{c&&q&&z&&!B&&(W(l?null:U.clientWidth),j.current.focus())}),[z,l]),r.useEffect((()=>{a&&j.current.focus()}),[a]),r.useEffect((()=>{if(!b)return;const e=Gs(j.current).getElementById(b);if(e){const t=()=>{getSelection().isCollapsed&&j.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[b]);const Y=(e,t)=>{e?R&&R(t):C&&C(t),B||(W(l?null:U.clientWidth),N(e))},K=r.Children.toArray(s),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(y){r=Array.isArray(T)?T.slice():[];const t=T.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),T!==r&&(_(r),E)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:x}}),E(o,e)}y||Y(!1,t)}},J=null!==z&&q;let Z,Q;delete k["aria-invalid"];const ee=[];let te=!1;(wd({value:T})||f)&&(M?Z=M(T):te=!0);const re=K.map((e=>{if(!r.isValidElement(e))return null;let t;if(y){if(!Array.isArray(T))throw new Error(Gn(2));t=T.some((t=>Jf(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Jf(T,e.props.value),t&&te&&(Q=e.props.children);return r.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=y?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Q);let ne,oe=$;!l&&B&&z&&(oe=U.clientWidth),ne=void 0!==A?A:p?null:0;const ie=D.id||(x?`mui-component-select-${x}`:void 0),ae=$n({},e,{variant:O,value:T,open:J,error:m}),le=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return dl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${zs(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},Wf,t)})(ae),se=$n({},v.PaperProps,null==(n=v.slotProps)?void 0:n.paper),ue=Vs();return Yr.jsxs(r.Fragment,{children:[Yr.jsx(Yf,$n({ref:V,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":p?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[b,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:e=>{if(!I){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:p||I?null:e=>{0===e.button&&(e.preventDefault(),j.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:T,name:x}}),S(e))},onFocus:w},D,{ownerState:ae,className:ju(D.className,le.select,u),id:ie,children:Zf(Z)?Vf||(Vf=Yr.jsx("span",{className:"notranslate",children:"​"})):Z})),Yr.jsx(Xf,$n({"aria-invalid":m,value:Array.isArray(T)?T.join(","):T,name:x,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(_(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:p,className:le.nativeInput,autoFocus:a,ownerState:ae},k)),Yr.jsx(Kf,{as:h,className:le.icon,ownerState:ae}),Yr.jsx(Sf,$n({id:`menu-${x||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:$n({"aria-labelledby":b,role:"listbox","aria-multiselectable":y?"true":void 0,disableListWrap:!0,id:ue},v.MenuListProps),slotProps:$n({},v.slotProps,{paper:$n({},se,{style:$n({minWidth:oe},null!=se?se.style:null)})}),children:re}))]})})),em=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],tm=["root"],rm={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Tu(e)&&"variant"!==e,slot:"Root"},nm=qu(Ap,rm)(""),om=qu($f,rm)(""),im=qu(Sp,rm)(""),am=r.forwardRef((function(e,t){const n=ku({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:i,classes:a={},className:l,defaultOpen:s=!1,displayEmpty:u=!1,IconComponent:c=zd,id:d,input:p,inputProps:f,label:m,labelId:h,MenuProps:g,multiple:b=!1,native:v=!1,onClose:y,onOpen:x,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=n,R=Wn(n,em),L=v?Tf:Qf,I=yd({props:n,muiFormControl:Sd(),states:["variant","error"]}),M=I.variant||w,D=$n({},n,{variant:M,classes:a}),A=(e=>{const{classes:t}=e;return t})(D),P=Wn(A,tm),O=p||{standard:Yr.jsx(nm,{ownerState:D}),outlined:Yr.jsx(om,{label:m,ownerState:D}),filled:Yr.jsx(im,{ownerState:D})}[M],k=Ks(t,O.ref);return Yr.jsx(r.Fragment,{children:r.cloneElement(O,$n({inputComponent:L,inputProps:$n({children:i,error:I.error,IconComponent:c,variant:M,type:void 0,multiple:b},v?{id:d}:{autoWidth:o,defaultOpen:s,displayEmpty:u,labelId:h,MenuProps:g,onClose:y,onOpen:x,open:S,renderValue:E,SelectDisplayProps:$n({id:d},C)},f,{classes:f?js(P,f.classes):P},p?p.props.inputProps:{})},b&&v&&"outlined"===M?{notched:!0}:{},{ref:k,className:ju(O.props.className,l,A.root)},!p&&{variant:M},R))})}));function lm(e={}){return Yr.jsx(en,{...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Yr.jsx("rect",{stroke:Ir.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}am.muiName="Select";const sm={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:Or,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var um=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Ir.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Ir.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Yr.jsx(Jr,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${Ir.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Ir.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Ir.MISC_FOCUS_BORDER}`,borderRadius:Or,backgroundColor:Ir.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${Ir.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Ir.WHITE,color:Ir.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:Or},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Ir.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Ir.GREYSCALE_0_15,backgroundColor:Ir.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Ir.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Ir.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Ir.GREEN_PALE},"&:active":{backgroundColor:Ir.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Ir.GREEN_PALE,boxShadow:`0 0 0 3px ${qs(Ir.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Ir.BLUE_PALE},"&:active":{backgroundColor:Ir.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Ir.BLUE_PALE,boxShadow:`0 0 0 3px ${qs(Ir.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:Or,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Ir.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Ir.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Ir.GREYSCALE_0_15,backgroundColor:Ir.GREYSCALE_100_60,"&:active":{backgroundColor:Ir.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Ir.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Ir.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Ir.PURPLE,"&.Mui-focusVisible":{borderColor:Ir.PURPLE,boxShadow:`0 0 0 3px ${qs(Ir.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Ir.GREEN,"&.Mui-focusVisible":{borderColor:Ir.GREEN,boxShadow:`0 0 0 3px ${qs(Ir.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Ir.BLUE,"&.Mui-focusVisible":{borderColor:Ir.BLUE,boxShadow:`0 0 0 3px ${qs(Ir.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Ir.ORANGE,"&.Mui-focusVisible":{borderColor:Ir.ORANGE,boxShadow:`0 0 0 3px ${qs(Ir.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Ir.RED,"&.Mui-focusVisible":{borderColor:Ir.RED,boxShadow:`0 0 0 3px ${qs(Ir.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Ir.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Ir.PURPLE_PALE},"&:active":{backgroundColor:Ir.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Ir.PURPLE_PALE,boxShadow:`0 0 0 3px ${qs(Ir.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Ir.GREEN_PALE},"&:active":{backgroundColor:Ir.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Ir.GREEN_PALE,boxShadow:`0 0 0 3px ${qs(Ir.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Ir.BLUE_PALE},"&:active":{backgroundColor:Ir.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Ir.BLUE_PALE,boxShadow:`0 0 0 3px ${qs(Ir.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Ir.ORANGE_PALE},"&:active":{backgroundColor:Ir.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Ir.ORANGE_PALE,boxShadow:`0 0 0 3px ${qs(Ir.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Ir.RED_PALE},"&:active":{backgroundColor:Ir.RED_DARK},"&.Mui-focusVisible":{borderColor:Ir.RED_PALE,boxShadow:`0 0 0 3px ${qs(Ir.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:Ir.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Ir.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Or,boxShadow:`inset 0 0 0 2px ${Ir.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Yr.jsx(Qr,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Mr,borderRadius:Or,color:Ir.TEXT_PRIMARY,backgroundColor:Ir.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Ir.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Ir.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Ir.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Ir.GREYSCALE_0_05,color:Ir.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Ir.GREEN,borderColor:Ir.GREEN},"&.MuiChip-outlinedInfo":{color:Ir.BLUE,borderColor:Ir.BLUE},"&.MuiChip-outlinedWarning":{color:Ir.ORANGE,borderColor:Ir.ORANGE},"&.MuiChip-outlinedError":{color:Ir.RED,borderColor:Ir.RED}},outlined:{border:`solid 1px ${Ir.GREYSCALE_0_15}`,backgroundColor:Ir.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Or,boxShadow:"none",backgroundColor:Ir.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Ir.GREEN,borderColor:Ir.GREEN},outlinedSecondary:{color:Ir.BLUE,borderColor:Ir.BLUE},label:{fontFamily:Nr.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Yr.jsx(Qr,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Yr.jsx(Jr,{"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:Or},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Or,fontSize:Dr,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Ir.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Ir.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Ir.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Ir.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Ir.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Or,border:`solid 1px ${Ir.GREYSCALE_0_15}`,color:Ir.GREYSCALE_0_60,marginRight:0,width:Pr,height:Pr},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Ir.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Or,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Ir.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Dr}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Mr,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Ir.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Ir.GREYSCALE_25,fontSize:Mr,fontFamily:Nr.FONT_FAMILY,fontWeight:_r,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Ir.TEXT_PRIMARY},"&.Mui-error":{color:Ir.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Ir.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Tr,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Ir.TEXT_SECONDARY,content:"'(required)'",fontWeight:Tr,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Dr,lineHeight:"16px",backgroundColor:Ir.WHITE,borderRadius:Or,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ir.GREYSCALE_0_05}`,borderColor:Ir.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ir.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Ir.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Ir.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ir.RED}`,boxShadow:`0px 0px 0px 1px ${Ir.RED}, inset 0 2px 0 0 ${Ir.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ir.GREYSCALE_0_10}`,borderColor:Ir.GREYSCALE_0_10,backgroundColor:Ir.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Ir.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Ir.GREYSCALE_0_15,borderRadius:Or,boxShadow:`inset 0 2px 0 0 ${Ir.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Yr.jsx(Jr,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:Ir.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Ir.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Ir.GREYSCALE_0_03},"&:active":{backgroundColor:Ir.GREYSCALE_0_10},"&:focus":{backgroundColor:Ir.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Ir.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Ir.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Ir.GREYSCALE_0_30,"&:hover":{backgroundColor:Ir.GREYSCALE_0_0,borderColor:Ir.GREYSCALE_0_15},"& ~svg":{color:Ir.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Ir.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Or}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Ir.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Ir.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Ir.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Dr,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Mr,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Mr,fontWeight:_r,color:Ir.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:_r}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Ir.GREYSCALE_0_15}, 0px 0px 0px 1px ${Ir.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Yr.jsx(nn,{}),checkedIcon:Yr.jsx(on,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Ir.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Ir.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Ir.GREEN_PALE,boxShadow:`0 0 0 3px ${qs(Ir.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Ir.BLUE_PALE,boxShadow:`0 0 0 3px ${qs(Ir.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Ir.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Ir.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Yr.jsx(lm,{}),checkedIcon:Yr.jsx(tn,{}),indeterminateIcon:Yr.jsx(rn,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Or,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Ir.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Ir.GREYSCALE_0_55,color:Ir.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:Ir.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Ir.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Ir.GREYSCALE_0_55,"&:hover":{color:Ir.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:Ir.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Ir.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Dr,color:Ir.TEXT_PRIMARY,lineHeight:"16px",fontWeight:_r},secondary:{fontSize:Mr,color:Ir.GREYSCALE_45,fontWeight:Tr,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Dr,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Dr,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Ir.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Mr,borderBottom:`solid 1px ${Ir.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Dr,color:Ir.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Ir.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Ir.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Ir.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Ir.RED}}},"&.Mui-focusVisible":{backgroundColor:Ir.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:Ir.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:Ir.GREEN,height:"24px","&.Mui-disabled":{color:Ir.GREYSCALE_0_15}},rail:{backgroundColor:Ir.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Ir.GREYSCALE_0_05}`,borderRadius:Or,boxShadow:`inset 0px 0px 0px 1px ${Ir.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Ir.GREYSCALE_0_05}`,borderRadius:Or},thumb:{height:"16px",width:"16px",borderRadius:Or,backgroundColor:Ir.WHITE,boxShadow:`0px 1px 2px 0px ${Ir.GREYSCALE_0_15}, 0px 0px 0px 1px ${Ir.GREYSCALE_0_05}`,"&:hover":{borderRadius:Or,boxShadow:`0 2px 4px 0 ${Ir.GREYSCALE_0_30}, 0 0 0 1px ${Ir.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Ir.GREYSCALE_0_15}, 0 0 0 1px ${Ir.GREYSCALE_0_06}, 0 0 0 2px ${Ir.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Ir.GREYSCALE_0_15}, 0 0 0 1px ${Ir.GREYSCALE_0_06}, 0 0 0 2px ${Ir.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Ir.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Ir.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Ir.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Ir.GREYSCALE_0_15},markLabel:{color:Ir.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Ir.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Ir.WHITE,color:Ir.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:Ir.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Ir.GREEN_PALE,boxShadow:`0 0 0 3px ${qs(Ir.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Ir.BLUE_PALE,boxShadow:`0 0 0 3px ${qs(Ir.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Ir.GREYSCALE_0_15,borderRadius:Or},thumb:{height:"16px",width:"16px",borderRadius:Or,backgroundColor:Ir.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:Dr,fontWeight:_r,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Ir.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Ir.MISC_FOCUS_BORDER}`,backgroundColor:Ir.GREYSCALE_0_03,borderRadius:Or},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Ir.GREYSCALE_25,"&.Mui-selected":{color:Ir.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Dr,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Or,"&:hover":{backgroundColor:Ir.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Ir.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Ir.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Or,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Ir.GREYSCALE_0_05},"&:hover":{backgroundColor:Ir.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Ir.GREYSCALE_85}`,borderRight:`1px solid ${Ir.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:_r,backgroundColor:Ir.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:Ir.GREYSCALE_98,borderBottom:`1px solid ${Ir.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Ir.GREYSCALE_85}`,borderTop:`1px solid ${Ir.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Ir.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Ir.GREYSCALE_0_05,"&:hover":{backgroundColor:Ir.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Ir.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Yr.jsx(an,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${Ir.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Dr,borderRadius:Or,padding:"7px 16px",border:`1px solid ${Ir.GREYSCALE_0_15}`,backgroundColor:Ir.GREYSCALE_100_60,color:Ir.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Ir.GREYSCALE_0_10,border:`1px solid ${Ir.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Ir.GREYSCALE_0_03,border:`1px solid ${Ir.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Ir.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Ir.MISC_FOCUS_BORDER}`,border:`1px solid ${Ir.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Ir.GREYSCALE_25,backgroundColor:Ir.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Ir.GREYSCALE_0_10,border:`1px solid ${Ir.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Mr,height:24,width:24,padding:7},sizeLarge:{fontSize:Ar,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Dr,borderRadius:Or}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:Ir.GREYSCALE_20},tooltip:{backgroundColor:Ir.GREYSCALE_20,fontSize:Mr,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...sm}:{}}))(t);const cm=e=>({mode:"light",primary:{ultraLight:Ir.GREEN_ULTRA_LIGHT,light:Ir.GREEN_PALE,main:Ir.GREEN,dark:Ir.GREEN_DARK,extraDark:Ir.GREEN_EXTRA_DARK,contrastText:Ir.WHITE},secondary:{ultraLight:Ir.BLUE_ULTRA_LIGHT,light:Ir.BLUE_PALE,main:Ir.BLUE,dark:Ir.BLUE_DARK,extraDark:Ir.BLUE_EXTRA_DARK,contrastText:Ir.WHITE},error:{ultraLight:Ir.RED_ULTRA_LIGHT,light:Ir.RED_PALE,main:Ir.RED,dark:Ir.RED_DARK,extraDark:Ir.RED_EXTRA_DARK,contrastText:Ir.WHITE},warning:{ultraLight:Ir.ORANGE_ULTRA_LIGHT,light:Ir.ORANGE_PALE,main:Ir.ORANGE,dark:Ir.ORANGE_DARK,extraDark:Ir.ORANGE_EXTRA_DARK,contrastText:Ir.WHITE},success:{ultraLight:Ir.GREEN_ULTRA_LIGHT,light:Ir.GREEN_PALE,main:Ir.GREEN,dark:Ir.GREEN_DARK,extraDark:Ir.GREEN_EXTRA_DARK,contrastText:Ir.WHITE},info:{ultraLight:Ir.BLUE_ULTRA_LIGHT,light:Ir.BLUE_PALE,main:Ir.BLUE,dark:Ir.BLUE_DARK,extraDark:Ir.BLUE_EXTRA_DARK,contrastText:Ir.WHITE},text:{primary:Ir.TEXT_PRIMARY,secondary:Ir.TEXT_SECONDARY,disabled:Ir.GREYSCALE_0_30},action:{hover:Ir.GREYSCALE_0_03,hoverOpacity:.03,selected:Ir.GREYSCALE_0_05,selectedOpacity:.05,focus:Ir.MISC_FOCUS_BORDER},amethyst:{ultraLight:Ir.WHITE,main:Ir.PURPLE,light:Ir.PURPLE_PALE,dark:Ir.PURPLE_DARK,extraDark:Ir.GREYSCALE_0_0,contrastText:Ir.WHITE},background:{paper:Ir.WHITE,default:Ir.GREYSCALE_95},divider:Ir.GREYSCALE_0_15}),dm={...Lr},pm=((e="light",t=!1)=>((e,t=!1)=>({components:um(0,t),palette:cm(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:Dr,fontWeightLight:kr,fontWeightRegular:Tr,fontWeightMedium:_r,fontWeightBold:qr,htmlFontSize:Dr,fontFamily:Nr.FONT_FAMILY,button:{fontWeight:_r,fontSize:Dr,textTransform:"none"},body1:{fontSize:Ar,lineHeight:"24px"},body2:{fontSize:Dr,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Pr,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Ar,fontWeight:_r,lineHeight:"16px"},h6:{fontSize:Dr,fontWeight:_r,lineHeight:"16px"},caption:{color:Ir.TEXT_SECONDARY},subtitle1:{fontSize:Dr,color:Ir.TEXT_SECONDARY},subtitle2:{fontSize:Mr,color:Ir.TEXT_SECONDARY}},shape:{borderRadius:Or}}))(0,t))().palette,fm={TEXT:pm.text.primary,DISABLED:pm.text.disabled,HOVER:pm.action.hover,WHITE:dm.GREYSCALE_100,BORDER_LIGHT:dm.GREYSCALE_90,BORDER_MEDIUM:dm.GREYSCALE_85,BORDER_HEAVY:dm.GREYSCALE_50,DARK_MODE_TEXT:dm.GREYSCALE_95,DARK_MODE_BORDER:dm.GREYSCALE_95,DARK_MODE_DISABLED:dm.GREYSCALE_70,DARK_MODE_BACKGROUND:dm.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:dm.GREYSCALE_95,SELECTED:pm.primary.main};function mm(e){return"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function hm(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length&&mm(t[0]))return(t[0].r<<16)+(t[0].g<<8)+t[0].b;var n=0,o=0,i=0;if(1===t.length&&"string"==typeof t[0]){var a,l=t[0];(a=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(l))?(n=parseInt(a[1],10),o=parseInt(a[2],10),i=parseInt(a[3],10)):(a=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(l))?(n=parseInt(a[1],16),o=parseInt(a[2],16),i=parseInt(a[3],16)):(a=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(l))&&(n=parseInt(a[1]+a[1],16),o=parseInt(a[2]+a[2],16),i=parseInt(a[3]+a[3],16))}return(n<<16)+(o<<8)+i}function gm(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bm(Object(r),!0).forEach((function(t){gm(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ym={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},xm="qcm-color";function Sm(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o,i,a,l,s,u,c,d,p,f={type:xm,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},m=0,h=0,g=0,b=1;if((null===(e=r[0])||void 0===e?void 0:e.type)===xm){var v=r[0];m=v.r,h=v.g,g=v.b,b=v.a,f.invalid=r[0].invalid,f.spaces=vm({},r[0].spaces)}else if(r.length<3)if("string"==typeof r[0]){var y,x=r[0];if(y=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10);else if(y=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10),b=parseFloat(y[4]);else if(y=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))b=parseInt(y[1],10)/255,m=parseInt(y[2],10),h=parseInt(y[3],10),g=parseInt(y[4],10);else if(y=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(x))m=parseInt(y[1],16),h=parseInt(y[2],16),g=parseInt(y[3],16),b=1;else if(y=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(x))m=parseInt(y[1]+y[1],16),h=parseInt(y[2]+y[2],16),g=parseInt(y[3]+y[3],16),b=1;else if(y=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var S=[];switch(c=Math.floor(c)){case 0:S=[u,d,0];break;case 1:S=[d,u,0];break;case 2:S=[0,u,d];break;case 3:S=[0,d,u];break;case 4:S=[d,0,u];break;case 5:S=[u,0,d];break;default:S=[0,0,0]}p=l-.5*u,m=S[0]+p,h=S[1]+p,g=S[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(y=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),b=parseFloat(y[7]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var E=[];switch(c=Math.floor(c)){case 0:E=[u,d,0];break;case 1:E=[d,u,0];break;case 2:E=[0,u,d];break;case 3:E=[0,d,u];break;case 4:E=[d,0,u];break;case 5:E=[u,0,d];break;default:E=[0,0,0]}p=l-.5*u,m=E[0]+p,h=E[1]+p,g=E[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g)}else if(y=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),s=parseFloat(y[5]),c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)*(i=(i/=100)<0?0:i>1?1:i))*(1-Math.abs(c%2-1));var C=[];switch(c=Math.floor(c)){case 0:C=[u,d,0];break;case 1:C=[d,u,0];break;case 2:C=[0,u,d];break;case 3:C=[0,d,u];break;case 4:C=[d,0,u];break;case 5:C=[u,0,d];break;default:C=[0,0,0]}p=s-u,m=C[0]+p,h=C[1]+p,g=C[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(ym[x.toLowerCase()]){a=x.toLowerCase();var w=ym[a];m=w.r,h=w.g,g=w.b,b="number"==typeof ym[a].a?ym[a].a:1}else f.invalid=!0}else"number"==typeof r[0]&&r[0]>=0&&"argb"===r[1]?(b=(4278190080&r[0])>>>24,b/=255,m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):"number"==typeof r[0]&&r[0]>=0?(m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):f.invalid=!0;else r.length>=3&&r.length<=4?(m=r[0],h=r[1],g=r[2],b=arguments.length>=4?r[3]:1):f.invalid=!0;return Number.isNaN(+m+h+g+b)&&(f.invalid=!0),f.r=Math.floor(m),f.g=Math.floor(h),f.b=Math.floor(g),f.a=b,f.l=l,f}function Em(e){var t,r,n;if(mm(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat([t,r,n].join(""));var o="string"==typeof e?hm(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat(t).concat(r).concat(n)}function Cm(e){var t,r,n=0,o="string"==typeof e?Sm(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=s;if(s===u)t=0,n=0;else{switch(t=0==(r=s-u)?0:r/c,s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function wm(e){if(mm(e))return"rgb(".concat([e.r,e.g,e.b].join(", "),")");var t="string"==typeof e?hm(e):e,r=(65280&t)>>8,n=255&t;return"rgb(".concat((16711680&t)>>16,", ").concat(r,", ").concat(n,")")}function Rm(e,t){return mm(e)?"rgba(".concat([e.r,e.g,e.b,e.a].join(", "),")"):Rm(Sm(e))}function Lm(e){return mm(e)?1===e.a?wm(e):Rm(e):Lm(Sm(e))}var Im=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function Mm(e){return.2126*Im(e.r)+.7152*Im(e.g)+.0722*Im(e.b)}function Dm(){var e=Sm.apply(void 0,arguments),t={type:e.type,r:e.r,g:e.g,b:e.b,a:e.a,invalid:e.invalid,spaces:e.spaces},r=function(){return t.spaces.hsla||(t.spaces.hsla=function(e){var t,r,n=0,o="string"==typeof e?Sm(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=o.a,u=Math.max(i,a,l),c=Math.min(i,a,l),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsla(".concat(360*n,", ").concat(100*t,", ").concat(100*d,", ").concat(s,")")}(t)),t.spaces.hsla},n=function(e){var t=r(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),o=parseFloat(n[1]),i=parseFloat(n[3]),a=parseFloat(n[7]),l=parseFloat(n[5]),s=Math.max(0,Math.min(l+e,100));return"hsla(".concat(o,", ").concat(i,", ").concat(s,", ").concat(a,")")};return{get type(){return t.type},isInvalid:function(){return t.invalid},get r(){return t.r},get g(){return t.g},get b(){return t.b},get a(){return t.a},getR:function(){return t.r},getG:function(){return t.g},getB:function(){return t.b},getAlpha:function(){return t.a},setAlpha:function(e){t.a=e,t.spaces={}},isEqualTo:function(e){var r=e.type===t.type?e:Sm(e);return r.r===t.r&&r.g===t.g&&r.b===t.b&&r.a===t.a},isDark:function(){return function(){var e=Sm.apply(void 0,arguments);return e.invalid||Mm(e)<.4}(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=wm(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=Rm(t)),t.spaces.rgba},getString:function(){return t.spaces.string||(t.spaces.string=Lm(t)),t.spaces.string},getHex:function(){return t.spaces.hex||(t.spaces.hex=Em(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=function(e){var t,r,n=0,o="string"==typeof e?Sm(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=(s+u)/2;if(s===u)t=0,n=0;else{switch(r=s-u,t=c>.5?r/(2-s-u):r/(s+u),s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsl(".concat(360*n,", ").concat(100*t,", ").concat(100*c,")")}(t)),t.spaces.hsl},getHSLA:r,getShiftedHSLA:n,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=function(e){var t=Cm(e),r=t.h,n=t.s,o=t.v;return"hsv(".concat(r,", ").concat(n,", ").concat(o,")")}(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=Cm(t)),t.spaces.hsvObject},blend:function(e,r){var n=Math.floor(t.r+(e.r-t.r)*r),o=Math.floor(t.g+(e.g-t.g)*r),i=Math.floor(t.b+(e.b-t.b)*r),a=Math.floor(t.a+(e.getAlpha()-t.a)*r);return"rgba(".concat([n,o,i,a].join(", "),")")},getBrightenedColor:function(){return Dm(n(18*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))},getDarkenedColor:function(){return Dm(n(18*-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))}}}function Am(e,t){if(e&&t){var r=Mm(e),n=Mm(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}}var Pm,Om,km=["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"],Tm=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function _m(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Tm:km}var qm=function(){if(Om)return Pm;Om=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return Pm=function e(){var t,r,n,s,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(s=l(t,r))&&(m&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(m,c,s)})):void 0!==s&&a(d,{name:r,newValue:s}));return d},Pm}();function Nm(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Fm(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function jm(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(qm);var zm=1/.7,Gm="\\s*([+-]?\\d+)\\s*",Bm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",$m="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Wm=/^#([0-9a-f]{3,8})$/,Hm=new RegExp(`^rgb\\(${Gm},${Gm},${Gm}\\)$`),Vm=new RegExp(`^rgb\\(${$m},${$m},${$m}\\)$`),Um=new RegExp(`^rgba\\(${Gm},${Gm},${Gm},${Bm}\\)$`),Ym=new RegExp(`^rgba\\(${$m},${$m},${$m},${Bm}\\)$`),Km=new RegExp(`^hsl\\(${Bm},${$m},${$m}\\)$`),Xm=new RegExp(`^hsla\\(${Bm},${$m},${$m},${Bm}\\)$`),Jm={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 Zm(){return this.rgb().formatHex()}function Qm(){return this.rgb().formatRgb()}function eh(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Wm.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?th(t):3===r?new ih(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?rh(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?rh(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=Hm.exec(e))?new ih(t[1],t[2],t[3],1):(t=Vm.exec(e))?new ih(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Um.exec(e))?rh(t[1],t[2],t[3],t[4]):(t=Ym.exec(e))?rh(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Km.exec(e))?dh(t[1],t[2]/100,t[3]/100,1):(t=Xm.exec(e))?dh(t[1],t[2]/100,t[3]/100,t[4]):Jm.hasOwnProperty(e)?th(Jm[e]):"transparent"===e?new ih(NaN,NaN,NaN,0):null}function th(e){return new ih(e>>16&255,e>>8&255,255&e,1)}function rh(e,t,r,n){return n<=0&&(e=t=r=NaN),new ih(e,t,r,n)}function nh(e){return e instanceof jm||(e=eh(e)),e?new ih((e=e.rgb()).r,e.g,e.b,e.opacity):new ih}function oh(e,t,r,n){return 1===arguments.length?nh(e):new ih(e,t,r,null==n?1:n)}function ih(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function ah(){return`#${ch(this.r)}${ch(this.g)}${ch(this.b)}`}function lh(){const e=sh(this.opacity);return`${1===e?"rgb(":"rgba("}${uh(this.r)}, ${uh(this.g)}, ${uh(this.b)}${1===e?")":`, ${e})`}`}function sh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function uh(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ch(e){return((e=uh(e))<16?"0":"")+e.toString(16)}function dh(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new fh(e,t,r,n)}function ph(e){if(e instanceof fh)return new fh(e.h,e.s,e.l,e.opacity);if(e instanceof jm||(e=eh(e)),!e)return new fh;if(e instanceof fh)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 fh(a,l,s,e.opacity)}function fh(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function mh(e){return(e=(e||0)%360)<0?e+360:e}function hh(e){return Math.max(0,Math.min(1,e||0))}function gh(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Nm(jm,eh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Zm,formatHex:Zm,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ph(this).formatHsl()},formatRgb:Qm,toString:Qm}),Nm(ih,oh,Fm(jm,{brighter(e){return e=null==e?zm:Math.pow(zm,e),new ih(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ih(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ih(uh(this.r),uh(this.g),uh(this.b),sh(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:ah,formatHex:ah,formatHex8:function(){return`#${ch(this.r)}${ch(this.g)}${ch(this.b)}${ch(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:lh,toString:lh})),Nm(fh,(function(e,t,r,n){return 1===arguments.length?ph(e):new fh(e,t,r,null==n?1:n)}),Fm(jm,{brighter(e){return e=null==e?zm:Math.pow(zm,e),new fh(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new fh(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 ih(gh(e>=240?e-240:e+120,o,n),gh(e,o,n),gh(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new fh(mh(this.h),hh(this.s),hh(this.l),sh(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=sh(this.opacity);return`${1===e?"hsl(":"hsla("}${mh(this.h)}, ${100*hh(this.s)}%, ${100*hh(this.l)}%${1===e?")":`, ${e})`}`}}));const bh=Math.PI/180,vh=180/Math.PI,yh=4/29,xh=6/29,Sh=3*xh*xh;function Eh(e){if(e instanceof Ch)return new Ch(e.l,e.a,e.b,e.opacity);if(e instanceof Mh)return Dh(e);e instanceof ih||(e=nh(e));var t,r,n=Ih(e.r),o=Ih(e.g),i=Ih(e.b),a=wh((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=wh((.4360747*n+.3850649*o+.1430804*i)/.96422),r=wh((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Ch(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Ch(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function wh(e){return e>.008856451679035631?Math.pow(e,1/3):e/Sh+yh}function Rh(e){return e>xh?e*e*e:Sh*(e-yh)}function Lh(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Ih(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Mh(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Dh(e){if(isNaN(e.h))return new Ch(e.l,0,0,e.opacity);var t=e.h*bh;return new Ch(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Nm(Ch,(function(e,t,r,n){return 1===arguments.length?Eh(e):new Ch(e,t,r,null==n?1:n)}),Fm(jm,{brighter(e){return new Ch(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ch(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 ih(Lh(3.1338561*(t=.96422*Rh(t))-1.6168667*(e=1*Rh(e))-.4906146*(r=.82521*Rh(r))),Lh(-.9787684*t+1.9161415*e+.033454*r),Lh(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Nm(Mh,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Mh)return new Mh(e.h,e.c,e.l,e.opacity);if(e instanceof Ch||(e=Eh(e)),0===e.a&&0===e.b)return new Mh(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*vh;return new Mh(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Mh(e,t,r,null==n?1:n)}),Fm(jm,{brighter(e){return new Mh(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Mh(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Dh(this).rgb()}}));var Ah=e=>()=>e;function Ph(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Ah(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?Ph:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):Ah(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=oh(e)).r,(t=oh(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Ph(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var Oh,kh="center",Th="bottom";function _h(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 qh(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 Nh(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=jh)):void 0===t&&(t=Fh);for(var r,n,o,i,a,l=new Bh(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new Bh(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(Gh)}function Fh(e){return e.children}function jh(e){return Array.isArray(e)?e[1]:null}function zh(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Gh(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Bh(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:kh,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:kh,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:kh,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:kh},{key:"DataRangeIncludingZero",alignment:Th},{key:"LimitedData",alignment:Th},{key:"NegativeOrZeroValues",alignment:Th}].reduce((function(e,t){return e[t.key]=t,e}),{}),Bh.prototype=Nh.prototype={constructor:Bh,count:function(){return this.eachAfter(qh)},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 Nh(this).eachBefore(zh)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},Oh=function(e){
100
100
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
101
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},Oh({exports:{}});const $h=(e,t=fm.TEXT,r=fm.WHITE)=>{const n=Dm(e),o=Dm(t),i=Dm(r);return n.isInvalid()?t:function(e,t,r){return Am(e,t)>Am(e,r)?t:r}(n,i,o).getRGB()},Wh=e=>{const t=e.getStyle("","","dataColors.selected")||fm.SELECTED,r=function(e,t){var r=Dm("#FFFFFF"),n=Dm(e),o=Dm(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;var i=Am(r,n),a=Am(o,n),l=i>a||i>4.5;return!l&&a>3?t:l?"#FFFFFF":"#000000"}(t,fm.TEXT);return{background:t,color:r}},Hh=(e,t)=>{const r=Dm(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},Vh=e=>!!e&&0===Dm(e).a,Uh=e=>{const t=Dm(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},Yh=e=>{e.stopPropagation(),e.preventDefault()},Kh=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:null!=n&&n,defaultValue(e,t,o){var i;const a=null!==(i=null==n?void 0:n(e,t,o))&&void 0!==i&&i,l=o.theme.current(),s=r(l,a);return{color:"transparent"===s?"none":s}}}),Xh=(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},Jh=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:"Source Sans Pro, sans-serif",l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>Xh(e,!0)))],c=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},..._m(n).filter((e=>!s.includes(e))).map((e=>Xh(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),Zh=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Qh=({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=>Xh(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...Zh.filter((e=>!a.includes(e))).map((e=>Xh(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),eg=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:null!=i?i:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:Jh({ref:`${e}.fontFamily`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontFamily"))&&void 0!==r?r:t.fontFamily},translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:Qh({ref:`${e}.fontSize`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontSize"))&&void 0!==r?r:t.fontSize},translator:r}),fontColor:Kh(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=o(t,e,"color"))&&void 0!==r?r:t.color}))}},background:Kh(`${e}.background`,"properties.background",((t,r)=>{var n;const i=r?fm.WHITE:fm.TRANSPARENT;return null!==(n=o(t,e,"backgroundColor"))&&void 0!==n?n:i}),a)}}}}),tg=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:Kh(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=n(t,e,"color"))&&void 0!==r?r:t.color}))}},background:Kh(`${e}.background`,"properties.background",(t=>{var o,i;return null!==(o=null!==(i=n(t,e,"backgroundColor"))&&void 0!==i?i:r)&&void 0!==o?o:"transparent"}))}}}}),rg=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),ng="12px",og="Source Sans Pro, sans-serif",ig="600",ag=15e3,lg=4/3;var sg,ug;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(sg||(sg={})),function(e){e.Solid="solid",e.None="none"}(ug||(ug={}));const cg={display:"flex",justifyContent:"center",alignItems:"center"},dg={borderStyle:"solid"},pg={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},fg={lineHeight:lg,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},mg=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),hg=(e,t)=>e>0?`${e}px ${ug.Solid} ${t}`:ug.None,gg=(e,t,r,n,o)=>{const i=Number(!t||(null==o?void 0:o.right)),a=Number(!e||(null==o?void 0:o.bottom));return{borderRight:"rtl"!==n?hg(i,r):ug.None,borderBottom:hg(a,r),borderLeft:"rtl"===n?hg(i,r):ug.None,borderTop:ug.None}},bg=(e,t,r,n,o,i,a)=>{const l=gg(t,n,o,i,a);return e.isLeftDimension||(e.isLastDimension&&!t&&(l.borderBottom=hg(2,o)),r||(l.borderLeft="rtl"!==i?hg(1,o):"none",l.borderRight="rtl"===i?hg(1,o):"none")),l},vg=({bottomDivider:e,rightDivider:t,borderColor:r})=>{const n={};return e&&(n.borderBottom=hg(1,r)),t&&(n.borderRight=hg(1,r)),n},yg=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:rg("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?rg("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:Kh("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:sg.DividerLight})),divider:Kh("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:sg.DividerDark})),background:Kh("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:sg.Transparent}))}}}}),xg=(e,t,r)=>{var n,o,i,a,l,s;switch(t){case"header":return null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.dimension)||void 0===n||null===(n=n.label)||void 0===n||null===(n=n.name)||void 0===n?void 0:n[r];case"dimensionValues":return null===(o=e.object)||void 0===o||null===(o=o.pivotTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[r];case"measureLabels":return null===(i=e.object)||void 0===i||null===(i=i.pivotTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i[r];case"measureValues":return null===(a=e.object)||void 0===a||null===(a=a.pivotTableV2)||void 0===a||null===(a=a.measure)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[r];case"totalValues":return null===(l=e.object)||void 0===l||null===(l=l.pivotTableV2)||void 0===l||null===(l=l.total)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[r];case"nullValues":return null===(s=e.object)||void 0===s||null===(s=s.pivotTableV2)||void 0===s||null===(s=s.null)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[r];default:return}},Sg=(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:eg({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:xg}),dimensionValueSection:eg({section:"dimensionValues",translator:e,flags:t,getThemeValue:xg}),measureValueSection:eg({section:"measureValues",translator:e,flags:t,getThemeValue:xg}),measureLabelSection:tg({section:"measureLabels",getThemeValue:xg}),totalValuesSection:tg({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:xg}),nullValuesSection:tg({section:"nullValues",fallbackBackground:sg.NullValueBackground,getThemeValue:xg}),gridSection:yg(t)}}]}),Eg=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[Sg(e,t),{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},indentMode:{ref:"qHyperCubeDef.qIndentMode",type:"boolean",translation:"properties.pivot.indentMode",defaultValue:!1,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}},type:{type:"string",component:"dropdown",ref:"qHyperCubeDef.indentModeColumnWidth.type",translation:"Object.Table.Column.Width",options:[{value:$t.Auto,translation:"Common.Auto"},{value:$t.Pixels,translation:"Object.Table.Column.Pixels"},{value:$t.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:$t.Auto,show:e=>!!e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:Bt.PixelsDefault,show:e=>{var t;const r=e.qHyperCubeDef;return r.qIndentMode&&(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.type)===$t.Pixels},change:e=>{var t;const r=e.qHyperCubeDef;void 0!==(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.pixels)&&(r.indentModeColumnWidth.pixels=Math.max(Bt.PixelsMin,Math.min(Bt.PixelsMax,r.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:Bt.PercentageDefault,show:e=>{var t;const r=e.qHyperCubeDef;return r.qIndentMode&&(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.type)===$t.Percentage},change:e=>{var t;const r=e.qHyperCubeDef;void 0!==(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.percentage)&&(r.indentModeColumnWidth.percentage=Math.max(Bt.PercentageMin,Math.min(Bt.PercentageMaxInIndentMode,r.indentModeColumnWidth.percentage)))}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(e){const{qIndentMode:t}=e.qHyperCubeDef;return!t&&!!e.qHyperCubeDef.qDimensions.some((e=>{var t;return"TOTAL_EXPR"===(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qTotalMode)}))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>!!e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,r,n){e.qHyperCubeDef.qExpansionState=[],n.$emit("saveProperties",e)}}}}]}}}),Cg="auto",wg={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>{t("integer",e?-1:0)}},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>!!e.qHyperCubeDef.qSortbyYValue}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:Cg,translation:"Object.Table.SortingInSearch",options:[{value:Cg,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function Rg(e){const{translator:t,flags:r}=e;return{type:"items",component:"accordion",items:{data:mr(e),sorting:wg,addons:qt,settings:Eg(t,r)}}}function Lg(e){return{support:{cssScaling:!0,snapshot:!0,export:!0,sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:Rg(e),importProperties:Tt(e),exportProperties:_t}}const Ig=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function Mg(e,t){return y((()=>e),t)}const Dg={},Ag=e=>{const t=y((()=>({current:Dg})),[]);return t.current=t.current===Dg?e:t.current,t},Pg=()=>{const{viewState:e}=x(),t=Ag(new Set),r=void 0!==e,{promise:n,resolve:o}=y((()=>Ig()),[]),i=Mg((e=>{r&&t.current.add(e)}),[t]),a=Mg(function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}((async()=>{await Promise.all(t.current),t.current.clear(),o()}),1e3),[o,t]);return S((async()=>{r&&await n}),[n,r]),y((()=>({viewState:e,isDownloadedAsPDForImage:r,notifyIsDoneRendering:a,waitForPromise:i})),[a,r,e,i])},Og="#grid",kg=(e,t)=>{const r=null==t?void 0:t.closest(e);return r&&window.getComputedStyle(r).backgroundColor},Tg=(e,t,r,n,o)=>{const i=kg(".qv-object .qv-inner-object",r),a=kg(".qv-panel-sheet",r),l=kg(Og,r),s=null!=l?l:a,u=(e=>{var t,r,n,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(r=l.bgColor)||void 0===r?void 0:r.colorExpression,u=null==l||null===(n=l.bgColor)||void 0===n||null===(n=n.color)||void 0===n?void 0:n.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return Uh(s);if("none"===u)return"transparent";if(void 0===u)return;const c=Dm(u);return c.setAlpha(null!==(i=null==l||null===(a=l.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.a),c.getRGBA()})(e),c=null==n?void 0:n(t),d=null==o?void 0:o(t),p=c||i||d,f=Vh(p),m=!Vh(h=f?s:p)&&$h(h,fm.TEXT,fm.DARK_MODE_TEXT)===wm(fm.DARK_MODE_TEXT);var h;const g=((e,t,r,n=fm.WHITE)=>e&&!Vh(e)?e:Vh(t)?r&&!Vh(r)?r:n:t)(u,p,s);return{color:p,headerColor:g,isDark:m}},_g=(e,t,r,n)=>{const o=w(),i=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,n]=E([]);return C((()=>{let r;return e&&(r=new MutationObserver((e=>{n(e)})),r.observe(e,t)),()=>{var e;null===(e=r)||void 0===e||e.disconnect()}}),[e,t]),r})(t.closest(Og),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return y((()=>({...o,background:Tg(e,o,t,r,n)})),[o.name(),t,r,n,e,i])};function qg(e,t){const r=y((()=>({isLoading:!0})),t),[n,o]=S((async()=>{try{return await e()}finally{r.isLoading=!1}}),t);return[n,r.isLoading,o]}const Ng=3;function Fg(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 jg({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=Ng}={},{estimateWidth:a,measureText:l,estimateLineCount:u}=s((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=_h(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=_h((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=Fg(o,t,l)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:s}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:u}}var zg,Gg=F;zg=Gg.createRoot,Gg.hydrateRoot;const Bg="Source Sans Pro, sans-serif";function $g(e,t){const[r,n]=u(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var Wg={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","zh-CN":"折叠","zh-TW":"收合"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","zh-CN":"展开","zh-TW":"展開"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const Hg=({translator:e})=>(s((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Wg).forEach((t=>{e.add(Wg[t])}))}}(e)}),[e]),e);function Vg(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 Ug=Object.freeze({__proto__:null,default:Vg}),Yg="$$material";function Kg(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 Xg(e){if(r.isValidElement(e)||!Kg(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Xg(e[r])})),t}function Jg(e,t,n={clone:!0}){const o=n.clone?hr({},e):e;return Kg(e)&&Kg(t)&&Object.keys(t).forEach((i=>{r.isValidElement(t[i])?o[i]=t[i]:Kg(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Kg(e[i])?o[i]=Jg(e[i],t[i],n):n.clone?o[i]=Kg(t[i])?Xg(t[i]):t[i]:o[i]=t[i]})),o}var Zg=Object.freeze({__proto__:null,default:Jg,isPlainObject:Kg});const Qg=["values","unit","step"];function eb(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Er(e,Qg),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>hr({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return hr({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const tb={borderRadius:4};function rb(e,t){return t?Jg(e,t,{clone:!1}):e}const nb={xs:0,sm:600,md:900,lg:1200,xl:1536},ob={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${nb[e]}px)`};function ib(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||ob;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||ob;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||nb).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function ab(e){if("string"!=typeof e)throw new Error(Vg(7));return e.charAt(0).toUpperCase()+e.slice(1)}var lb=Object.freeze({__proto__:null,default:ab});function sb(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 ub(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:sb(e,r)||n,t&&(o=t(o,n,e)),o}function cb(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=sb(e.theme,n)||{};return ib(e,i,(e=>{let n=ub(a,o,e);return e===n&&"string"==typeof e&&(n=ub(a,o,`${t}${"default"===e?"":ab(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const db={m:"margin",p:"padding"},pb={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},fb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},mb=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!fb[e])return[e];e=fb[e]}const[t,r]=e.split(""),n=db[t],o=pb[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),hb=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],gb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function bb(e,t,r,n){var o;const i=null!=(o=sb(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 vb(e){return bb(e,"spacing",8)}function yb(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 xb(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=yb(t,r),e)),{})}(mb(r),n);return ib(e,e[r],o)}function Sb(e,t){const r=vb(e.theme);return Object.keys(e).map((n=>xb(e,t,n,r))).reduce(rb,{})}function Eb(e){return Sb(e,hb)}function Cb(e){return Sb(e,gb)}function wb(...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]?rb(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Rb(e){return"number"!=typeof e?e:`${e}px solid`}function Lb(e,t){return cb({prop:e,themeKey:"borders",transform:t})}Eb.propTypes={},Eb.filterProps=hb,Cb.propTypes={},Cb.filterProps=gb;const Ib=Lb("border",Rb),Mb=Lb("borderTop",Rb),Db=Lb("borderRight",Rb),Ab=Lb("borderBottom",Rb),Pb=Lb("borderLeft",Rb),Ob=Lb("borderColor"),kb=Lb("borderTopColor"),Tb=Lb("borderRightColor"),_b=Lb("borderBottomColor"),qb=Lb("borderLeftColor"),Nb=Lb("outline",Rb),Fb=Lb("outlineColor"),jb=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=bb(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:yb(t,e)});return ib(e,e.borderRadius,r)}return null};jb.propTypes={},jb.filterProps=["borderRadius"],wb(Ib,Mb,Db,Ab,Pb,Ob,kb,Tb,_b,qb,jb,Nb,Fb);const zb=e=>{if(void 0!==e.gap&&null!==e.gap){const t=bb(e.theme,"spacing",8),r=e=>({gap:yb(t,e)});return ib(e,e.gap,r)}return null};zb.propTypes={},zb.filterProps=["gap"];const Gb=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=bb(e.theme,"spacing",8),r=e=>({columnGap:yb(t,e)});return ib(e,e.columnGap,r)}return null};Gb.propTypes={},Gb.filterProps=["columnGap"];const Bb=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=bb(e.theme,"spacing",8),r=e=>({rowGap:yb(t,e)});return ib(e,e.rowGap,r)}return null};Bb.propTypes={},Bb.filterProps=["rowGap"];function $b(e,t){return"grey"===t?t:e}wb(zb,Gb,Bb,cb({prop:"gridColumn"}),cb({prop:"gridRow"}),cb({prop:"gridAutoFlow"}),cb({prop:"gridAutoColumns"}),cb({prop:"gridAutoRows"}),cb({prop:"gridTemplateColumns"}),cb({prop:"gridTemplateRows"}),cb({prop:"gridTemplateAreas"}),cb({prop:"gridArea"}));function Wb(e){return e<=1&&0!==e?100*e+"%":e}wb(cb({prop:"color",themeKey:"palette",transform:$b}),cb({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:$b}),cb({prop:"backgroundColor",themeKey:"palette",transform:$b}));const Hb=cb({prop:"width",transform:Wb}),Vb=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])||nb[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:Wb(t)}};return ib(e,e.maxWidth,t)}return null};Vb.filterProps=["maxWidth"];const Ub=cb({prop:"minWidth",transform:Wb}),Yb=cb({prop:"height",transform:Wb}),Kb=cb({prop:"maxHeight",transform:Wb}),Xb=cb({prop:"minHeight",transform:Wb});cb({prop:"size",cssProperty:"width",transform:Wb}),cb({prop:"size",cssProperty:"height",transform:Wb});wb(Hb,Vb,Ub,Yb,Kb,Xb,cb({prop:"boxSizing"}));const Jb={border:{themeKey:"borders",transform:Rb},borderTop:{themeKey:"borders",transform:Rb},borderRight:{themeKey:"borders",transform:Rb},borderBottom:{themeKey:"borders",transform:Rb},borderLeft:{themeKey:"borders",transform:Rb},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Rb},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:jb},color:{themeKey:"palette",transform:$b},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:$b},backgroundColor:{themeKey:"palette",transform:$b},p:{style:Cb},pt:{style:Cb},pr:{style:Cb},pb:{style:Cb},pl:{style:Cb},px:{style:Cb},py:{style:Cb},padding:{style:Cb},paddingTop:{style:Cb},paddingRight:{style:Cb},paddingBottom:{style:Cb},paddingLeft:{style:Cb},paddingX:{style:Cb},paddingY:{style:Cb},paddingInline:{style:Cb},paddingInlineStart:{style:Cb},paddingInlineEnd:{style:Cb},paddingBlock:{style:Cb},paddingBlockStart:{style:Cb},paddingBlockEnd:{style:Cb},m:{style:Eb},mt:{style:Eb},mr:{style:Eb},mb:{style:Eb},ml:{style:Eb},mx:{style:Eb},my:{style:Eb},margin:{style:Eb},marginTop:{style:Eb},marginRight:{style:Eb},marginBottom:{style:Eb},marginLeft:{style:Eb},marginX:{style:Eb},marginY:{style:Eb},marginInline:{style:Eb},marginInlineStart:{style:Eb},marginInlineEnd:{style:Eb},marginBlock:{style:Eb},marginBlockStart:{style:Eb},marginBlockEnd:{style:Eb},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:zb},rowGap:{style:Bb},columnGap:{style:Gb},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Wb},maxWidth:{style:Vb},minWidth:{transform:Wb},height:{transform:Wb},maxHeight:{transform:Wb},minHeight:{transform:Wb},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Zb(){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=sb(r,l)||{};if(u)return u(o);return ib(o,t,(t=>{let r=ub(c,s,t);return t===r&&"string"==typeof t&&(r=ub(c,s,`${e}${"default"===t?"":ab(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:Jb;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=rb(s,e(r,o,i,a));else{const e=ib({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=rb(s,e):s[r]=t({sx:o,theme:i})}else s=rb(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 Qb=Zb();function ev(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}Qb.filterProps=["sx"];const tv=["breakpoints","palette","spacing","shape"];function rv(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Er(e,tv),l=eb(r),s=function(e=8){if(e.mui)return e;const t=vb({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=Jg({breakpoints:l,direction:"ltr",components:{},palette:hr({mode:"light"},n),spacing:s,shape:hr({},tb,i)},a);return u.applyStyles=ev,u=t.reduce(((e,t)=>Jg(e,t)),u),u.unstable_sxConfig=hr({},Jb,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Qb({sx:e,theme:this})},u}var nv=Object.freeze({__proto__:null,default:rv,private_createBreakpoints:eb,unstable_applyStyles:ev});function ov(e=null){const t=r.useContext(va);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const iv=rv();function av(e=iv){return ov(e)}const lv=["sx"];function sv(e){const{sx:t}=e,r=Er(e,lv),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:Jb;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return Kg(r)?hr({},n,r):n}:hr({},n,t),hr({},o,{sx:i})}var uv=Object.freeze({__proto__:null,default:Qb,extendSxProp:sv,unstable_createStyleFunctionSx:Zb,unstable_defaultSxConfig:Jb});const cv=e=>e,dv=(()=>{let e=cv;return{configure(t){e=t},generate:t=>e(t),reset(){e=cv}}})(),pv=["className","component"];const fv={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function mv(e,t,r="Mui"){const n=fv[t];return n?`${r}-${n}`:`${dv.generate(e)}-${t}`}function hv(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=mv(e,t,r)})),n}const gv=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function bv(e){const t=`${e}`.match(gv);return t&&t[1]||""}function vv(e,t=""){return e.displayName||e.name||bv(e)||t}function yv(e,t,r){const n=vv(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var xv=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return vv(e,"Component");if("object"==typeof e)switch(e.$$typeof){case tl.ForwardRef:return yv(e,e.render,"ForwardRef");case tl.Memo:return yv(e,e.type,"memo");default:return}}},getFunctionName:bv});function Sv(e,t){const r=hr({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=hr({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=hr({},i),Object.keys(o).forEach((e=>{r[n][e]=Sv(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const Ev="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function Cv(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var wv=Object.freeze({__proto__:null,default:Cv});function Rv(e){if(e.type)return e;if("#"===e.charAt(0))return Rv(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(Vg(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(Vg(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Lv(e,t){return e=Rv(e),t=function(e,t=0,r=1){return Cv(e,t,r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function Iv(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function Mv(e){return e&&e.ownerDocument||document}function Dv(e){return Mv(e).defaultView||window}function Av(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Pv(e){const t=r.useRef(e);return Ev((()=>{t.current=e})),r.useRef(((...e)=>(0,t.current)(...e))).current}function Ov(...e){return r.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Av(e,t)}))}),e)}const kv={};const Tv=[];class _v{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new _v}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function qv(){const e=function(e,t){const n=r.useRef(kv);return n.current===kv&&(n.current=e(t)),n}(_v.create).current;return function(e){r.useEffect(e,Tv)}(e.disposeEffect),e}let Nv=!0,Fv=!1;const jv=new _v,zv={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Gv(e){e.metaKey||e.altKey||e.ctrlKey||(Nv=!0)}function Bv(){Nv=!1}function $v(){"hidden"===this.visibilityState&&Fv&&(Nv=!0)}function Wv(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Nv||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!zv[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Hv(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Gv,!0),t.addEventListener("mousedown",Bv,!0),t.addEventListener("pointerdown",Bv,!0),t.addEventListener("touchstart",Bv,!0),t.addEventListener("visibilitychange",$v,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Wv(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Fv=!0,jv.start(100,(()=>{Fv=!1})),t.current=!1,!0)},ref:e}}function Vv(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Uv(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}function Yv(e){return"string"==typeof e}function Kv(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function Xv(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}const Jv=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Zv(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Er(e,Jv),l=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=fl(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=hr({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=hr({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Kv(hr({},o,n)),l=Xv(n),s=Xv(o),u=t(a),c=fl(null==u?void 0:u.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),d=hr({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=hr({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(hr({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||Yv(e)?t:hr({},t,{ownerState:hr({},t.ownerState,r)})}(r,hr({},s,{ref:Ov(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function Qv(e){var t;return parseInt(r.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const ey=r.createContext(null);function ty(){return r.useContext(ey)}var ry="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function ny(e){const{children:t,theme:n}=e,o=ty(),i=r.useMemo((()=>{const e=null===o?n:function(e,t){if("function"==typeof t)return t(e);return hr({},e,t)}(o,n);return null!=e&&(e[ry]=null!==o),e}),[n,o]);return Yr.jsx(ey.Provider,{value:i,children:t})}const oy=["value"],iy=r.createContext();function ay(e){let{value:t}=e,r=Er(e,oy);return Yr.jsx(iy.Provider,hr({value:null==t||t},r))}const ly=r.createContext(void 0);function sy({value:e,children:t}){return Yr.jsx(ly.Provider,{value:e,children:t})}function uy({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Sv(o.defaultProps,n):o.styleOverrides||o.variants?n:Sv(o,n)}({props:e,name:t,theme:{components:r.useContext(ly)}})}const cy={};function dy(e,t,n,o=!1){return r.useMemo((()=>{const r=e&&t[e]||t;if("function"==typeof n){const i=n(r),a=e?hr({},t,{[e]:i}):i;return o?()=>a:a}return hr({},t,e?{[e]:n}:n)}),[e,t,n,o])}function py(e){const{children:t,theme:r,themeId:n}=e,o=ov(cy),i=ty()||cy,a=dy(n,o,r),l=dy(n,i,r,!0),s="rtl"===a.direction;return Yr.jsx(ny,{theme:l,children:Yr.jsx(va.Provider,{value:a,children:Yr.jsx(ay,{value:s,children:Yr.jsx(sy,{value:null==a?void 0:a.components,children:t})})})})}var fy={},my={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(my);var hy=my.exports,gy=$(Ug),by=$(wv),vy=hy;Object.defineProperty(fy,"__esModule",{value:!0});var yy=fy.alpha=Oy;fy.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=Iy(e),a=Iy(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Dy({type:"rgb",values:l})},fy.colorChannel=void 0;var xy=fy.darken=ky;fy.decomposeColor=Iy,fy.emphasize=_y;var Sy=fy.getContrastRatio=function(e,t){const r=Py(e),n=Py(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};fy.getLuminance=Py,fy.hexToRgb=Ly,fy.hslToRgb=Ay;var Ey=fy.lighten=Ty;fy.private_safeAlpha=function(e,t,r){try{return Oy(e,t)}catch(t){return e}},fy.private_safeColorChannel=void 0,fy.private_safeDarken=function(e,t,r){try{return ky(e,t)}catch(t){return e}},fy.private_safeEmphasize=function(e,t,r){try{return _y(e,t)}catch(t){return e}},fy.private_safeLighten=function(e,t,r){try{return Ty(e,t)}catch(t){return e}},fy.recomposeColor=Dy,fy.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Iy(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var Cy=vy(gy),wy=vy(by);function Ry(e,t=0,r=1){return(0,wy.default)(e,t,r)}function Ly(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Iy(e){if(e.type)return e;if("#"===e.charAt(0))return Iy(Ly(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,Cy.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,Cy.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const My=e=>{const t=Iy(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};fy.colorChannel=My;function Dy(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 Ay(e){e=Iy(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Dy({type:l,values:s})}function Py(e){let t="hsl"===(e=Iy(e)).type||"hsla"===e.type?Iy(Ay(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 Oy(e,t){return e=Iy(e),t=Ry(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Dy(e)}function ky(e,t){if(e=Iy(e),t=Ry(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Dy(e)}function Ty(e,t){if(e=Iy(e),t=Ry(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Dy(e)}function _y(e,t=.15){return Py(e)>.5?ky(e,t):Ty(e,t)}fy.private_safeColorChannel=(e,t)=>{try{return My(e)}catch(t){return e}};const qy={black:"#000",white:"#fff"},Ny={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Fy="#f3e5f5",jy="#ce93d8",zy="#ba68c8",Gy="#ab47bc",By="#9c27b0",$y="#7b1fa2",Wy="#e57373",Hy="#ef5350",Vy="#f44336",Uy="#d32f2f",Yy="#c62828",Ky="#ffb74d",Xy="#ffa726",Jy="#ff9800",Zy="#f57c00",Qy="#e65100",ex="#e3f2fd",tx="#90caf9",rx="#42a5f5",nx="#1976d2",ox="#1565c0",ix="#4fc3f7",ax="#29b6f6",lx="#03a9f4",sx="#0288d1",ux="#01579b",cx="#81c784",dx="#66bb6a",px="#4caf50",fx="#388e3c",mx="#2e7d32",hx="#1b5e20",gx=["mode","contrastThreshold","tonalOffset"],bx={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:qy.white,default:qy.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},vx={text:{primary:qy.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:qy.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function yx(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=Ey(e.main,o):"dark"===t&&(e.dark=xy(e.main,i)))}function xx(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Er(e,gx),i=e.primary||function(e="light"){return"dark"===e?{main:tx,light:ex,dark:rx}:{main:nx,light:rx,dark:ox}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:jy,light:Fy,dark:Gy}:{main:By,light:zy,dark:$y}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Vy,light:Wy,dark:Uy}:{main:Uy,light:Hy,dark:Yy}}(t),s=e.info||function(e="light"){return"dark"===e?{main:ax,light:ix,dark:sx}:{main:sx,light:lx,dark:ux}}(t),u=e.success||function(e="light"){return"dark"===e?{main:dx,light:cx,dark:fx}:{main:mx,light:px,dark:hx}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Xy,light:Ky,dark:Zy}:{main:"#ed6c02",light:Jy,dark:Qy}}(t);function d(e){return Sy(e,vx.text.primary)>=r?vx.text.primary:bx.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=hr({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Vg(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Vg(12,t?` (${t})`:"",JSON.stringify(e.main)));return yx(e,"light",o,n),yx(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:vx,light:bx};return Jg(hr({common:hr({},qy),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:Ny,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Sx=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ex={textTransform:"uppercase"},Cx='"Roboto", "Helvetica", "Arial", sans-serif';function wx(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Cx,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Er(r,Sx),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return hr({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===Cx?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,Ex),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Ex),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Jg(hr({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Rx(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Lx=["none",Rx(0,2,1,-1,0,1,1,0,0,1,3,0),Rx(0,3,1,-2,0,2,2,0,0,1,5,0),Rx(0,3,3,-2,0,3,4,0,0,1,8,0),Rx(0,2,4,-1,0,4,5,0,0,1,10,0),Rx(0,3,5,-1,0,5,8,0,0,1,14,0),Rx(0,3,5,-1,0,6,10,0,0,1,18,0),Rx(0,4,5,-2,0,7,10,1,0,2,16,1),Rx(0,5,5,-3,0,8,10,1,0,3,14,2),Rx(0,5,6,-3,0,9,12,1,0,3,16,2),Rx(0,6,6,-3,0,10,14,1,0,4,18,3),Rx(0,6,7,-4,0,11,15,1,0,4,20,3),Rx(0,7,8,-4,0,12,17,2,0,5,22,4),Rx(0,7,8,-4,0,13,19,2,0,5,24,4),Rx(0,7,9,-4,0,14,21,2,0,5,26,4),Rx(0,8,9,-5,0,15,22,2,0,6,28,5),Rx(0,8,10,-5,0,16,24,2,0,6,30,5),Rx(0,8,11,-5,0,17,26,2,0,6,32,5),Rx(0,9,11,-5,0,18,28,2,0,7,34,6),Rx(0,9,12,-6,0,19,29,2,0,7,36,6),Rx(0,10,13,-6,0,20,31,3,0,8,38,7),Rx(0,10,13,-6,0,21,33,3,0,8,40,7),Rx(0,10,14,-6,0,22,35,3,0,8,42,7),Rx(0,11,14,-7,0,23,36,3,0,9,44,8),Rx(0,11,15,-7,0,24,38,3,0,9,46,8)],Ix=["duration","easing","delay"],Mx={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)"},Dx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ax(e){return`${Math.round(e)}ms`}function Px(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Ox(e){const t=hr({},Mx,e.easing),r=hr({},Dx,e.duration);return hr({getAutoHeightDuration:Px,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Er(n,Ix),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Ax(o)} ${i} ${"string"==typeof a?a:Ax(a)}`)).join(",")}},e,{easing:t,duration:r})}const kx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Tx=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function _x(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Er(e,Tx);if(e.vars&&void 0===e.generateCssVars)throw new Error(Vg(18));const l=xx(n),s=rv(e);let u=Jg(s,{mixins:(c=s.breakpoints,d=r,hr({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Lx.slice(),typography:wx(l,i),transitions:Ox(o),zIndex:hr({},kx)});var c,d;return u=Jg(u,a),u=t.reduce(((e,t)=>Jg(e,t)),u),u.unstable_sxConfig=hr({},Jb,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Qb({sx:e,theme:this})},u}const qx=_x();function Nx(){const e=av(qx);return e[Yg]||e}var Fx,jx={},zx={exports:{}};var Gx,Bx={exports:{}};var $x=$(Ta),Wx=$(Zg),Hx=$(lb),Vx=$(xv),Ux=$(nv),Yx=$(uv),Kx=hy;Object.defineProperty(jx,"__esModule",{value:!0});var Xx=jx.default=function(e={}){const{themeId:t,defaultTheme:r=sS,rootShouldForwardProp:n=lS,slotShouldForwardProp:o=lS}=e,i=e=>(0,rS.default)((0,Jx.default)({},e,{theme:cS((0,Jx.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Qx.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=dS(uS(s))}=a,p=(0,Zx.default)(a,iS),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=lS;"Root"===s||"root"===s?h=n:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,Qx.default)(e,(0,Jx.default)({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,eS.isPlainObject)(e)?n=>pS(e,(0,Jx.default)({},n,{theme:cS({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=cS((0,Jx.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]=pS(r,(0,Jx.default)({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=cS((0,Jx.default)({},e,{defaultTheme:r,themeId:t}));return pS({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},(0,Jx.default)({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};jx.shouldForwardProp=lS,jx.systemDefaultTheme=void 0;var Jx=Kx((Fx||(Fx=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(zx)),zx.exports)),Zx=Kx((Gx||(Gx=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(Bx)),Bx.exports)),Qx=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=aS(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}($x),eS=Wx;Kx(Hx),Kx(Vx);var tS=Kx(Ux),rS=Kx(Yx);const nS=["ownerState"],oS=["variants"],iS=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function aS(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(aS=function(e){return e?r:t})(e)}function lS(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const sS=jx.systemDefaultTheme=(0,tS.default)(),uS=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function cS({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function dS(e){return e?(t,r)=>r[e]:null}function pS(e,t){let{ownerState:r}=t,n=(0,Zx.default)(t,nS);const o="function"==typeof e?e((0,Jx.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>pS(e,(0,Jx.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Zx.default)(o,oS);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,Jx.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,Jx.default)({ownerState:r},n,r)):e.style))})),t}return o}const fS=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,mS=Xx({themeId:Yg,defaultTheme:qx,rootShouldForwardProp:fS}),hS=["theme"];function gS(e){let{theme:t}=e,r=Er(e,hS);const n=t[Yg];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=hr({},n,{vars:null}):t&&!t.vars&&(o=hr({},t,{vars:null}))),Yr.jsx(py,hr({},r,{themeId:n?Yg:void 0,theme:o}))}const bS=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},vS={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},yS={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},xS=qu("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t,dir:r})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===r?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...vS},"&::-moz-range-track":{...vS},"&::-ms-track":{...vS},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...yS},"&::-moz-range-thumb":{...yS},"&::-ms-thumb":{...yS},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}}))),SS=({columnWidth:e,keyValue:r,isLastColumn:n,isPivot:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:l,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:d,accessibilityRelatedArgs:p,direction:f="ltr"})=>{const m=Hg({translator:p.translator}),h=c({initWidth:e,columnWidth:e,initX:0}),g=n?0:1,b=o&&!d,v=()=>b?h.current.columnWidth-g:"100%",y={left:"rtl"!==f?v():void 0,right:"rtl"===f?v():void 0},x=t=>{h.current={initWidth:e,columnWidth:e,initX:null!=t?t:h.current.initX}};$g((()=>{b&&x()}),[e]);const S=e=>{const t=Math.max(e,Bt.PixelsMin);h.current.columnWidth=t,a(t)},E=()=>{if(h.current.columnWidth!==h.current.initWidth){const e={type:$t.Pixels,pixels:h.current.columnWidth};l(e)}else null==u||u(!1)},C=e=>{const t="rtl"===f?h.current.initWidth+h.current.initX-e.clientX:h.current.initWidth+e.clientX-h.current.initX;S(t)},w=e=>{Yh(e),document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",w),E()},R=e=>{const t="rtl"===f?h.current.initWidth+-h.current.initX-e.touches[0].clientX:h.current.initWidth+e.touches[0].clientX-h.current.initX;S(t)},L=e=>{Yh(e),document.removeEventListener("touchmove",R),document.removeEventListener("touchend",L),E()},I=!o&&s?e=>{if(e.key===zt.Left||e.key===zt.Right){Yh(e);const t=5,r=e.key===zt.Left?t:-5,n="rtl"===f?r:-r;S(h.current.columnWidth+n)}else e.key===zt.Space||e.key===zt.Enter?(Yh(e),s(e),E()):e.key===zt.Esc&&(Yh(e),s(e),S(h.current.initWidth))}:void 0,M=m.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(p.columnLabel)]);return t.createElement(xS,{style:y,key:r,hoverColor:i,isLastColumn:n,className:Gt,"data-testid":Gt,onMouseDown:e=>{Yh(e),document.addEventListener("mousemove",C),document.addEventListener("mouseup",w),null==u||u(!0),x(e.clientX)},onDoubleClick:()=>{l({type:$t.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(Yh(e),document.addEventListener("touchmove",R),document.addEventListener("touchend",L),null==u||u(!0),x(e.touches[0].clientX))},onKeyDown:I,onBlur:s,onFocus:()=>{x()},type:"range",tabIndex:-1,max:Bt.PixelsMax,"aria-label":M,"aria-valuemin":Bt.PixelsMin,"aria-valuemax":Bt.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:f})};function ES(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const CS=(e,r)=>t.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){ES(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:r},e),t.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),wS=d(CS);function RS(){return RS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},RS.apply(null,arguments)}const LS=qu(Xd,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),IS=qu(wS,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),MS=qu(Sf)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),DS=qu(bp)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),AS=qu(Lf)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),PS=qu(Lf,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:r?"rgba(0, 0, 0, 0.05)":"transparent"}))),OS=qu("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),kS=qu("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),TS=qu(td)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),_S=qu(Up,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})));function qS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const NS=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){qS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),FS=d(NS),jS=e=>{const t=e.nextElementSibling;var r;return t?"HR"===t.tagName?jS(t):t:null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[0]},zS=e=>{const t=e.previousElementSibling;if(!t){var r,n;const t=null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r.length;return null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[t-1]}return"HR"===t.tagName?zS(t):t},GS=e=>{var t;const{key:r,currentTarget:n}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:n;if(r===zt.Down||r===zt.Up){const t=e=>r===zt.Down?jS(e):zS(e);e.preventDefault(),e.stopPropagation();let n=t(o);for(;n;){if("true"!==n.ariaDisabled){n.focus();break}n=t(n)}}};let BS={};const $S=({autoFocus:e,id:r,onClick:n,itemTitle:o,icon:i,enabled:a,subMenus:l,isSubMenu:s,isActive:d,direction:f,isPagination:m})=>{const[h,g]=u(!1),b=c(null),v=p((e=>{e.stopPropagation(),g(!1)}),[g]);return t.createElement(t.Fragment,null,t.createElement(PS,{ref:l?b:null,key:r,"data-testid":`menu-item-${r}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),BS={}),null!=l&&l.length&&(g(!0),BS[o]=g))},disabled:!a,autoFocus:e,isSubMenu:!!s,isActive:!!d,onKeyDown:GS},d?t.createElement(OS,{direction:f,isPagination:m}):null,t.createElement(kS,null,t.createElement(_S,{direction:f,isPagination:m},t.createElement(i,null)),t.createElement(TS,{variant:"body2"},o)),null!=l&&l.length?t.createElement(FS,null):null),null!=l&&l.length?t.createElement(VS,{isSubMenu:!0,open:h,anchorEl:b.current,onClose:v,menuGroups:(y=l,x=BS,y.map((e=>e.map((e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(x).forEach((([,e])=>{e(!1)})),await e(t)}}:{}})))})))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:f,isPagination:m}):null);var y,x},WS=({menuGroup:e,isSubMenu:r,direction:n,isPagination:o})=>e.map((e=>[[e.groupHeading&&t.createElement(AS,{key:e.groupHeading,disabled:!0,style:{opacity:1}},e.groupHeading),e.items.map((e=>t.createElement($S,RS({key:e.id},e,{isSubMenu:r,direction:n,isPagination:o}))))].filter(Boolean)])),HS={appear:0,enter:0,exit:0},VS=({anchorEl:e,open:r,onClose:n,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,direction:s,isPagination:u})=>o.length?t.createElement(MS,RS({className:"nebula-table-utils-head-menu",open:r,anchorEl:e,onClose:n,transitionDuration:HS,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"}},a?{anchorOrigin:a}:{},i?{transformOrigin:i}:{},{dir:s}),(({itemGroups:e,isSubMenu:r,direction:n,isPagination:o})=>e.map(((i,a)=>[WS({menuGroup:i,isSubMenu:r,direction:n,isPagination:o}),a<e.length-1?t.createElement(DS,{"data-testid":"group-divider",variant:"middle"}):void 0])))({itemGroups:o,isSubMenu:l,direction:s,isPagination:u})):null,US=(e,t)=>e.some((e=>t[e]>0)),YS={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},KS=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=u(null),[a,l]=u(YS);return $g((()=>{e||(l(YS),i(null))}),[e]),f((()=>{if(null==n||!n.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const s=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{var e,u,c;const d=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,r),p=await n.createSessionObject(d),f=await p.getLayout(),{qStateCounts:m}=null!==(e=null===(u=f.qListObject)||void 0===u?void 0:u.qDimensionInfo)&&void 0!==e?e:{};o=null===(c=f.qInfo)||void 0===c?void 0:c.qId,a?s():(i(p),m&&l((e=>({canSelectAll:US(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:US(["qSelected"],e),canSelectPossible:US(["qOption"],e),canSelectAlternative:US(["qAlternative"],e),canSelectExcluded:US(["qAlternative","qExcluded"],e)}))(m)))}catch(e){console.error(e)}})(),()=>{a=!0,s()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}};function XS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const JS=(e,r)=>t.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){XS(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:r},e),t.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"})),ZS=d(JS);function QS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const eE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){QS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),tE=d(eE);function rE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const nE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){rE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),oE=d(nE);function iE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const aE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){iE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),lE=d(aE);function sE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const uE=(e,r)=>t.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){sE(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:r},e),t.createElement("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.454.858v6.484a1 1 0 0 1-.576.906L8.5 14.663V7.17z"})),cE=d(uE);function dE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const pE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){dE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),fE=d(pE);function mE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const hE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){mE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),gE=d(hE);function bE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const vE=(e,r)=>t.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){bE(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:r},e),t.createElement("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})),yE=d(vE);function xE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const SE=(e,r)=>t.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){xE(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:r},e),t.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"})),EE=d(SE);function CE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const wE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){CE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),RE=d(wE);function LE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const IE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){LE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),ME=d(IE);function DE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const AE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){DE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),PE=d(AE);function OE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const kE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){OE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),TE=d(kE);function _E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const qE=(e,r)=>t.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){_E(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:r},e),t.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"})),NE=d(qE);let FE=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const jE="/qListObjectDef",zE=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[FE.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"A")),n(!1)},icon:ZS,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"D")),n(!1)},icon:lE,enabled:l,isActive:!!r&&"D"===i,autoFocus:!a&&l}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:yE,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:cE,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&null!=i&&i.select){const e=[];r[FE.Searching]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:EE,enabled:!0}]}]),r[FE.Selections]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:NE,enabled:!!l,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectAll(jE))},icon:RE,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectPossible(jE))},icon:TE,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectAlternative(jE))},icon:ME,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectExcluded(jE))},icon:PE,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.clearSelections(jE))},icon:tE,enabled:s.canClearSelections}]}]]}]}]),p&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:gE,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:fE,enabled:!0}]}]),e.length>0&&f.push(...e)}return r[FE.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),null==c||c(u)},icon:oE,enabled:!0}]}]),f},GE=({open:e,setOpen:r,anchorRef:n,headerData:o,translator:i,interactions:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:f,expandOrCollapseArgs:m,model:h,direction:g="ltr",isPagination:b})=>{var v;const y=Hg({translator:i}),{qLibraryId:x,fieldId:S,headTextAlign:E}=o,C=null==d?void 0:d.app,{fieldInstance:w,selectionActionsEnabledStatus:R}=KS({open:e,headerData:o,app:C,qStateName:null==d?void 0:d.qStateName});let L=null;if(h&&"setActiveField"in h&&void 0!==o.dimensionInfoIndex){const e=o.dimensionInfoIndex;L=async t=>{try{await h.setActiveField("/qHyperCubeDef",e,t)}catch(e){console.error(e)}}}const I=p((()=>{const e=x?{qLibraryId:x,type:"dimension"}:S;if(null!=c&&c.embed){const{embed:t,listboxRef:r}=c;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===g?"right":"left"},sortCriteria:c.sortCriteria,stateName:null==d?void 0:d.qStateName,direction:g})}}),[x,S,c,null==d?void 0:d.qStateName,g]),M=p((e=>{e.stopPropagation(),r(!1)}),[r]);return a.active?t.createElement(LS,{rightAligned:"right"===E,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper"},s?t.createElement(IS,{height:Nt,className:Ft,"data-testid":Ft,isInteractionsActive:null!==(v=a.active)&&void 0!==v&&v},t.createElement(wS,null)):null,t.createElement(VS,{open:e,anchorEl:n.current,onClose:M,menuGroups:zE({headerData:o,translator:y,menuAvailabilityFlags:l,setOpen:r,...u,embedListbox:I,interactions:a,fieldInstance:w,selectionActionsEnabledStatus:R,anchorRef:n,focusColumnAdjuster:null==f?void 0:f.focusColumnAdjuster,setActiveFieldCallback:L,expandOrCollapseArgs:m}),direction:g,isPagination:b})):null},BE=e=>e.isDark?{background:e.color,borderColor:fm.DARK_MODE_BORDER,color:fm.DARK_MODE_TEXT,disabledColor:fm.DARK_MODE_DISABLED,iconColor:fm.DARK_MODE_TEXT}:{background:e.color,borderColor:fm.BORDER_MEDIUM,color:fm.TEXT,disabledColor:fm.DISABLED},$E=qu(Xd,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`}))),WE=qu(am,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),HE=qu(ap,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)}))),VE=qu(td)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),UE=({children:e,footerContainer:r,interactions:n,theme:o,paginationNeeded:i=!0})=>{const a=s((()=>BE(o.background)),[o]);if(!n.active)return null;const l=i?t.createElement($E,{footerStyle:a},e):null;return r?F.createPortal(e,r):l},YE=m({}),KE=()=>n(YE),XE=({children:e,direction:r,pageInfo:n,handleChangeRowsPerPage:o,footerContainer:i,isSelectionMode:a,handleChangePage:l,totalRowCount:u,totalColumnCount:c,totalPages:d,keyboard:p,translator:f,theme:m,interactions:h,rect:g,layout:b})=>{const v=(e=>!e.enabled||e.active)(p)?0:-1,y=s((()=>BE(m.background)),[m]),x=i?i.getBoundingClientRect().width:g.width,S=Hg({translator:f}),E=s((()=>({direction:r,pageInfo:n,handleChangeRowsPerPage:o,footerContainer:i,isSelectionMode:a,handleChangePage:l,totalRowCount:u,totalColumnCount:c,totalPages:d,keyboard:p,translator:S,theme:m,interactions:h,rect:g,layout:b,footerStyle:y,tabIndex:v,width:x})),[r,n,o,i,a,l,u,c,d,p,S,m,h,g,b,y,v,x]);return t.createElement(YE.Provider,{value:E},e)};let JE=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),ZE=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 QE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const eC=(e,r)=>t.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){QE(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:r},e),t.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),tC=d(eC);function rC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const nC=(e,r)=>t.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){rC(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:r},e),t.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),oC=d(nC);function iC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const aC=(e,r)=>t.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){iC(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:r},e),t.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),lC=d(aC),sC={FirstPage:oC,PreviousPage:tC,NextPage:FS,LastPage:lC,FirstPageRTL:lC,PreviousPageRTL:FS,NextPageRTL:tC,LastPageRTL:oC},uC=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=KE(),u=r.concat("rtl"===n?"RTL":""),c=sC[u];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:s,onClick:e?void 0:()=>{i(t)}},IconComponent:c}},cC=()=>{const{pageInfo:e,width:r}=KE(),n=0===e.page,{IconComponent:o,styledProps:i}=uC({type:JE.FirstPage,disabledCondition:n,pageNumber:0});return r<=ZE.FirstPage?null:t.createElement(HE,i,t.createElement(o,{height:Nt}))},dC=(e,t,r=!1)=>{r&&e.key===zt.Tab&&!e.shiftKey&&(Yh(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))},pC=()=>{const{pageInfo:e,keyboard:r,totalPages:n,isSelectionMode:o,width:i}=KE(),a=e.page>=n-1,{IconComponent:l,styledProps:s}=uC({type:JE.LastPage,disabledCondition:a,pageNumber:n-1}),u=r.enabled?e=>{dC(e,r,o)}:void 0;return i<=ZE.LastPage?null:t.createElement(HE,RS({},s,{onKeyDown:u}),t.createElement(l,{height:Nt}))},fC=()=>{const{pageInfo:e,keyboard:r,totalPages:n,isSelectionMode:o,width:i}=KE(),a=e.page>=n-1,{IconComponent:l,styledProps:s}=uC({type:JE.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(i>ZE.FirstPage&&i>ZE.LastPage)&&r.enabled?e=>{dC(e,r,o)}:void 0;return t.createElement(HE,RS({},s,{onKeyDown:u}),t.createElement(l,{height:Nt}))},mC=()=>{const{pageInfo:e}=KE(),r=0===e.page,{IconComponent:n,styledProps:o}=uC({type:JE.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return t.createElement(HE,o,t.createElement(n,{height:Nt}))},hC=()=>{const{translator:e,width:r,pageInfo:n,totalRowCount:o}=KE(),{page:i,rowsPerPage:a}=n;if(r<=ZE.DisplayedRowsLabel)return null;const l=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,o)}`,o.toString()]);return t.createElement(VE,{variant:"caption",dir:"ltr"},l)},gC=({name:e,value:r,options:n,handleChange:o})=>{const{layout:i,footerStyle:a,translator:l,tabIndex:s}=KE(),u=i.qInfo.qId,c=l.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return t.createElement(t.Fragment,null,t.createElement(VE,{variant:"caption",id:p},c,":"),t.createElement(WE,{footerStyle:a,size:"small",native:!0,value:r,onChange:o,inputProps:f},n))},bC=()=>{var e;const{pageInfo:r,isSelectionMode:n,totalColumnCount:o,width:i,handleChangeRowsPerPage:a}=KE();if(!(!(null===(e=r.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&i>ZE.RowsPerPage&&o<=100)||void 0===r.rowsPerPageOptions)return null;const l=t.createElement(t.Fragment,null,r.rowsPerPageOptions.map((e=>t.createElement("option",{key:e,value:e},e))));return t.createElement(gC,{name:"RowsPerPage",value:r.rowsPerPage,options:l,handleChange:e=>{null==a||a(+e.target.value)}})},vC=1e3,yC="…",xC=({totalPages:e,page:r})=>{const n=Math.min(e,vC),o=n<e&&r>500,i=o?Math.min(500+r,e):n,a=o?Math.max(0,i-vC):0,l=Array.from(Array(n).keys()).map((e=>{const r=e+a;return t.createElement("option",{key:r,value:r},r+1)}));return a>0&&l.unshift(t.createElement("option",{key:"startMoreOptions",value:yC,disabled:!0},yC)),i<e-1&&l.push(t.createElement("option",{key:"endMoreOptions",value:yC,disabled:!0},yC)),t.createElement(t.Fragment,null,l)},SC=()=>{const{pageInfo:e,width:r,totalPages:n,handleChangePage:o}=KE(),{page:i}=e;if(r<=ZE.SelectPage)return null;const a=t.createElement(xC,{totalPages:n,page:i});return t.createElement(gC,{name:"SelectPage",value:i,options:a,handleChange:e=>{o(+e.target.value)}})};var EC=h((e=>t.createElement(XE,e,t.createElement(bC,null),t.createElement(SC,null),t.createElement(hC,null),t.createElement(cC,null),t.createElement(mC,null),t.createElement(fC,null),t.createElement(pC,null))));const CC=e=>t.createElement(UE,e,t.createElement(EC,e)),wC=m({}),RC=()=>n(wC),LC=({rect:e,pageInfo:t,qPivotDataPages:r,updatePageInfo:n,direction:o,children:i})=>{const a=s((()=>({rect:e,pageInfo:t,qPivotDataPages:r,updatePageInfo:n,direction:o})),[e,t,r,n,o]);return Yr.jsx(wC.Provider,{value:a,children:i})},IC=m({}),MC=()=>n(IC),DC=({app:e,model:t,theme:r,embed:n,keyboard:o,translator:i,interactions:a,env:l,children:u})=>{const c=s((()=>({model:t,app:e,interactions:a,embed:n,theme:r,keyboard:o,env:l,translator:i})),[e,a,t,n,r,o,l,i]);return Yr.jsx(IC.Provider,{value:c,children:u})},AC=m({}),PC=()=>n(AC),OC=({children:e,...t})=>Yr.jsx(AC.Provider,{value:t,children:e}),kC=()=>{const{text:e,fontFamily:t,fontSize:r,justifyContent:n,alignItems:o,height:i}=(()=>{var e;const{theme:t,translator:r}=MC(),{layoutService:n}=PC(),o=null!==(e=t.getStyle("","","fontFamily"))&&void 0!==e?e:og;return n.hasData?n.hasLimitedData?{text:r.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:r.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})();return void 0===e?null:Yr.jsx("div",{style:{display:"flex",justifyContent:n,alignItems:o,width:"100%",height:i},children:Yr.jsx("span",{style:{...fg,fontFamily:t,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:e})})},TC="/qHyperCubeDef",_C=-1,qC="PSEUDO-DIM",NC=[];for(let e=0;e<256;++e)NC.push((e+256).toString(16).slice(1));let FC;const jC=new Uint8Array(16);function zC(){if(!FC){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");FC=crypto.getRandomValues.bind(crypto)}return FC(jC)}var GC={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function BC(e,t,r){if(GC.randomUUID&&!e)return GC.randomUUID();const n=(e=e||{}).random||(e.rng||zC)();return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return(NC[e[t+0]]+NC[e[t+1]]+NC[e[t+2]]+NC[e[t+3]]+"-"+NC[e[t+4]]+NC[e[t+5]]+"-"+NC[e[t+6]]+NC[e[t+7]]+"-"+NC[e[t+8]]+NC[e[t+9]]+"-"+NC[e[t+10]]+NC[e[t+11]]+NC[e[t+12]]+NC[e[t+13]]+NC[e[t+14]]+NC[e[t+15]]).toLowerCase()}(n)}const $C=()=>{var e,t,r;return null!==(e=null===(t=crypto)||void 0===t||null===(r=t.randomUUID)||void 0===r?void 0:r.call(t))&&void 0!==e?e:BC()},WC=e=>e===_C?qC:(({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:$C()})(e),HC=({layoutService:e,visibleLeftDimensionInfos:t,cell:r,colIdx:n})=>{r&&(r.canBeResized=!0,r.colIdx=r.colIdx||n,r.dimensionInfoIndex===_C?r.columnWidthLocation=rr.Measures:r.isLeftDimension?r.columnWidthLocation=rr.Dimension:t.at(-1)===_C?r.columnWidthLocation=rr.Measures:e.hasPseudoDimOnLeft&&(r.columnWidthLocation=rr.Pivot))},VC=(e,t,r,n)=>{var o;const i=WC(r),a=e.getDimensionInfoIndex(r),l=e.isLeftDimension(a);return r===_C?{id:i,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,isCyclic:!1,groupDimensionPos:0,groupDimensionLabels:[],headTextAlign:"left",dimensionInfoIndex:a,canBeResized:!1,isLeftDimension:l,isLastDimension:n,columnWidthLocation:rr.Measures,isPivot:!0,qEffectiveDimensionName:void 0}:{id:i,colIdx:0,label:r.qFallbackTitle,qReverseSort:r.qReverseSort,sortDirection:r.qSortIndicator&&"N"!==r.qSortIndicator?r.qSortIndicator:"A",qLibraryId:r.qLibraryId,fieldId:r.qGroupFieldDefs[r.qGroupPos],isLocked:null!==(o=r.qLocked)&&void 0!==o&&o,columnWidth:r.columnWidth,qApprMaxGlyphCount:r.qApprMaxGlyphCount,isDim:!0,isCyclic:r.qGrouping===Vt.Cyclic,groupDimensionPos:r.qGroupPos,groupDimensionLabels:r.qGroupFallbackTitles,headTextAlign:"left",dimensionInfoIndex:a,canBeResized:!1,isLeftDimension:l,isLastDimension:n,columnWidthLocation:rr.Dimension,isPivot:!0,isSortedByFirstMeasure:t.isSortedByFirstMeasure,qEffectiveDimensionName:r.qEffectiveDimensionName}},UC=({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n})=>{let o=n;var i;r.length>0&&(o=(i=n).at(-1)===_C?i.slice(0,-1):i);const a=o.length+(r.length?1:0),l=Math.max(1,r.length),s=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(a,l);return r.forEach(((r,n,o)=>{const i=n===o.length-1;s[a-1][n]=VC(e,t,r,i)})),o.forEach(((r,n,o)=>{const i=n===o.length-1;s[n][l-1]=VC(e,t,r,i)})),s},YC=(e,t,r,n)=>{var o,i;const a=((e,t,r,n)=>{let o;var i;return o=0===r.length||r.includes(_C)?UC({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r}):(e=>e[0].map(((t,r)=>e.map((e=>e[r])))))(UC({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n})),e.isIndentModeEnabled&&o[o.length-1].length>1&&(o[o.length-1]=[o.at(-1),...new Array(o[0]?o[0].length-1:0).fill(null)]),o.length&&(null===(i=o.at(-1))||void 0===i||i.forEach(((t,r)=>{Array.isArray(t)?t.forEach(((t,r)=>{HC({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})})):HC({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})}))),o})(e,t,r,n);return{data:a,size:{x:null!==(o=null===(i=a[0])||void 0===i?void 0:i.length)&&void 0!==o?o:0,y:a.length}}};function KC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function XC(e,t,r){return t=ew(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,rw()?Reflect.construct(t,r||[],ew(e).constructor):t.apply(e,r))}function JC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZC(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,iw(n.key),n)}}function QC(e,t,r){return t&&ZC(e.prototype,t),r&&ZC(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ew(e){return ew=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ew(e)}function tw(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&&nw(e,t)}function rw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rw=function(){return!!e})()}function nw(e,t){return nw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nw(e,t)}function ow(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return KC(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?KC(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function iw(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}function aw(e){return aw="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},aw(e)}var lw={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:sw(e),value:sw(t),useEqualSign:r}}(r,o,i))}})),t}};function sw(e){try{return decodeURIComponent(e)}catch(t){return e}}function uw(e){if(!(this instanceof uw))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 lw.fromSearchString(t.search)}}})}function cw(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}uw.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},uw.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=cw((t=e[n]).key),t.value?r+="=".concat(cw(t.value)):r+=t.useEqualSign?"=":"";return r};var dw,pw=function(){return QC((function e(t){JC(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}),[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}])}(),fw=function(){return QC((function e(){JC(this,e)}),[{key:"decode",value:function(e){for(var t,r="",n=new pw(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}])}(),mw=function(e){return e>=0&&e<=1114111},hw=function(e){return e.match(/[\s]/)},gw=function(e){function t(){return JC(this,t),XC(this,t,arguments)}return tw(t,e),QC(t,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,r=0;r<5&&(null!=(n=e.next())&&!hw(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return mw(a)?String.fromCharCode(a):"�"}}])}(fw),bw=function(){function e(t,r){JC(this,e),this._key=t,this._value=r}return QC(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}}])}(),vw=function(){function e(){JC(this,e)}return QC(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 bw.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return bw.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||bw.newInstanceIfNeeded(e,t,this._value)}}])}(),yw=function(){return QC((function e(){JC(this,e),this.clear()}),[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new vw);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}])}(),xw=function(){var e,t,r,n=[],o=[],i=new yw;for(e in n["&quot"]="34",n["&amp"]="38",n["&lt"]="60",n["&gt"]="62",n["&nbsp"]="160",n["&iexcl"]="161",n["&cent"]="162",n["&pound"]="163",n["&curren"]="164",n["&yen"]="165",n["&brvbar"]="166",n["&sect"]="167",n["&uml"]="168",n["&copy"]="169",n["&ordf"]="170",n["&laquo"]="171",n["&not"]="172",n["&shy"]="173",n["&reg"]="174",n["&macr"]="175",n["&deg"]="176",n["&plusmn"]="177",n["&sup2"]="178",n["&sup3"]="179",n["&acute"]="180",n["&micro"]="181",n["&para"]="182",n["&middot"]="183",n["&cedil"]="184",n["&sup1"]="185",n["&ordm"]="186",n["&raquo"]="187",n["&frac14"]="188",n["&frac12"]="189",n["&frac34"]="190",n["&iquest"]="191",n["&Agrave"]="192",n["&Aacute"]="193",n["&Acirc"]="194",n["&Atilde"]="195",n["&Auml"]="196",n["&Aring"]="197",n["&AElig"]="198",n["&Ccedil"]="199",n["&Egrave"]="200",n["&Eacute"]="201",n["&Ecirc"]="202",n["&Euml"]="203",n["&Igrave"]="204",n["&Iacute"]="205",n["&Icirc"]="206",n["&Iuml"]="207",n["&ETH"]="208",n["&Ntilde"]="209",n["&Ograve"]="210",n["&Oacute"]="211",n["&Ocirc"]="212",n["&Otilde"]="213",n["&Ouml"]="214",n["&times"]="215",n["&Oslash"]="216",n["&Ugrave"]="217",n["&Uacute"]="218",n["&Ucirc"]="219",n["&Uuml"]="220",n["&Yacute"]="221",n["&THORN"]="222",n["&szlig"]="223",n["&agrave"]="224",n["&aacute"]="225",n["&acirc"]="226",n["&atilde"]="227",n["&auml"]="228",n["&aring"]="229",n["&aelig"]="230",n["&ccedil"]="231",n["&egrave"]="232",n["&eacute"]="233",n["&ecirc"]="234",n["&euml"]="235",n["&igrave"]="236",n["&iacute"]="237",n["&icirc"]="238",n["&iuml"]="239",n["&eth"]="240",n["&ntilde"]="241",n["&ograve"]="242",n["&oacute"]="243",n["&ocirc"]="244",n["&otilde"]="245",n["&ouml"]="246",n["&divide"]="247",n["&oslash"]="248",n["&ugrave"]="249",n["&uacute"]="250",n["&ucirc"]="251",n["&uuml"]="252",n["&yacute"]="253",n["&thorn"]="254",n["&yuml"]="255",n["&OElig"]="338",n["&oelig"]="339",n["&Scaron"]="352",n["&scaron"]="353",n["&Yuml"]="376",n["&fnof"]="402",n["&circ"]="710",n["&tilde"]="732",n["&Alpha"]="913",n["&Beta"]="914",n["&Gamma"]="915",n["&Delta"]="916",n["&Epsilon"]="917",n["&Zeta"]="918",n["&Eta"]="919",n["&Theta"]="920",n["&Iota"]="921",n["&Kappa"]="922",n["&Lambda"]="923",n["&Mu"]="924",n["&Nu"]="925",n["&Xi"]="926",n["&Omicron"]="927",n["&Pi"]="928",n["&Rho"]="929",n["&Sigma"]="931",n["&Tau"]="932",n["&Upsilon"]="933",n["&Phi"]="934",n["&Chi"]="935",n["&Psi"]="936",n["&Omega"]="937",n["&alpha"]="945",n["&beta"]="946",n["&gamma"]="947",n["&delta"]="948",n["&epsilon"]="949",n["&zeta"]="950",n["&eta"]="951",n["&theta"]="952",n["&iota"]="953",n["&kappa"]="954",n["&lambda"]="955",n["&mu"]="956",n["&nu"]="957",n["&xi"]="958",n["&omicron"]="959",n["&pi"]="960",n["&rho"]="961",n["&sigmaf"]="962",n["&sigma"]="963",n["&tau"]="964",n["&upsilon"]="965",n["&phi"]="966",n["&chi"]="967",n["&psi"]="968",n["&omega"]="969",n["&thetasym"]="977",n["&upsih"]="978",n["&piv"]="982",n["&ensp"]="8194",n["&emsp"]="8195",n["&thinsp"]="8201",n["&zwnj"]="8204",n["&zwj"]="8205",n["&lrm"]="8206",n["&rlm"]="8207",n["&ndash"]="8211",n["&mdash"]="8212",n["&lsquo"]="8216",n["&rsquo"]="8217",n["&sbquo"]="8218",n["&ldquo"]="8220",n["&rdquo"]="8221",n["&bdquo"]="8222",n["&dagger"]="8224",n["&Dagger"]="8225",n["&bull"]="8226",n["&hellip"]="8230",n["&permil"]="8240",n["&prime"]="8242",n["&Prime"]="8243",n["&lsaquo"]="8249",n["&rsaquo"]="8250",n["&oline"]="8254",n["&frasl"]="8260",n["&euro"]="8364",n["&image"]="8365",n["&weierp"]="8472",n["&real"]="8476",n["&trade"]="8482",n["&alefsym"]="8501",n["&larr"]="8592",n["&uarr"]="8593",n["&rarr"]="8594",n["&darr"]="8595",n["&harr"]="8596",n["&crarr"]="8629",n["&lArr"]="8656",n["&uArr"]="8657",n["&rArr"]="8658",n["&dArr"]="8659",n["&hArr"]="8660",n["&forall"]="8704",n["&part"]="8706",n["&exist"]="8707",n["&empty"]="8709",n["&nabla"]="8711",n["&isin"]="8712",n["&notin"]="8713",n["&ni"]="8715",n["&prod"]="8719",n["&sum"]="8721",n["&minus"]="8722",n["&lowast"]="8727",n["&radic"]="8730",n["&prop"]="8733",n["&infin"]="8734",n["&ang"]="8736",n["&and"]="8743",n["&or"]="8744",n["&cap"]="8745",n["&cup"]="8746",n["&int"]="8747",n["&there4"]="8756",n["&sim"]="8764",n["&cong"]="8773",n["&asymp"]="8776",n["&ne"]="8800",n["&equiv"]="8801",n["&le"]="8804",n["&ge"]="8805",n["&sub"]="8834",n["&sup"]="8835",n["&nsub"]="8836",n["&sube"]="8838",n["&supe"]="8839",n["&oplus"]="8853",n["&otimes"]="8855",n["&perp"]="8869",n["&sdot"]="8901",n["&lceil"]="8968",n["&rceil"]="8969",n["&lfloor"]="8970",n["&rfloor"]="8971",n["&lang"]="9001",n["&rang"]="9002",n["&loz"]="9674",n["&spades"]="9824",n["&clubs"]="9827",n["&hearts"]="9829",n["&diams"]="9830",n)"function"!=typeof n[e]&&n.hasOwnProperty(e)&&(o[n[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(r=o[t].toLowerCase().substr(1),i.put(r,String.fromCharCode(t)));return i}(),Sw=function(e){function t(){return JC(this,t),XC(this,t,arguments)}return tw(t,e),QC(t,[{key:"decodeCharacter",value:function(e){var t;e.mark();var r=e.next();if(null==r||"&"!==r)return e.reset(),null;var n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(null!=(t=this._getNumericEntity(e)))return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,r,n,o="";for(t=Math.min(e.remainder().length,xw.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=xw.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)&&mw(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)&&mw(n)?String.fromCharCode(n):null}}])}(fw),Ew=function(e){function t(){return JC(this,t),XC(this,t,arguments)}return tw(t,e),QC(t,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",r=0;r<2;r++)null!=(n=e.nextHex())&&(t+=n);return 2===t.length&&(o=parseInt(t,16),mw(o))?String.fromCharCode(o):(e.reset(),null)}}])}(fw),Cw=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(dw=document.createElement("div"));var ww=Array.prototype.indexOf,Rw=[",",".","_"," "],Lw=[",",".","-","_"," "],Iw={width:["%"],height:["%"]},Mw={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},Dw={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":Mw.image,"background-color":Mw.color,"border-color":Mw.color,"border-image":Mw.image,color:Mw.color,icon:Mw.image,"list-style-image":Mw.image,"outline-color":Mw.color},Aw={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function Pw(e,t,r){var n;if(t){if(ww)return ww.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 Ow(e){if(null==e)return"";var t,r=document.createTextNode(e);return dw.appendChild(r),t=dw.innerHTML,dw.removeChild(r),t}function kw(e,t,r){var n,o,i,a,l,s,u,c,d;if(e=_w(e).toLowerCase(),t=_w(t),Pw(e,Aw.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<Aw.attr_val;i++)if(t.toLowerCase().match(Aw.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=Iw[e])||(n=Lw),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]/)&&Pw(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function Tw(e,t,r){var n,o,i,a,l,s,u,c,d,p;if(e=_w(e).toLowerCase(),t=_w(t),Pw(e,Aw.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<Aw.css_val.length;n++)if(t.toLowerCase().indexOf(Aw.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=Dw[e])||(o=Mw.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]/)&&Pw(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function _w(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var l=[new Sw,new Ew,new gw];!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 qw=[],Nw=0;Nw<255;Nw++)qw[Nw]=Nw>=48&&Nw<=57||Nw>=65&&Nw<=90||Nw>=97&&Nw<=122?null:Nw.toString(16);var Fw=function(e){return Ow(e.unsafe)},jw=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]=Tw(t,r[t],!0),i+=Tw(t,r[t],!0),o[t]=n[t]);return e.map?o:i},zw=function(e){var t=[],r=[],n={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(r[i]=kw(i,t[i],!0),o+=kw(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function Gw(e,t){throw new Error(t)}var Bw={canonicalize:_w,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===aw(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?Fw(e):"css"===e.context?(null!=e.map&&"object"!==aw(e.map)&&Gw(this,"Invalid parameter type"),jw(e)):"attr"===e.context?(null!=e.map&&"object"!==aw(e.map)&&Gw(this,"Invalid parameter type"),zw(e)):void Gw(this,"Invalid parameter type")},encodeForAttr:kw,encodeForAttr2:function(e){return kw("nonsens",e,!0)},encodeForCSS:Tw,encodeForHref:function(e){_w(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new uw(e),r=uw.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+uw.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=Rw),l="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),Pw(o,t)>=0||null==qw[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:Ow,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=_w(t).toLowerCase():Gw(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=ow(null!==(t=Cw.exec(e.trim()))&&void 0!==t?t:[],4),n=r[1];return{encoding:r[2],data:r[3],mimeType:null==n?void 0:n.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,r){var n={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(r)],n).size}catch(e){return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch(e){return!1}}(e))return!1;var t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;var r=function(e){for(var t=e,r="";t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");var n=r.lastIndexOf("/");-1!==n&&(r=r.slice(0,n))}else if("/.."===t){t="/";var o=r.lastIndexOf("/");-1!==o&&(r=r.slice(0,o))}else if("."===t||".."===t)t="";else{var i=t.match(/^\/?[^/]*/),a=i?i[0]:"";t=t.slice(a.length),r+=a}return r}(t);return""!==r&&"/"!==r&&r}};const $w=(e,t)=>{var r;return null===(r=t.qAttrExps)||void 0===r||null===(r=r.qValues)||void 0===r?void 0:r[e]},Ww=(e,t)=>{switch(e){case"topLeft":default:return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"center"};case"topRight":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-end"}}},Hw=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>n&&t&&!t.toLowerCase().includes("javascript:")&&Bw.isSafeDataURL(t)?{type:Ut.Image,url:t,text:e,imageSize:r,resolvedImagePosition:Ww(n,a),labelStructure:o,imageBox:i}:{type:Ut.Text,url:void 0,text:e,labelStructure:o},Vw=(e,t,r,n)=>{if(!e.qMiniChart||null==t||!t.miniChart||!r)return{type:Ut.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{var n,o;const i="global"===(null===(n=t.yAxis)||void 0===n?void 0:n.scale),a="zeroCenter"===(null===(o=t.yAxis)||void 0===o?void 0:o.position),l=i?r.qYMin:e.qMiniChart.qMin,s=i?r.qYMax:e.qMiniChart.qMax;if(a){const e=Math.max(Math.abs(l),Math.abs(s));return{minY:-e,maxY:e}}return(e=>{var t,r;return"zeroBaseline"===(null===(t=e.yAxis)||void 0===t?void 0:t.position)||"bars"===e.type&&"auto"===(null===(r=e.yAxis)||void 0===r?void 0:r.position)})(t)?{minY:Math.min(0,l),maxY:Math.max(0,s)}:{minY:l,maxY:s}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:Ut.MiniChart,text:n,miniChart:a}},Uw=(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)===Yt.Attribute||null==r?void 0:r.urlLabel},Yw=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:Ut.Link,url:Bw.encodeForHref(r),text:t,labelStructure:e}}catch(r){return{type:Ut.Text,url:void 0,text:t,labelStructure:e}}},Kw=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:l=e=>e.qText,direction:s})=>{var u,c,d,p,f,m;const h=Kt(t),g=l(e);return h!==Ut.Image||!n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(u=n.anything.sense)&&void 0!==u&&null!==(c=u.isUnsupportedFeature)&&void 0!==c&&c.call(u,"tableImages")?h===Ut.Link?((e,t,r,n,o)=>{const{urlPosition:i}=null!=t?t:{};if(i===Yt.Attribute){var a;const i=Uw(null!==(a=r.url)&&void 0!==a?a:-1,e,t);return Yw({labelStructure:n,text:o||i||"",url:i})}if(i===Yt.Dimension){var l,s;const i=Uw(null!==(l=r.urlLabel)&&void 0!==l?l:-1,e,t)||o;return n&&(n.maskedValue=i),Yw({text:i,labelStructure:n,url:null!==(s=null==n?void 0:n.originalValue)&&void 0!==s?s:o})}return{type:Ut.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,g):h!==Ut.Indicator||!n.flags.isEnabled("CLIENT_IM_6696_INDICATORS")||null!==(d=n.anything.sense)&&void 0!==d&&null!==(p=d.isUnsupportedFeature)&&void 0!==p&&p.call(d,"tableIndicators")?h!==Ut.MiniChart||null!==(f=n.anything.sense)&&void 0!==f&&null!==(m=f.isUnsupportedFeature)&&void 0!==m&&m.call(f,"qMiniChartDef")?{type:Ut.Text,url:void 0,text:g,labelStructure:a}:Vw(e,t,i,g):((e,t,r)=>{const{indicator:n}=null!=e?e:{};return{type:Ut.Indicator,url:void 0,text:r,indicator:{applySegmentColors:null==n?void 0:n.applySegmentColors,position:null==n?void 0:n.position,showTextValues:null==n?void 0:n.showTextValues},indicatorConditionalColoring:t}})(t,o,g):((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:l,imageSetting:s,imageLabel:u,imageBox:c}=null!=t?t:{};if("url"===s){var d,p;const t=null===(d=$w(null!==(p=r.imageUrl)&&void 0!==p?p:-1,e))||void 0===d?void 0:d.qText;return i&&(i.maskedValue=null!=t?t:""),Hw({text:n,url:t,imageSize:a,imagePosition:l,labelStructure:i,imageBox:c,direction:o})}if("label"===s){var f,m,h;const t=i?i.originalValue:n;if(-1===r.imageLabel)return Hw({text:u||t||"",url:t,imageSize:a,imagePosition:l,labelStructure:i,imageBox:c,direction:o});const s=null!==(f=null===(m=$w(null!==(h=r.imageLabel)&&void 0!==h?h:-1,e))||void 0===m?void 0:m.qText)&&void 0!==f?f:n;return Hw({text:s,url:t,imageSize:a,imagePosition:l,labelStructure:i,imageBox:c,direction:o})}return{type:Ut.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,g,s,a)},Xw=(e,t)=>{var r,n,o,i;const a=t.qAttrExps,l=null==a||null===(r=a.qValues)||void 0===r||null===(r=r[null!==(n=null==e?void 0:e.cellForegroundColor)&&void 0!==n?n:-1])||void 0===r?void 0:r.qText,s=null==a||null===(o=a.qValues)||void 0===o||null===(o=o[null!==(i=null==e?void 0:e.cellBackgroundColor)&&void 0!==i?i:-1])||void 0===o?void 0:o.qText,u=s?Uh(s):null,c=l?Uh(l):null,d=((e,t)=>e||!t?null:$h(t))(c,u);return{color:null!=d?d:c,background:u}},Jw=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:Jw(e,t)),e),Zw=(e,t,r,n,o,i)=>{const a=o?i.rowsPerPage-r:ag-n;let l=e.qUp+e.qDown;if(o&&0===r){const r=(t+e.qUp)%i.rowsPerPage;l=e.qDown+r}return Math.min(a,Jw(l,e))},Qw=(e,t,r)=>{if(e!==_C){if(t){const t=Kt(e.representation);return null!=r&&r.isLinksSupported&&t===Ut.Link||null!=r&&r.isImagesSupported&&t===Ut.Image?e.representation:{type:Ut.Text}}return e.representation}},eR=({node:e,parent:t,root:r,x:n,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentModeFeatures:d,indentLevel:p,labelStructure:f,env:m,pageInfo:h,direction:g="ltr"})=>{const b=(!c||!u)&&"P"===e.qType;let v=e.qText;if(u&&c&&f){const{originalValue:e,delimeter:t,suffix:r}=f;v=`${e} ${!r||!e&&r?"":t} ${r}`.trim()}const y={id:$C(),ref:e,x:n,y:o,pageX:n,pageY:i,mainAxisPageCoord:u?i:n,isLeftColumn:u,parent:t,root:r,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:Zw(e,o,i,n,u,h),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:"T"===e.qType||!(null==t||!t.isTotal),isEmpty:"E"===e.qType||-4===e.qElemNo,isNull:"U"===e.qType,isPseudoDimension:b,expressionColor:Xw(s,e),selectionCellType:u?"L":"T",dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:b?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:Kw({cell:{...e,qText:v},representationProperties:Qw(l,c,d),attrExprInfoIndex:s,env:m,labelStructure:f,direction:g}),...void 0!==p&&{indentLevel:p}};return t&&(t.children[y.mainAxisPageCoord-t.mainAxisPageCoord]=y),y},tR=(e,t,r,n,o,i,a,l,s)=>{const{isIndentModeEnabled:u,indentModeFeatures:c}=o;if(!t.length)return e;let d=0;return function t(p,f,m,h=0,g=-1){e[h]||(e[h]={}),u&&g++;const b=o.leftDimensionInfoIndexes.indexOf(_C);m.forEach(((m,v)=>{var y,x;const S={originalValue:null!==(y=m.qText)&&void 0!==y?y:"",maskedValue:"",delimeter:"-",suffix:""};d+=0===v?0:1;const E=r.qTop-n.page*n.rowsPerPage,C=Math.max(0,E+d-m.qUp),w=r.qTop+d-m.qUp;if(u){var R,L;if(o.hasPseudoDimOnLeft&&g<=b)if(S.originalValue=null!==(R=m.qText)&&void 0!==R?R:"",S.maskedValue=null!==(L=m.qText)&&void 0!==L?L:"","N"===m.qType||"U"===m.qType||"T"===m.qType)"U"===m.qType&&(S.originalValue=o.getNullValueText()),g<b&&(S.suffix=o.visibleMeasureInfo[0].qFallbackTitle);else if("P"===m.qType){var I,M,D,A,P,O,k,T;S.originalValue=null!==(I=null===(M=f||p)||void 0===M||null===(M=M.representation.labelStructure)||void 0===M?void 0:M.originalValue)&&void 0!==I?I:"",S.maskedValue=null!==(D=null===(A=f||p)||void 0===A||null===(A=A.representation.labelStructure)||void 0===A?void 0:A.originalValue)&&void 0!==D?D:"",S.suffix=null!==(P=m.qText)&&void 0!==P?P:"";const e=m.qSubNodes;m={...null===(O=f||p)||void 0===O?void 0:O.ref,...m.qText?{qText:m.qText}:{},qSubNodes:e},g=null!==(k=null===(T=f||p)||void 0===T?void 0:T.indentLevel)&&void 0!==k?k:0}"U"===m.qType&&(S.originalValue=o.getNullValueText())}let _=h;u&&(_=b>=1&&g>=b?g+1:g,0===g&&0===b&&0===m.qSubNodes.length&&(_=0));const q=null===(x=e.at(h))||void 0===x?void 0:x[C],N=u&&void 0===(null==q?void 0:q.ref.qText)||!q?eR({node:m,parent:f,root:p,x:_,y:w,pageY:C,layoutService:o,dimensionInfo:i[_],attrExprInfoIndex:a[_],isLeftColumn:!0,...u&&{isIndentModeEnabled:u,indentModeFeatures:c,indentLevel:g},env:l,pageInfo:n,labelStructure:S,direction:s}):e[h][C];if(e[h][C]=N,m.qSubNodes.length){const e=u?0:h+1;t(p||N,N,m.qSubNodes,e,g)}}))}(null,null,t,0,-1),e},rR=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,r,n)=>{const o=n.at(r+1);e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},nR=(e,t)=>{const r=e[0],n=r?Object.values(r):[],o=null!=t&&t.isIndentModeEnabled&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,i=null==r?void 0:r[o],a=n.at(-1);return null!=i&&i.isTotal?i.isLeafNode?i.mainAxisPageCoord:i.mainAxisPageCoord+i.leafCount-1:null!=a&&a.isTotal?a.mainAxisPageCoord-1:-1},oR=({prevData:e,nextDataPage:t,pageInfo:r,layoutService:n,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i,env:a,direction:l})=>{const{qLeft:s,qArea:u}=t;if(!s.length)return e;const c=tR(e.grid,s,u,r,n,o,i,a,l);rR(c,r.rowsOnCurrentPage);const d=nR(c,n);return{...e,grid:c,columnCount:c.length,totalDividerIndex:d}},iR=({qArea:e,prevData:t,pivotValuePoints:r,pageInfo:n})=>{const o=[...t];return r.forEach(((t,r)=>{t.forEach(((t,i)=>{var a;const l=e.qTop-n.page*n.rowsPerPage+r,s=e.qLeft+i;Array.isArray(o[l])||(o[l]=[]);const u="U"===t.qType;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:$C(),ref:t,isNull:u}}))})),o},aR=({prevData:e,dataPage:t,pageInfo:r})=>{const{qData:n,qArea:o}=t;return null!=n&&n.length?iR({qArea:o,prevData:e,pivotValuePoints:n,pageInfo:r}):e},lR=(e,t,r,n,o,i,a,l,s,u)=>{const{isIndentModeEnabled:c,indentModeFeatures:d}=n;if(!t.length)return e;let p=0;!function t(a,f,m,h=0){e[h]||(e[h]={}),m.forEach(((m,g)=>{var b;p+=0===g?0:1;const v=r.qLeft+p-m.qUp,y=null!==(b=e[h][v])&&void 0!==b?b:eR({node:m,parent:f,root:a,x:v,y:h,pageY:h,layoutService:n,dimensionInfo:o[h],attrExprInfoIndex:i[h],isLeftColumn:!1,...c&&{isIndentModeEnabled:c,indentModeFeatures:d},env:l,pageInfo:s,direction:u});e[h][v]=y,m.qSubNodes.length&&t(a||y,y,m.qSubNodes,h+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},sR=({prevData:e,nextDataPage:t,layoutService:r,visibleTopDimensionInfo:n,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:l,direction:s})=>{const{qTop:u,qArea:c}=t;if(!u.length)return e;const d=lR(e.grid,u,c,r,n,o,i,a,l,s);rR(d,r.size.x);const p=nR(d);return{...e,grid:d,rowCount:d.length,totalDividerIndex:p}},uR=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),cR=(e,t)=>{const{env:r}=MC(),{direction:n}=RC(),{layoutService:o,effectivePropertiesService:i}=PC(),{qPivotDataPages:a,pageInfo:l}=RC(),[c,d]=u(null),f=((e,t,r)=>s((()=>({left:e.map(uR),top:t.map(uR),measures:r.map(uR)})),[r,e,t]))(e,t,o.visibleMeasureInfo),m=s((()=>YC(o,i,t,e)),[o,i,t,e]),h=p((()=>a.slice(1).reduce(((e,t)=>aR({prevData:e,dataPage:t,pageInfo:l})),((e,t)=>{const{qData:r,qArea:n}=e;return iR({qArea:n,prevData:[],pivotValuePoints:r,pageInfo:t})})(a[0],l))),[a,l]),g=p((()=>a.slice(1).reduce(((e,i)=>sR({prevData:e,nextDataPage:i,layoutService:o,visibleTopDimensionInfo:t,attrExprInfoIndexes:f.top,headerRows:m.size.y,env:r,pageInfo:l,direction:n})),((e,t,r,n,o,i,a,l)=>{const{qArea:s,qTop:u}=e,c=lR([],u,s,t,r,n,o,i,a,l);rR(c,t.size.x);const d=nR(c);return{grid:c,rowCount:c.length,layoutSize:t.size,totalDividerIndex:d}})(a[0],o,t,f.top,m.size.y,r,l,n))),[a,o,t,f.top,m.size.y,r,l,n]),b=p((()=>a.slice(1).reduce(((t,i)=>oR({prevData:t,nextDataPage:i,pageInfo:l,layoutService:o,visibleLeftDimensionInfo:e,attrExprInfoIndexes:f.left,env:r,direction:n})),((e,t,r,n,o,i,a)=>{const{qArea:l,qLeft:s}=e,u=tR([],s,l,r,t,n,o,i,a);rR(u,r.rowsOnCurrentPage);const c=nR(u,t);return{grid:u,columnCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(a[0],o,l,e,f.left,r,n))),[a,o,l,e,f,r,n]),[v,y]=u((()=>h())),[x,S]=u((()=>g())),[E,C]=u((()=>b()));$g((()=>{y(h())}),[h]),$g((()=>{S(g())}),[g]),$g((()=>{C(b())}),[b]),$g((()=>{c&&c.forEach((i=>{y((e=>aR({prevData:e,dataPage:i,pageInfo:l}))),S((e=>sR({prevData:e,nextDataPage:i,layoutService:o,visibleTopDimensionInfo:t,attrExprInfoIndexes:f.top,headerRows:m.size.y,env:r,pageInfo:l,direction:n}))),C((t=>oR({prevData:t,nextDataPage:i,pageInfo:l,layoutService:o,visibleLeftDimensionInfo:e,attrExprInfoIndexes:f.left,env:r,direction:n})))}))}),[c]);const w=p((e=>{d(e)}),[]);return{headersData:m,measureData:v,topDimensionData:x,leftDimensionData:E,attrExprInfoIndexes:f,nextPageHandler:w}},dR=Math.sqrt(1e4),pR=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/Bt.PixelsMin)}),fR=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],r=Math.ceil(e.qWidth/dR),n=Math.ceil(e.qHeight/dR);for(let o=0;o<r;o++)for(let r=0;r<n;r++)t.push({qLeft:e.qLeft+o*dR,qTop:e.qTop+r*dR,qWidth:Math.min(dR,e.qWidth-o*dR),qHeight:Math.min(dR,e.qHeight-r*dR)});return t};function mR({nextPageHandler:e}){const{model:t}=MC(),{pageInfo:r}=RC(),{layoutService:n}=PC(),o=(e=>{const t=c(e);return t.current=e,t})(r.page),i=t,a=p((async(e,t)=>{await(null==i?void 0:i.collapseLeft(TC,e,t,!1))}),[i]),l=p((async(e,t)=>{await(null==i?void 0:i.collapseTop(TC,e,t,!1))}),[i]),u=p((async(e,t)=>{await(null==i?void 0:i.expandLeft(TC,e,t,!1))}),[i]),d=p((async(e,t)=>{await(null==i?void 0:i.expandTop(TC,e,t,!1))}),[i]),f=p((async t=>{if(null!=i&&i.getHyperCubePivotData&&0!==t.length)try{const n=await i.getHyperCubePivotData(TC,t.reduce(((e,t)=>[...e,...fR(t)]),[]));o.current===r.page&&e(n)}catch(e){console.error(e)}}),[i,e,r,o]),m=p(((e,{dimensionInfoIndex:r,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=n.layout.qHyperCube;let c=[];switch(a){case rr.Dimension:c=[{qPath:`${TC}/qDimensions/${r}/qDef/columnWidth`,oldValue:s[r].columnWidth}];break;case rr.Measures:if(o)c=l.map(((e,t)=>({qPath:`${TC}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=n.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${TC}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case rr.Pivot:c=[{qPath:`${TC}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((t=>{const{qPath:r,oldValue:n}=t;return{qPath:r,qOp:n?"Replace":"Add",qValue:JSON.stringify({...n,...e})}}));null==t||t.applyPatches(d,!0)}),[t,n]),h=p((async e=>{await(null==i?void 0:i.applyPatches([{qPath:`${TC}/indentModeColumnWidth`,qOp:n.layout.qHyperCube.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...n.indentModeColumnWidth,...e})}],!0))}),[i,n]);return s((()=>({collapseLeft:a,collapseTop:l,expandLeft:u,expandTop:d,applyColumnWidth:m,applyIndentModeColumnWidth:h,fetchPages:f})),[a,l,u,d,m,h,f])}const hR=(e,t,r)=>(n,o)=>{if("P"===n)return _C;const i=t[r+o];return e[i]},gR=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},bR=m({}),vR=()=>n(bR),yR=({children:e})=>{const{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r}=(()=>{const{layoutService:{layout:{qHyperCube:{qNoOfLeftDims:e,qEffectiveInterColumnSortOrder:t,qDimensionInfo:r}}}}=PC(),{qPivotDataPages:n}=RC();return s((()=>{var o,i,a,l;const s=gR(null!==(o=null===(i=n[0])||void 0===i?void 0:i.qLeft)&&void 0!==o?o:[]),u=gR(null!==(a=null===(l=n[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(hR(r,t,0)),visibleTopDimensionInfo:u.map(hR(r,t,e))}}),[r,t,e,n])})(),{headersData:n,measureData:o,topDimensionData:i,leftDimensionData:a,attrExprInfoIndexes:l,nextPageHandler:u}=cR(t,r),c=mR({nextPageHandler:u}),d=s((()=>({gridSectionsData:{headersData:n,topDimensionData:i,leftDimensionData:a,measureData:o},visibleDimensionsInfo:{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r},attrExprInfoIndexes:l,dataModel:c})),[t,r,n,o,i,a,l,c]);return Yr.jsx(bR.Provider,{value:d,children:e})},xR=18,SR=.75,ER=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===Ut.Image},CR=({isLeftColumn:e,layoutService:t,representation:r})=>e&&t.isIndentModeEnabled&&t.indentModeFeatures.isImagesSupported&&r.type===Ut.Image,wR=e=>void 0===e?ig:e,RR=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,LR=e=>RR(e,Bt.PixelsDefault),IR=(e,t)=>RR(e,Bt.PercentageDefault)*t/100,MR=(e,t,r)=>{switch(null==t?void 0:t.type){case $t.Pixels:return LR(t.pixels);case $t.Percentage:return IR(t.percentage,e);case $t.FitToContent:case $t.Auto:default:return r}},DR=({headers:e,layoutService:t,effectivePropertiesService:r,estimateWidthForDimensionValue:n,shouldConsiderCombinatedLength:o,measureTextForHeader:i,longestMeasureValuePossible:a})=>e.reduce(((e,l,s)=>{var u;const{layout:{qHyperCube:{qNoOfLeftDims:c,qDimensionInfo:d}}}=t,{id:p,colIdx:f,qApprMaxGlyphCount:m,isLeftDimension:h}=l,g=d.find((e=>e.cId===p)),b={width:24,...null==g||null===(u=g.representation)||void 0===u?void 0:u.imageBox};if(!h)return e+0;if(p===qC)return e+0;const v=CR({isLeftColumn:h,layoutService:t,representation:(null==g?void 0:g.representation)||{type:Ut.Text}})?b.width+8+4:n(m),y=!r.qAlwaysFullyExpanded&&f<c-1?21:0;let x=0;if(o&&i&&a){x=i("- ")+a}return Math.max(e,24*s+xR+y+v+x)}),0),AR=(e,t,r)=>e.reduce(((e,n)=>{const o=(r?0:1)*xR;return Math.max(e,o+t(n.qFallbackTitle))}),0),PR=(e,t,r,n)=>{const o=100*e/t,i=n*SR*(o/100),a=r*(o/100);return Math.min(a,i)},OR=(e,t,r,n)=>n*(r/100)*(100*e/t/100),kR=(e,t)=>e.some((e=>e>=t*SR)),TR=({layoutService:e,effectivePropertiesService:t,headersData:r,columnWidths:n,tableWidth:o,widthOverride:i,measureTextForHeader:a,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:s,translator:u})=>{let c=[];const d=o*SR,p=r.data[r.data.length-1][0];if(!Array.isArray(p))return{leftGridWidth:0,leftGridColumnWidths:[],leftGridFullWidth:0};const f=Math.min(d,n.at(-1)),m=Math.min(d,DR({headers:p,layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:l})),h=Math.min(d,AR(e.visibleMeasureInfo,a));let g=0;const b=p.findIndex((e=>e.id===qC)),v=(({layoutService:e,measureTextForHeader:t,translator:r,headersData:n})=>{const{type:o}=e.indentModeColumnWidth;return o===$t.Auto&&n.size.y<=1?t(r.get("SNPivotTable.IndentMode.Rows"))+8+xR+16:24})({layoutService:e,measureTextForHeader:a,translator:u,headersData:r});if(e.hasPseudoDimOnLeft)if(0===b){const e=Math.max(f,m,h);c=[Math.max(v,e-f),f]}else{const r=Math.min(d,AR(e.visibleMeasureInfo,s,!0));g=Math.min(d,DR({headers:p.slice(0,b),layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:l,shouldConsiderCombinatedLength:!0,measureTextForHeader:a,longestMeasureValuePossible:r}));const n=Math.max(f,m,g);c=[Math.max(v,n-f),f]}else c=[Math.max(v,m-f),f];const y=Math.min(d,c.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:x}=e;i&&i<=d&&(x.type=$t.Pixels,x.pixels=i);return[$t.Pixels,$t.Percentage].includes(x.type)||kR(c,o)?((e,t,r,n)=>{let o=e[0],i=e[1],a=[];const l=e.reduce(((e,t)=>e+t),0),{type:s,pixels:u,percentage:c}=t,d=kR(e,r);s===$t.Auto&&d&&(o>i?o-=i:i-=o),s===$t.Pixels&&u&&(o=PR(e[0],l,u,r),i=PR(e[1],l,u,r)),s===$t.Percentage&&c&&(o=OR(e[0],l,c,r),i=OR(e[1],l,c,r));let p=0;i<=n&&(p=o-5,p>0&&(o-=p,i+=p)),p=i-n,p>0&&(o+=p,i-=p),a=[o,i];const f=a.reduce(((e,t)=>e+t),0);return{leftGridColumnWidths:a,leftGridWidth:f,leftGridFullWidth:f}})(c,x,o,f):{leftGridWidth:y,leftGridColumnWidths:c,leftGridFullWidth:y}};function _R({tableWidth:e}){const t=e*SR,{styleService:r,layoutService:n,effectivePropertiesService:o}=PC(),{translator:i}=MC(),{gridSectionsData:{headersData:a}}=vR(),{measureText:l}=jg(r.header),{estimateWidth:s,measureText:c}=jg({...r.dimensionValues,fontWeight:wR(r.dimensionValues.fontWeight)}),{measureText:d}=jg({...r.dimensionValues,...r.measureLabels}),f=p(((r,u)=>{const{layout:{qHyperCube:{qNoOfLeftDims:p,topHeadersColumnWidth:f}},visibleMeasureInfo:m,isIndentModeEnabled:h,hasPseudoDimOnLeft:g}=n,b=(t=0)=>m.reduce(((r,{qFallbackTitle:n,columnWidth:o})=>{const i=d(n)+xR,a=Math.max(i,t);return Math.max(r,h?a:MR(e,o,a))}),0),v=e=>a.data.reduce(((t,r)=>{const n=r.at(e);if(!n||Array.isArray(n))return t;if(n.id===qC)return t;const o=(e=>{const{label:t,isLocked:r}=e,n=r?20:0;return xR+l(t)+20+n})(n);return Math.max(o,t)}),0);let y=0,x=a.data.at(-1);h&&a.size.x>1&&x&&x[0]&&(x=x[0]);const S=x.map(((i,l)=>{let c=xR;if(h&&1!==a.size.x||!r||void 0===u||u!==i.colIdx){let t;i.columnWidthLocation===rr.Pivot?t=h?void 0:f:i.columnWidthLocation===rr.Dimension&&({columnWidth:t}=i);let r=0;if(i.isLeftDimension)if(i.id===qC)r=b();else{const e=v(l),t=((e,t)=>{const{qApprMaxGlyphCount:r,isLeftDimension:i,dimensionInfoIndex:a}=e,l=n.getDimensionInfo(a);if(ER(l))return Bt.PixelsDefault;const u=!o.qAlwaysFullyExpanded&&i&&t<p-1?21:0;return xR+s(r)+u})(i,l);r=Math.max(e,t),h&&!g&&l+1===p&&i.columnWidthLocation===rr.Dimension&&a.size.x>1&&(r=e)}else r=v(l),i.columnWidthLocation===rr.Measures&&(r=b(r));h&&1===a.size.x&&(t=n.indentModeColumnWidth),c=h&&!g&&a.size.x>1?r:MR(e,t,r)}else c=h?Math.min(t,r):r;return y+=c,c}));return h&&a.size.x>1?TR({layoutService:n,effectivePropertiesService:o,headersData:a,columnWidths:S,tableWidth:e,widthOverride:r,measureTextForHeader:l,estimateWidthForDimensionValue:s,measureTextWidthForMeasuresCombinedWithDimensions:c,translator:i}):{leftGridWidth:Math.min(t,y),leftGridColumnWidths:S,leftGridFullWidth:y}}),[e,a,n,t,l,d,s,c,i,o]),[m,h]=u(f);$g((()=>{h(f())}),[f]);const g=p(((e,t)=>{h(f(e,t))}),[f]);return{...m,overrideLeftGridWidth:g}}function qR({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:r}){const{styleService:n,layoutService:o}=PC(),{visibleDimensionsInfo:{visibleTopDimensionInfo:i}}=vR(),{layout:{qHyperCube:{qNoOfLeftDims:a,qEffectiveInterColumnSortOrder:l}},size:u,visibleMeasureInfo:c}=o,{estimateWidth:d,measureText:f}=jg(n.measureValues),{estimateWidth:m}=jg({...n.dimensionValues,fontWeight:wR(n.dimensionValues.fontWeight)}),h=e-r-1,g=i.at(-1),b=g===_C,v=l.length-a>i.length?21:0,y=s((()=>{const e=b?c:[g],t=u.x/e.length,r=[],n=[];let o=h;const i=(e,n)=>{r[e]=Math.min(Bt.PixelsMax,Math.max(Bt.PixelsMin,n)),o-=r[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:r,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:s}=e;switch(r){case $t.Pixels:i(t,LR(o));break;case $t.Percentage:i(t,IR(a,h));break;case $t.FitToContent:i(t,((e,t,r)=>r?Bt.PixelsDefault:xR+(b?Math.max(d(e),f(t)):Math.max(Math.max(...c.map((e=>d(e.qApprMaxGlyphCount)))),m(e)+v)))(l,s,ER(e)));break;case $t.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(Bt.AutoMinPivot,i)}))}return r}),[b,c,g,u.x,h,d,f,m,v]),x=s((()=>{if(b){return c.reduce(((e,t,r)=>e+y[r]),0)/c.length}return y[0]}),[b,y,c]),S=parseFloat((t/o.size.x).toFixed(12)),E=p((e=>(b&&void 0!==e?y[o.getMeasureInfoIndexFromCellIndex(e,!0)]:x)-S),[b,y,o,x,S]),C=u.x*x;return{rightGridFullWidth:C,rightGridWidth:Math.min(C,h),getRightGridColumnWidth:E}}const NR=`scrollable-container--${or.TopGrid}`,FR=`scrollable-container--${or.LeftGrid}`,jR=`scrollable-container--${or.DataGrid}`,zR=e=>e&&e instanceof HTMLDivElement?{width:e.offsetWidth-e.clientWidth,height:e.offsetHeight-e.clientHeight}:{width:0,height:0},GR=(e,t)=>e>t?ir.Forward:e<t?ir.Backward:ir.None,BR=({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:o,trackScrollDirection:i,interactions:a})=>{const{direction:l}=RC();f((()=>{const{headerGridWrapperElement:s,topGridWrapperElement:u,leftGridWrapperElement:c,dataGridWrapperElement:d}=n(),p=e=>{const t=e.target;s.scrollLeft=t.scrollLeft,i(e),null==o||o(e)},f=e=>{const t=e.target;s.scrollTop=t.scrollTop,i(e),null==o||o(e)},m=n=>{var a,s,p;const f=n.target,m=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:o}=e,i=r-n;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(f,l);null===(a=r.current)||void 0===a||a.scrollTo({scrollLeft:m,scrollTop:f.scrollTop}),u.scrollLeft=m,null===(s=e.current)||void 0===s||s.forEach((e=>{null==e||e.scrollTo(m)})),c.scrollTop=d.scrollTop,null===(p=t.current)||void 0===p||p.forEach((e=>{null==e||e.scrollTo(f.scrollTop)})),i(n),null==o||o(n)};return c.addEventListener("scroll",p),u.addEventListener("scroll",f),d.addEventListener("scroll",m),a.scroll||setTimeout((()=>{c.removeEventListener("scroll",p),u.removeEventListener("scroll",f),d.removeEventListener("scroll",m)}),0),()=>{c.removeEventListener("scroll",p),u.removeEventListener("scroll",f),d.removeEventListener("scroll",m)}}),[i,o,a,e,t,r,n,l])},$R=()=>{const{interactions:e}=MC(),t=c(null),r=c(null),n=c(null),o=c(null),i=c([]),a=c([]),l=c(null),{scrollbarsDimensions:{verticalScrollbarWidth:s,horizontalScrollbarHeight:d},resetHorizontalScrollbarHeight:m}=(({topGridWrapperRef:e,leftGridWrapperRef:t,dataGridWrapperRef:r})=>{const[n,o]=u(0),[i,a]=u(0);return g((()=>{(e.current||r.current)&&o(Math.max(zR(e.current).width,zR(r.current).width))})),g((()=>{(t.current||r.current)&&a(Math.max(zR(t.current).height,zR(r.current).height))})),{scrollbarsDimensions:{verticalScrollbarWidth:n,horizontalScrollbarHeight:i},resetHorizontalScrollbarHeight:()=>{a(0)}}})({topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o});(({gridSectionsWrapperRefs:{headerGridWrapperRef:e,topGridWrapperRef:t,leftGridWrapperRef:r,dataGridWrapperRef:n},gridRefs:{topGridRef:o,leftGridRef:i,dataGridRef:a}})=>{const{pageInfo:l}=RC(),{downloadService:s,viewService:u,layoutService:c}=PC(),d=p((()=>{var o,i,a,l;const s={left:0,top:0};null===(o=e.current)||void 0===o||o.scrollTo(s),null===(i=t.current)||void 0===i||i.scrollTo(s),null===(a=r.current)||void 0===a||a.scrollTo(s),null===(l=n.current)||void 0===l||l.scrollTo(s)}),[e,t,r,n]);g((()=>{d()}),[l.page,d]),g((()=>{c.triggerdByExpandOrCollapse||d()}),[c,d]),g((()=>{if(c.triggerdByExpandOrCollapse){var e,t,r,l,s,u,d;const c=null!==(e=null===(t=n.current)||void 0===t?void 0:t.scrollLeft)&&void 0!==e?e:0,p=null!==(r=null===(l=n.current)||void 0===l?void 0:l.scrollTop)&&void 0!==r?r:0;null===(s=i.current)||void 0===s||s.forEach((e=>{null==e||e.scrollTo(p)})),null===(u=o.current)||void 0===u||u.forEach((e=>{null==e||e.scrollTo(c)})),null===(d=a.current)||void 0===d||d.scrollTo({scrollTop:p,scrollLeft:c})}}),[c,n,a,i,o]),g((()=>{(s.isDownloadedAsPDForImage||c.isSnapshot)&&n.current&&r.current&&t.current&&(n.current.scrollTop=u.scrollTop,n.current.scrollLeft=u.scrollLeft,r.current.scrollLeft=u.leftGridScrollLeft,t.current.scrollTop=u.topGridScrollTop)}),[u,s,c,n,r,t])})({gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:l}});const{trackScrollDirection:h,scrollDirectionRefs:{verticalScrollDirection:b,horizontalScrollDirection:v}}=(()=>{const e=c(ir.None),t=c(ir.None),r=c({prevScrollTop:0,prevScrollLeft:0});return{trackScrollDirection:p((n=>{if(n instanceof WheelEvent&&(e.current=GR(n.deltaY,0),t.current=GR(n.deltaX,0)),n instanceof Event&&!(n instanceof WheelEvent)){const o=n.target;e.current=GR(o.scrollTop,r.current.prevScrollTop),r.current.prevScrollTop=o.scrollTop,t.current=GR(o.scrollLeft,r.current.prevScrollLeft),r.current.prevScrollLeft=o.scrollLeft}}),[e,t,r]),scrollDirectionRefs:{verticalScrollDirection:e,horizontalScrollDirection:t}}})(),y=(()=>{const{viewService:e}=PC();return p((t=>{const r=t.target,n=t.currentTarget,o=r.dataset.key;o===FR&&(e.leftGridScrollLeft=n.scrollLeft),o===jR&&(e.scrollLeft=n.scrollLeft),o===NR&&(e.topGridScrollTop=n.scrollTop),o!==FR&&o!==jR||(e.scrollTop=n.scrollTop)}),[e])})(),x={gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:l},getWrapperElements:p((()=>({headerGridWrapperElement:t.current,topGridWrapperElement:r.current,leftGridWrapperElement:n.current,dataGridWrapperElement:o.current})),[t,r,n,o]),updateViewService:y,trackScrollDirection:h,interactions:e};return(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:o,trackScrollDirection:i,interactions:a})=>{f((()=>{const{headerGridWrapperElement:o,topGridWrapperElement:l,leftGridWrapperElement:s,dataGridWrapperElement:u}=n(),c=e=>{o.scrollLeft+=e.deltaX,o.scrollTop+=e.deltaY,s.scrollLeft=o.scrollLeft,l.scrollTop=o.scrollTop,i(e)},d=e=>{var n,a;s.scrollTop+=e.deltaY,null===(n=t.current)||void 0===n||n.forEach((e=>{null==e||e.scrollTo(s.scrollTop)})),o.scrollLeft+=e.deltaX,s.scrollLeft=o.scrollLeft,u.scrollTop=s.scrollTop,null===(a=r.current)||void 0===a||a.scrollTo({scrollTop:s.scrollTop}),i(e)},p=t=>{var n,a;l.scrollLeft+=t.deltaX,null===(n=e.current)||void 0===n||n.forEach((e=>{null==e||e.scrollTo(l.scrollLeft)})),o.scrollTop+=t.deltaY,l.scrollTop=o.scrollTop,u.scrollLeft=l.scrollLeft,null===(a=r.current)||void 0===a||a.scrollTo({scrollLeft:l.scrollLeft}),i(t)},f=n=>{var o,a,c;u.scrollLeft+=n.deltaX,u.scrollTop+=n.deltaY,null===(o=r.current)||void 0===o||o.scrollTo({scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}),l.scrollLeft=u.scrollLeft,null===(a=e.current)||void 0===a||a.forEach((e=>{null==e||e.scrollTo(u.scrollLeft)})),s.scrollTop=u.scrollTop,null===(c=t.current)||void 0===c||c.forEach((e=>{null==e||e.scrollTo(u.scrollTop)})),i(n)};return o.addEventListener("wheel",c),s.addEventListener("wheel",d),l.addEventListener("wheel",p),u.addEventListener("wheel",f),a.scroll||setTimeout((()=>{o.removeEventListener("wheel",c),s.removeEventListener("wheel",d),l.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}),0),()=>{o.removeEventListener("wheel",c),s.removeEventListener("wheel",d),l.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}}),[i,o,a,e,t,r,n])})(x),BR(x),{gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:l},scrollDirectionRefs:{verticalScrollDirection:b,horizontalScrollDirection:v},scrollbarsDimensions:{verticalScrollbarWidth:s,horizontalScrollbarHeight:d,resetHorizontalScrollbarHeight:m}}},WR=()=>{const{layoutService:e}=PC(),{rect:t,pageInfo:r}=RC();return s((()=>{let{height:n}=t;return e.hasLimitedData&&(n-=22),r.shouldShowPagination&&(n-=41),{...t,height:n}}),[t,e,r.shouldShowPagination])},HR=({children:e,style:t})=>Yr.jsx("div",{"data-testid":"fullSize",style:t,children:e}),VR=({children:e,style:t})=>{const{direction:r}=RC();return Yr.jsx("div",{"data-section-id":"GRID",style:{direction:r,display:"grid",...t},children:e})},UR=e=>e&&`scrollable-container--${e}`,YR=({children:e,style:t,origin:r},n)=>{const{interactions:o}=MC(),i=o.scroll?t:{overflow:"hidden"};return Yr.jsx("div",{"data-testid":"scrollable","data-key":UR(r),style:i,ref:n,children:e})};var KR=t.forwardRef(YR);const XR=({children:e,style:t})=>{const{direction:r}=RC();return Yr.jsx("div",{"data-testid":"sticky",style:{position:"sticky",top:0,["rtl"===r?"right":"left"]:0,...t},children:e})};var JR=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ZR(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||JR(n)&&JR(o)))return!1;var n,o;return!0}function QR(e,t){var r;void 0===t&&(t=ZR);var n,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var eL="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function tL(e){cancelAnimationFrame(e.id)}function rL(e,t){var r=eL();var n={id:requestAnimationFrame((function o(){eL()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var nL=-1;function oL(e){if(void 0===e&&(e=!1),-1===nL||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),nL=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return nL}var iL=null;function aL(e){if(void 0===e&&(e=!1),null===iL||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?iL="positive-descending":(t.scrollLeft=1,iL=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),iL}return iL}var lL=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function sL(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,i=e.getColumnStopIndexForStartIndex,a=e.getColumnWidth,l=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,u=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,d=e.getRowHeight,p=e.getRowOffset,f=e.getRowStartIndexForOffset,m=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,g=e.shouldResetStyleCacheOnItemSizeChange,v=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=h(n.props,Rr(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Rr(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=QR((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=QR((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,i=n.props,l=i.columnWidth,s=i.direction,u=i.rowHeight,c=n._getItemStyleCache(g&&l,g&&s,g&&u),f=e+":"+t;if(c.hasOwnProperty(f))o=c[f];else{var m=r(n.props,t,n._instanceProps),h="rtl"===s;c[f]=o={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:p(n.props,e,n._instanceProps),height:d(n.props,e,n._instanceProps),width:a(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=QR((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(aL()){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&&tL(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=rL(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}wr(t,e),t.getDerivedStateFromProps=function(e,t){return uL(e,t),v(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,a=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=oL();void 0!==n&&(n=Math.max(0,Math.min(n,a-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=l(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?u(this.props,n,r,h,this._instanceProps,x):h,scrollTop:void 0!==o?c(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(aL()){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&&tL(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,i=e.direction,a=e.height,u=e.innerRef,c=e.innerElementType,d=e.innerTagName,p=e.itemData,f=e.itemKey,m=void 0===f?lL:f,h=e.outerElementType,g=e.outerTagName,b=e.rowCount,v=e.style,y=e.useIsScrolling,x=e.width,S=this.state.isScrolling,E=this._getHorizontalRangeToRender(),C=E[0],w=E[1],R=this._getVerticalRangeToRender(),L=R[0],I=R[1],M=[];if(n>0&&b)for(var D=L;D<=I;D++)for(var A=C;A<=w;A++)M.push(o(t,{columnIndex:A,data:p,isScrolling:y?S:void 0,key:m({columnIndex:A,data:p,rowIndex:D}),rowIndex:D,style:this._getItemStyle(D,A)}));var P=l(this.props,this._instanceProps),O=s(this.props,this._instanceProps);return o(h||g||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:hr({position:"relative",height:a,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},v)},o(c||d||"div",{children:M,ref:u,style:{height:P,pointerEvents:S?"none":void 0,width: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],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof n){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,o=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=r||o||a||1;if(0===t||0===l)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),m=i(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=f(this.props,u,this._instanceProps),p=m(this.props,d,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,p+g)),d,p]},t}(b),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var uL=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},cL=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},dL=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},pL=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]},fL=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?mL(e,t,r,i,0,n):hL(e,t,r,Math.max(0,i),n)},mL=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),l=pL(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},hL=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&pL(e,t,n,r).offset<o;)n+=a,a*=2;return mL(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},gL=function(e,t,r,n,o,i,a){var l="column"===e?t.width:t.height,s=pL(e,t,r,i),u="column"===e?dL(t,i):cL(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}},bL=sL({getColumnOffset:function(e,t,r){return pL("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return fL("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=pL("column",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=pL("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:cL,getEstimatedTotalWidth:dL,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return gL("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return gL("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return pL("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return fL("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=pL("row",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=pL("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}}),vL=function(e,t){return e};function yL(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,l=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,u=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=u(n.props,Rr(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Rr(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=QR((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=QR((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,o=n.props,a=o.direction,l=o.itemSize,s=o.layout,u=n._getItemStyleCache(c&&l,c&&s,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=r(n.props,e,n._instanceProps),p=i(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?d:0;u[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=QR((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(aL()){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&&tL(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=rL(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}wr(t,e),t.getDerivedStateFromProps=function(e,t){return xL(e,t),d(e),null};var p=t.prototype;return p.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},p.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,i=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?oL():0:s.scrollHeight>s.clientHeight?oL():0}this.scrollTo(a(this.props,e,t,i,this._instanceProps,l))},p.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},p.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(aL()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},p.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&tL(this._resetIsScrollingTimeoutId)},p.render=function(){var e=this.props,t=e.children,r=e.className,i=e.direction,a=e.height,l=e.innerRef,s=e.innerElementType,u=e.innerTagName,c=e.itemCount,d=e.itemData,p=e.itemKey,f=void 0===p?vL:p,m=e.layout,h=e.outerElementType,g=e.outerTagName,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S="horizontal"===i||"horizontal"===m,E=S?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),w=C[0],R=C[1],L=[];if(c>0)for(var I=w;I<=R;I++)L.push(o(t,{data:d,key:f(I,d),index:I,isScrolling:v?x:void 0,style:this._getItemStyle(I)}));var M=n(this.props,this._instanceProps);return o(h||g||"div",{className:r,onScroll:E,ref:this._outerRefSetter,style:hr({position:"relative",height:a,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},b)},o(s||u||"div",{children:L,ref:l,style:{height:S?"100%":M,pointerEvents:x?"none":void 0,width:S?M:"100%"}}))},p._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},p._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,a=n.scrollOffset;if(0===t)return[0,0,0,0];var u=l(this.props,a,this._instanceProps),c=s(this.props,u,a,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(b),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var xL=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},SL=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]},EL=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=SL(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},CL=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&SL(e,r,t).offset<n;)r+=i,i*=2;return EL(e,t,Math.min(r,o-1),Math.floor(r/2),n)},wL=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},RL=yL({getItemOffset:function(e,t,r){return SL(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:wL,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=SL(e,t,o),p=wL(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=m-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return n>=m&&n<=f?n:n<m?m:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?EL(e,t,o,0,r):CL(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=SL(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=SL(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 LL(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 IL=["style"],ML=["style"];function DL(e,t){var r=e.style,n=Er(e,IL),o=t.style,i=Er(t,ML);return!LL(r,o)&&!LL(n,i)}const AL=10,PL=(e,t)=>e.current===ir.Backward?t:0,OL=(e,t,r,n)=>{for(let o=r;o<r+n;o++){const r=e.at(o);if(void 0===r||void 0===r.at(t))return!0}return!1},kL=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,TL=({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(OL(t,e,r,n)){const t=a[a.length-1],o={qLeft:e,qTop:r+l,qWidth:1,qHeight:n};void 0!==t&&kL(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},_L=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=n,u=r.current===ir.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return TL({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},qL=({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=PL(r,AL),u=Math.max(n-s,0);return{startLeft:u,endLeft:u+Math.min(i+AL,l-u),pageTop:o,qHeight:a}})(n,o,r),u=TL({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,..._L({pageInfo:e,measureData:t,scrollDirection:r,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:n.size.x})]:u},NL=(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},FL=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,jL=({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(NL(o,r,i,n)){const e=a.at(-1),t={qLeft:r,qTop:i+l,qWidth:n,qHeight:1};void 0!==e&&FL(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},zL=({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=PL(r,AL),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+AL,e.rowsOnCurrentPage-s),qLeft:n,qWidth:i}})(e,n,r),s=jL({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const n=r.current===ir.Backward?Math.max(0,o-25):i,u=Math.min(n+25,e.rowsOnCurrentPage),c=jL({startTop:n,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},GL=async(e,t,r,n,o,i,a,l)=>{const{gridColumnStartIndex:s,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==ir.None&&(p=zL({pageInfo:n,measureData:r,scrollDirection:i,viewService:o})),a.current!==ir.None&&(f=qL({pageInfo:n,measureData:r,scrollDirection:a,layoutService:t,viewService:o})),i.current===ir.None&&a.current===ir.None&&(p=jL({measureData:r,pageInfo:n,qLeft:s,qWidth:c,startTop:u,endTop:u+d}));const m=e.fetchPages([...p,...f]);l.isDownloadedAsPDForImage&&l.waitForPromise(m)},BL=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))}}(GL,100),$L=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)}}(GL,75),WL=(e,t,r=!1)=>void 0!==e&&(e.isLeafNode||r&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),HL=({style:e,index:t,isLastRow:r,isLastColumn:n,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{direction:l}=RC(),{styleService:{grid:{border:s,divider:u}}}=PC();return Yr.jsx("div",{style:{...e,...pg,...gg(r,n,s,l,o),...vg({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:u})},"data-testid":"empty-cell","data-index":t})},VL=({children:e,verticalAlign:t,width:r,right:n,isLeftColumn:o})=>{const{layoutService:i}=PC(),a=o&&i.isIndentModeEnabled&&i.indentModeFeatures.isImagesSupported;return Yr.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",overflow:"hidden",flexDirection:"row",width:r,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:n,...a?{}:{alignItems:t,alignSelf:t}},children:e})},UL=e=>{const{type:t,imageSize:r}=e;return t!==Ut.Image||"fill"!==r&&"fitWidth"!==r?"fit-content":"100%"};function YL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KL(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const XL=(e,t)=>Yr.jsx("svg",KL(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){YL(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),{children:Yr.jsx("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"})})),JL=d(XL);function ZL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QL(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const eI=(e,t)=>Yr.jsx("svg",QL(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){ZL(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),{children:Yr.jsx("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"})})),tI=d(eI),rI=e=>{var t;return!(null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t||!t.includes(Gt))},nI=(e,t)=>{switch(t.type){case"clearSelections":return{engineSelectedCells:null,activeSelection:null,selectedField:null};case"mouseup":return{...e,activeSelection:null,engineSelectedCells:t.payload.engineSelectedCells};case"mousedown":return{...e,activeSelection:t.payload.activeSelection,selectedField:t.payload.selectedField};case"mouseover":{if(!e.activeSelection)return e;const{index:r}=t.payload,n=Math.min(r,e.activeSelection.startIndex),o=Math.max(r,e.activeSelection.endIndex);if(n===e.activeSelection.startIndex&&o===e.activeSelection.endIndex)return e;const i={...e.activeSelection,startIndex:n,endIndex:o};return i.clientSelectedCells=(e=>{const{getCellFromIndex:t,startIndex:r,endIndex:n,clientSelectedCells:o}=e,i=new Map(o);for(let e=r;e<=n;e++){const r=t(e);"N"===(null==r?void 0:r.ref.qType)&&i.set(r.ref.qElemNo,r)}return i})(i),{...e,activeSelection:i}}default:return e}};const oI=m({createMouseDownHandler:()=>()=>{},createMouseOverHandler:()=>()=>{},isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),iI=()=>n(oI),aI=({children:e,selections:t})=>{const r=function(e){var t,r,n;const{updatePageInfo:o}=RC(),i=e.isActive(),[a,l]=v(nI,{engineSelectedCells:null,selectedField:null,activeSelection:null});f((()=>{const t=()=>{l({type:"clearSelections"})},r=()=>{t(),o({page:0})};return e.on("deactivated",t),e.on("canceled",t),e.on("confirmed",r),e.on("cleared",t),()=>{e.removeListener("deactivated",t),e.removeListener("canceled",t),e.removeListener("confirmed",r),e.removeListener("cleared",t)}}),[e,o]);const u=p((async()=>{var t,r,n;if(!a.activeSelection)return;1===a.activeSelection.clientSelectedCells.size&&(r=a.engineSelectedCells,(n=a.activeSelection).clientSelectedCells.forEach(((e,t)=>{null!=r&&r.has(t)&&(n.clientSelectedCells.delete(t),r.delete(t))})));const o=new Map([...null!==(t=a.engineSelectedCells)&&void 0!==t?t:new Map,...a.activeSelection.clientSelectedCells]);try{l({type:"mouseup",payload:{engineSelectedCells:o}}),await e.select({method:"selectPivotCells",params:[TC,Array.from(o,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]})}catch(e){console.error(e),l({type:"mouseup",payload:{engineSelectedCells:a.engineSelectedCells}})}}),[a,e]);f((()=>{if(a.activeSelection)return document.addEventListener("mouseup",u),()=>{document.removeEventListener("mouseup",u)}}),[u,a.activeSelection]);const c=p(((e,t)=>r=>{const n=t(e);rI(r)||(e=>{var t;return null!==(null===(t=e.target)||void 0===t?void 0:t.closest("[data-prevent-selection]"))})(r)||(e=>{var t;return"A"===(null===(t=e.target)||void 0===t?void 0:t.tagName)})(r)||!(e=>1===e.buttons)(r)||!n||l({type:"mousedown",payload:{activeSelection:{startIndex:e,endIndex:e,getCellFromIndex:t,clientSelectedCells:(new Map).set(n.ref.qElemNo,n)},selectedField:{selectionCellType:n.selectionCellType,index:"L"===n.selectionCellType?n.x:n.y}}})}),[]),d=p((t=>async()=>{a.activeSelection&&(e.isActive()||await e.begin([TC]),l({type:"mouseover",payload:{index:t}}))}),[a.activeSelection,e]),m=p((e=>{var t,r;return!(!(null!==(t=a.engineSelectedCells)&&void 0!==t&&t.size||null!==(r=a.activeSelection)&&void 0!==r&&r.clientSelectedCells.size)||!a.selectedField||e.selectionCellType===a.selectedField.selectionCellType&&("L"===e.selectionCellType?a.selectedField.index===e.x:a.selectedField.index===e.y))}),[null===(t=a.activeSelection)||void 0===t?void 0:t.clientSelectedCells.size,null===(r=a.engineSelectedCells)||void 0===r?void 0:r.size,a.selectedField]),h=p((e=>{var t,r;return!m(e)&&((null===(t=a.engineSelectedCells)||void 0===t?void 0:t.has(e.ref.qElemNo))||!(null===(r=a.activeSelection)||void 0===r||!r.clientSelectedCells.has(e.ref.qElemNo)))}),[m,null===(n=a.activeSelection)||void 0===n?void 0:n.clientSelectedCells,a.engineSelectedCells]);return s((()=>({isSelected:h,isActive:i,isLocked:m,createMouseDownHandler:c,createMouseOverHandler:d})),[h,i,m,c,d])}(t);return Yr.jsx(oI.Provider,{value:r,children:e})},lI=e=>{const t=e.isLeftColumn?"flex-start":"center";var r;return e.representation.type!==Ut.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(r=e.representation.resolvedImagePosition)||void 0===r?void 0:r.vertical};var sI;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(sI||(sI={}));const uI={brighter:.5,darker:.3,opacity:.03},cI=(e,{cell:t,styleService:r})=>{if(e===sI.Background||e===sI.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]},dI=({styleService:e,isCellSelected:t,cell:r,isCellLocked:n})=>{if(t)return e.selectedColors.background;const o=cI(sI.Background,{cell:r,styleService:e});return!n||!o||r.isPseudoDimension||r.isEmpty||r.isNull||r.isTotal?cI(sI.Background,{cell:r,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${Hh(i=o,uI)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},pI=({cell:e,styleService:t,isCellSelected:r})=>r?t.selectedColors.color:cI(sI.Color,{cell:e,styleService:t}),fI=({cell:e,styleService:t})=>{const{qCanCollapse:r,qCanExpand:n}=e.ref,o=cI(sI.FontWeight,{cell:e,styleService:t});return void 0===o&&(n||r)?ig:o},mI=({cell:e,styleService:t})=>cI(sI.FontStyle,{cell:e,styleService:t}),hI=({cell:e,styleService:t})=>cI(sI.TextDecoration,{cell:e,styleService:t}),gI=e=>e?"pointer":"default",bI=({expandOrCollapse:e,cell:t})=>r=>{null==e||e(t.y,t.x),r.stopPropagation()},vI=(e,t)=>{if(!e.isLeftColumn||e.representation.type===Ut.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},yI=({cell:e,isLeftColumn:t,isCellSelected:r})=>{const{styleService:n,layoutService:o}=PC(),{interactions:i}=MC(),{isActive:a}=iI(),{dataModel:l}=vR();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const s=!i.active||a||!l,u=pI({cell:e,styleService:n,isCellSelected:r}),c=a?.4:1,d=e.ref.qCanExpand?tI:JL;let p;p=e.ref.qCanExpand?t?l.expandLeft:l.expandTop:t?l.collapseLeft:l.collapseTop;const f=CR({isLeftColumn:t,layoutService:o,representation:e.representation});return Yr.jsx(d,{opacity:c,color:u,"data-prevent-selection":!s||void 0,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:s?"default":"pointer",...vI(e,n),...f&&{alignSelf:lI(e),position:"sticky",top:0}},onClick:s?void 0:bI({cell:e,expandOrCollapse:p})})},xI=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},SI=(e,t)=>{if("alwaysFit"===e&&t)return"fit-content";switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},EI=(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"}},CI=({representation:e,canExpandOrCollapse:t,leafCount:r,isLeftColumn:n,styleService:o,layoutService:i})=>{var a,l;const{isIndentModeEnabled:s,indentModeFeatures:{isImagesSupported:u}}=i,c=CR({isLeftColumn:n,layoutService:i,representation:e}),d=t?21:0,p=null!==(a=null===(l=e.imageBox)||void 0===l?void 0:l.width)&&void 0!==a?a:24,f=c?p:`calc(100% - ${d}px)`,m=n?o.contentCellHeight:o.headerCellHeight;let h=m;switch(!n||void 0===r||s&&u||(h=m*Math.max(r,1)),e.imageSize){case"originalSize":return{maxWidth:f,maxHeight:h,...c?{width:f}:{}};case"fitWidth":return{width:f,maxHeight:h};case"fitHeight":return{height:h,maxWidth:f,...c?{width:f}:{}};case"fill":return{height:h,width:f};default:return{width:f,height:m}}},wI=e=>{if("alwaysFit"===e)return"contain"},RI=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`.trim(),LI=({imageSize:e,resolvedImagePosition:t,isImagesInIndentModeEnabled:r})=>({width:SI(e,r),height:xI(e),objectFit:wI(e),objectPosition:EI(e,t),...r&&"alwaysFit"===e?{"max-width":"100%"}:{}}),II=({representation:e,textStyle:t})=>{const{imageRef:r,onLoad:n}=(()=>{const{downloadService:e}=PC(),t=c(null),{promise:r,resolve:n}=s((()=>Ig()),[]);return f((()=>{var o;return e.isDownloadedAsPDForImage&&(e.waitForPromise(r),null!==(o=t.current)&&void 0!==o&&o.complete&&n()),()=>{n()}}),[t,e,r,n]),{onLoad:p((()=>{n()}),[n]),imageRef:t}})(),{layoutService:{isIndentModeEnabled:o,indentModeFeatures:{isImagesSupported:i}}}=PC(),{url:a,text:l,imageSize:u,resolvedImagePosition:d}=e,{overflow:m,...h}=t;return Yr.jsx("img",{src:a,alt:l,style:{...LI({imageSize:u,resolvedImagePosition:d,isImagesInIndentModeEnabled:o&&i}),...h},onLoad:n,ref:r})},MI=({representation:e,textStyle:t,canExpandOrCollapse:r,leafCount:n,isLeftColumn:o,imageContainerHorizontalAlignment:i})=>{var a;const{styleService:l,layoutService:s}=PC(),{resolvedImagePosition:u}=e,c=(null===(a=e.labelStructure)||void 0===a?void 0:a.suffix)&&CR({isLeftColumn:o,layoutService:s,representation:e});return Yr.jsx("div",{"data-key":"image-container--image",style:{display:"flex",flexDirection:"column",justifyContent:null==u?void 0:u.vertical,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...CI({representation:e,canExpandOrCollapse:r,leafCount:n,isLeftColumn:o,styleService:l,layoutService:s}),...c?{}:{alignItems:i}},children:Yr.jsx(II,{representation:e,textStyle:t})})},DI=(e,t,r)=>{if(null!=e&&e.auto)return t;switch(null==e?void 0:e.align){case"center":return"center";case"left":return"rtl"===r?"flex-end":"flex-start";case"right":return"rtl"===r?"flex-start":"flex-end";default:return t}},AI=(e,t)=>{var r,n;let{textAlign:o}=null!==(r=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==r?r:{};var i;e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex&&({labelTextAlign:o}=null!==(i=t.visibleMeasureInfo.at(e.visibleMeasureInfoIndex))&&void 0!==i?i:{});return null!==(n=o)&&void 0!==n&&n.auto||void 0===o?"left":o.align},PI={display:"flex",flexDirection:"row",alignItems:"center"},OI={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},kI=(e,t,r,n)=>t?{...OI,...e.nullValues}:r?{...PI,color:e.totalValues.color,background:null!=n?n:e.totalValues.background}:{...PI,color:e.measureValues.color,background:null!=n?n:e.measureValues.background},TI=(e,t,r,n,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...fg,...!r&&mg(e.grid.lineClamp),...t&&{color:t},fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.nullValues;return{...l,fontWeight:t,fontStyle:r,textDecoration:n}}if(n){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.totalValues;return{...l,fontWeight:t,fontStyle:r,textDecoration:n}}const{fontWeight:s,fontStyle:u,textDecoration:c}=e.measureValues;return{...l,fontWeight:void 0===s?ig:s,fontStyle:u,textDecoration:c}},_I=(e,t,r,n,o)=>{const{textAlign:i}=t,a=n?"flex-end":"center";var l,s;return e.isNull||r.type!==Ut.Image?DI(i,a,o):null!==(l=null===(s=r.resolvedImagePosition)||void 0===s?void 0:s.horizontal)&&void 0!==l?l:"center"},qI=({cell:e,representation:t,color:r,isNumeric:n,isTotalValueCell:o})=>{const{layoutService:i,styleService:a}=PC(),l=e.isNull?i.getNullValueText():t.text,s=TI(a,r,n,o,e.isNull);return t.type!==Ut.Image||e.isNull?Yr.jsx("span",{style:{padding:4,direction:n?"ltr":void 0,...s},children:l}):Yr.jsx(MI,{representation:t,textStyle:s,isLeftColumn:!0})},NI=(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},FI="flex-start",jI=(e,t)=>{return e.isNull?FI:t.type===Ut.Image&&"fill"!==t.imageSize?null===(r=t.resolvedImagePosition)||void 0===r?void 0:r.vertical:FI;var r},zI=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o;const{env:i}=MC(),{pageInfo:a,direction:l}=RC(),{styleService:s,layoutService:u}=PC(),{attrExprInfoIndexes:c,gridSectionsData:{measureData:d,leftDimensionData:f,topDimensionData:m},visibleDimensionsInfo:{visibleLeftDimensionInfo:h,visibleTopDimensionInfo:g}}=vR(),b=(()=>{const{layoutService:{isIndentModeEnabled:e}}=PC(),{gridSectionsData:{leftDimensionData:t,topDimensionData:r},visibleDimensionsInfo:{visibleLeftDimensionInfo:n,visibleTopDimensionInfo:o}}=vR(),i=n.length,a=o.length;return p(((n,o)=>{var l,s;return!!(null!==(l=r.grid.at(a-1))&&void 0!==l&&null!==(l=l[n])&&void 0!==l&&l.isTotal||null!==(s=t.grid.at(e?0:i-1))&&void 0!==s&&null!==(s=s[o])&&void 0!==s&&s.isTotal)}),[r,t,i,a,e])})(),v=(()=>{const{gridSectionsData:{topDimensionData:e},visibleDimensionsInfo:{visibleTopDimensionInfo:t}}=vR(),r=t.length;return p((t=>{var n;const o=null===(n=e.grid.at(r-1))||void 0===n?void 0:n[t];return WL(o,e.totalDividerIndex)}),[e,r])})(),y=(()=>{const{layoutService:{isIndentModeEnabled:e}}=PC(),{gridSectionsData:{leftDimensionData:t},visibleDimensionsInfo:{visibleLeftDimensionInfo:r}}=vR(),n=r.length;return p((r=>{var o;const i=e?0:n-1,a=null===(o=t.grid.at(i))||void 0===o?void 0:o[r];return WL(a,t.totalDividerIndex,e)}),[t,e,n])})(),{showLastBorder:x}=n,S=m.grid.at(g.length-1),E=f.grid.at(h.length-1),{background:C}=s.measureValues,w=null===(o=d[t])||void 0===o?void 0:o[e],R=t===a.rowsOnCurrentPage-1,L=e===u.size.x-1;if(!w)return Yr.jsx(HL,{style:{...r,background:C},isLastRow:R,isLastColumn:L,showLastBorder:x,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const I=u.hasPseudoDimOnLeft?NI(E,t):NI(S,e),M=u.visibleMeasureInfo[I],D=Kw({cell:w.ref,representationProperties:u.isIndentModeEnabled?{type:Ut.Text}:M.representation,attrExprInfoIndex:c.measures[I],env:i,direction:l}),A=!w.isNull&&b(e,t),P=w.isNull?u.getNullValueText():D.text,O=!w.isNull||!Number.isNaN(+P),k=Xw(c.measures[I],w.ref),T={...kI(s,w.isNull,A,k.background),...gg(R,L,s.grid.border,l,x),...vg({bottomDivider:y(t),rightDivider:v(e),borderColor:s.grid.divider}),...pg,padding:"0px 4px",display:"flex",justifyContent:_I(w,M,D,O,l)};return Yr.jsx("div",{className:jt,title:P,style:{...T,...r},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:Yr.jsx(VL,{width:UL(D),verticalAlign:jI(w,D),children:Yr.jsx(qI,{cell:w,representation:D,isNumeric:O,isTotalValueCell:A,color:k.color})})})};var GI=t.memo(zI,DL);const BI=(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()},$I=({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}`},WI=e=>({...dg,overflow:"hidden",boxSizing:"content-box",borderWidth:"rtl"===e?"1px 1px 0px 0px":"1px 0px 0px 1px"}),HI=({dataGridRef:e,height:t,rowHightCallback:r,width:n,showLastBorder:o,getRightGridColumnWidth:i,verticalScrollDirection:a,horizontalScrollDirection:l})=>{const{pageInfo:s,direction:u}=RC(),{layoutService:c,styleService:{grid:{divider:d},contentCellHeight:f}}=PC(),{dataModel:m,gridSectionsData:{measureData:h}}=vR(),b={...WI(u),borderColor:d,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},v=(({verticalScrollDirection:e,horizontalScrollDirection:t})=>{const{pageInfo:r}=RC(),{downloadService:n,viewService:o,layoutService:i}=PC(),{dataModel:a,gridSectionsData:{leftDimensionData:l,topDimensionData:s,measureData:u}}=vR(),c=l.columnCount,d=s.rowCount;return p((async({overscanColumnStartIndex:l,overscanColumnStopIndex:s,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{o.gridColumnStartIndex=l,o.gridRowStartIndex=p,o.gridWidth=s-l+1,o.gridHeight=f-p+1;const m=o.gridWidth+c+(t.current===ir.None?0:AL),h=o.gridHeight+d+(e.current===ir.None?0:AL);let g=BL;h*m>1500&&(g=$L),g(a,i,u,r,o,e,t,n)}),[o,i,a,u,e,t,r,c,d,n])})({verticalScrollDirection:a,horizontalScrollDirection:l});return $g((()=>{e.current&&e.current.resetAfterColumnIndex(0,!1)}),[e,m,h]),g((()=>{e.current&&e.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[n,t,e,f,u]),0===c.size.x?null:Yr.jsx(bL,{"data-section-id":"DATA_GRID",ref:e,style:b,columnCount:c.size.x,columnWidth:i,height:t,rowCount:s.rowsOnCurrentPage,rowHeight:r,width:n,itemData:{showLastBorder:o,grid:h},onItemsRendered:v,estimatedRowHeight:r(),estimatedColumnWidth:i(),itemKey:$I,direction:u,children:GI})};var VI=h(HI);function UI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YI(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const KI=(e,t)=>Yr.jsxs("svg",YI(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){UI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:[Yr.jsx("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"}),Yr.jsx("use",{fillRule:"evenodd"})]})),XI=d(KI),JI=e=>{const[t,r]=u(!1);return $g((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}},ZI=()=>{const[e,t]=u(!1),{dataModel:r}=vR(),{interactions:n}=MC(),{isAdjustingWidth:o,setIsAdjustingWidth:i}=JI([r]);return{open:e,setOpen:t,handleOpenMenu:e=>{!n.active||rI(e)||o||t(!0)},setIsAdjustingWidth:i}};function QI(e,t){var r,n;const o=null!==(r=null===(n=t.expressionColor)||void 0===n?void 0:n.background)&&void 0!==r?r:e.dimensionValues.background,i=t.isLeftColumn?e.header.background:o,a=i===sg.Transparent?fm.WHITE:i,l=ye(e.grid.border),s=ye(a);return s.isInvalid()||l.isInvalid()||1===l.a?e.grid.border:function(e,t,r){return ye(e.r+(t.r-e.r)*r,e.g+(t.g-e.g)*r,e.b+(t.b-e.b)*r,e.a+(t.a-e.a)*r)}(s,l,l.a).getRGB()}const eM=({cellInfo:e,columnWidth:t,isLastColumn:r,overrideLeftGridWidth:n,setIsAdjustingWidth:o,shouldApplyIndentModeColumnWidth:i,tableWidth:a})=>{var l;const{direction:s}=RC(),{interactions:c,translator:d}=MC(),{isActive:p}=iI(),{dataModel:f}=vR(),{styleService:m}=PC(),[,h]=u({});if(!(e.canBeResized&&!!c.active&&!p))return null;const g=QI(m,e);return Yr.jsx(SS,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:g,updateWidthCallback:t=>{h({}),n&&void 0!==e.colIdx&&n(t,e.colIdx)},confirmWidthCallback:t=>{var r;i?f.applyIndentModeColumnWidth({...t,pixels:Math.min((null!=a?a:0)*SR,null!==(r=t.pixels)&&void 0!==r?r:0)}):f.applyColumnWidth(t,e)},setIsAdjustingWidth:o,isLeftColumn:e.isLeftColumn,accessibilityRelatedArgs:{translator:d,columnLabel:null!==(l=e.label)&&void 0!==l?l:""},direction:s})};function tM(e){return uy(e)}const rM=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 oM(e){return mv("MuiPaper",e)}hv("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const iM=["className","component","elevation","square","variant"],aM=mS("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return hr({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&hr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${yy("#fff",bS(t.elevation))}, ${yy("#fff",bS(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),lM=r.forwardRef((function(e,t){const r=tM({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=Er(r,iM),u=hr({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Uv({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},oM,o)})(u);return Yr.jsx(aM,hr({as:o,ownerState:u,className:fl(c.root,n),ref:t},s))}));const sM=hv("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),uM=["center","classes","className"];let cM,dM,pM,fM,mM=e=>e;const hM=Ma(cM||(cM=mM`
101
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},Oh({exports:{}});const $h=(e,t=fm.TEXT,r=fm.WHITE)=>{const n=Dm(e),o=Dm(t),i=Dm(r);return n.isInvalid()?t:function(e,t,r){return Am(e,t)>Am(e,r)?t:r}(n,i,o).getRGB()},Wh=e=>{const t=e.getStyle("","","dataColors.selected")||fm.SELECTED,r=function(e,t){var r=Dm("#FFFFFF"),n=Dm(e),o=Dm(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;var i=Am(r,n),a=Am(o,n),l=i>a||i>4.5;return!l&&a>3?t:l?"#FFFFFF":"#000000"}(t,fm.TEXT);return{background:t,color:r}},Hh=(e,t)=>{const r=Dm(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},Vh=e=>!!e&&0===Dm(e).a,Uh=e=>{const t=Dm(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},Yh=e=>{e.stopPropagation(),e.preventDefault()},Kh=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:null!=n&&n,defaultValue(e,t,o){var i;const a=null!==(i=null==n?void 0:n(e,t,o))&&void 0!==i&&i,l=o.theme.current(),s=r(l,a);return{color:"transparent"===s?"none":s}}}),Xh=(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},Jh=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:"Source Sans Pro, sans-serif",l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>Xh(e,!0)))],c=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},..._m(n).filter((e=>!s.includes(e))).map((e=>Xh(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),Zh=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Qh=({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=>Xh(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...Zh.filter((e=>!a.includes(e))).map((e=>Xh(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),eg=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:null!=i?i:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:Jh({ref:`${e}.fontFamily`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontFamily"))&&void 0!==r?r:t.fontFamily},translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:Qh({ref:`${e}.fontSize`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontSize"))&&void 0!==r?r:t.fontSize},translator:r}),fontColor:Kh(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=o(t,e,"color"))&&void 0!==r?r:t.color}))}},background:Kh(`${e}.background`,"properties.background",((t,r)=>{var n;const i=r?fm.WHITE:fm.TRANSPARENT;return null!==(n=o(t,e,"backgroundColor"))&&void 0!==n?n:i}),a)}}}}),tg=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:Kh(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=n(t,e,"color"))&&void 0!==r?r:t.color}))}},background:Kh(`${e}.background`,"properties.background",(t=>{var o,i;return null!==(o=null!==(i=n(t,e,"backgroundColor"))&&void 0!==i?i:r)&&void 0!==o?o:"transparent"}))}}}}),rg=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),ng="12px",og="Source Sans Pro, sans-serif",ig="600",ag=15e3,lg=4/3;var sg,ug;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(sg||(sg={})),function(e){e.Solid="solid",e.None="none"}(ug||(ug={}));const cg={display:"flex",justifyContent:"center",alignItems:"center"},dg={borderStyle:"solid"},pg={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},fg={lineHeight:lg,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},mg=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),hg=(e,t)=>e>0?`${e}px ${ug.Solid} ${t}`:ug.None,gg=(e,t,r,n,o)=>{const i=Number(!t||(null==o?void 0:o.right)),a=Number(!e||(null==o?void 0:o.bottom));return{borderRight:"rtl"!==n?hg(i,r):ug.None,borderBottom:hg(a,r),borderLeft:"rtl"===n?hg(i,r):ug.None,borderTop:ug.None}},bg=(e,t,r,n,o,i,a)=>{const l=gg(t,n,o,i,a);return e.isLeftDimension||(e.isLastDimension&&!t&&(l.borderBottom=hg(2,o)),r||(l.borderLeft="rtl"!==i?hg(1,o):"none",l.borderRight="rtl"===i?hg(1,o):"none")),l},vg=({bottomDivider:e,rightDivider:t,borderColor:r})=>{const n={};return e&&(n.borderBottom=hg(1,r)),t&&(n.borderRight=hg(1,r)),n},yg=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:rg("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?rg("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:Kh("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:sg.DividerLight})),divider:Kh("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:sg.DividerDark})),background:Kh("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:sg.Transparent}))}}}}),xg=(e,t,r)=>{var n,o,i,a,l,s;switch(t){case"header":return null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.dimension)||void 0===n||null===(n=n.label)||void 0===n||null===(n=n.name)||void 0===n?void 0:n[r];case"dimensionValues":return null===(o=e.object)||void 0===o||null===(o=o.pivotTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[r];case"measureLabels":return null===(i=e.object)||void 0===i||null===(i=i.pivotTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i[r];case"measureValues":return null===(a=e.object)||void 0===a||null===(a=a.pivotTableV2)||void 0===a||null===(a=a.measure)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[r];case"totalValues":return null===(l=e.object)||void 0===l||null===(l=l.pivotTableV2)||void 0===l||null===(l=l.total)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[r];case"nullValues":return null===(s=e.object)||void 0===s||null===(s=s.pivotTableV2)||void 0===s||null===(s=s.null)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[r];default:return}},Sg=(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:eg({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:xg}),dimensionValueSection:eg({section:"dimensionValues",translator:e,flags:t,getThemeValue:xg}),measureValueSection:eg({section:"measureValues",translator:e,flags:t,getThemeValue:xg}),measureLabelSection:tg({section:"measureLabels",getThemeValue:xg}),totalValuesSection:tg({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:xg}),nullValuesSection:tg({section:"nullValues",fallbackBackground:sg.NullValueBackground,getThemeValue:xg}),gridSection:yg(t)}}]}),Eg=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[Sg(e,t),{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},indentMode:{ref:"qHyperCubeDef.qIndentMode",type:"boolean",translation:"properties.pivot.indentMode",defaultValue:!1,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}},type:{type:"string",component:"dropdown",ref:"qHyperCubeDef.indentModeColumnWidth.type",translation:"Object.Table.Column.Width",options:[{value:$t.Auto,translation:"Common.Auto"},{value:$t.Pixels,translation:"Object.Table.Column.Pixels"},{value:$t.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:$t.Auto,show:e=>!!e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:Bt.PixelsDefault,show:e=>{var t;const r=e.qHyperCubeDef;return r.qIndentMode&&(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.type)===$t.Pixels},change:e=>{var t;const r=e.qHyperCubeDef;void 0!==(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.pixels)&&(r.indentModeColumnWidth.pixels=Math.max(Bt.PixelsMin,Math.min(Bt.PixelsMax,r.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:Bt.PercentageDefault,show:e=>{var t;const r=e.qHyperCubeDef;return r.qIndentMode&&(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.type)===$t.Percentage},change:e=>{var t;const r=e.qHyperCubeDef;void 0!==(null===(t=r.indentModeColumnWidth)||void 0===t?void 0:t.percentage)&&(r.indentModeColumnWidth.percentage=Math.max(Bt.PercentageMin,Math.min(Bt.PercentageMaxInIndentMode,r.indentModeColumnWidth.percentage)))}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(e){const{qIndentMode:t}=e.qHyperCubeDef;return!t&&!!e.qHyperCubeDef.qDimensions.some((e=>{var t;return"TOTAL_EXPR"===(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qTotalMode)}))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>!!e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,r,n){e.qHyperCubeDef.qExpansionState=[],n.$emit("saveProperties",e)}}}}]}}}),Cg="auto",wg={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>{t("integer",e?-1:0)}},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>!!e.qHyperCubeDef.qSortbyYValue}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:Cg,translation:"Object.Table.SortingInSearch",options:[{value:Cg,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function Rg(e){const{translator:t,flags:r}=e;return{type:"items",component:"accordion",items:{data:mr(e),sorting:wg,addons:qt,settings:Eg(t,r)}}}function Lg(e){return{support:{cssScaling:!0,snapshot:!0,export:!0,sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:Rg(e),importProperties:Tt(e),exportProperties:_t}}const Ig=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function Mg(e,t){return y((()=>e),t)}const Dg={},Ag=e=>{const t=y((()=>({current:Dg})),[]);return t.current=t.current===Dg?e:t.current,t},Pg=()=>{const{viewState:e}=x(),t=Ag(new Set),r=void 0!==e,{promise:n,resolve:o}=y((()=>Ig()),[]),i=Mg((e=>{r&&t.current.add(e)}),[t]),a=Mg(function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}((async()=>{await Promise.all(t.current),t.current.clear(),o()}),1e3),[o,t]);return S((async()=>{r&&await n}),[n,r]),y((()=>({viewState:e,isDownloadedAsPDForImage:r,notifyIsDoneRendering:a,waitForPromise:i})),[a,r,e,i])},Og="#grid",kg=(e,t)=>{const r=null==t?void 0:t.closest(e);return r&&window.getComputedStyle(r).backgroundColor},Tg=(e,t,r,n,o)=>{const i=kg(".qv-object .qv-inner-object",r),a=kg(".qv-panel-sheet",r),l=kg(Og,r),s=null!=l?l:a,u=(e=>{var t,r,n,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(r=l.bgColor)||void 0===r?void 0:r.colorExpression,u=null==l||null===(n=l.bgColor)||void 0===n||null===(n=n.color)||void 0===n?void 0:n.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return Uh(s);if("none"===u)return"transparent";if(void 0===u)return;const c=Dm(u);return c.setAlpha(null!==(i=null==l||null===(a=l.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.a),c.getRGBA()})(e),c=null==n?void 0:n(t),d=null==o?void 0:o(t),p=c||i||d,f=Vh(p),m=!Vh(h=f?s:p)&&$h(h,fm.TEXT,fm.DARK_MODE_TEXT)===wm(fm.DARK_MODE_TEXT);var h;const g=((e,t,r,n=fm.WHITE)=>e&&!Vh(e)?e:Vh(t)?r&&!Vh(r)?r:n:t)(u,p,s);return{color:p,headerColor:g,isDark:m}},_g=(e,t,r,n)=>{const o=w(),i=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,n]=E([]);return C((()=>{let r;return e&&(r=new MutationObserver((e=>{n(e)})),r.observe(e,t)),()=>{var e;null===(e=r)||void 0===e||e.disconnect()}}),[e,t]),r})(t.closest(Og),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return y((()=>({...o,background:Tg(e,o,t,r,n)})),[o.name(),t,r,n,e,i])};function qg(e,t){const r=y((()=>({isLoading:!0})),t),[n,o]=S((async()=>{try{return await e()}finally{r.isLoading=!1}}),t);return[n,r.isLoading,o]}const Ng=3;function Fg(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 jg({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=Ng}={},{estimateWidth:a,measureText:l,estimateLineCount:u}=s((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=_h(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=_h((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=Fg(o,t,l)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:s}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:u}}var zg,Gg=F;zg=Gg.createRoot,Gg.hydrateRoot;const Bg="Source Sans Pro, sans-serif";function $g(e,t){const[r,n]=u(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var Wg={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","zh-CN":"折叠","zh-TW":"收合"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","zh-CN":"展开","zh-TW":"展開"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const Hg=({translator:e})=>(s((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Wg).forEach((t=>{e.add(Wg[t])}))}}(e)}),[e]),e);function Vg(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 Ug=Object.freeze({__proto__:null,default:Vg}),Yg="$$material";function Kg(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 Xg(e){if(r.isValidElement(e)||!Kg(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Xg(e[r])})),t}function Jg(e,t,n={clone:!0}){const o=n.clone?hr({},e):e;return Kg(e)&&Kg(t)&&Object.keys(t).forEach((i=>{r.isValidElement(t[i])?o[i]=t[i]:Kg(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Kg(e[i])?o[i]=Jg(e[i],t[i],n):n.clone?o[i]=Kg(t[i])?Xg(t[i]):t[i]:o[i]=t[i]})),o}var Zg=Object.freeze({__proto__:null,default:Jg,isPlainObject:Kg});const Qg=["values","unit","step"];function eb(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Er(e,Qg),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>hr({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return hr({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const tb={borderRadius:4};function rb(e,t){return t?Jg(e,t,{clone:!1}):e}const nb={xs:0,sm:600,md:900,lg:1200,xl:1536},ob={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${nb[e]}px)`};function ib(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||ob;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||ob;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||nb).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function ab(e){if("string"!=typeof e)throw new Error(Vg(7));return e.charAt(0).toUpperCase()+e.slice(1)}var lb=Object.freeze({__proto__:null,default:ab});function sb(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 ub(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:sb(e,r)||n,t&&(o=t(o,n,e)),o}function cb(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=sb(e.theme,n)||{};return ib(e,i,(e=>{let n=ub(a,o,e);return e===n&&"string"==typeof e&&(n=ub(a,o,`${t}${"default"===e?"":ab(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const db={m:"margin",p:"padding"},pb={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},fb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},mb=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!fb[e])return[e];e=fb[e]}const[t,r]=e.split(""),n=db[t],o=pb[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),hb=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],gb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function bb(e,t,r,n){var o;const i=null!=(o=sb(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 vb(e){return bb(e,"spacing",8)}function yb(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 xb(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=yb(t,r),e)),{})}(mb(r),n);return ib(e,e[r],o)}function Sb(e,t){const r=vb(e.theme);return Object.keys(e).map((n=>xb(e,t,n,r))).reduce(rb,{})}function Eb(e){return Sb(e,hb)}function Cb(e){return Sb(e,gb)}function wb(...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]?rb(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Rb(e){return"number"!=typeof e?e:`${e}px solid`}function Lb(e,t){return cb({prop:e,themeKey:"borders",transform:t})}Eb.propTypes={},Eb.filterProps=hb,Cb.propTypes={},Cb.filterProps=gb;const Ib=Lb("border",Rb),Mb=Lb("borderTop",Rb),Db=Lb("borderRight",Rb),Ab=Lb("borderBottom",Rb),Pb=Lb("borderLeft",Rb),Ob=Lb("borderColor"),kb=Lb("borderTopColor"),Tb=Lb("borderRightColor"),_b=Lb("borderBottomColor"),qb=Lb("borderLeftColor"),Nb=Lb("outline",Rb),Fb=Lb("outlineColor"),jb=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=bb(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:yb(t,e)});return ib(e,e.borderRadius,r)}return null};jb.propTypes={},jb.filterProps=["borderRadius"],wb(Ib,Mb,Db,Ab,Pb,Ob,kb,Tb,_b,qb,jb,Nb,Fb);const zb=e=>{if(void 0!==e.gap&&null!==e.gap){const t=bb(e.theme,"spacing",8),r=e=>({gap:yb(t,e)});return ib(e,e.gap,r)}return null};zb.propTypes={},zb.filterProps=["gap"];const Gb=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=bb(e.theme,"spacing",8),r=e=>({columnGap:yb(t,e)});return ib(e,e.columnGap,r)}return null};Gb.propTypes={},Gb.filterProps=["columnGap"];const Bb=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=bb(e.theme,"spacing",8),r=e=>({rowGap:yb(t,e)});return ib(e,e.rowGap,r)}return null};Bb.propTypes={},Bb.filterProps=["rowGap"];function $b(e,t){return"grey"===t?t:e}wb(zb,Gb,Bb,cb({prop:"gridColumn"}),cb({prop:"gridRow"}),cb({prop:"gridAutoFlow"}),cb({prop:"gridAutoColumns"}),cb({prop:"gridAutoRows"}),cb({prop:"gridTemplateColumns"}),cb({prop:"gridTemplateRows"}),cb({prop:"gridTemplateAreas"}),cb({prop:"gridArea"}));function Wb(e){return e<=1&&0!==e?100*e+"%":e}wb(cb({prop:"color",themeKey:"palette",transform:$b}),cb({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:$b}),cb({prop:"backgroundColor",themeKey:"palette",transform:$b}));const Hb=cb({prop:"width",transform:Wb}),Vb=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])||nb[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:Wb(t)}};return ib(e,e.maxWidth,t)}return null};Vb.filterProps=["maxWidth"];const Ub=cb({prop:"minWidth",transform:Wb}),Yb=cb({prop:"height",transform:Wb}),Kb=cb({prop:"maxHeight",transform:Wb}),Xb=cb({prop:"minHeight",transform:Wb});cb({prop:"size",cssProperty:"width",transform:Wb}),cb({prop:"size",cssProperty:"height",transform:Wb});wb(Hb,Vb,Ub,Yb,Kb,Xb,cb({prop:"boxSizing"}));const Jb={border:{themeKey:"borders",transform:Rb},borderTop:{themeKey:"borders",transform:Rb},borderRight:{themeKey:"borders",transform:Rb},borderBottom:{themeKey:"borders",transform:Rb},borderLeft:{themeKey:"borders",transform:Rb},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Rb},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:jb},color:{themeKey:"palette",transform:$b},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:$b},backgroundColor:{themeKey:"palette",transform:$b},p:{style:Cb},pt:{style:Cb},pr:{style:Cb},pb:{style:Cb},pl:{style:Cb},px:{style:Cb},py:{style:Cb},padding:{style:Cb},paddingTop:{style:Cb},paddingRight:{style:Cb},paddingBottom:{style:Cb},paddingLeft:{style:Cb},paddingX:{style:Cb},paddingY:{style:Cb},paddingInline:{style:Cb},paddingInlineStart:{style:Cb},paddingInlineEnd:{style:Cb},paddingBlock:{style:Cb},paddingBlockStart:{style:Cb},paddingBlockEnd:{style:Cb},m:{style:Eb},mt:{style:Eb},mr:{style:Eb},mb:{style:Eb},ml:{style:Eb},mx:{style:Eb},my:{style:Eb},margin:{style:Eb},marginTop:{style:Eb},marginRight:{style:Eb},marginBottom:{style:Eb},marginLeft:{style:Eb},marginX:{style:Eb},marginY:{style:Eb},marginInline:{style:Eb},marginInlineStart:{style:Eb},marginInlineEnd:{style:Eb},marginBlock:{style:Eb},marginBlockStart:{style:Eb},marginBlockEnd:{style:Eb},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:zb},rowGap:{style:Bb},columnGap:{style:Gb},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Wb},maxWidth:{style:Vb},minWidth:{transform:Wb},height:{transform:Wb},maxHeight:{transform:Wb},minHeight:{transform:Wb},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Zb(){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=sb(r,l)||{};if(u)return u(o);return ib(o,t,(t=>{let r=ub(c,s,t);return t===r&&"string"==typeof t&&(r=ub(c,s,`${e}${"default"===t?"":ab(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:Jb;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=rb(s,e(r,o,i,a));else{const e=ib({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=rb(s,e):s[r]=t({sx:o,theme:i})}else s=rb(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 Qb=Zb();function ev(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}Qb.filterProps=["sx"];const tv=["breakpoints","palette","spacing","shape"];function rv(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Er(e,tv),l=eb(r),s=function(e=8){if(e.mui)return e;const t=vb({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=Jg({breakpoints:l,direction:"ltr",components:{},palette:hr({mode:"light"},n),spacing:s,shape:hr({},tb,i)},a);return u.applyStyles=ev,u=t.reduce(((e,t)=>Jg(e,t)),u),u.unstable_sxConfig=hr({},Jb,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Qb({sx:e,theme:this})},u}var nv=Object.freeze({__proto__:null,default:rv,private_createBreakpoints:eb,unstable_applyStyles:ev});function ov(e=null){const t=r.useContext(va);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const iv=rv();function av(e=iv){return ov(e)}const lv=["sx"];function sv(e){const{sx:t}=e,r=Er(e,lv),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:Jb;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return Kg(r)?hr({},n,r):n}:hr({},n,t),hr({},o,{sx:i})}var uv=Object.freeze({__proto__:null,default:Qb,extendSxProp:sv,unstable_createStyleFunctionSx:Zb,unstable_defaultSxConfig:Jb});const cv=e=>e,dv=(()=>{let e=cv;return{configure(t){e=t},generate:t=>e(t),reset(){e=cv}}})(),pv=["className","component"];const fv={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function mv(e,t,r="Mui"){const n=fv[t];return n?`${r}-${n}`:`${dv.generate(e)}-${t}`}function hv(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=mv(e,t,r)})),n}const gv=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function bv(e){const t=`${e}`.match(gv);return t&&t[1]||""}function vv(e,t=""){return e.displayName||e.name||bv(e)||t}function yv(e,t,r){const n=vv(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var xv=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return vv(e,"Component");if("object"==typeof e)switch(e.$$typeof){case tl.ForwardRef:return yv(e,e.render,"ForwardRef");case tl.Memo:return yv(e,e.type,"memo");default:return}}},getFunctionName:bv});function Sv(e,t){const r=hr({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=hr({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=hr({},i),Object.keys(o).forEach((e=>{r[n][e]=Sv(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const Ev="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function Cv(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var wv=Object.freeze({__proto__:null,default:Cv});function Rv(e){if(e.type)return e;if("#"===e.charAt(0))return Rv(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(Vg(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(Vg(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Lv(e,t){return e=Rv(e),t=function(e,t=0,r=1){return Cv(e,t,r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function Iv(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function Mv(e){return e&&e.ownerDocument||document}function Dv(e){return Mv(e).defaultView||window}function Av(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Pv(e){const t=r.useRef(e);return Ev((()=>{t.current=e})),r.useRef(((...e)=>(0,t.current)(...e))).current}function Ov(...e){return r.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Av(e,t)}))}),e)}const kv={};const Tv=[];class _v{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new _v}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function qv(){const e=function(e,t){const n=r.useRef(kv);return n.current===kv&&(n.current=e(t)),n}(_v.create).current;return function(e){r.useEffect(e,Tv)}(e.disposeEffect),e}let Nv=!0,Fv=!1;const jv=new _v,zv={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Gv(e){e.metaKey||e.altKey||e.ctrlKey||(Nv=!0)}function Bv(){Nv=!1}function $v(){"hidden"===this.visibilityState&&Fv&&(Nv=!0)}function Wv(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Nv||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!zv[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Hv(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Gv,!0),t.addEventListener("mousedown",Bv,!0),t.addEventListener("pointerdown",Bv,!0),t.addEventListener("touchstart",Bv,!0),t.addEventListener("visibilitychange",$v,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Wv(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Fv=!0,jv.start(100,(()=>{Fv=!1})),t.current=!1,!0)},ref:e}}function Vv(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Uv(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}function Yv(e){return"string"==typeof e}function Kv(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function Xv(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}const Jv=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Zv(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Er(e,Jv),l=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=fl(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=hr({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=hr({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Kv(hr({},o,n)),l=Xv(n),s=Xv(o),u=t(a),c=fl(null==u?void 0:u.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),d=hr({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=hr({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(hr({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||Yv(e)?t:hr({},t,{ownerState:hr({},t.ownerState,r)})}(r,hr({},s,{ref:Ov(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function Qv(e){var t;return parseInt(r.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const ey=r.createContext(null);function ty(){return r.useContext(ey)}var ry="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function ny(e){const{children:t,theme:n}=e,o=ty(),i=r.useMemo((()=>{const e=null===o?n:function(e,t){if("function"==typeof t)return t(e);return hr({},e,t)}(o,n);return null!=e&&(e[ry]=null!==o),e}),[n,o]);return Yr.jsx(ey.Provider,{value:i,children:t})}const oy=["value"],iy=r.createContext();function ay(e){let{value:t}=e,r=Er(e,oy);return Yr.jsx(iy.Provider,hr({value:null==t||t},r))}const ly=r.createContext(void 0);function sy({value:e,children:t}){return Yr.jsx(ly.Provider,{value:e,children:t})}function uy({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Sv(o.defaultProps,n):o.styleOverrides||o.variants?n:Sv(o,n)}({props:e,name:t,theme:{components:r.useContext(ly)}})}const cy={};function dy(e,t,n,o=!1){return r.useMemo((()=>{const r=e&&t[e]||t;if("function"==typeof n){const i=n(r),a=e?hr({},t,{[e]:i}):i;return o?()=>a:a}return hr({},t,e?{[e]:n}:n)}),[e,t,n,o])}function py(e){const{children:t,theme:r,themeId:n}=e,o=ov(cy),i=ty()||cy,a=dy(n,o,r),l=dy(n,i,r,!0),s="rtl"===a.direction;return Yr.jsx(ny,{theme:l,children:Yr.jsx(va.Provider,{value:a,children:Yr.jsx(ay,{value:s,children:Yr.jsx(sy,{value:null==a?void 0:a.components,children:t})})})})}var fy={},my={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(my);var hy=my.exports,gy=$(Ug),by=$(wv),vy=hy;Object.defineProperty(fy,"__esModule",{value:!0});var yy=fy.alpha=Oy;fy.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=Iy(e),a=Iy(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Dy({type:"rgb",values:l})},fy.colorChannel=void 0;var xy=fy.darken=ky;fy.decomposeColor=Iy,fy.emphasize=_y;var Sy=fy.getContrastRatio=function(e,t){const r=Py(e),n=Py(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};fy.getLuminance=Py,fy.hexToRgb=Ly,fy.hslToRgb=Ay;var Ey=fy.lighten=Ty;fy.private_safeAlpha=function(e,t,r){try{return Oy(e,t)}catch(t){return e}},fy.private_safeColorChannel=void 0,fy.private_safeDarken=function(e,t,r){try{return ky(e,t)}catch(t){return e}},fy.private_safeEmphasize=function(e,t,r){try{return _y(e,t)}catch(t){return e}},fy.private_safeLighten=function(e,t,r){try{return Ty(e,t)}catch(t){return e}},fy.recomposeColor=Dy,fy.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Iy(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var Cy=vy(gy),wy=vy(by);function Ry(e,t=0,r=1){return(0,wy.default)(e,t,r)}function Ly(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Iy(e){if(e.type)return e;if("#"===e.charAt(0))return Iy(Ly(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,Cy.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,Cy.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const My=e=>{const t=Iy(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};fy.colorChannel=My;function Dy(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 Ay(e){e=Iy(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Dy({type:l,values:s})}function Py(e){let t="hsl"===(e=Iy(e)).type||"hsla"===e.type?Iy(Ay(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 Oy(e,t){return e=Iy(e),t=Ry(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Dy(e)}function ky(e,t){if(e=Iy(e),t=Ry(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Dy(e)}function Ty(e,t){if(e=Iy(e),t=Ry(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Dy(e)}function _y(e,t=.15){return Py(e)>.5?ky(e,t):Ty(e,t)}fy.private_safeColorChannel=(e,t)=>{try{return My(e)}catch(t){return e}};const qy={black:"#000",white:"#fff"},Ny={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Fy="#f3e5f5",jy="#ce93d8",zy="#ba68c8",Gy="#ab47bc",By="#9c27b0",$y="#7b1fa2",Wy="#e57373",Hy="#ef5350",Vy="#f44336",Uy="#d32f2f",Yy="#c62828",Ky="#ffb74d",Xy="#ffa726",Jy="#ff9800",Zy="#f57c00",Qy="#e65100",ex="#e3f2fd",tx="#90caf9",rx="#42a5f5",nx="#1976d2",ox="#1565c0",ix="#4fc3f7",ax="#29b6f6",lx="#03a9f4",sx="#0288d1",ux="#01579b",cx="#81c784",dx="#66bb6a",px="#4caf50",fx="#388e3c",mx="#2e7d32",hx="#1b5e20",gx=["mode","contrastThreshold","tonalOffset"],bx={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:qy.white,default:qy.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},vx={text:{primary:qy.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:qy.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function yx(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=Ey(e.main,o):"dark"===t&&(e.dark=xy(e.main,i)))}function xx(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Er(e,gx),i=e.primary||function(e="light"){return"dark"===e?{main:tx,light:ex,dark:rx}:{main:nx,light:rx,dark:ox}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:jy,light:Fy,dark:Gy}:{main:By,light:zy,dark:$y}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Vy,light:Wy,dark:Uy}:{main:Uy,light:Hy,dark:Yy}}(t),s=e.info||function(e="light"){return"dark"===e?{main:ax,light:ix,dark:sx}:{main:sx,light:lx,dark:ux}}(t),u=e.success||function(e="light"){return"dark"===e?{main:dx,light:cx,dark:fx}:{main:mx,light:px,dark:hx}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Xy,light:Ky,dark:Zy}:{main:"#ed6c02",light:Jy,dark:Qy}}(t);function d(e){return Sy(e,vx.text.primary)>=r?vx.text.primary:bx.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=hr({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Vg(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Vg(12,t?` (${t})`:"",JSON.stringify(e.main)));return yx(e,"light",o,n),yx(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:vx,light:bx};return Jg(hr({common:hr({},qy),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:Ny,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Sx=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ex={textTransform:"uppercase"},Cx='"Roboto", "Helvetica", "Arial", sans-serif';function wx(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Cx,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Er(r,Sx),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return hr({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===Cx?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,Ex),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Ex),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Jg(hr({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Rx(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Lx=["none",Rx(0,2,1,-1,0,1,1,0,0,1,3,0),Rx(0,3,1,-2,0,2,2,0,0,1,5,0),Rx(0,3,3,-2,0,3,4,0,0,1,8,0),Rx(0,2,4,-1,0,4,5,0,0,1,10,0),Rx(0,3,5,-1,0,5,8,0,0,1,14,0),Rx(0,3,5,-1,0,6,10,0,0,1,18,0),Rx(0,4,5,-2,0,7,10,1,0,2,16,1),Rx(0,5,5,-3,0,8,10,1,0,3,14,2),Rx(0,5,6,-3,0,9,12,1,0,3,16,2),Rx(0,6,6,-3,0,10,14,1,0,4,18,3),Rx(0,6,7,-4,0,11,15,1,0,4,20,3),Rx(0,7,8,-4,0,12,17,2,0,5,22,4),Rx(0,7,8,-4,0,13,19,2,0,5,24,4),Rx(0,7,9,-4,0,14,21,2,0,5,26,4),Rx(0,8,9,-5,0,15,22,2,0,6,28,5),Rx(0,8,10,-5,0,16,24,2,0,6,30,5),Rx(0,8,11,-5,0,17,26,2,0,6,32,5),Rx(0,9,11,-5,0,18,28,2,0,7,34,6),Rx(0,9,12,-6,0,19,29,2,0,7,36,6),Rx(0,10,13,-6,0,20,31,3,0,8,38,7),Rx(0,10,13,-6,0,21,33,3,0,8,40,7),Rx(0,10,14,-6,0,22,35,3,0,8,42,7),Rx(0,11,14,-7,0,23,36,3,0,9,44,8),Rx(0,11,15,-7,0,24,38,3,0,9,46,8)],Ix=["duration","easing","delay"],Mx={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)"},Dx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ax(e){return`${Math.round(e)}ms`}function Px(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Ox(e){const t=hr({},Mx,e.easing),r=hr({},Dx,e.duration);return hr({getAutoHeightDuration:Px,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Er(n,Ix),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Ax(o)} ${i} ${"string"==typeof a?a:Ax(a)}`)).join(",")}},e,{easing:t,duration:r})}const kx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Tx=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function _x(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Er(e,Tx);if(e.vars&&void 0===e.generateCssVars)throw new Error(Vg(18));const l=xx(n),s=rv(e);let u=Jg(s,{mixins:(c=s.breakpoints,d=r,hr({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Lx.slice(),typography:wx(l,i),transitions:Ox(o),zIndex:hr({},kx)});var c,d;return u=Jg(u,a),u=t.reduce(((e,t)=>Jg(e,t)),u),u.unstable_sxConfig=hr({},Jb,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Qb({sx:e,theme:this})},u}const qx=_x();function Nx(){const e=av(qx);return e[Yg]||e}var Fx,jx={},zx={exports:{}};var Gx,Bx={exports:{}};var $x=$(Ta),Wx=$(Zg),Hx=$(lb),Vx=$(xv),Ux=$(nv),Yx=$(uv),Kx=hy;Object.defineProperty(jx,"__esModule",{value:!0});var Xx=jx.default=function(e={}){const{themeId:t,defaultTheme:r=sS,rootShouldForwardProp:n=lS,slotShouldForwardProp:o=lS}=e,i=e=>(0,rS.default)((0,Jx.default)({},e,{theme:cS((0,Jx.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Qx.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=dS(uS(s))}=a,p=(0,Zx.default)(a,iS),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=lS;"Root"===s||"root"===s?h=n:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,Qx.default)(e,(0,Jx.default)({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,eS.isPlainObject)(e)?n=>pS(e,(0,Jx.default)({},n,{theme:cS({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=cS((0,Jx.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]=pS(r,(0,Jx.default)({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=cS((0,Jx.default)({},e,{defaultTheme:r,themeId:t}));return pS({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},(0,Jx.default)({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};jx.shouldForwardProp=lS,jx.systemDefaultTheme=void 0;var Jx=Kx((Fx||(Fx=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(zx)),zx.exports)),Zx=Kx((Gx||(Gx=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(Bx)),Bx.exports)),Qx=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=aS(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}($x),eS=Wx;Kx(Hx),Kx(Vx);var tS=Kx(Ux),rS=Kx(Yx);const nS=["ownerState"],oS=["variants"],iS=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function aS(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(aS=function(e){return e?r:t})(e)}function lS(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const sS=jx.systemDefaultTheme=(0,tS.default)(),uS=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function cS({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function dS(e){return e?(t,r)=>r[e]:null}function pS(e,t){let{ownerState:r}=t,n=(0,Zx.default)(t,nS);const o="function"==typeof e?e((0,Jx.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>pS(e,(0,Jx.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Zx.default)(o,oS);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,Jx.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,Jx.default)({ownerState:r},n,r)):e.style))})),t}return o}const fS=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,mS=Xx({themeId:Yg,defaultTheme:qx,rootShouldForwardProp:fS}),hS=["theme"];function gS(e){let{theme:t}=e,r=Er(e,hS);const n=t[Yg];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=hr({},n,{vars:null}):t&&!t.vars&&(o=hr({},t,{vars:null}))),Yr.jsx(py,hr({},r,{themeId:n?Yg:void 0,theme:o}))}const bS=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},vS={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},yS={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},xS=qu("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t,dir:r})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===r?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...vS},"&::-moz-range-track":{...vS},"&::-ms-track":{...vS},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...yS},"&::-moz-range-thumb":{...yS},"&::-ms-thumb":{...yS},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}}))),SS=({columnWidth:e,keyValue:r,isLastColumn:n,isPivot:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:l,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:d,accessibilityRelatedArgs:p,direction:f="ltr"})=>{const m=Hg({translator:p.translator}),h=c({initWidth:e,columnWidth:e,initX:0}),g=n?0:1,b=o&&!d,v=()=>b?h.current.columnWidth-g:"100%",y={left:"rtl"!==f?v():void 0,right:"rtl"===f?v():void 0},x=t=>{h.current={initWidth:e,columnWidth:e,initX:null!=t?t:h.current.initX}};$g((()=>{b&&x()}),[e]);const S=e=>{const t=Math.max(e,Bt.PixelsMin);h.current.columnWidth=t,a(t)},E=()=>{if(h.current.columnWidth!==h.current.initWidth){const e={type:$t.Pixels,pixels:h.current.columnWidth};l(e)}else null==u||u(!1)},C=e=>{const t="rtl"===f?h.current.initWidth+h.current.initX-e.clientX:h.current.initWidth+e.clientX-h.current.initX;S(t)},w=e=>{Yh(e),document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",w),E()},R=e=>{const t="rtl"===f?h.current.initWidth+-h.current.initX-e.touches[0].clientX:h.current.initWidth+e.touches[0].clientX-h.current.initX;S(t)},L=e=>{Yh(e),document.removeEventListener("touchmove",R),document.removeEventListener("touchend",L),E()},I=!o&&s?e=>{if(e.key===zt.Left||e.key===zt.Right){Yh(e);const t=5,r=e.key===zt.Left?t:-5,n="rtl"===f?r:-r;S(h.current.columnWidth+n)}else e.key===zt.Space||e.key===zt.Enter?(Yh(e),s(e),E()):e.key===zt.Esc&&(Yh(e),s(e),S(h.current.initWidth))}:void 0,M=m.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(p.columnLabel)]);return t.createElement(xS,{style:y,key:r,hoverColor:i,isLastColumn:n,className:Gt,"data-testid":Gt,onMouseDown:e=>{Yh(e),document.addEventListener("mousemove",C),document.addEventListener("mouseup",w),null==u||u(!0),x(e.clientX)},onDoubleClick:()=>{l({type:$t.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(Yh(e),document.addEventListener("touchmove",R),document.addEventListener("touchend",L),null==u||u(!0),x(e.touches[0].clientX))},onKeyDown:I,onBlur:s,onFocus:()=>{x()},type:"range",tabIndex:-1,max:Bt.PixelsMax,"aria-label":M,"aria-valuemin":Bt.PixelsMin,"aria-valuemax":Bt.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:f})};function ES(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const CS=(e,r)=>t.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){ES(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:r},e),t.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),wS=d(CS);function RS(){return RS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},RS.apply(null,arguments)}const LS=qu(Xd,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),IS=qu(wS,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),MS=qu(Sf)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),DS=qu(bp)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),AS=qu(Lf)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),PS=qu(Lf,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:r?"rgba(0, 0, 0, 0.05)":"transparent"}))),OS=qu("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),kS=qu("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),TS=qu(td)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),_S=qu(Up,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})));function qS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const NS=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){qS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),FS=d(NS),jS=e=>{const t=e.nextElementSibling;var r;return t?"HR"===t.tagName?jS(t):t:null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[0]},zS=e=>{const t=e.previousElementSibling;if(!t){var r,n;const t=null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r.length;return null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[t-1]}return"HR"===t.tagName?zS(t):t},GS=e=>{var t;const{key:r,currentTarget:n}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:n;if(r===zt.Down||r===zt.Up){const t=e=>r===zt.Down?jS(e):zS(e);e.preventDefault(),e.stopPropagation();let n=t(o);for(;n;){if("true"!==n.ariaDisabled){n.focus();break}n=t(n)}}};let BS={};const $S=({autoFocus:e,id:r,onClick:n,itemTitle:o,icon:i,enabled:a,subMenus:l,isSubMenu:s,isActive:d,direction:f,isPagination:m})=>{const[h,g]=u(!1),b=c(null),v=p((e=>{e.stopPropagation(),g(!1)}),[g]);return t.createElement(t.Fragment,null,t.createElement(PS,{ref:l?b:null,key:r,"data-testid":`menu-item-${r}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),BS={}),null!=l&&l.length&&(g(!0),BS[o]=g))},disabled:!a,autoFocus:e,isSubMenu:!!s,isActive:!!d,onKeyDown:GS},d?t.createElement(OS,{direction:f,isPagination:m}):null,t.createElement(kS,null,t.createElement(_S,{direction:f,isPagination:m},t.createElement(i,null)),t.createElement(TS,{variant:"body2"},o)),null!=l&&l.length?t.createElement(FS,null):null),null!=l&&l.length?t.createElement(VS,{isSubMenu:!0,open:h,anchorEl:b.current,onClose:v,menuGroups:(y=l,x=BS,y.map((e=>e.map((e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(x).forEach((([,e])=>{e(!1)})),await e(t)}}:{}})))})))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:f,isPagination:m}):null);var y,x},WS=({menuGroup:e,isSubMenu:r,direction:n,isPagination:o})=>e.map((e=>[[e.groupHeading&&t.createElement(AS,{key:e.groupHeading,disabled:!0,style:{opacity:1}},e.groupHeading),e.items.map((e=>t.createElement($S,RS({key:e.id},e,{isSubMenu:r,direction:n,isPagination:o}))))].filter(Boolean)])),HS={appear:0,enter:0,exit:0},VS=({anchorEl:e,open:r,onClose:n,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,direction:s,isPagination:u})=>o.length?t.createElement(MS,RS({className:"nebula-table-utils-head-menu",open:r,anchorEl:e,onClose:n,transitionDuration:HS,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"}},a?{anchorOrigin:a}:{},i?{transformOrigin:i}:{},{dir:s}),(({itemGroups:e,isSubMenu:r,direction:n,isPagination:o})=>e.map(((i,a)=>[WS({menuGroup:i,isSubMenu:r,direction:n,isPagination:o}),a<e.length-1?t.createElement(DS,{"data-testid":"group-divider",variant:"middle"}):void 0])))({itemGroups:o,isSubMenu:l,direction:s,isPagination:u})):null,US=(e,t)=>e.some((e=>t[e]>0)),YS={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},KS=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=u(null),[a,l]=u(YS);return $g((()=>{e||(l(YS),i(null))}),[e]),f((()=>{if(null==n||!n.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const s=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{var e,u,c;const d=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,r),p=await n.createSessionObject(d),f=await p.getLayout(),{qStateCounts:m}=null!==(e=null===(u=f.qListObject)||void 0===u?void 0:u.qDimensionInfo)&&void 0!==e?e:{};o=null===(c=f.qInfo)||void 0===c?void 0:c.qId,a?s():(i(p),m&&l((e=>({canSelectAll:US(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:US(["qSelected"],e),canSelectPossible:US(["qOption"],e),canSelectAlternative:US(["qAlternative"],e),canSelectExcluded:US(["qAlternative","qExcluded"],e)}))(m)))}catch(e){console.error(e)}})(),()=>{a=!0,s()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}};function XS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const JS=(e,r)=>t.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){XS(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:r},e),t.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"})),ZS=d(JS);function QS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const eE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){QS(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),tE=d(eE);function rE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const nE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){rE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),oE=d(nE);function iE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const aE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){iE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),lE=d(aE);function sE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const uE=(e,r)=>t.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){sE(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:r},e),t.createElement("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.454.858v6.484a1 1 0 0 1-.576.906L8.5 14.663V7.17z"})),cE=d(uE);function dE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const pE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){dE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),fE=d(pE);function mE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const hE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){mE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),gE=d(hE);function bE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const vE=(e,r)=>t.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){bE(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:r},e),t.createElement("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})),yE=d(vE);function xE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const SE=(e,r)=>t.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){xE(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:r},e),t.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"})),EE=d(SE);function CE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const wE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){CE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),RE=d(wE);function LE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const IE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){LE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),ME=d(IE);function DE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const AE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){DE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),PE=d(AE);function OE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const kE=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){OE(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:r},e),t.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"})),TE=d(kE);function _E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const qE=(e,r)=>t.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){_E(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:r},e),t.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"})),NE=d(qE);let FE=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const jE="/qListObjectDef",zE=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[FE.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"A")),n(!1)},icon:ZS,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"D")),n(!1)},icon:lE,enabled:l,isActive:!!r&&"D"===i,autoFocus:!a&&l}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:yE,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:cE,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&null!=i&&i.select){const e=[];r[FE.Searching]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:EE,enabled:!0}]}]),r[FE.Selections]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:NE,enabled:!!l,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectAll(jE))},icon:RE,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectPossible(jE))},icon:TE,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectAlternative(jE))},icon:ME,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectExcluded(jE))},icon:PE,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.clearSelections(jE))},icon:tE,enabled:s.canClearSelections}]}]]}]}]),p&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:gE,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:fE,enabled:!0}]}]),e.length>0&&f.push(...e)}return r[FE.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),null==c||c(u)},icon:oE,enabled:!0}]}]),f},GE=({open:e,setOpen:r,anchorRef:n,headerData:o,translator:i,interactions:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:f,expandOrCollapseArgs:m,model:h,direction:g="ltr",isPagination:b})=>{var v;const y=Hg({translator:i}),{qLibraryId:x,fieldId:S,headTextAlign:E}=o,C=null==d?void 0:d.app,{fieldInstance:w,selectionActionsEnabledStatus:R}=KS({open:e,headerData:o,app:C,qStateName:null==d?void 0:d.qStateName});let L=null;if(h&&"setActiveField"in h&&void 0!==o.dimensionInfoIndex){const e=o.dimensionInfoIndex;L=async t=>{try{await h.setActiveField("/qHyperCubeDef",e,t)}catch(e){console.error(e)}}}const I=p((()=>{const e=x?{qLibraryId:x,type:"dimension"}:S;if(null!=c&&c.embed){const{embed:t,listboxRef:r}=c;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===g?"right":"left"},sortCriteria:c.sortCriteria,stateName:null==d?void 0:d.qStateName,direction:g})}}),[x,S,c,null==d?void 0:d.qStateName,g]),M=p((e=>{e.stopPropagation(),r(!1)}),[r]);return a.active?t.createElement(LS,{rightAligned:"right"===E,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper"},s?t.createElement(IS,{height:Nt,className:Ft,"data-testid":Ft,isInteractionsActive:null!==(v=a.active)&&void 0!==v&&v},t.createElement(wS,null)):null,t.createElement(VS,{open:e,anchorEl:n.current,onClose:M,menuGroups:zE({headerData:o,translator:y,menuAvailabilityFlags:l,setOpen:r,...u,embedListbox:I,interactions:a,fieldInstance:w,selectionActionsEnabledStatus:R,anchorRef:n,focusColumnAdjuster:null==f?void 0:f.focusColumnAdjuster,setActiveFieldCallback:L,expandOrCollapseArgs:m}),direction:g,isPagination:b})):null},BE=e=>e.isDark?{background:e.color,borderColor:fm.DARK_MODE_BORDER,color:fm.DARK_MODE_TEXT,disabledColor:fm.DARK_MODE_DISABLED,iconColor:fm.DARK_MODE_TEXT}:{background:e.color,borderColor:fm.BORDER_MEDIUM,color:fm.TEXT,disabledColor:fm.DISABLED},$E=qu(Xd,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`}))),WE=qu(am,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),HE=qu(ap,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)}))),VE=qu(td)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),UE=({children:e,footerContainer:r,interactions:n,theme:o,paginationNeeded:i=!0})=>{const a=s((()=>BE(o.background)),[o]);if(!n.active)return null;const l=i?t.createElement($E,{footerStyle:a},e):null;return r?F.createPortal(e,r):l},YE=m({}),KE=()=>n(YE),XE=({children:e,direction:r,pageInfo:n,handleChangeRowsPerPage:o,footerContainer:i,isSelectionMode:a,handleChangePage:l,totalRowCount:u,totalColumnCount:c,totalPages:d,keyboard:p,translator:f,theme:m,interactions:h,rect:g,layout:b})=>{const v=(e=>!e.enabled||e.active)(p)?0:-1,y=s((()=>BE(m.background)),[m]),x=i?i.getBoundingClientRect().width:g.width,S=Hg({translator:f}),E=s((()=>({direction:r,pageInfo:n,handleChangeRowsPerPage:o,footerContainer:i,isSelectionMode:a,handleChangePage:l,totalRowCount:u,totalColumnCount:c,totalPages:d,keyboard:p,translator:S,theme:m,interactions:h,rect:g,layout:b,footerStyle:y,tabIndex:v,width:x})),[r,n,o,i,a,l,u,c,d,p,S,m,h,g,b,y,v,x]);return t.createElement(YE.Provider,{value:E},e)};let JE=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),ZE=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 QE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const eC=(e,r)=>t.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){QE(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:r},e),t.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),tC=d(eC);function rC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const nC=(e,r)=>t.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){rC(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:r},e),t.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),oC=d(nC);function iC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const aC=(e,r)=>t.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){iC(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:r},e),t.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),lC=d(aC),sC={FirstPage:oC,PreviousPage:tC,NextPage:FS,LastPage:lC,FirstPageRTL:lC,PreviousPageRTL:FS,NextPageRTL:tC,LastPageRTL:oC},uC=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=KE(),u=r.concat("rtl"===n?"RTL":""),c=sC[u];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:s,onClick:e?void 0:()=>{i(t)}},IconComponent:c}},cC=()=>{const{pageInfo:e,width:r}=KE(),n=0===e.page,{IconComponent:o,styledProps:i}=uC({type:JE.FirstPage,disabledCondition:n,pageNumber:0});return r<=ZE.FirstPage?null:t.createElement(HE,i,t.createElement(o,{height:Nt}))},dC=(e,t,r=!1)=>{r&&e.key===zt.Tab&&!e.shiftKey&&(Yh(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))},pC=()=>{const{pageInfo:e,keyboard:r,totalPages:n,isSelectionMode:o,width:i}=KE(),a=e.page>=n-1,{IconComponent:l,styledProps:s}=uC({type:JE.LastPage,disabledCondition:a,pageNumber:n-1}),u=r.enabled?e=>{dC(e,r,o)}:void 0;return i<=ZE.LastPage?null:t.createElement(HE,RS({},s,{onKeyDown:u}),t.createElement(l,{height:Nt}))},fC=()=>{const{pageInfo:e,keyboard:r,totalPages:n,isSelectionMode:o,width:i}=KE(),a=e.page>=n-1,{IconComponent:l,styledProps:s}=uC({type:JE.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(i>ZE.FirstPage&&i>ZE.LastPage)&&r.enabled?e=>{dC(e,r,o)}:void 0;return t.createElement(HE,RS({},s,{onKeyDown:u}),t.createElement(l,{height:Nt}))},mC=()=>{const{pageInfo:e}=KE(),r=0===e.page,{IconComponent:n,styledProps:o}=uC({type:JE.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return t.createElement(HE,o,t.createElement(n,{height:Nt}))},hC=()=>{const{translator:e,width:r,pageInfo:n,totalRowCount:o}=KE(),{page:i,rowsPerPage:a}=n;if(r<=ZE.DisplayedRowsLabel)return null;const l=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,o)}`,o.toString()]);return t.createElement(VE,{variant:"caption",dir:"ltr"},l)},gC=({name:e,value:r,options:n,handleChange:o})=>{const{layout:i,footerStyle:a,translator:l,tabIndex:s}=KE(),u=i.qInfo.qId,c=l.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return t.createElement(t.Fragment,null,t.createElement(VE,{variant:"caption",id:p},c,":"),t.createElement(WE,{footerStyle:a,size:"small",native:!0,value:r,onChange:o,inputProps:f},n))},bC=()=>{var e;const{pageInfo:r,isSelectionMode:n,totalColumnCount:o,width:i,handleChangeRowsPerPage:a}=KE();if(!(!(null===(e=r.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&i>ZE.RowsPerPage&&o<=100)||void 0===r.rowsPerPageOptions)return null;const l=t.createElement(t.Fragment,null,r.rowsPerPageOptions.map((e=>t.createElement("option",{key:e,value:e},e))));return t.createElement(gC,{name:"RowsPerPage",value:r.rowsPerPage,options:l,handleChange:e=>{null==a||a(+e.target.value)}})},vC=1e3,yC="…",xC=({totalPages:e,page:r})=>{const n=Math.min(e,vC),o=n<e&&r>500,i=o?Math.min(500+r,e):n,a=o?Math.max(0,i-vC):0,l=Array.from(Array(n).keys()).map((e=>{const r=e+a;return t.createElement("option",{key:r,value:r},r+1)}));return a>0&&l.unshift(t.createElement("option",{key:"startMoreOptions",value:yC,disabled:!0},yC)),i<e-1&&l.push(t.createElement("option",{key:"endMoreOptions",value:yC,disabled:!0},yC)),t.createElement(t.Fragment,null,l)},SC=()=>{const{pageInfo:e,width:r,totalPages:n,handleChangePage:o}=KE(),{page:i}=e;if(r<=ZE.SelectPage)return null;const a=t.createElement(xC,{totalPages:n,page:i});return t.createElement(gC,{name:"SelectPage",value:i,options:a,handleChange:e=>{o(+e.target.value)}})};var EC=h((e=>t.createElement(XE,e,t.createElement(bC,null),t.createElement(SC,null),t.createElement(hC,null),t.createElement(cC,null),t.createElement(mC,null),t.createElement(fC,null),t.createElement(pC,null))));const CC=e=>t.createElement(UE,e,t.createElement(EC,e)),wC=m({}),RC=()=>n(wC),LC=({rect:e,pageInfo:t,qPivotDataPages:r,updatePageInfo:n,direction:o,children:i})=>{const a=s((()=>({rect:e,pageInfo:t,qPivotDataPages:r,updatePageInfo:n,direction:o})),[e,t,r,n,o]);return Yr.jsx(wC.Provider,{value:a,children:i})},IC=m({}),MC=()=>n(IC),DC=({app:e,model:t,theme:r,embed:n,keyboard:o,translator:i,interactions:a,env:l,children:u})=>{const c=s((()=>({model:t,app:e,interactions:a,embed:n,theme:r,keyboard:o,env:l,translator:i})),[e,a,t,n,r,o,l,i]);return Yr.jsx(IC.Provider,{value:c,children:u})},AC=m({}),PC=()=>n(AC),OC=({children:e,...t})=>Yr.jsx(AC.Provider,{value:t,children:e}),kC=()=>{const{text:e,fontFamily:t,fontSize:r,justifyContent:n,alignItems:o,height:i}=(()=>{var e;const{theme:t,translator:r}=MC(),{layoutService:n}=PC(),o=null!==(e=t.getStyle("","","fontFamily"))&&void 0!==e?e:og;return n.hasData?n.hasLimitedData?{text:r.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:r.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})();return void 0===e?null:Yr.jsx("div",{style:{display:"flex",justifyContent:n,alignItems:o,width:"100%",height:i},children:Yr.jsx("span",{style:{...fg,fontFamily:t,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:e})})},TC="/qHyperCubeDef",_C=-1,qC="PSEUDO-DIM",NC=[];for(let e=0;e<256;++e)NC.push((e+256).toString(16).slice(1));let FC;const jC=new Uint8Array(16);function zC(){if(!FC){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");FC=crypto.getRandomValues.bind(crypto)}return FC(jC)}var GC={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function BC(e,t,r){if(GC.randomUUID&&!e)return GC.randomUUID();const n=(e=e||{}).random||(e.rng||zC)();return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return(NC[e[t+0]]+NC[e[t+1]]+NC[e[t+2]]+NC[e[t+3]]+"-"+NC[e[t+4]]+NC[e[t+5]]+"-"+NC[e[t+6]]+NC[e[t+7]]+"-"+NC[e[t+8]]+NC[e[t+9]]+"-"+NC[e[t+10]]+NC[e[t+11]]+NC[e[t+12]]+NC[e[t+13]]+NC[e[t+14]]+NC[e[t+15]]).toLowerCase()}(n)}const $C=()=>{var e,t,r;return null!==(e=null===(t=crypto)||void 0===t||null===(r=t.randomUUID)||void 0===r?void 0:r.call(t))&&void 0!==e?e:BC()},WC=e=>e===_C?qC:(({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:$C()})(e),HC=({layoutService:e,visibleLeftDimensionInfos:t,cell:r,colIdx:n})=>{r&&(r.canBeResized=!0,r.colIdx=r.colIdx||n,r.dimensionInfoIndex===_C?r.columnWidthLocation=rr.Measures:r.isLeftDimension?r.columnWidthLocation=rr.Dimension:t.at(-1)===_C?r.columnWidthLocation=rr.Measures:e.hasPseudoDimOnLeft&&(r.columnWidthLocation=rr.Pivot))},VC=(e,t,r,n)=>{var o;const i=WC(r),a=e.getDimensionInfoIndex(r),l=e.isLeftDimension(a);return r===_C?{id:i,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,isCyclic:!1,groupDimensionPos:0,groupDimensionLabels:[],headTextAlign:"left",dimensionInfoIndex:a,canBeResized:!1,isLeftDimension:l,isLastDimension:n,columnWidthLocation:rr.Measures,isPivot:!0,qEffectiveDimensionName:void 0}:{id:i,colIdx:0,label:r.qFallbackTitle,qReverseSort:r.qReverseSort,sortDirection:r.qSortIndicator&&"N"!==r.qSortIndicator?r.qSortIndicator:"A",qLibraryId:r.qLibraryId,fieldId:r.qGroupFieldDefs[r.qGroupPos],isLocked:null!==(o=r.qLocked)&&void 0!==o&&o,columnWidth:r.columnWidth,qApprMaxGlyphCount:r.qApprMaxGlyphCount,isDim:!0,isCyclic:r.qGrouping===Vt.Cyclic,groupDimensionPos:r.qGroupPos,groupDimensionLabels:r.qGroupFallbackTitles,headTextAlign:"left",dimensionInfoIndex:a,canBeResized:!1,isLeftDimension:l,isLastDimension:n,columnWidthLocation:rr.Dimension,isPivot:!0,isSortedByFirstMeasure:t.isSortedByFirstMeasure,qEffectiveDimensionName:r.qEffectiveDimensionName}},UC=({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n})=>{let o=n;var i;r.length>0&&(o=(i=n).at(-1)===_C?i.slice(0,-1):i);const a=o.length+(r.length?1:0),l=Math.max(1,r.length),s=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(a,l);return r.forEach(((r,n,o)=>{const i=n===o.length-1;s[a-1][n]=VC(e,t,r,i)})),o.forEach(((r,n,o)=>{const i=n===o.length-1;s[n][l-1]=VC(e,t,r,i)})),s},YC=(e,t,r,n)=>{var o,i;const a=((e,t,r,n)=>{let o;var i;return o=0===r.length||r.includes(_C)?UC({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r}):(e=>e[0].map(((t,r)=>e.map((e=>e[r])))))(UC({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n})),e.isIndentModeEnabled&&o[o.length-1].length>1&&(o[o.length-1]=[o.at(-1),...new Array(o[0]?o[0].length-1:0).fill(null)]),o.length&&(null===(i=o.at(-1))||void 0===i||i.forEach(((t,r)=>{Array.isArray(t)?t.forEach(((t,r)=>{HC({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})})):HC({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})}))),o})(e,t,r,n);return{data:a,size:{x:null!==(o=null===(i=a[0])||void 0===i?void 0:i.length)&&void 0!==o?o:0,y:a.length}}};function KC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function XC(e,t,r){return t=ew(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,rw()?Reflect.construct(t,r||[],ew(e).constructor):t.apply(e,r))}function JC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZC(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,iw(n.key),n)}}function QC(e,t,r){return t&&ZC(e.prototype,t),r&&ZC(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ew(e){return ew=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ew(e)}function tw(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&&nw(e,t)}function rw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rw=function(){return!!e})()}function nw(e,t){return nw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nw(e,t)}function ow(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return KC(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?KC(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function iw(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}function aw(e){return aw="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},aw(e)}var lw={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:sw(e),value:sw(t),useEqualSign:r}}(r,o,i))}})),t}};function sw(e){try{return decodeURIComponent(e)}catch(t){return e}}function uw(e){if(!(this instanceof uw))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 lw.fromSearchString(t.search)}}})}function cw(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}uw.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},uw.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=cw((t=e[n]).key),t.value?r+="=".concat(cw(t.value)):r+=t.useEqualSign?"=":"";return r};var dw,pw=function(){return QC((function e(t){JC(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}),[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}])}(),fw=function(){return QC((function e(){JC(this,e)}),[{key:"decode",value:function(e){for(var t,r="",n=new pw(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}])}(),mw=function(e){return e>=0&&e<=1114111},hw=function(e){return e.match(/[\s]/)},gw=function(e){function t(){return JC(this,t),XC(this,t,arguments)}return tw(t,e),QC(t,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,r=0;r<5&&(null!=(n=e.next())&&!hw(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return mw(a)?String.fromCharCode(a):"�"}}])}(fw),bw=function(){function e(t,r){JC(this,e),this._key=t,this._value=r}return QC(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}}])}(),vw=function(){function e(){JC(this,e)}return QC(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 bw.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return bw.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||bw.newInstanceIfNeeded(e,t,this._value)}}])}(),yw=function(){return QC((function e(){JC(this,e),this.clear()}),[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new vw);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}])}(),xw=function(){var e,t,r,n=[],o=[],i=new yw;for(e in n["&quot"]="34",n["&amp"]="38",n["&lt"]="60",n["&gt"]="62",n["&nbsp"]="160",n["&iexcl"]="161",n["&cent"]="162",n["&pound"]="163",n["&curren"]="164",n["&yen"]="165",n["&brvbar"]="166",n["&sect"]="167",n["&uml"]="168",n["&copy"]="169",n["&ordf"]="170",n["&laquo"]="171",n["&not"]="172",n["&shy"]="173",n["&reg"]="174",n["&macr"]="175",n["&deg"]="176",n["&plusmn"]="177",n["&sup2"]="178",n["&sup3"]="179",n["&acute"]="180",n["&micro"]="181",n["&para"]="182",n["&middot"]="183",n["&cedil"]="184",n["&sup1"]="185",n["&ordm"]="186",n["&raquo"]="187",n["&frac14"]="188",n["&frac12"]="189",n["&frac34"]="190",n["&iquest"]="191",n["&Agrave"]="192",n["&Aacute"]="193",n["&Acirc"]="194",n["&Atilde"]="195",n["&Auml"]="196",n["&Aring"]="197",n["&AElig"]="198",n["&Ccedil"]="199",n["&Egrave"]="200",n["&Eacute"]="201",n["&Ecirc"]="202",n["&Euml"]="203",n["&Igrave"]="204",n["&Iacute"]="205",n["&Icirc"]="206",n["&Iuml"]="207",n["&ETH"]="208",n["&Ntilde"]="209",n["&Ograve"]="210",n["&Oacute"]="211",n["&Ocirc"]="212",n["&Otilde"]="213",n["&Ouml"]="214",n["&times"]="215",n["&Oslash"]="216",n["&Ugrave"]="217",n["&Uacute"]="218",n["&Ucirc"]="219",n["&Uuml"]="220",n["&Yacute"]="221",n["&THORN"]="222",n["&szlig"]="223",n["&agrave"]="224",n["&aacute"]="225",n["&acirc"]="226",n["&atilde"]="227",n["&auml"]="228",n["&aring"]="229",n["&aelig"]="230",n["&ccedil"]="231",n["&egrave"]="232",n["&eacute"]="233",n["&ecirc"]="234",n["&euml"]="235",n["&igrave"]="236",n["&iacute"]="237",n["&icirc"]="238",n["&iuml"]="239",n["&eth"]="240",n["&ntilde"]="241",n["&ograve"]="242",n["&oacute"]="243",n["&ocirc"]="244",n["&otilde"]="245",n["&ouml"]="246",n["&divide"]="247",n["&oslash"]="248",n["&ugrave"]="249",n["&uacute"]="250",n["&ucirc"]="251",n["&uuml"]="252",n["&yacute"]="253",n["&thorn"]="254",n["&yuml"]="255",n["&OElig"]="338",n["&oelig"]="339",n["&Scaron"]="352",n["&scaron"]="353",n["&Yuml"]="376",n["&fnof"]="402",n["&circ"]="710",n["&tilde"]="732",n["&Alpha"]="913",n["&Beta"]="914",n["&Gamma"]="915",n["&Delta"]="916",n["&Epsilon"]="917",n["&Zeta"]="918",n["&Eta"]="919",n["&Theta"]="920",n["&Iota"]="921",n["&Kappa"]="922",n["&Lambda"]="923",n["&Mu"]="924",n["&Nu"]="925",n["&Xi"]="926",n["&Omicron"]="927",n["&Pi"]="928",n["&Rho"]="929",n["&Sigma"]="931",n["&Tau"]="932",n["&Upsilon"]="933",n["&Phi"]="934",n["&Chi"]="935",n["&Psi"]="936",n["&Omega"]="937",n["&alpha"]="945",n["&beta"]="946",n["&gamma"]="947",n["&delta"]="948",n["&epsilon"]="949",n["&zeta"]="950",n["&eta"]="951",n["&theta"]="952",n["&iota"]="953",n["&kappa"]="954",n["&lambda"]="955",n["&mu"]="956",n["&nu"]="957",n["&xi"]="958",n["&omicron"]="959",n["&pi"]="960",n["&rho"]="961",n["&sigmaf"]="962",n["&sigma"]="963",n["&tau"]="964",n["&upsilon"]="965",n["&phi"]="966",n["&chi"]="967",n["&psi"]="968",n["&omega"]="969",n["&thetasym"]="977",n["&upsih"]="978",n["&piv"]="982",n["&ensp"]="8194",n["&emsp"]="8195",n["&thinsp"]="8201",n["&zwnj"]="8204",n["&zwj"]="8205",n["&lrm"]="8206",n["&rlm"]="8207",n["&ndash"]="8211",n["&mdash"]="8212",n["&lsquo"]="8216",n["&rsquo"]="8217",n["&sbquo"]="8218",n["&ldquo"]="8220",n["&rdquo"]="8221",n["&bdquo"]="8222",n["&dagger"]="8224",n["&Dagger"]="8225",n["&bull"]="8226",n["&hellip"]="8230",n["&permil"]="8240",n["&prime"]="8242",n["&Prime"]="8243",n["&lsaquo"]="8249",n["&rsaquo"]="8250",n["&oline"]="8254",n["&frasl"]="8260",n["&euro"]="8364",n["&image"]="8365",n["&weierp"]="8472",n["&real"]="8476",n["&trade"]="8482",n["&alefsym"]="8501",n["&larr"]="8592",n["&uarr"]="8593",n["&rarr"]="8594",n["&darr"]="8595",n["&harr"]="8596",n["&crarr"]="8629",n["&lArr"]="8656",n["&uArr"]="8657",n["&rArr"]="8658",n["&dArr"]="8659",n["&hArr"]="8660",n["&forall"]="8704",n["&part"]="8706",n["&exist"]="8707",n["&empty"]="8709",n["&nabla"]="8711",n["&isin"]="8712",n["&notin"]="8713",n["&ni"]="8715",n["&prod"]="8719",n["&sum"]="8721",n["&minus"]="8722",n["&lowast"]="8727",n["&radic"]="8730",n["&prop"]="8733",n["&infin"]="8734",n["&ang"]="8736",n["&and"]="8743",n["&or"]="8744",n["&cap"]="8745",n["&cup"]="8746",n["&int"]="8747",n["&there4"]="8756",n["&sim"]="8764",n["&cong"]="8773",n["&asymp"]="8776",n["&ne"]="8800",n["&equiv"]="8801",n["&le"]="8804",n["&ge"]="8805",n["&sub"]="8834",n["&sup"]="8835",n["&nsub"]="8836",n["&sube"]="8838",n["&supe"]="8839",n["&oplus"]="8853",n["&otimes"]="8855",n["&perp"]="8869",n["&sdot"]="8901",n["&lceil"]="8968",n["&rceil"]="8969",n["&lfloor"]="8970",n["&rfloor"]="8971",n["&lang"]="9001",n["&rang"]="9002",n["&loz"]="9674",n["&spades"]="9824",n["&clubs"]="9827",n["&hearts"]="9829",n["&diams"]="9830",n)"function"!=typeof n[e]&&n.hasOwnProperty(e)&&(o[n[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(r=o[t].toLowerCase().substr(1),i.put(r,String.fromCharCode(t)));return i}(),Sw=function(e){function t(){return JC(this,t),XC(this,t,arguments)}return tw(t,e),QC(t,[{key:"decodeCharacter",value:function(e){var t;e.mark();var r=e.next();if(null==r||"&"!==r)return e.reset(),null;var n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(null!=(t=this._getNumericEntity(e)))return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,r,n,o="";for(t=Math.min(e.remainder().length,xw.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=xw.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)&&mw(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)&&mw(n)?String.fromCharCode(n):null}}])}(fw),Ew=function(e){function t(){return JC(this,t),XC(this,t,arguments)}return tw(t,e),QC(t,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",r=0;r<2;r++)null!=(n=e.nextHex())&&(t+=n);return 2===t.length&&(o=parseInt(t,16),mw(o))?String.fromCharCode(o):(e.reset(),null)}}])}(fw),Cw=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(dw=document.createElement("div"));var ww=Array.prototype.indexOf,Rw=[",",".","_"," "],Lw=[",",".","-","_"," "],Iw={width:["%"],height:["%"]},Mw={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},Dw={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":Mw.image,"background-color":Mw.color,"border-color":Mw.color,"border-image":Mw.image,color:Mw.color,icon:Mw.image,"list-style-image":Mw.image,"outline-color":Mw.color},Aw={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function Pw(e,t,r){var n;if(t){if(ww)return ww.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 Ow(e){if(null==e)return"";var t,r=document.createTextNode(e);return dw.appendChild(r),t=dw.innerHTML,dw.removeChild(r),t}function kw(e,t,r){var n,o,i,a,l,s,u,c,d;if(e=_w(e).toLowerCase(),t=_w(t),Pw(e,Aw.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<Aw.attr_val;i++)if(t.toLowerCase().match(Aw.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=Iw[e])||(n=Lw),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]/)&&Pw(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function Tw(e,t,r){var n,o,i,a,l,s,u,c,d,p;if(e=_w(e).toLowerCase(),t=_w(t),Pw(e,Aw.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<Aw.css_val.length;n++)if(t.toLowerCase().indexOf(Aw.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=Dw[e])||(o=Mw.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]/)&&Pw(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function _w(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var l=[new Sw,new Ew,new gw];!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 qw=[],Nw=0;Nw<255;Nw++)qw[Nw]=Nw>=48&&Nw<=57||Nw>=65&&Nw<=90||Nw>=97&&Nw<=122?null:Nw.toString(16);var Fw=function(e){return Ow(e.unsafe)},jw=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]=Tw(t,r[t],!0),i+=Tw(t,r[t],!0),o[t]=n[t]);return e.map?o:i},zw=function(e){var t=[],r=[],n={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(r[i]=kw(i,t[i],!0),o+=kw(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function Gw(e,t){throw new Error(t)}var Bw={canonicalize:_w,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===aw(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?Fw(e):"css"===e.context?(null!=e.map&&"object"!==aw(e.map)&&Gw(this,"Invalid parameter type"),jw(e)):"attr"===e.context?(null!=e.map&&"object"!==aw(e.map)&&Gw(this,"Invalid parameter type"),zw(e)):void Gw(this,"Invalid parameter type")},encodeForAttr:kw,encodeForAttr2:function(e){return kw("nonsens",e,!0)},encodeForCSS:Tw,encodeForHref:function(e){_w(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new uw(e),r=uw.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+uw.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=Rw),l="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),Pw(o,t)>=0||null==qw[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:Ow,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=_w(t).toLowerCase():Gw(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=ow(null!==(t=Cw.exec(e.trim()))&&void 0!==t?t:[],4),n=r[1];return{encoding:r[2],data:r[3],mimeType:null==n?void 0:n.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,r){var n={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(r)],n).size}catch(e){return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch(e){return!1}}(e))return!1;var t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;var r=function(e){for(var t=e,r="";t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");var n=r.lastIndexOf("/");-1!==n&&(r=r.slice(0,n))}else if("/.."===t){t="/";var o=r.lastIndexOf("/");-1!==o&&(r=r.slice(0,o))}else if("."===t||".."===t)t="";else{var i=t.match(/^\/?[^/]*/),a=i?i[0]:"";t=t.slice(a.length),r+=a}return r}(t);return""!==r&&"/"!==r&&r}};const $w=(e,t)=>{var r;return null===(r=t.qAttrExps)||void 0===r||null===(r=r.qValues)||void 0===r?void 0:r[e]},Ww=(e,t)=>{switch(e){case"topLeft":default:return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"center"};case"topRight":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-end"}}},Hw=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>n&&t&&!t.toLowerCase().includes("javascript:")&&Bw.isSafeDataURL(t)?{type:Ut.Image,url:t,text:e,imageSize:r,resolvedImagePosition:Ww(n,a),labelStructure:o,imageBox:i}:{type:Ut.Text,url:void 0,text:e,labelStructure:o},Vw=(e,t,r,n)=>{if(!e.qMiniChart||null==t||!t.miniChart||!r)return{type:Ut.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{var n,o;const i="global"===(null===(n=t.yAxis)||void 0===n?void 0:n.scale),a="zeroCenter"===(null===(o=t.yAxis)||void 0===o?void 0:o.position),l=i?r.qYMin:e.qMiniChart.qMin,s=i?r.qYMax:e.qMiniChart.qMax;if(a){const e=Math.max(Math.abs(l),Math.abs(s));return{minY:-e,maxY:e}}return(e=>{var t,r;return"zeroBaseline"===(null===(t=e.yAxis)||void 0===t?void 0:t.position)||"bars"===e.type&&"auto"===(null===(r=e.yAxis)||void 0===r?void 0:r.position)})(t)?{minY:Math.min(0,l),maxY:Math.max(0,s)}:{minY:l,maxY:s}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:Ut.MiniChart,text:n,miniChart:a}},Uw=(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)===Yt.Attribute||null==r?void 0:r.urlLabel},Yw=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:Ut.Link,url:Bw.encodeForHref(r),text:t,labelStructure:e}}catch(r){return{type:Ut.Text,url:void 0,text:t,labelStructure:e}}},Kw=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:l=e=>e.qText,direction:s})=>{var u,c,d,p,f,m;const h=Kt(t),g=l(e);return h!==Ut.Image||!n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(u=n.anything.sense)&&void 0!==u&&null!==(c=u.isUnsupportedFeature)&&void 0!==c&&c.call(u,"tableImages")?h===Ut.Link?((e,t,r,n,o)=>{const{urlPosition:i}=null!=t?t:{};if(i===Yt.Attribute){var a;const i=Uw(null!==(a=r.url)&&void 0!==a?a:-1,e,t);return Yw({labelStructure:n,text:o||i||"",url:i})}if(i===Yt.Dimension){var l,s;const i=Uw(null!==(l=r.urlLabel)&&void 0!==l?l:-1,e,t)||o;return n&&(n.maskedValue=i),Yw({text:i,labelStructure:n,url:null!==(s=null==n?void 0:n.originalValue)&&void 0!==s?s:o})}return{type:Ut.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,g):h!==Ut.Indicator||!n.flags.isEnabled("CLIENT_IM_6696_INDICATORS")||null!==(d=n.anything.sense)&&void 0!==d&&null!==(p=d.isUnsupportedFeature)&&void 0!==p&&p.call(d,"tableIndicators")?h!==Ut.MiniChart||null!==(f=n.anything.sense)&&void 0!==f&&null!==(m=f.isUnsupportedFeature)&&void 0!==m&&m.call(f,"qMiniChartDef")?{type:Ut.Text,url:void 0,text:g,labelStructure:a}:Vw(e,t,i,g):((e,t,r)=>{const{indicator:n}=null!=e?e:{};return{type:Ut.Indicator,url:void 0,text:r,indicator:{applySegmentColors:null==n?void 0:n.applySegmentColors,position:null==n?void 0:n.position,showTextValues:null==n?void 0:n.showTextValues},indicatorConditionalColoring:t}})(t,o,g):((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:l,imageSetting:s,imageLabel:u,imageBox:c}=null!=t?t:{};if("url"===s){var d,p;const t=null===(d=$w(null!==(p=r.imageUrl)&&void 0!==p?p:-1,e))||void 0===d?void 0:d.qText;return i&&(i.maskedValue=null!=t?t:""),Hw({text:n,url:t,imageSize:a,imagePosition:l,labelStructure:i,imageBox:c,direction:o})}if("label"===s){var f,m,h;const t=i?i.originalValue:n;if(-1===r.imageLabel)return Hw({text:u||t||"",url:t,imageSize:a,imagePosition:l,labelStructure:i,imageBox:c,direction:o});const s=null!==(f=null===(m=$w(null!==(h=r.imageLabel)&&void 0!==h?h:-1,e))||void 0===m?void 0:m.qText)&&void 0!==f?f:n;return Hw({text:s,url:t,imageSize:a,imagePosition:l,labelStructure:i,imageBox:c,direction:o})}return{type:Ut.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,g,s,a)},Xw=(e,t)=>{var r,n,o,i;const a=t.qAttrExps,l=null==a||null===(r=a.qValues)||void 0===r||null===(r=r[null!==(n=null==e?void 0:e.cellForegroundColor)&&void 0!==n?n:-1])||void 0===r?void 0:r.qText,s=null==a||null===(o=a.qValues)||void 0===o||null===(o=o[null!==(i=null==e?void 0:e.cellBackgroundColor)&&void 0!==i?i:-1])||void 0===o?void 0:o.qText,u=s?Uh(s):null,c=l?Uh(l):null,d=((e,t)=>e||!t?null:$h(t))(c,u);return{color:null!=d?d:c,background:u}},Jw=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:Jw(e,t)),e),Zw=(e,t,r,n,o,i)=>{const a=o?i.rowsPerPage-r:ag-n;let l=e.qUp+e.qDown;if(o&&0===r){const r=(t+e.qUp)%i.rowsPerPage;l=e.qDown+r}return Math.min(a,Jw(l,e))},Qw=(e,t,r)=>{if(e!==_C){if(t){const t=Kt(e.representation);return null!=r&&r.isLinksSupported&&t===Ut.Link||null!=r&&r.isImagesSupported&&t===Ut.Image?e.representation:{type:Ut.Text}}return e.representation}},eR=({node:e,parent:t,root:r,x:n,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentModeFeatures:d,indentLevel:p,labelStructure:f,env:m,pageInfo:h,direction:g="ltr"})=>{const b=(!c||!u)&&"P"===e.qType;let v=e.qText;if(u&&c&&f){const{originalValue:e,delimeter:t,suffix:r}=f;v=`${e} ${!r||!e&&r?"":t} ${r}`.trim()}const y={id:$C(),ref:e,x:n,y:o,pageX:n,pageY:i,mainAxisPageCoord:u?i:n,isLeftColumn:u,parent:t,root:r,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:Zw(e,o,i,n,u,h),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:"T"===e.qType||!(null==t||!t.isTotal),isEmpty:"E"===e.qType||-4===e.qElemNo,isNull:"U"===e.qType,isPseudoDimension:b,expressionColor:Xw(s,e),selectionCellType:u?"L":"T",dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:b?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:Kw({cell:{...e,qText:v},representationProperties:Qw(l,c,d),attrExprInfoIndex:s,env:m,labelStructure:f,direction:g}),...void 0!==p&&{indentLevel:p}};return t&&(t.children[y.mainAxisPageCoord-t.mainAxisPageCoord]=y),y},tR=(e,t,r,n,o,i,a,l,s)=>{const{isIndentModeEnabled:u,indentModeFeatures:c}=o;if(!t.length)return e;let d=0;return function t(p,f,m,h=0,g=-1){e[h]||(e[h]={}),u&&g++;const b=o.leftDimensionInfoIndexes.indexOf(_C);m.forEach(((m,v)=>{var y,x;const S={originalValue:null!==(y=m.qText)&&void 0!==y?y:"",maskedValue:"",delimeter:"-",suffix:""};d+=0===v?0:1;const E=r.qTop-n.page*n.rowsPerPage,C=Math.max(0,E+d-m.qUp),w=r.qTop+d-m.qUp;if(u){var R,L;if(o.hasPseudoDimOnLeft&&g<=b)if(S.originalValue=null!==(R=m.qText)&&void 0!==R?R:"",S.maskedValue=null!==(L=m.qText)&&void 0!==L?L:"","N"===m.qType||"U"===m.qType||"T"===m.qType)"U"===m.qType&&(S.originalValue=o.getNullValueText()),g<b&&(S.suffix=o.visibleMeasureInfo[0].qFallbackTitle);else if("P"===m.qType){var I,M,D,A,P,O,k,T;S.originalValue=null!==(I=null===(M=f||p)||void 0===M||null===(M=M.representation.labelStructure)||void 0===M?void 0:M.originalValue)&&void 0!==I?I:"",S.maskedValue=null!==(D=null===(A=f||p)||void 0===A||null===(A=A.representation.labelStructure)||void 0===A?void 0:A.originalValue)&&void 0!==D?D:"",S.suffix=null!==(P=m.qText)&&void 0!==P?P:"";const e=m.qSubNodes;m={...null===(O=f||p)||void 0===O?void 0:O.ref,...m.qText?{qText:m.qText}:{},qSubNodes:e},g=null!==(k=null===(T=f||p)||void 0===T?void 0:T.indentLevel)&&void 0!==k?k:0}"U"===m.qType&&(S.originalValue=o.getNullValueText())}let _=h;u&&(_=b>=1&&g>=b?g+1:g,0===g&&0===b&&0===m.qSubNodes.length&&(_=0));const q=null===(x=e.at(h))||void 0===x?void 0:x[C],N=u&&void 0===(null==q?void 0:q.ref.qText)||!q?eR({node:m,parent:f,root:p,x:_,y:w,pageY:C,layoutService:o,dimensionInfo:i[_],attrExprInfoIndex:a[_],isLeftColumn:!0,...u&&{isIndentModeEnabled:u,indentModeFeatures:c,indentLevel:g},env:l,pageInfo:n,labelStructure:S,direction:s}):e[h][C];if(e[h][C]=N,m.qSubNodes.length){const e=u?0:h+1;t(p||N,N,m.qSubNodes,e,g)}}))}(null,null,t,0,-1),e},rR=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,r,n)=>{const o=n.at(r+1);e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},nR=(e,t)=>{const r=e[0],n=r?Object.values(r):[],o=null!=t&&t.isIndentModeEnabled&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,i=null==r?void 0:r[o],a=n.at(-1);return null!=i&&i.isTotal?i.isLeafNode?i.mainAxisPageCoord:i.mainAxisPageCoord+i.leafCount-1:null!=a&&a.isTotal?a.mainAxisPageCoord-1:-1},oR=({prevData:e,nextDataPage:t,pageInfo:r,layoutService:n,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i,env:a,direction:l})=>{const{qLeft:s,qArea:u}=t;if(!s.length)return e;const c=tR(e.grid,s,u,r,n,o,i,a,l);rR(c,r.rowsOnCurrentPage);const d=nR(c,n);return{...e,grid:c,columnCount:c.length,totalDividerIndex:d}},iR=({qArea:e,prevData:t,pivotValuePoints:r,pageInfo:n})=>{const o=[...t];return r.forEach(((t,r)=>{t.forEach(((t,i)=>{var a;const l=e.qTop-n.page*n.rowsPerPage+r,s=e.qLeft+i;Array.isArray(o[l])||(o[l]=[]);const u="U"===t.qType;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:$C(),ref:t,isNull:u}}))})),o},aR=({prevData:e,dataPage:t,pageInfo:r})=>{const{qData:n,qArea:o}=t;return null!=n&&n.length?iR({qArea:o,prevData:e,pivotValuePoints:n,pageInfo:r}):e},lR=(e,t,r,n,o,i,a,l,s,u)=>{const{isIndentModeEnabled:c,indentModeFeatures:d}=n;if(!t.length)return e;let p=0;!function t(a,f,m,h=0){e[h]||(e[h]={}),m.forEach(((m,g)=>{var b;p+=0===g?0:1;const v=r.qLeft+p-m.qUp,y=null!==(b=e[h][v])&&void 0!==b?b:eR({node:m,parent:f,root:a,x:v,y:h,pageY:h,layoutService:n,dimensionInfo:o[h],attrExprInfoIndex:i[h],isLeftColumn:!1,...c&&{isIndentModeEnabled:c,indentModeFeatures:d},env:l,pageInfo:s,direction:u});e[h][v]=y,m.qSubNodes.length&&t(a||y,y,m.qSubNodes,h+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},sR=({prevData:e,nextDataPage:t,layoutService:r,visibleTopDimensionInfo:n,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:l,direction:s})=>{const{qTop:u,qArea:c}=t;if(!u.length)return e;const d=lR(e.grid,u,c,r,n,o,i,a,l,s);rR(d,r.size.x);const p=nR(d);return{...e,grid:d,rowCount:d.length,totalDividerIndex:p}},uR=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),cR=(e,t)=>{const{env:r}=MC(),{direction:n}=RC(),{layoutService:o,effectivePropertiesService:i}=PC(),{qPivotDataPages:a,pageInfo:l}=RC(),[c,d]=u(null),f=((e,t,r)=>s((()=>({left:e.map(uR),top:t.map(uR),measures:r.map(uR)})),[r,e,t]))(e,t,o.visibleMeasureInfo),m=s((()=>YC(o,i,t,e)),[o,i,t,e]),h=p((()=>a.slice(1).reduce(((e,t)=>aR({prevData:e,dataPage:t,pageInfo:l})),((e,t)=>{const{qData:r,qArea:n}=e;return iR({qArea:n,prevData:[],pivotValuePoints:r,pageInfo:t})})(a[0],l))),[a,l]),g=p((()=>a.slice(1).reduce(((e,i)=>sR({prevData:e,nextDataPage:i,layoutService:o,visibleTopDimensionInfo:t,attrExprInfoIndexes:f.top,headerRows:m.size.y,env:r,pageInfo:l,direction:n})),((e,t,r,n,o,i,a,l)=>{const{qArea:s,qTop:u}=e,c=lR([],u,s,t,r,n,o,i,a,l);rR(c,t.size.x);const d=nR(c);return{grid:c,rowCount:c.length,layoutSize:t.size,totalDividerIndex:d}})(a[0],o,t,f.top,m.size.y,r,l,n))),[a,o,t,f.top,m.size.y,r,l,n]),b=p((()=>a.slice(1).reduce(((t,i)=>oR({prevData:t,nextDataPage:i,pageInfo:l,layoutService:o,visibleLeftDimensionInfo:e,attrExprInfoIndexes:f.left,env:r,direction:n})),((e,t,r,n,o,i,a)=>{const{qArea:l,qLeft:s}=e,u=tR([],s,l,r,t,n,o,i,a);rR(u,r.rowsOnCurrentPage);const c=nR(u,t);return{grid:u,columnCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(a[0],o,l,e,f.left,r,n))),[a,o,l,e,f,r,n]),[v,y]=u((()=>h())),[x,S]=u((()=>g())),[E,C]=u((()=>b()));$g((()=>{y(h())}),[h]),$g((()=>{S(g())}),[g]),$g((()=>{C(b())}),[b]),$g((()=>{c&&c.forEach((i=>{y((e=>aR({prevData:e,dataPage:i,pageInfo:l}))),S((e=>sR({prevData:e,nextDataPage:i,layoutService:o,visibleTopDimensionInfo:t,attrExprInfoIndexes:f.top,headerRows:m.size.y,env:r,pageInfo:l,direction:n}))),C((t=>oR({prevData:t,nextDataPage:i,pageInfo:l,layoutService:o,visibleLeftDimensionInfo:e,attrExprInfoIndexes:f.left,env:r,direction:n})))}))}),[c]);const w=p((e=>{d(e)}),[]);return{headersData:m,measureData:v,topDimensionData:x,leftDimensionData:E,attrExprInfoIndexes:f,nextPageHandler:w}},dR=Math.sqrt(1e4),pR=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/Bt.PixelsMin)}),fR=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],r=Math.ceil(e.qWidth/dR),n=Math.ceil(e.qHeight/dR);for(let o=0;o<r;o++)for(let r=0;r<n;r++)t.push({qLeft:e.qLeft+o*dR,qTop:e.qTop+r*dR,qWidth:Math.min(dR,e.qWidth-o*dR),qHeight:Math.min(dR,e.qHeight-r*dR)});return t};function mR({nextPageHandler:e}){const{model:t}=MC(),{pageInfo:r}=RC(),{layoutService:n}=PC(),o=(e=>{const t=c(e);return t.current=e,t})(r.page),i=t,a=p((async(e,t)=>{await(null==i?void 0:i.collapseLeft(TC,e,t,!1))}),[i]),l=p((async(e,t)=>{await(null==i?void 0:i.collapseTop(TC,e,t,!1))}),[i]),u=p((async(e,t)=>{await(null==i?void 0:i.expandLeft(TC,e,t,!1))}),[i]),d=p((async(e,t)=>{await(null==i?void 0:i.expandTop(TC,e,t,!1))}),[i]),f=p((async t=>{if(null!=i&&i.getHyperCubePivotData&&0!==t.length)try{const n=await i.getHyperCubePivotData(TC,t.reduce(((e,t)=>[...e,...fR(t)]),[]));o.current===r.page&&e(n)}catch(e){console.error(e)}}),[i,e,r,o]),m=p(((e,{dimensionInfoIndex:r,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=n.layout.qHyperCube;let c=[];switch(a){case rr.Dimension:c=[{qPath:`${TC}/qDimensions/${r}/qDef/columnWidth`,oldValue:s[r].columnWidth}];break;case rr.Measures:if(o)c=l.map(((e,t)=>({qPath:`${TC}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=n.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${TC}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case rr.Pivot:c=[{qPath:`${TC}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((t=>{const{qPath:r,oldValue:n}=t;return{qPath:r,qOp:n?"Replace":"Add",qValue:JSON.stringify({...n,...e})}}));null==t||t.applyPatches(d,!0)}),[t,n]),h=p((async e=>{await(null==i?void 0:i.applyPatches([{qPath:`${TC}/indentModeColumnWidth`,qOp:n.layout.qHyperCube.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...n.indentModeColumnWidth,...e})}],!0))}),[i,n]);return s((()=>({collapseLeft:a,collapseTop:l,expandLeft:u,expandTop:d,applyColumnWidth:m,applyIndentModeColumnWidth:h,fetchPages:f})),[a,l,u,d,m,h,f])}const hR=(e,t,r)=>(n,o)=>{if("P"===n)return _C;const i=t[r+o];return e[i]},gR=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},bR=m({}),vR=()=>n(bR),yR=({children:e})=>{const{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r}=(()=>{const{layoutService:{layout:{qHyperCube:{qNoOfLeftDims:e,qEffectiveInterColumnSortOrder:t,qDimensionInfo:r}}}}=PC(),{qPivotDataPages:n}=RC();return s((()=>{var o,i,a,l;const s=gR(null!==(o=null===(i=n[0])||void 0===i?void 0:i.qLeft)&&void 0!==o?o:[]),u=gR(null!==(a=null===(l=n[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(hR(r,t,0)),visibleTopDimensionInfo:u.map(hR(r,t,e))}}),[r,t,e,n])})(),{headersData:n,measureData:o,topDimensionData:i,leftDimensionData:a,attrExprInfoIndexes:l,nextPageHandler:u}=cR(t,r),c=mR({nextPageHandler:u}),d=s((()=>({gridSectionsData:{headersData:n,topDimensionData:i,leftDimensionData:a,measureData:o},visibleDimensionsInfo:{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r},attrExprInfoIndexes:l,dataModel:c})),[t,r,n,o,i,a,l,c]);return Yr.jsx(bR.Provider,{value:d,children:e})},xR=18,SR=.75,ER=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===Ut.Image},CR=({isLeftColumn:e,layoutService:t,representation:r})=>e&&t.isIndentModeEnabled&&t.indentModeFeatures.isImagesSupported&&r.type===Ut.Image,wR=e=>void 0===e?ig:e,RR=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,LR=e=>RR(e,Bt.PixelsDefault),IR=(e,t)=>RR(e,Bt.PercentageDefault)*t/100,MR=(e,t,r)=>{switch(null==t?void 0:t.type){case $t.Pixels:return LR(t.pixels);case $t.Percentage:return IR(t.percentage,e);case $t.FitToContent:case $t.Auto:default:return r}},DR=({headers:e,layoutService:t,effectivePropertiesService:r,estimateWidthForDimensionValue:n,shouldConsiderCombinatedLength:o,measureTextForHeader:i,longestMeasureValuePossible:a})=>e.reduce(((e,l,s)=>{var u;const{layout:{qHyperCube:{qNoOfLeftDims:c,qDimensionInfo:d}}}=t,{id:p,colIdx:f,qApprMaxGlyphCount:m,isLeftDimension:h}=l,g=d.find((e=>e.cId===p)),b={width:24,...null==g||null===(u=g.representation)||void 0===u?void 0:u.imageBox};if(!h)return e+0;if(p===qC)return e+0;const v=CR({isLeftColumn:h,layoutService:t,representation:(null==g?void 0:g.representation)||{type:Ut.Text}})?b.width+8+4:n(m),y=!r.qAlwaysFullyExpanded&&f<c-1?21:0;let x=0;if(o&&i&&a){x=i("- ")+a}return Math.max(e,24*s+xR+y+v+x)}),0),AR=(e,t,r)=>e.reduce(((e,n)=>{const o=(r?0:1)*xR;return Math.max(e,o+t(n.qFallbackTitle))}),0),PR=(e,t,r,n)=>{const o=100*e/t,i=n*SR*(o/100),a=r*(o/100);return Math.min(a,i)},OR=(e,t,r,n)=>n*(r/100)*(100*e/t/100),kR=(e,t)=>e.some((e=>e>=t*SR)),TR=({layoutService:e,effectivePropertiesService:t,headersData:r,columnWidths:n,tableWidth:o,widthOverride:i,measureTextForHeader:a,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:s,translator:u})=>{let c=[];const d=o*SR,p=r.data[r.data.length-1][0];if(!Array.isArray(p))return{leftGridWidth:0,leftGridColumnWidths:[],leftGridFullWidth:0};const f=Math.min(d,n.at(-1)),m=Math.min(d,DR({headers:p,layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:l})),h=Math.min(d,AR(e.visibleMeasureInfo,a));let g=0;const b=p.findIndex((e=>e.id===qC)),v=(({layoutService:e,measureTextForHeader:t,translator:r,headersData:n})=>{const{type:o}=e.indentModeColumnWidth;return o===$t.Auto&&n.size.y<=1?t(r.get("SNPivotTable.IndentMode.Rows"))+8+xR+16:24})({layoutService:e,measureTextForHeader:a,translator:u,headersData:r});if(e.hasPseudoDimOnLeft)if(0===b){const e=Math.max(f,m,h);c=[Math.max(v,e-f),f]}else{const r=Math.min(d,AR(e.visibleMeasureInfo,s,!0));g=Math.min(d,DR({headers:p.slice(0,b),layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:l,shouldConsiderCombinatedLength:!0,measureTextForHeader:a,longestMeasureValuePossible:r}));const n=Math.max(f,m,g);c=[Math.max(v,n-f),f]}else c=[Math.max(v,m-f),f];const y=Math.min(d,c.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:x}=e;i&&i<=d&&(x.type=$t.Pixels,x.pixels=i);return[$t.Pixels,$t.Percentage].includes(x.type)||kR(c,o)?((e,t,r,n)=>{let o=e[0],i=e[1],a=[];const l=e.reduce(((e,t)=>e+t),0),{type:s,pixels:u,percentage:c}=t,d=kR(e,r);s===$t.Auto&&d&&(o>i?o-=i:i-=o),s===$t.Pixels&&u&&(o=PR(e[0],l,u,r),i=PR(e[1],l,u,r)),s===$t.Percentage&&c&&(o=OR(e[0],l,c,r),i=OR(e[1],l,c,r));let p=0;i<=n&&(p=o-5,p>0&&(o-=p,i+=p)),p=i-n,p>0&&(o+=p,i-=p),a=[o,i];const f=a.reduce(((e,t)=>e+t),0);return{leftGridColumnWidths:a,leftGridWidth:f,leftGridFullWidth:f}})(c,x,o,f):{leftGridWidth:y,leftGridColumnWidths:c,leftGridFullWidth:y}};function _R({tableWidth:e}){const t=e*SR,{styleService:r,layoutService:n,effectivePropertiesService:o}=PC(),{translator:i}=MC(),{gridSectionsData:{headersData:a}}=vR(),{measureText:l}=jg(r.header),{estimateWidth:s,measureText:c}=jg({...r.dimensionValues,fontWeight:wR(r.dimensionValues.fontWeight)}),{measureText:d}=jg({...r.dimensionValues,...r.measureLabels}),f=p(((r,u)=>{const{layout:{qHyperCube:{qNoOfLeftDims:p,topHeadersColumnWidth:f}},visibleMeasureInfo:m,isIndentModeEnabled:h,hasPseudoDimOnLeft:g}=n,b=(t=0)=>m.reduce(((r,{qFallbackTitle:n,columnWidth:o})=>{const i=d(n)+xR,a=Math.max(i,t);return Math.max(r,h?a:MR(e,o,a))}),0),v=e=>a.data.reduce(((t,r)=>{const n=r.at(e);if(!n||Array.isArray(n))return t;if(n.id===qC)return t;const o=(e=>{const{label:t,isLocked:r}=e,n=r?20:0;return xR+l(t)+20+n})(n);return Math.max(o,t)}),0);let y=0,x=a.data.at(-1);h&&a.size.x>1&&x&&x[0]&&(x=x[0]);const S=x.map(((i,l)=>{let c=xR;if(h&&1!==a.size.x||!r||void 0===u||u!==i.colIdx){let t;i.columnWidthLocation===rr.Pivot?t=h?void 0:f:i.columnWidthLocation===rr.Dimension&&({columnWidth:t}=i);let r=0;if(i.isLeftDimension)if(i.id===qC)r=b();else{const e=v(l),t=((e,t)=>{const{qApprMaxGlyphCount:r,isLeftDimension:i,dimensionInfoIndex:a}=e,l=n.getDimensionInfo(a);if(ER(l))return Bt.PixelsDefault;const u=!o.qAlwaysFullyExpanded&&i&&t<p-1?21:0;return xR+s(r)+u})(i,l);r=Math.max(e,t),h&&!g&&l+1===p&&i.columnWidthLocation===rr.Dimension&&a.size.x>1&&(r=e)}else r=v(l),i.columnWidthLocation===rr.Measures&&(r=b(r));h&&1===a.size.x&&(t=n.indentModeColumnWidth),c=h&&!g&&a.size.x>1?r:MR(e,t,r)}else c=h?Math.min(t,r):r;return y+=c,c}));return h&&a.size.x>1?TR({layoutService:n,effectivePropertiesService:o,headersData:a,columnWidths:S,tableWidth:e,widthOverride:r,measureTextForHeader:l,estimateWidthForDimensionValue:s,measureTextWidthForMeasuresCombinedWithDimensions:c,translator:i}):{leftGridWidth:Math.min(t,y),leftGridColumnWidths:S,leftGridFullWidth:y}}),[e,a,n,t,l,d,s,c,i,o]),[m,h]=u(f);$g((()=>{h(f())}),[f]);const g=p(((e,t)=>{h(f(e,t))}),[f]);return{...m,overrideLeftGridWidth:g}}function qR({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:r}){const{styleService:n,layoutService:o}=PC(),{visibleDimensionsInfo:{visibleTopDimensionInfo:i}}=vR(),{layout:{qHyperCube:{qNoOfLeftDims:a,qEffectiveInterColumnSortOrder:l}},size:u,visibleMeasureInfo:c}=o,{estimateWidth:d,measureText:f}=jg(n.measureValues),{estimateWidth:m}=jg({...n.dimensionValues,fontWeight:wR(n.dimensionValues.fontWeight)}),h=e-r-1,g=i.at(-1),b=g===_C,v=l.length-a>i.length?21:0,y=s((()=>{const e=b?c:[g],t=u.x/e.length,r=[],n=[];let o=h;const i=(e,n)=>{r[e]=Math.min(Bt.PixelsMax,Math.max(Bt.PixelsMin,n)),o-=r[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:r,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:s}=e;switch(r){case $t.Pixels:i(t,LR(o));break;case $t.Percentage:i(t,IR(a,h));break;case $t.FitToContent:i(t,((e,t,r)=>r?Bt.PixelsDefault:xR+(b?Math.max(d(e),f(t)):Math.max(Math.max(...c.map((e=>d(e.qApprMaxGlyphCount)))),m(e)+v)))(l,s,ER(e)));break;case $t.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(Bt.AutoMinPivot,i)}))}return r}),[b,c,g,u.x,h,d,f,m,v]),x=s((()=>{if(b){return c.reduce(((e,t,r)=>e+y[r]),0)/c.length}return y[0]}),[b,y,c]),S=parseFloat((t/o.size.x).toFixed(12)),E=p((e=>(b&&void 0!==e?y[o.getMeasureInfoIndexFromCellIndex(e,!0)]:x)-S),[b,y,o,x,S]),C=u.x*x;return{rightGridFullWidth:C,rightGridWidth:Math.min(C,h),getRightGridColumnWidth:E}}const NR=`scrollable-container--${or.TopGrid}`,FR=`scrollable-container--${or.LeftGrid}`,jR=`scrollable-container--${or.DataGrid}`,zR=e=>e&&e instanceof HTMLDivElement?{width:e.offsetWidth-e.clientWidth,height:e.offsetHeight-e.clientHeight}:{width:0,height:0},GR=(e,t)=>e>t?ir.Forward:e<t?ir.Backward:ir.None,BR=({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:o,trackScrollDirection:i,interactions:a})=>{const{direction:l}=RC();f((()=>{const{headerGridWrapperElement:s,topGridWrapperElement:u,leftGridWrapperElement:c,dataGridWrapperElement:d}=n(),p=e=>{const t=e.target;s.scrollLeft=t.scrollLeft,i(e),null==o||o(e)},f=e=>{const t=e.target;s.scrollTop=t.scrollTop,i(e),null==o||o(e)},m=n=>{var a,s,p;const f=n.target,m=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:o}=e,i=r-n;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(f,l);null===(a=r.current)||void 0===a||a.scrollTo({scrollLeft:m,scrollTop:f.scrollTop}),u.scrollLeft=m,null===(s=e.current)||void 0===s||s.forEach((e=>{null==e||e.scrollTo(m)})),c.scrollTop=d.scrollTop,null===(p=t.current)||void 0===p||p.forEach((e=>{null==e||e.scrollTo(f.scrollTop)})),i(n),null==o||o(n)};return c.addEventListener("scroll",p),u.addEventListener("scroll",f),d.addEventListener("scroll",m),a.scroll||setTimeout((()=>{c.removeEventListener("scroll",p),u.removeEventListener("scroll",f),d.removeEventListener("scroll",m)}),0),()=>{c.removeEventListener("scroll",p),u.removeEventListener("scroll",f),d.removeEventListener("scroll",m)}}),[i,o,a,e,t,r,n,l])},$R=()=>{const{interactions:e}=MC(),t=c(null),r=c(null),n=c(null),o=c(null),i=c([]),a=c([]),l=c(null),{scrollbarsDimensions:{verticalScrollbarWidth:s,horizontalScrollbarHeight:d},resetHorizontalScrollbarHeight:m}=(({topGridWrapperRef:e,leftGridWrapperRef:t,dataGridWrapperRef:r})=>{const[n,o]=u(0),[i,a]=u(0);return g((()=>{(e.current||r.current)&&o(Math.max(zR(e.current).width,zR(r.current).width))})),g((()=>{(t.current||r.current)&&a(Math.max(zR(t.current).height,zR(r.current).height))})),{scrollbarsDimensions:{verticalScrollbarWidth:n,horizontalScrollbarHeight:i},resetHorizontalScrollbarHeight:()=>{a(0)}}})({topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o});(({gridSectionsWrapperRefs:{headerGridWrapperRef:e,topGridWrapperRef:t,leftGridWrapperRef:r,dataGridWrapperRef:n},gridRefs:{topGridRef:o,leftGridRef:i,dataGridRef:a}})=>{const{pageInfo:l}=RC(),{downloadService:s,viewService:u,layoutService:c}=PC(),d=p((()=>{var o,i,a,l;const s={left:0,top:0};null===(o=e.current)||void 0===o||o.scrollTo(s),null===(i=t.current)||void 0===i||i.scrollTo(s),null===(a=r.current)||void 0===a||a.scrollTo(s),null===(l=n.current)||void 0===l||l.scrollTo(s)}),[e,t,r,n]);g((()=>{d()}),[l.page,d]),g((()=>{c.triggerdByExpandOrCollapse||d()}),[c,d]),g((()=>{if(c.triggerdByExpandOrCollapse){var e,t,r,l,s,u,d;const c=null!==(e=null===(t=n.current)||void 0===t?void 0:t.scrollLeft)&&void 0!==e?e:0,p=null!==(r=null===(l=n.current)||void 0===l?void 0:l.scrollTop)&&void 0!==r?r:0;null===(s=i.current)||void 0===s||s.forEach((e=>{null==e||e.scrollTo(p)})),null===(u=o.current)||void 0===u||u.forEach((e=>{null==e||e.scrollTo(c)})),null===(d=a.current)||void 0===d||d.scrollTo({scrollTop:p,scrollLeft:c})}}),[c,n,a,i,o]),g((()=>{(s.isDownloadedAsPDForImage||c.isSnapshot)&&n.current&&r.current&&t.current&&(n.current.scrollTop=u.scrollTop,n.current.scrollLeft=u.scrollLeft,r.current.scrollLeft=u.leftGridScrollLeft,t.current.scrollTop=u.topGridScrollTop)}),[u,s,c,n,r,t])})({gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:l}});const{trackScrollDirection:h,scrollDirectionRefs:{verticalScrollDirection:b,horizontalScrollDirection:v}}=(()=>{const e=c(ir.None),t=c(ir.None),r=c({prevScrollTop:0,prevScrollLeft:0});return{trackScrollDirection:p((n=>{if(n instanceof WheelEvent&&(e.current=GR(n.deltaY,0),t.current=GR(n.deltaX,0)),n instanceof Event&&!(n instanceof WheelEvent)){const o=n.target;e.current=GR(o.scrollTop,r.current.prevScrollTop),r.current.prevScrollTop=o.scrollTop,t.current=GR(o.scrollLeft,r.current.prevScrollLeft),r.current.prevScrollLeft=o.scrollLeft}}),[e,t,r]),scrollDirectionRefs:{verticalScrollDirection:e,horizontalScrollDirection:t}}})(),y=(()=>{const{viewService:e}=PC();return p((t=>{const r=t.target,n=t.currentTarget,o=r.dataset.key;o===FR&&(e.leftGridScrollLeft=n.scrollLeft),o===jR&&(e.scrollLeft=n.scrollLeft),o===NR&&(e.topGridScrollTop=n.scrollTop),o!==FR&&o!==jR||(e.scrollTop=n.scrollTop)}),[e])})(),x={gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:l},getWrapperElements:p((()=>({headerGridWrapperElement:t.current,topGridWrapperElement:r.current,leftGridWrapperElement:n.current,dataGridWrapperElement:o.current})),[t,r,n,o]),updateViewService:y,trackScrollDirection:h,interactions:e};return(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:o,trackScrollDirection:i,interactions:a})=>{f((()=>{const{headerGridWrapperElement:o,topGridWrapperElement:l,leftGridWrapperElement:s,dataGridWrapperElement:u}=n(),c=e=>{o.scrollLeft+=e.deltaX,o.scrollTop+=e.deltaY,s.scrollLeft=o.scrollLeft,l.scrollTop=o.scrollTop,i(e)},d=e=>{var n,a;s.scrollTop+=e.deltaY,null===(n=t.current)||void 0===n||n.forEach((e=>{null==e||e.scrollTo(s.scrollTop)})),o.scrollLeft+=e.deltaX,s.scrollLeft=o.scrollLeft,u.scrollTop=s.scrollTop,null===(a=r.current)||void 0===a||a.scrollTo({scrollTop:s.scrollTop}),i(e)},p=t=>{var n,a;l.scrollLeft+=t.deltaX,null===(n=e.current)||void 0===n||n.forEach((e=>{null==e||e.scrollTo(l.scrollLeft)})),o.scrollTop+=t.deltaY,l.scrollTop=o.scrollTop,u.scrollLeft=l.scrollLeft,null===(a=r.current)||void 0===a||a.scrollTo({scrollLeft:l.scrollLeft}),i(t)},f=n=>{var o,a,c;u.scrollLeft+=n.deltaX,u.scrollTop+=n.deltaY,null===(o=r.current)||void 0===o||o.scrollTo({scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}),l.scrollLeft=u.scrollLeft,null===(a=e.current)||void 0===a||a.forEach((e=>{null==e||e.scrollTo(u.scrollLeft)})),s.scrollTop=u.scrollTop,null===(c=t.current)||void 0===c||c.forEach((e=>{null==e||e.scrollTo(u.scrollTop)})),i(n)};return o.addEventListener("wheel",c),s.addEventListener("wheel",d),l.addEventListener("wheel",p),u.addEventListener("wheel",f),a.scroll||setTimeout((()=>{o.removeEventListener("wheel",c),s.removeEventListener("wheel",d),l.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}),0),()=>{o.removeEventListener("wheel",c),s.removeEventListener("wheel",d),l.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}}),[i,o,a,e,t,r,n])})(x),BR(x),{gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:l},scrollDirectionRefs:{verticalScrollDirection:b,horizontalScrollDirection:v},scrollbarsDimensions:{verticalScrollbarWidth:s,horizontalScrollbarHeight:d,resetHorizontalScrollbarHeight:m}}},WR=()=>{const{layoutService:e}=PC(),{rect:t,pageInfo:r}=RC();return s((()=>{let{height:n}=t;return e.hasLimitedData&&(n-=22),r.shouldShowPagination&&(n-=41),{...t,height:n}}),[t,e,r.shouldShowPagination])},HR=({children:e,style:t})=>Yr.jsx("div",{"data-testid":"fullSize",style:t,children:e}),VR=({children:e,style:t})=>{const{direction:r}=RC();return Yr.jsx("div",{"data-section-id":"GRID",style:{direction:r,display:"grid",...t},children:e})},UR=e=>e&&`scrollable-container--${e}`,YR=({children:e,style:t,origin:r},n)=>{const{interactions:o}=MC(),i=o.scroll?t:{overflow:"hidden"};return Yr.jsx("div",{"data-testid":"scrollable","data-key":UR(r),style:i,ref:n,children:e})};var KR=t.forwardRef(YR);const XR=({children:e,style:t})=>{const{direction:r}=RC();return Yr.jsx("div",{"data-testid":"sticky",style:{position:"sticky",top:0,["rtl"===r?"right":"left"]:0,...t},children:e})};var JR=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ZR(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||JR(n)&&JR(o)))return!1;var n,o;return!0}function QR(e,t){var r;void 0===t&&(t=ZR);var n,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var eL="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function tL(e){cancelAnimationFrame(e.id)}function rL(e,t){var r=eL();var n={id:requestAnimationFrame((function o(){eL()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var nL=-1;function oL(e){if(void 0===e&&(e=!1),-1===nL||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),nL=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return nL}var iL=null;function aL(e){if(void 0===e&&(e=!1),null===iL||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?iL="positive-descending":(t.scrollLeft=1,iL=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),iL}return iL}var lL=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function sL(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,i=e.getColumnStopIndexForStartIndex,a=e.getColumnWidth,l=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,u=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,d=e.getRowHeight,p=e.getRowOffset,f=e.getRowStartIndexForOffset,m=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,g=e.shouldResetStyleCacheOnItemSizeChange,v=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=h(n.props,Rr(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Rr(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=QR((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=QR((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,i=n.props,l=i.columnWidth,s=i.direction,u=i.rowHeight,c=n._getItemStyleCache(g&&l,g&&s,g&&u),f=e+":"+t;if(c.hasOwnProperty(f))o=c[f];else{var m=r(n.props,t,n._instanceProps),h="rtl"===s;c[f]=o={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:p(n.props,e,n._instanceProps),height:d(n.props,e,n._instanceProps),width:a(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=QR((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(aL()){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&&tL(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=rL(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}wr(t,e),t.getDerivedStateFromProps=function(e,t){return uL(e,t),v(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,a=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=oL();void 0!==n&&(n=Math.max(0,Math.min(n,a-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=l(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?u(this.props,n,r,h,this._instanceProps,x):h,scrollTop:void 0!==o?c(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(aL()){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&&tL(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,i=e.direction,a=e.height,u=e.innerRef,c=e.innerElementType,d=e.innerTagName,p=e.itemData,f=e.itemKey,m=void 0===f?lL:f,h=e.outerElementType,g=e.outerTagName,b=e.rowCount,v=e.style,y=e.useIsScrolling,x=e.width,S=this.state.isScrolling,E=this._getHorizontalRangeToRender(),C=E[0],w=E[1],R=this._getVerticalRangeToRender(),L=R[0],I=R[1],M=[];if(n>0&&b)for(var D=L;D<=I;D++)for(var A=C;A<=w;A++)M.push(o(t,{columnIndex:A,data:p,isScrolling:y?S:void 0,key:m({columnIndex:A,data:p,rowIndex:D}),rowIndex:D,style:this._getItemStyle(D,A)}));var P=l(this.props,this._instanceProps),O=s(this.props,this._instanceProps);return o(h||g||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:hr({position:"relative",height:a,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},v)},o(c||d||"div",{children:M,ref:u,style:{height:P,pointerEvents:S?"none":void 0,width: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],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof n){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,o=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=r||o||a||1;if(0===t||0===l)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),m=i(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=f(this.props,u,this._instanceProps),p=m(this.props,d,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,p+g)),d,p]},t}(b),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var uL=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},cL=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},dL=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},pL=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]},fL=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?mL(e,t,r,i,0,n):hL(e,t,r,Math.max(0,i),n)},mL=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),l=pL(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},hL=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&pL(e,t,n,r).offset<o;)n+=a,a*=2;return mL(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},gL=function(e,t,r,n,o,i,a){var l="column"===e?t.width:t.height,s=pL(e,t,r,i),u="column"===e?dL(t,i):cL(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}},bL=sL({getColumnOffset:function(e,t,r){return pL("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return fL("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=pL("column",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=pL("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:cL,getEstimatedTotalWidth:dL,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return gL("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return gL("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return pL("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return fL("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=pL("row",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=pL("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}}),vL=function(e,t){return e};function yL(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,l=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,u=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=u(n.props,Rr(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Rr(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=QR((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=QR((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,o=n.props,a=o.direction,l=o.itemSize,s=o.layout,u=n._getItemStyleCache(c&&l,c&&s,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=r(n.props,e,n._instanceProps),p=i(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?d:0;u[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=QR((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(aL()){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&&tL(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=rL(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}wr(t,e),t.getDerivedStateFromProps=function(e,t){return xL(e,t),d(e),null};var p=t.prototype;return p.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},p.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,i=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?oL():0:s.scrollHeight>s.clientHeight?oL():0}this.scrollTo(a(this.props,e,t,i,this._instanceProps,l))},p.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},p.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(aL()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},p.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&tL(this._resetIsScrollingTimeoutId)},p.render=function(){var e=this.props,t=e.children,r=e.className,i=e.direction,a=e.height,l=e.innerRef,s=e.innerElementType,u=e.innerTagName,c=e.itemCount,d=e.itemData,p=e.itemKey,f=void 0===p?vL:p,m=e.layout,h=e.outerElementType,g=e.outerTagName,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S="horizontal"===i||"horizontal"===m,E=S?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),w=C[0],R=C[1],L=[];if(c>0)for(var I=w;I<=R;I++)L.push(o(t,{data:d,key:f(I,d),index:I,isScrolling:v?x:void 0,style:this._getItemStyle(I)}));var M=n(this.props,this._instanceProps);return o(h||g||"div",{className:r,onScroll:E,ref:this._outerRefSetter,style:hr({position:"relative",height:a,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},b)},o(s||u||"div",{children:L,ref:l,style:{height:S?"100%":M,pointerEvents:x?"none":void 0,width:S?M:"100%"}}))},p._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},p._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,a=n.scrollOffset;if(0===t)return[0,0,0,0];var u=l(this.props,a,this._instanceProps),c=s(this.props,u,a,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(b),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var xL=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},SL=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]},EL=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=SL(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},CL=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&SL(e,r,t).offset<n;)r+=i,i*=2;return EL(e,t,Math.min(r,o-1),Math.floor(r/2),n)},wL=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},RL=yL({getItemOffset:function(e,t,r){return SL(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:wL,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=SL(e,t,o),p=wL(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=m-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return n>=m&&n<=f?n:n<m?m:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?EL(e,t,o,0,r):CL(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=SL(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=SL(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 LL(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 IL=["style"],ML=["style"];function DL(e,t){var r=e.style,n=Er(e,IL),o=t.style,i=Er(t,ML);return!LL(r,o)&&!LL(n,i)}const AL=10,PL=(e,t)=>e.current===ir.Backward?t:0,OL=(e,t,r,n)=>{for(let o=r;o<r+n;o++){const r=e.at(o);if(void 0===r||void 0===r.at(t))return!0}return!1},kL=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,TL=({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(OL(t,e,r,n)){const t=a[a.length-1],o={qLeft:e,qTop:r+l,qWidth:1,qHeight:n};void 0!==t&&kL(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},_L=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=n,u=r.current===ir.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return TL({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},qL=({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=PL(r,AL),u=Math.max(n-s,0);return{startLeft:u,endLeft:u+Math.min(i+AL,l-u),pageTop:o,qHeight:a}})(n,o,r),u=TL({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,..._L({pageInfo:e,measureData:t,scrollDirection:r,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:n.size.x})]:u},NL=(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},FL=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,jL=({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(NL(o,r,i,n)){const e=a.at(-1),t={qLeft:r,qTop:i+l,qWidth:n,qHeight:1};void 0!==e&&FL(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},zL=({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=PL(r,AL),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+AL,e.rowsOnCurrentPage-s),qLeft:n,qWidth:i}})(e,n,r),s=jL({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const n=r.current===ir.Backward?Math.max(0,o-25):i,u=Math.min(n+25,e.rowsOnCurrentPage),c=jL({startTop:n,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},GL=async(e,t,r,n,o,i,a,l)=>{const{gridColumnStartIndex:s,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==ir.None&&(p=zL({pageInfo:n,measureData:r,scrollDirection:i,viewService:o})),a.current!==ir.None&&(f=qL({pageInfo:n,measureData:r,scrollDirection:a,layoutService:t,viewService:o})),i.current===ir.None&&a.current===ir.None&&(p=jL({measureData:r,pageInfo:n,qLeft:s,qWidth:c,startTop:u,endTop:u+d}));const m=e.fetchPages([...p,...f]);l.isDownloadedAsPDForImage&&l.waitForPromise(m)},BL=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))}}(GL,100),$L=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)}}(GL,75),WL=(e,t,r=!1)=>void 0!==e&&(e.isLeafNode||r&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),HL=({style:e,index:t,isLastRow:r,isLastColumn:n,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{direction:l}=RC(),{styleService:{grid:{border:s,divider:u}}}=PC();return Yr.jsx("div",{style:{...e,...pg,...gg(r,n,s,l,o),...vg({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:u})},"data-testid":"empty-cell","data-index":t})},VL=({children:e,verticalAlign:t,width:r,right:n,isLeftColumn:o})=>{const{layoutService:i}=PC(),a=o&&i.isIndentModeEnabled&&i.indentModeFeatures.isImagesSupported;return Yr.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",overflow:"hidden",flexDirection:"row",width:r,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:n,...a?{}:{alignItems:t,alignSelf:t}},children:e})},UL=e=>{const{type:t,imageSize:r}=e;return t!==Ut.Image||"fill"!==r&&"fitWidth"!==r?"fit-content":"100%"};function YL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KL(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const XL=(e,t)=>Yr.jsx("svg",KL(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){YL(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),{children:Yr.jsx("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"})})),JL=d(XL);function ZL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QL(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const eI=(e,t)=>Yr.jsx("svg",QL(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){ZL(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),{children:Yr.jsx("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"})})),tI=d(eI),rI=e=>{var t;return!(null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t||!t.includes(Gt))},nI=(e,t)=>{switch(t.type){case"clearSelections":return{engineSelectedCells:null,activeSelection:null,selectedField:null};case"mouseup":return{...e,activeSelection:null,engineSelectedCells:t.payload.engineSelectedCells};case"mousedown":return{...e,activeSelection:t.payload.activeSelection,selectedField:t.payload.selectedField};case"mouseover":{if(!e.activeSelection)return e;const{index:r}=t.payload,n=Math.min(r,e.activeSelection.startIndex),o=Math.max(r,e.activeSelection.endIndex);if(n===e.activeSelection.startIndex&&o===e.activeSelection.endIndex)return e;const i={...e.activeSelection,startIndex:n,endIndex:o};return i.clientSelectedCells=(e=>{const{getCellFromIndex:t,startIndex:r,endIndex:n,clientSelectedCells:o}=e,i=new Map(o);for(let e=r;e<=n;e++){const r=t(e);"N"===(null==r?void 0:r.ref.qType)&&i.set(r.ref.qElemNo,r)}return i})(i),{...e,activeSelection:i}}default:return e}},oI=e=>{var t;return null!==(null===(t=e.target)||void 0===t?void 0:t.closest("[data-prevent-selection]"))},iI=e=>{var t;return"A"===(null===(t=e.target)||void 0===t?void 0:t.tagName)},aI=({startIndex:e,getCellFromIndex:t,cell:r})=>({type:"mousedown",payload:{activeSelection:{startIndex:e,endIndex:e,getCellFromIndex:t,clientSelectedCells:(new Map).set(r.ref.qElemNo,r)},selectedField:{selectionCellType:r.selectionCellType,index:"L"===r.selectionCellType?r.x:r.y}}});const lI=m({createMouseDownHandler:()=>()=>{},createMouseOverHandler:()=>()=>{},createPointerUpHandler:()=>()=>{},isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),sI=()=>n(lI),uI=({children:e,selections:t})=>{const r=function(e){var t,r,n;const{updatePageInfo:o}=RC(),i=e.isActive(),[a,l]=v(nI,{engineSelectedCells:null,selectedField:null,activeSelection:null});f((()=>{const t=()=>{l({type:"clearSelections"})},r=()=>{t(),o({page:0})};return e.on("deactivated",t),e.on("canceled",t),e.on("confirmed",r),e.on("cleared",t),()=>{e.removeListener("deactivated",t),e.removeListener("canceled",t),e.removeListener("confirmed",r),e.removeListener("cleared",t)}}),[e,o]);const u=p((async()=>{var t,r,n;if(!a.activeSelection)return;1===a.activeSelection.clientSelectedCells.size&&(r=a.engineSelectedCells,(n=a.activeSelection).clientSelectedCells.forEach(((e,t)=>{null!=r&&r.has(t)&&(n.clientSelectedCells.delete(t),r.delete(t))})));const o=new Map([...null!==(t=a.engineSelectedCells)&&void 0!==t?t:new Map,...a.activeSelection.clientSelectedCells]);try{l({type:"mouseup",payload:{engineSelectedCells:o}}),await e.select({method:"selectPivotCells",params:[TC,Array.from(o,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]})}catch(e){console.error(e),l({type:"mouseup",payload:{engineSelectedCells:a.engineSelectedCells}})}}),[a,e]);f((()=>{if(a.activeSelection)return document.addEventListener("mouseup",u),()=>{document.removeEventListener("mouseup",u)}}),[u,a.activeSelection]);const c=p(((e,t)=>r=>{const n=t(e);rI(r)||oI(r)||iI(r)||!(e=>1===e.buttons)(r)||!n||l(aI({startIndex:e,getCellFromIndex:t,cell:n}))}),[]),d=p((t=>async()=>{a.activeSelection&&(e.isActive()||await e.begin([TC]),l({type:"mouseover",payload:{index:t}}))}),[a.activeSelection,e]),m=p(((e,t)=>r=>{if("touch"!==r.pointerType)return;const n=t(e);rI(r)||oI(r)||iI(r)||!n||(l(aI({startIndex:e,getCellFromIndex:t,cell:n})),u())}),[u]),h=p((e=>{var t,r;return!(!(null!==(t=a.engineSelectedCells)&&void 0!==t&&t.size||null!==(r=a.activeSelection)&&void 0!==r&&r.clientSelectedCells.size)||!a.selectedField||e.selectionCellType===a.selectedField.selectionCellType&&("L"===e.selectionCellType?a.selectedField.index===e.x:a.selectedField.index===e.y))}),[null===(t=a.activeSelection)||void 0===t?void 0:t.clientSelectedCells.size,null===(r=a.engineSelectedCells)||void 0===r?void 0:r.size,a.selectedField]),g=p((e=>{var t,r;return!h(e)&&((null===(t=a.engineSelectedCells)||void 0===t?void 0:t.has(e.ref.qElemNo))||!(null===(r=a.activeSelection)||void 0===r||!r.clientSelectedCells.has(e.ref.qElemNo)))}),[h,null===(n=a.activeSelection)||void 0===n?void 0:n.clientSelectedCells,a.engineSelectedCells]);return s((()=>({isSelected:g,isActive:i,isLocked:h,createMouseDownHandler:c,createMouseOverHandler:d,createPointerUpHandler:m})),[g,i,h,c,d,m])}(t);return Yr.jsx(lI.Provider,{value:r,children:e})},cI=e=>{const t=e.isLeftColumn?"flex-start":"center";var r;return e.representation.type!==Ut.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(r=e.representation.resolvedImagePosition)||void 0===r?void 0:r.vertical};var dI;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(dI||(dI={}));const pI={brighter:.5,darker:.3,opacity:.03},fI=(e,{cell:t,styleService:r})=>{if(e===dI.Background||e===dI.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]},mI=({styleService:e,isCellSelected:t,cell:r,isCellLocked:n})=>{if(t)return e.selectedColors.background;const o=fI(dI.Background,{cell:r,styleService:e});return!n||!o||r.isPseudoDimension||r.isEmpty||r.isNull||r.isTotal?fI(dI.Background,{cell:r,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${Hh(i=o,pI)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},hI=({cell:e,styleService:t,isCellSelected:r})=>r?t.selectedColors.color:fI(dI.Color,{cell:e,styleService:t}),gI=({cell:e,styleService:t})=>{const{qCanCollapse:r,qCanExpand:n}=e.ref,o=fI(dI.FontWeight,{cell:e,styleService:t});return void 0===o&&(n||r)?ig:o},bI=({cell:e,styleService:t})=>fI(dI.FontStyle,{cell:e,styleService:t}),vI=({cell:e,styleService:t})=>fI(dI.TextDecoration,{cell:e,styleService:t}),yI=e=>e?"pointer":"default",xI=({expandOrCollapse:e,cell:t})=>r=>{null==e||e(t.y,t.x),r.stopPropagation()},SI=(e,t)=>{if(!e.isLeftColumn||e.representation.type===Ut.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},EI=({cell:e,isLeftColumn:t,isCellSelected:r})=>{const{styleService:n,layoutService:o}=PC(),{interactions:i}=MC(),{isActive:a}=sI(),{dataModel:l}=vR();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const s=!i.active||a||!l,u=hI({cell:e,styleService:n,isCellSelected:r}),c=a?.4:1,d=e.ref.qCanExpand?tI:JL;let p;p=e.ref.qCanExpand?t?l.expandLeft:l.expandTop:t?l.collapseLeft:l.collapseTop;const f=CR({isLeftColumn:t,layoutService:o,representation:e.representation});return Yr.jsx(d,{opacity:c,color:u,"data-prevent-selection":!s||void 0,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:s?"default":"pointer",...SI(e,n),...f&&{alignSelf:cI(e),position:"sticky",top:0}},onClick:s?void 0:xI({cell:e,expandOrCollapse:p})})},CI=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},wI=(e,t)=>{if("alwaysFit"===e&&t)return"fit-content";switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},RI=(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"}},LI=({representation:e,canExpandOrCollapse:t,leafCount:r,isLeftColumn:n,styleService:o,layoutService:i})=>{var a,l;const{isIndentModeEnabled:s,indentModeFeatures:{isImagesSupported:u}}=i,c=CR({isLeftColumn:n,layoutService:i,representation:e}),d=t?21:0,p=null!==(a=null===(l=e.imageBox)||void 0===l?void 0:l.width)&&void 0!==a?a:24,f=c?p:`calc(100% - ${d}px)`,m=n?o.contentCellHeight:o.headerCellHeight;let h=m;switch(!n||void 0===r||s&&u||(h=m*Math.max(r,1)),e.imageSize){case"originalSize":return{maxWidth:f,maxHeight:h,...c?{width:f}:{}};case"fitWidth":return{width:f,maxHeight:h};case"fitHeight":return{height:h,maxWidth:f,...c?{width:f}:{}};case"fill":return{height:h,width:f};default:return{width:f,height:m}}},II=e=>{if("alwaysFit"===e)return"contain"},MI=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`.trim(),DI=({imageSize:e,resolvedImagePosition:t,isImagesInIndentModeEnabled:r})=>({width:wI(e,r),height:CI(e),objectFit:II(e),objectPosition:RI(e,t),...r&&"alwaysFit"===e?{"max-width":"100%"}:{}}),AI=({representation:e,textStyle:t})=>{const{imageRef:r,onLoad:n}=(()=>{const{downloadService:e}=PC(),t=c(null),{promise:r,resolve:n}=s((()=>Ig()),[]);return f((()=>{var o;return e.isDownloadedAsPDForImage&&(e.waitForPromise(r),null!==(o=t.current)&&void 0!==o&&o.complete&&n()),()=>{n()}}),[t,e,r,n]),{onLoad:p((()=>{n()}),[n]),imageRef:t}})(),{layoutService:{isIndentModeEnabled:o,indentModeFeatures:{isImagesSupported:i}}}=PC(),{url:a,text:l,imageSize:u,resolvedImagePosition:d}=e,{overflow:m,...h}=t;return Yr.jsx("img",{src:a,alt:l,style:{...DI({imageSize:u,resolvedImagePosition:d,isImagesInIndentModeEnabled:o&&i}),...h},onLoad:n,ref:r})},PI=({representation:e,textStyle:t,canExpandOrCollapse:r,leafCount:n,isLeftColumn:o,imageContainerHorizontalAlignment:i})=>{var a;const{styleService:l,layoutService:s}=PC(),{resolvedImagePosition:u}=e,c=(null===(a=e.labelStructure)||void 0===a?void 0:a.suffix)&&CR({isLeftColumn:o,layoutService:s,representation:e});return Yr.jsx("div",{"data-key":"image-container--image",style:{display:"flex",flexDirection:"column",justifyContent:null==u?void 0:u.vertical,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...LI({representation:e,canExpandOrCollapse:r,leafCount:n,isLeftColumn:o,styleService:l,layoutService:s}),...c?{}:{alignItems:i}},children:Yr.jsx(AI,{representation:e,textStyle:t})})},OI=(e,t,r)=>{if(null!=e&&e.auto)return t;switch(null==e?void 0:e.align){case"center":return"center";case"left":return"rtl"===r?"flex-end":"flex-start";case"right":return"rtl"===r?"flex-start":"flex-end";default:return t}},kI=(e,t)=>{var r,n;let{textAlign:o}=null!==(r=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==r?r:{};var i;e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex&&({labelTextAlign:o}=null!==(i=t.visibleMeasureInfo.at(e.visibleMeasureInfoIndex))&&void 0!==i?i:{});return null!==(n=o)&&void 0!==n&&n.auto||void 0===o?"left":o.align},TI={display:"flex",flexDirection:"row",alignItems:"center"},_I={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},qI=(e,t,r,n)=>t?{..._I,...e.nullValues}:r?{...TI,color:e.totalValues.color,background:null!=n?n:e.totalValues.background}:{...TI,color:e.measureValues.color,background:null!=n?n:e.measureValues.background},NI=(e,t,r,n,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...fg,...!r&&mg(e.grid.lineClamp),...t&&{color:t},fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.nullValues;return{...l,fontWeight:t,fontStyle:r,textDecoration:n}}if(n){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.totalValues;return{...l,fontWeight:t,fontStyle:r,textDecoration:n}}const{fontWeight:s,fontStyle:u,textDecoration:c}=e.measureValues;return{...l,fontWeight:void 0===s?ig:s,fontStyle:u,textDecoration:c}},FI=(e,t,r,n,o)=>{const{textAlign:i}=t,a=n?"flex-end":"center";var l,s;return e.isNull||r.type!==Ut.Image?OI(i,a,o):null!==(l=null===(s=r.resolvedImagePosition)||void 0===s?void 0:s.horizontal)&&void 0!==l?l:"center"},jI=({cell:e,representation:t,color:r,isNumeric:n,isTotalValueCell:o})=>{const{layoutService:i,styleService:a}=PC(),l=e.isNull?i.getNullValueText():t.text,s=NI(a,r,n,o,e.isNull);return t.type!==Ut.Image||e.isNull?Yr.jsx("span",{style:{padding:4,direction:n?"ltr":void 0,...s},children:l}):Yr.jsx(PI,{representation:t,textStyle:s,isLeftColumn:!0})},zI=(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},GI="flex-start",BI=(e,t)=>{return e.isNull?GI:t.type===Ut.Image&&"fill"!==t.imageSize?null===(r=t.resolvedImagePosition)||void 0===r?void 0:r.vertical:GI;var r},$I=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o;const{env:i}=MC(),{pageInfo:a,direction:l}=RC(),{styleService:s,layoutService:u}=PC(),{attrExprInfoIndexes:c,gridSectionsData:{measureData:d,leftDimensionData:f,topDimensionData:m},visibleDimensionsInfo:{visibleLeftDimensionInfo:h,visibleTopDimensionInfo:g}}=vR(),b=(()=>{const{layoutService:{isIndentModeEnabled:e}}=PC(),{gridSectionsData:{leftDimensionData:t,topDimensionData:r},visibleDimensionsInfo:{visibleLeftDimensionInfo:n,visibleTopDimensionInfo:o}}=vR(),i=n.length,a=o.length;return p(((n,o)=>{var l,s;return!!(null!==(l=r.grid.at(a-1))&&void 0!==l&&null!==(l=l[n])&&void 0!==l&&l.isTotal||null!==(s=t.grid.at(e?0:i-1))&&void 0!==s&&null!==(s=s[o])&&void 0!==s&&s.isTotal)}),[r,t,i,a,e])})(),v=(()=>{const{gridSectionsData:{topDimensionData:e},visibleDimensionsInfo:{visibleTopDimensionInfo:t}}=vR(),r=t.length;return p((t=>{var n;const o=null===(n=e.grid.at(r-1))||void 0===n?void 0:n[t];return WL(o,e.totalDividerIndex)}),[e,r])})(),y=(()=>{const{layoutService:{isIndentModeEnabled:e}}=PC(),{gridSectionsData:{leftDimensionData:t},visibleDimensionsInfo:{visibleLeftDimensionInfo:r}}=vR(),n=r.length;return p((r=>{var o;const i=e?0:n-1,a=null===(o=t.grid.at(i))||void 0===o?void 0:o[r];return WL(a,t.totalDividerIndex,e)}),[t,e,n])})(),{showLastBorder:x}=n,S=m.grid.at(g.length-1),E=f.grid.at(h.length-1),{background:C}=s.measureValues,w=null===(o=d[t])||void 0===o?void 0:o[e],R=t===a.rowsOnCurrentPage-1,L=e===u.size.x-1;if(!w)return Yr.jsx(HL,{style:{...r,background:C},isLastRow:R,isLastColumn:L,showLastBorder:x,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const I=u.hasPseudoDimOnLeft?zI(E,t):zI(S,e),M=u.visibleMeasureInfo[I],D=Kw({cell:w.ref,representationProperties:u.isIndentModeEnabled?{type:Ut.Text}:M.representation,attrExprInfoIndex:c.measures[I],env:i,direction:l}),A=!w.isNull&&b(e,t),P=w.isNull?u.getNullValueText():D.text,O=!w.isNull||!Number.isNaN(+P),k=Xw(c.measures[I],w.ref),T={...qI(s,w.isNull,A,k.background),...gg(R,L,s.grid.border,l,x),...vg({bottomDivider:y(t),rightDivider:v(e),borderColor:s.grid.divider}),...pg,padding:"0px 4px",display:"flex",justifyContent:FI(w,M,D,O,l)};return Yr.jsx("div",{className:jt,title:P,style:{...T,...r},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:Yr.jsx(VL,{width:UL(D),verticalAlign:BI(w,D),children:Yr.jsx(jI,{cell:w,representation:D,isNumeric:O,isTotalValueCell:A,color:k.color})})})};var WI=t.memo($I,DL);const HI=(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()},VI=({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}`},UI=e=>({...dg,overflow:"hidden",boxSizing:"content-box",borderWidth:"rtl"===e?"1px 1px 0px 0px":"1px 0px 0px 1px"}),YI=({dataGridRef:e,height:t,rowHightCallback:r,width:n,showLastBorder:o,getRightGridColumnWidth:i,verticalScrollDirection:a,horizontalScrollDirection:l})=>{const{pageInfo:s,direction:u}=RC(),{layoutService:c,styleService:{grid:{divider:d},contentCellHeight:f}}=PC(),{dataModel:m,gridSectionsData:{measureData:h}}=vR(),b={...UI(u),borderColor:d,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},v=(({verticalScrollDirection:e,horizontalScrollDirection:t})=>{const{pageInfo:r}=RC(),{downloadService:n,viewService:o,layoutService:i}=PC(),{dataModel:a,gridSectionsData:{leftDimensionData:l,topDimensionData:s,measureData:u}}=vR(),c=l.columnCount,d=s.rowCount;return p((async({overscanColumnStartIndex:l,overscanColumnStopIndex:s,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{o.gridColumnStartIndex=l,o.gridRowStartIndex=p,o.gridWidth=s-l+1,o.gridHeight=f-p+1;const m=o.gridWidth+c+(t.current===ir.None?0:AL),h=o.gridHeight+d+(e.current===ir.None?0:AL);let g=BL;h*m>1500&&(g=$L),g(a,i,u,r,o,e,t,n)}),[o,i,a,u,e,t,r,c,d,n])})({verticalScrollDirection:a,horizontalScrollDirection:l});return $g((()=>{e.current&&e.current.resetAfterColumnIndex(0,!1)}),[e,m,h]),g((()=>{e.current&&e.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[n,t,e,f,u]),0===c.size.x?null:Yr.jsx(bL,{"data-section-id":"DATA_GRID",ref:e,style:b,columnCount:c.size.x,columnWidth:i,height:t,rowCount:s.rowsOnCurrentPage,rowHeight:r,width:n,itemData:{showLastBorder:o,grid:h},onItemsRendered:v,estimatedRowHeight:r(),estimatedColumnWidth:i(),itemKey:VI,direction:u,children:WI})};var KI=h(YI);function XI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JI(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const ZI=(e,t)=>Yr.jsxs("svg",JI(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){XI(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),{children:[Yr.jsx("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"}),Yr.jsx("use",{fillRule:"evenodd"})]})),QI=d(ZI),eM=e=>{const[t,r]=u(!1);return $g((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}},tM=()=>{const[e,t]=u(!1),{dataModel:r}=vR(),{interactions:n}=MC(),{isAdjustingWidth:o,setIsAdjustingWidth:i}=eM([r]);return{open:e,setOpen:t,handleOpenMenu:e=>{!n.active||rI(e)||o||t(!0)},setIsAdjustingWidth:i}};function rM(e,t){var r,n;const o=null!==(r=null===(n=t.expressionColor)||void 0===n?void 0:n.background)&&void 0!==r?r:e.dimensionValues.background,i=t.isLeftColumn?e.header.background:o,a=i===sg.Transparent?fm.WHITE:i,l=ye(e.grid.border),s=ye(a);return s.isInvalid()||l.isInvalid()||1===l.a?e.grid.border:function(e,t,r){return ye(e.r+(t.r-e.r)*r,e.g+(t.g-e.g)*r,e.b+(t.b-e.b)*r,e.a+(t.a-e.a)*r)}(s,l,l.a).getRGB()}const nM=({cellInfo:e,columnWidth:t,isLastColumn:r,overrideLeftGridWidth:n,setIsAdjustingWidth:o,shouldApplyIndentModeColumnWidth:i,tableWidth:a})=>{var l;const{direction:s}=RC(),{interactions:c,translator:d}=MC(),{isActive:p}=sI(),{dataModel:f}=vR(),{styleService:m}=PC(),[,h]=u({});if(!(e.canBeResized&&!!c.active&&!p))return null;const g=rM(m,e);return Yr.jsx(SS,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:g,updateWidthCallback:t=>{h({}),n&&void 0!==e.colIdx&&n(t,e.colIdx)},confirmWidthCallback:t=>{var r;i?f.applyIndentModeColumnWidth({...t,pixels:Math.min((null!=a?a:0)*SR,null!==(r=t.pixels)&&void 0!==r?r:0)}):f.applyColumnWidth(t,e)},setIsAdjustingWidth:o,isLeftColumn:e.isLeftColumn,accessibilityRelatedArgs:{translator:d,columnLabel:null!==(l=e.label)&&void 0!==l?l:""},direction:s})};function oM(e){return uy(e)}const iM=e=>e.scrollTop;function aM(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 lM(e){return mv("MuiPaper",e)}hv("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const sM=["className","component","elevation","square","variant"],uM=mS("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return hr({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&hr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${yy("#fff",bS(t.elevation))}, ${yy("#fff",bS(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),cM=r.forwardRef((function(e,t){const r=oM({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=Er(r,sM),u=hr({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Uv({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},lM,o)})(u);return Yr.jsx(uM,hr({as:o,ownerState:u,className:fl(c.root,n),ref:t},s))}));const dM=hv("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),pM=["center","classes","className"];let fM,mM,hM,gM,bM=e=>e;const vM=Ma(fM||(fM=bM`
102
102
  0% {
103
103
  transform: scale(0);
104
104
  opacity: 0.1;
@@ -108,7 +108,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.le
108
108
  transform: scale(1);
109
109
  opacity: 0.3;
110
110
  }
111
- `)),gM=Ma(dM||(dM=mM`
111
+ `)),yM=Ma(mM||(mM=bM`
112
112
  0% {
113
113
  opacity: 1;
114
114
  }
@@ -116,7 +116,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.le
116
116
  100% {
117
117
  opacity: 0;
118
118
  }
119
- `)),bM=Ma(pM||(pM=mM`
119
+ `)),xM=Ma(hM||(hM=bM`
120
120
  0% {
121
121
  transform: scale(1);
122
122
  }
@@ -128,7 +128,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.le
128
128
  100% {
129
129
  transform: scale(1);
130
130
  }
131
- `)),vM=mS("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),yM=mS((function(e){const{className:t,classes:n,pulsate:o=!1,rippleX:i,rippleY:a,rippleSize:l,in:s,onExited:u,timeout:c}=e,[d,p]=r.useState(!1),f=fl(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),m={width:l,height:l,top:-l/2+a,left:-l/2+i},h=fl(n.child,d&&n.childLeaving,o&&n.childPulsate);return s||d||p(!0),r.useEffect((()=>{if(!s&&null!=u){const e=setTimeout(u,c);return()=>{clearTimeout(e)}}}),[u,s,c]),Yr.jsx("span",{className:f,style:m,children:Yr.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(fM||(fM=mM`
131
+ `)),SM=mS("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),EM=mS((function(e){const{className:t,classes:n,pulsate:o=!1,rippleX:i,rippleY:a,rippleSize:l,in:s,onExited:u,timeout:c}=e,[d,p]=r.useState(!1),f=fl(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),m={width:l,height:l,top:-l/2+a,left:-l/2+i},h=fl(n.child,d&&n.childLeaving,o&&n.childPulsate);return s||d||p(!0),r.useEffect((()=>{if(!s&&null!=u){const e=setTimeout(u,c);return()=>{clearTimeout(e)}}}),[u,s,c]),Yr.jsx("span",{className:f,style:m,children:Yr.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(gM||(gM=bM`
132
132
  opacity: 0;
133
133
  position: absolute;
134
134
 
@@ -171,4 +171,4 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.le
171
171
  animation-iteration-count: infinite;
172
172
  animation-delay: 200ms;
173
173
  }
174
- `),sM.rippleVisible,hM,550,(({theme:e})=>e.transitions.easing.easeInOut),sM.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),sM.child,sM.childLeaving,gM,550,(({theme:e})=>e.transitions.easing.easeInOut),sM.childPulsate,bM,(({theme:e})=>e.transitions.easing.easeInOut)),xM=r.forwardRef((function(e,t){const n=tM({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,l=Er(n,uM),[s,u]=r.useState([]),c=r.useRef(0),d=r.useRef(null);r.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[s]);const p=r.useRef(!1),f=qv(),m=r.useRef(null),h=r.useRef(null),g=r.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:a}=e;u((e=>[...e,Yr.jsx(yM,{classes:{ripple:fl(i.ripple,sM.ripple),rippleVisible:fl(i.rippleVisible,sM.rippleVisible),ripplePulsate:fl(i.ripplePulsate,sM.ripplePulsate),child:fl(i.child,sM.child),childLeaving:fl(i.childLeaving,sM.childLeaving),childPulsate:fl(i.childPulsate,sM.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},c.current)])),c.current+=1,d.current=a}),[i]),b=r.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:n=!1,center:i=o||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)d=Math.sqrt((2*s.width**2+s.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===m.current&&(m.current=()=>{g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})},f.start(80,(()=>{m.current&&(m.current(),m.current=null)}))):g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})}),[o,g,f]),v=r.useCallback((()=>{b({},{pulsate:!0})}),[b]),y=r.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&m.current)return m.current(),m.current=null,void f.start(0,(()=>{y(e,t)}));m.current=null,u((e=>e.length>0?e.slice(1):e)),d.current=t}),[f]);return r.useImperativeHandle(t,(()=>({pulsate:v,start:b,stop:y})),[v,b,y]),Yr.jsx(vM,hr({className:fl(sM.root,i.root,a),ref:h},l,{children:Yr.jsx(xc,{component:null,exit:!0,children:s})}))}));function SM(e){return mv("MuiButtonBase",e)}const EM=hv("MuiButtonBase",["root","disabled","focusVisible"]),CM=["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"],wM=mS("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"},[`&.${EM.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),RM=r.forwardRef((function(e,t){const n=tM({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:m,onClick:h,onContextMenu:g,onDragLeave:b,onFocus:v,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:I,tabIndex:M=0,TouchRippleProps:D,touchRippleRef:A,type:P}=n,O=Er(n,CM),k=r.useRef(null),T=r.useRef(null),_=Ov(T,A),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=Hv(),[z,G]=r.useState(!1);u&&z&&G(!1),r.useImperativeHandle(o,(()=>({focusVisible:()=>{G(!0),k.current.focus()}})),[]);const[B,$]=r.useState(!1);r.useEffect((()=>{$(!0)}),[]);const W=B&&!c&&!u;function H(e,t,r=d){return Pv((n=>{t&&t(n);return!r&&T.current&&T.current[e](n),!0}))}r.useEffect((()=>{z&&p&&!c&&B&&T.current.pulsate()}),[c,p,z,B]);const V=H("start",E),U=H("stop",g),Y=H("stop",b),K=H("stop",w),X=H("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=H("start",I),Z=H("stop",R),Q=H("stop",L),ee=H("stop",(e=>{F(e),!1===q.current&&G(!1),m&&m(e)}),!1),te=Pv((e=>{k.current||(k.current=e.currentTarget),N(e),!0===q.current&&(G(!0),y&&y(e)),v&&v(e)})),re=()=>{const e=k.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=r.useRef(!1),oe=Pv((e=>{p&&!ne.current&&z&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!u&&(e.preventDefault(),h&&h(e))})),ie=Pv((e=>{p&&" "===e.key&&T.current&&z&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(O.href||O.to)&&(ae=f);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=u):(O.href||O.to||(le.role="button"),u&&(le["aria-disabled"]=u));const se=Ov(t,j,k),ue=hr({},n,{centerRipple:i,component:s,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:M,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Uv({root:["root",t&&"disabled",r&&"focusVisible"]},SM,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Yr.jsxs(wM,hr({as:ae,className:fl(ce.root,l),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:u?-1:M,type:P},le,O,{children:[a,W?Yr.jsx(xM,hr({ref:_,center:i},D)):null]}))}));function LM(e){return mv("MuiTypography",e)}hv("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const IM=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],MM=mS("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${ab(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>hr({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),DM={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},AM={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},PM=r.forwardRef((function(e,t){const r=tM({props:e,name:"MuiTypography"}),n=(e=>AM[e]||e)(r.color),o=sv(hr({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=DM}=o,f=Er(o,IM),m=hr({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||DM[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Uv({root:["root",i,"inherit"!==e.align&&`align${ab(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},LM,a)})(m);return Yr.jsx(MM,hr({as:h,ref:t,ownerState:m,className:fl(g.root,a)},f))}));const OM=r.forwardRef((function(e,t){const{children:n,container:o,disablePortal:i=!1}=e,[a,l]=r.useState(null),s=Ov(r.isValidElement(n)?Qv(n):null,t);if(Ev((()=>{i||l(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,i]),Ev((()=>{if(a&&!i)return Av(t,a),()=>{Av(t,null)}}),[t,a,i]),i){if(r.isValidElement(n)){const e={ref:s};return r.cloneElement(n,e)}return Yr.jsx(r.Fragment,{children:n})}return Yr.jsx(r.Fragment,{children:a?j.createPortal(n,a):a})})),kM=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],TM={entering:{opacity:1},entered:{opacity:1}},_M=r.forwardRef((function(e,t){const n=Nx(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:s,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:m,onExiting:h,style:g,timeout:b=o,TransitionComponent:v=mc}=e,y=Er(e,kM),x=r.useRef(null),S=Ov(x,Qv(l),t),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=E(p),w=E(((e,t)=>{rM(e);const r=nM({style:g,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),R=E(d),L=E(h),I=E((e=>{const t=nM({style:g,timeout:b,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),M=E(m);return Yr.jsx(v,hr({appear:a,in:u,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:I,onExited:M,onExiting:L,addEndListener:e=>{i&&i(x.current,e)},timeout:b},y,{children:(e,t)=>r.cloneElement(l,hr({style:hr({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},TM[e],g,l.props.style),ref:S},t))}))}));function qM(e){return mv("MuiBackdrop",e)}hv("MuiBackdrop",["root","invisible"]);const NM=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],FM=mS("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>hr({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),jM=r.forwardRef((function(e,t){var r,n,o;const i=tM({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=_M,transitionDuration:g}=i,b=Er(i,NM),v=hr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Uv({root:["root",r&&"invisible"]},qM,t)})(v),x=null!=(r=f.root)?r:c.root;return Yr.jsx(h,hr({in:p,timeout:g},b,{children:Yr.jsx(FM,hr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:s,className:fl(y.root,l,null==x?void 0:x.className),ownerState:hr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),zM=hv("MuiBox",["root"]),GM=_x(),BM=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:i}=e,a=Pa("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Qb);return r.forwardRef((function(e,r){const l=av(n),s=sv(e),{className:u,component:c="div"}=s,d=Er(s,pv);return Yr.jsx(a,hr({as:c,ref:r,className:fl(u,i?i(o):o),theme:t&&l[t]||l},d))}))}({themeId:Yg,defaultTheme:GM,defaultClassName:zM.root,generateClassName:dv.generate});function $M(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function WM(e){return parseInt(Dv(e).getComputedStyle(e).paddingRight,10)||0}function HM(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&&$M(e,o)}))}function VM(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function UM(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Mv(e);return t.body===e?Dv(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Vv(Mv(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${WM(n)+e}px`;const t=Mv(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${WM(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Mv(n).body;else{const t=n.parentElement,r=Dv(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 YM=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function KM(e){const t=[],r=[];return Array.from(e.querySelectorAll(YM)).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 XM(){return!0}function JM(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:a=KM,isEnabled:l=XM,open:s}=e,u=r.useRef(!1),c=r.useRef(null),d=r.useRef(null),p=r.useRef(null),f=r.useRef(null),m=r.useRef(!1),h=r.useRef(null),g=Ov(Qv(t),h),b=r.useRef(null);r.useEffect((()=>{s&&h.current&&(m.current=!n)}),[n,s]),r.useEffect((()=>{if(!s||!h.current)return;const e=Mv(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),m.current&&h.current.focus()),()=>{i||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[s]),r.useEffect((()=>{if(!s||!h.current)return;const e=Mv(h.current),t=t=>{b.current=t,!o&&l()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!l()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!m.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=a(h.current)),r.length>0){var n,i;const e=Boolean((null==(n=b.current)?void 0:n.shiftKey)&&"Tab"===(null==(i=b.current)?void 0:i.key)),t=r[0],o=r[r.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const n=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[n,o,i,l,s,a]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0};return Yr.jsxs(r.Fragment,{children:[Yr.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),r.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0,f.current=e.target;const r=t.props.onFocus;r&&r(e)}}),Yr.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const ZM=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&&$M(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);HM(t,e.mount,e.modalRef,n,!0);const o=VM(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=VM(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=UM(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=VM(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&&$M(e.modalRef,t),HM(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&&$M(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function QM(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:i=ZM,closeAfterTransition:a=!1,onTransitionEnter:l,onTransitionExited:s,children:u,onClose:c,open:d,rootRef:p}=e,f=r.useRef({}),m=r.useRef(null),h=r.useRef(null),g=Ov(h,p),[b,v]=r.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(f.current.modalRef=h.current,f.current.mount=m.current,f.current),E=()=>{i.mount(S(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},C=Pv((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Mv(m.current).body;i.add(S(),e),h.current&&E()})),w=r.useCallback((()=>i.isTopModal(S())),[i]),R=Pv((e=>{m.current=e,e&&(d&&w()?E():h.current&&$M(h.current,x))})),L=r.useCallback((()=>{i.remove(S(),x)}),[x,i]);r.useEffect((()=>()=>{L()}),[L]),r.useEffect((()=>{d?C():y&&a||L()}),[d,L,y,a,C]);const I=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},M=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Kv(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=hr({},r,t);return hr({role:"presentation"},n,{onKeyDown:I(n),ref:g})},getBackdropProps:(e={})=>hr({"aria-hidden":!0},e,{onClick:M(e),open:d}),getTransitionProps:()=>({onEnter:Iv((()=>{v(!1),l&&l()}),null==u?void 0:u.props.onEnter),onExited:Iv((()=>{v(!0),s&&s(),a&&L()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:R,isTopModal:w,exited:b,hasTransition:y}}function eD(e){return mv("MuiModal",e)}hv("MuiModal",["root","hidden","backdrop"]);const tD=["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"],rD=mS("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>hr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),nD=mS(jM,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),oD=r.forwardRef((function(e,t){var n,o,i,a,l,s;const u=tM({name:"MuiModal",props:e}),{BackdropComponent:c=nD,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:m,container:h,component:g,components:b={},componentsProps:v={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:I,open:M,slotProps:D,slots:A}=u,P=Er(u,tD),O=hr({},u,{closeAfterTransition:f,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:k,getBackdropProps:T,getTransitionProps:_,portalRef:q,isTopModal:N,exited:F,hasTransition:j}=QM(hr({},O,{rootRef:t})),z=hr({},O,{exited:F}),G=(e=>{const{open:t,exited:r,classes:n}=e;return Uv({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},eD,n)})(z),B={};if(void 0===m.props.tabIndex&&(B.tabIndex="-1"),j){const{onEnter:e,onExited:t}=_();B.onEnter=e,B.onExited=t}const $=null!=(n=null!=(o=null==A?void 0:A.root)?o:b.Root)?n:rD,W=null!=(i=null!=(a=null==A?void 0:A.backdrop)?a:b.Backdrop)?i:c,H=null!=(l=null==D?void 0:D.root)?l:v.root,V=null!=(s=null==D?void 0:D.backdrop)?s:v.backdrop,U=Zv({elementType:$,externalSlotProps:H,externalForwardedProps:P,getSlotProps:k,additionalProps:{ref:t,as:g},ownerState:z,className:fl(p,null==H?void 0:H.className,null==G?void 0:G.root,!z.open&&z.exited&&(null==G?void 0:G.hidden))}),Y=Zv({elementType:W,externalSlotProps:V,additionalProps:d,getSlotProps:e=>T(hr({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:fl(null==V?void 0:V.className,null==d?void 0:d.className,null==G?void 0:G.backdrop),ownerState:z});return L||M||j&&!F?Yr.jsx(OM,{ref:q,container:h,disablePortal:E,children:Yr.jsxs($,hr({},U,{children:[!R&&c?Yr.jsx(W,hr({},Y)):null,Yr.jsx(JM,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:N,open:M,children:r.cloneElement(m,B)})]}))}):null})),iD=hv("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),aD=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function lD(e){return`scale(${e}, ${e**2})`}const sD={entering:{opacity:1,transform:lD(1)},entered:{opacity:1,transform:"none"}},uD="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),cD=r.forwardRef((function(e,t){const{addEndListener:n,appear:o=!0,children:i,easing:a,in:l,onEnter:s,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:m,timeout:h="auto",TransitionComponent:g=mc}=e,b=Er(e,aD),v=qv(),y=r.useRef(),x=Nx(),S=r.useRef(null),E=Ov(S,Qv(i),t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},w=C(c),R=C(((e,t)=>{rM(e);const{duration:r,delay:n,easing:o}=nM({style:m,timeout:h,easing:a},{mode:"enter"});let i;"auto"===h?(i=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=i):i=r,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:n}),x.transitions.create("transform",{duration:uD?i:.666*i,delay:n,easing:o})].join(","),s&&s(e,t)})),L=C(u),I=C(f),M=C((e=>{const{duration:t,delay:r,easing:n}=nM({style:m,timeout:h,easing:a},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:uD?o:.666*o,delay:uD?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=lD(.75),d&&d(e)})),D=C(p);return Yr.jsx(g,hr({appear:o,in:l,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:M,onExited:D,onExiting:I,addEndListener:e=>{"auto"===h&&v.start(y.current||0,e),n&&n(S.current,e)},timeout:"auto"===h?null:h},b,{children:(e,t)=>r.cloneElement(i,hr({style:hr({opacity:0,transform:lD(.75),visibility:"exited"!==e||l?void 0:"hidden"},sD[e],m,i.props.style),ref:E},t))}))}));function dD(e){return mv("MuiLink",e)}cD.muiSupportAuto=!0;const pD=hv("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),fD={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},mD=({theme:e,ownerState:t})=>{const r=(e=>fD[e]||e)(t.color),n=sb(e,`palette.${r}`,!1)||t.color,o=sb(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:yy(n,.4)},hD=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],gD=mS(PM,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${ab(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>hr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&hr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:mD({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"},[`&.${pD.focusVisible}`]:{outline:"auto"}}))),bD=r.forwardRef((function(e,t){const n=tM({props:e,name:"MuiLink"}),{className:o,color:i="primary",component:a="a",onBlur:l,onFocus:s,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:p}=n,f=Er(n,hD),{isFocusVisibleRef:m,onBlur:h,onFocus:g,ref:b}=Hv(),[v,y]=r.useState(!1),x=Ov(t,b),S=hr({},n,{color:i,component:a,focusVisible:v,underline:c,variant:d}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return Uv({root:["root",`underline${ab(o)}`,"button"===r&&"button",n&&"focusVisible"]},dD,t)})(S);return Yr.jsx(gD,hr({color:i,className:fl(E.root,o),classes:u,component:a,onBlur:e=>{h(e),!1===m.current&&y(!1),l&&l(e)},onFocus:e=>{g(e),!0===m.current&&y(!0),s&&s(e)},ref:x,ownerState:S,variant:d,sx:[...Object.keys(fD).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},f))})),vD=r.createContext({});function yD(e){return mv("MuiList",e)}hv("MuiList",["root","padding","dense","subheader"]);const xD=["children","className","component","dense","disablePadding","subheader"],SD=mS("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>hr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),ED=r.forwardRef((function(e,t){const n=tM({props:e,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:l=!1,disablePadding:s=!1,subheader:u}=n,c=Er(n,xD),d=r.useMemo((()=>({dense:l})),[l]),p=hr({},n,{component:a,dense:l,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Uv({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},yD,t)})(p);return Yr.jsx(vD.Provider,{value:d,children:Yr.jsxs(SD,hr({as:a,className:fl(f.root,i),ref:t,ownerState:p},c,{children:[u,o]}))})})),CD=hv("MuiListItemIcon",["root","alignItemsFlexStart"]),wD=hv("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),RD=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function LD(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function ID(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function MD(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 DD(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")&&MD(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}const AD=r.forwardRef((function(e,t){const{actions:n,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:s=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,p=Er(e,RD),f=r.useRef(null),m=r.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ev((()=>{o&&f.current.focus()}),[o]),r.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&r){const r=`${Vv(Mv(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}})),[]);const h=Ov(f,t);let g=-1;r.Children.forEach(a,((e,t)=>{r.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===t&&(g+=1,g>=a.length&&(g=-1))}));const b=r.Children.map(a,((e,t)=>{if(t===g){const t={};return i&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),r.cloneElement(e,t)}return e}));return Yr.jsx(ED,hr({role:"menu",ref:h,className:l,onKeyDown:e=>{const t=f.current,r=e.key,n=Mv(t).activeElement;if("ArrowDown"===r)e.preventDefault(),DD(t,n,u,s,LD);else if("ArrowUp"===r)e.preventDefault(),DD(t,n,u,s,ID);else if("Home"===r)e.preventDefault(),DD(t,null,u,s,LD);else if("End"===r)e.preventDefault(),DD(t,null,u,s,ID);else if(1===r.length){const o=m.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=n&&!o.repeating&&MD(n,o);o.previousKeyMatched&&(l||DD(t,n,!1,s,LD,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:o?0:-1},p,{children:b}))}));function PD(e){return mv("MuiPopover",e)}hv("MuiPopover",["root","paper"]);const OD=["onEntering"],kD=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],TD=["slotProps"];function _D(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function qD(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function ND(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function FD(e){return"function"==typeof e?e():e}const jD=mS(oD,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zD=mS(lM,{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}),GD=r.forwardRef((function(e,t){var n,o,i;const a=tM({props:e,name:"MuiPopover"}),{action:l,anchorEl:s,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:f,container:m,elevation:h=8,marginThreshold:g=16,open:b,PaperProps:v={},slots:y,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=cD,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=a,L=Er(a.TransitionProps,OD),I=Er(a,kD),M=null!=(n=null==x?void 0:x.paper)?n:v,D=r.useRef(),A=Ov(D,M.ref),P=hr({},a,{anchorOrigin:u,anchorReference:d,elevation:h,marginThreshold:g,externalPaperSlotProps:M,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),O=(e=>{const{classes:t}=e;return Uv({root:["root"],paper:["paper"]},PD,t)})(P),k=r.useCallback((()=>{if("anchorPosition"===d)return c;const e=FD(s),t=(e&&1===e.nodeType?e:Mv(D.current).body).getBoundingClientRect();return{top:t.top+_D(t,u.vertical),left:t.left+qD(t,u.horizontal)}}),[s,u.horizontal,u.vertical,c,d]),T=r.useCallback((e=>({vertical:_D(e,S.vertical),horizontal:qD(e,S.horizontal)})),[S.horizontal,S.vertical]),_=r.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=T(t);if("none"===d)return{top:null,left:null,transformOrigin:ND(r)};const n=k();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=Dv(FD(s)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,r.vertical+=e}else if(null!==g&&a>c){const e=a-c;o-=e,r.vertical+=e}if(null!==g&&i<g){const e=i-g;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:ND(r)}}),[s,d,k,T,g]),[q,N]=r.useState(b),F=r.useCallback((()=>{const e=D.current;if(!e)return;const t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[_]);r.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[s,R,F]);r.useEffect((()=>{b&&F()})),r.useImperativeHandle(l,(()=>b?{updatePosition:()=>{F()}}:null),[b,F]),r.useEffect((()=>{if(!b)return;const e=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}((()=>{F()})),t=Dv(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,b,F]);let j=C;"auto"!==C||E.muiSupportAuto||(j=void 0);const z=m||(s?Mv(FD(s)).body:void 0),G=null!=(o=null==y?void 0:y.root)?o:jD,B=null!=(i=null==y?void 0:y.paper)?i:zD,$=Zv({elementType:B,externalSlotProps:hr({},M,{style:q?M.style:hr({},M.style,{opacity:0})}),additionalProps:{elevation:h,ref:A},ownerState:P,className:fl(O.paper,null==M?void 0:M.className)}),W=Zv({elementType:G,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:I,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:b},ownerState:P,className:fl(O.root,f)}),{slotProps:H}=W,V=Er(W,TD);return Yr.jsx(G,hr({},V,!Yv(G)&&{slotProps:H,disableScrollLock:R},{children:Yr.jsx(E,hr({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:j},L,{children:Yr.jsx(B,hr({},$,{children:p}))}))}))}));function BD(e){return mv("MuiMenu",e)}hv("MuiMenu",["root","paper","list"]);const $D=["onEntering"],WD=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],HD={vertical:"top",horizontal:"right"},VD={vertical:"top",horizontal:"left"},UD=mS(GD,{shouldForwardProp:e=>fS(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),YD=mS(zD,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),KD=mS(AD,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),XD=r.forwardRef((function(e,t){var n,o;const i=tM({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:s,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:f={},PopoverClasses:m,transitionDuration:h="auto",TransitionProps:{onEntering:g}={},variant:b="selectedMenu",slots:v={},slotProps:y={}}=i,x=Er(i.TransitionProps,$D),S=Er(i,WD),E=(()=>{const e=r.useContext(iy);return null!=e&&e})(),C=hr({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:h,TransitionProps:x,variant:b}),w=(e=>{const{classes:t}=e;return Uv({root:["root"],paper:["paper"],list:["list"]},BD,t)})(C),R=a&&!u&&p,L=r.useRef(null);let I=-1;r.Children.map(l,((e,t)=>{r.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===I)&&(I=t))}));const M=null!=(n=v.paper)?n:YD,D=null!=(o=y.paper)?o:f,A=Zv({elementType:v.root,externalSlotProps:y.root,ownerState:C,className:[w.root,s]}),P=Zv({elementType:M,externalSlotProps:D,ownerState:C,className:w.paper});return Yr.jsx(UD,hr({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?HD:VD,slots:{paper:M,root:v.root},slotProps:{root:A,paper:P},open:p,ref:t,transitionDuration:h,TransitionProps:hr({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,{direction:E?"rtl":"ltr"}),g&&g(e,t)}},x),ownerState:C},S,{classes:m,children:Yr.jsx(KD,hr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:L,autoFocus:a&&(-1===I||u),autoFocusItem:R,variant:b},c,{className:fl(w.list,c.className),children:l}))}))}));function JD(e){return mv("MuiMenuItem",e)}const ZD=hv("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),QD=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],eA=mS(RM,{shouldForwardProp:e=>fS(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>hr({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ZD.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yy(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ZD.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yy(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ZD.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:yy(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yy(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ZD.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ZD.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${iD.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${iD.inset}`]:{marginLeft:52},[`& .${wD.root}`]:{marginTop:0,marginBottom:0},[`& .${wD.inset}`]:{paddingLeft:36},[`& .${CD.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&hr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${CD.root} svg`]:{fontSize:"1.25rem"}})))),tA=r.forwardRef((function(e,t){const n=tM({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:s=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=n,f=Er(n,QD),m=r.useContext(vD),h=r.useMemo((()=>({dense:a||m.dense||!1,disableGutters:s})),[m.dense,a,s]),g=r.useRef(null);Ev((()=>{o&&g.current&&g.current.focus()}),[o]);const b=hr({},n,{dense:h.dense,divider:l,disableGutters:s}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return hr({},a,Uv({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},JD,a))})(n),y=Ov(g,t);let x;return n.disabled||(x=void 0!==d?d:-1),Yr.jsx(vD.Provider,{value:h,children:Yr.jsx(eA,hr({ref:y,role:c,tabIndex:x,component:i,focusVisibleClassName:fl(v.focusVisible,u),className:fl(v.root,p)},f,{ownerState:b,classes:v}))})})),rA=mS(BM,{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}}))),nA=mS("div",{shouldForwardProp:e=>!["direction"].includes(e)})((({direction:e})=>({position:"absolute",left:"rtl"!==e?0:void 0,bottom:0}))),oA=mS("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...cg,justifyContent:null!=e?e:cg.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),iA=mS("div")((()=>({...cg}))),aA=mS("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}))),lA=mS(XD)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),sA=mS(tA,{shouldForwardProp:e=>!["isActive"].includes(e)})((({theme:e,isActive:t})=>({width:220,maxHeight:32,borderRadius:e.spacing(.5),margin:e.spacing(.25,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between",position:"relative",overflow:"hidden ",boxSizing:"border-box",background:t?"rgba(0, 0, 0, 0.05)":"transparent","&:hover":{".indent-mode-dropdown-more":{opacity:1}}}))),uA=mS("span")({textOverflow:"ellipsis",overflow:"hidden"}),cA=mS("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:20,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"})));var dA;!function(e){e.Expand="Expand",e.Collapse="Collapse"}(dA||(dA={}));const pA=(e,t)=>({qExcludeList:t===dA.Expand,qPos:{qDimName:e,qElemNo:[]}}),fA=`${TC}/qExpansionState`,mA=({model:e,qExpansionState:t,qEffectiveDimensionName:r,action:n})=>async()=>{const o=(({qEffectiveDimensionName:e,oldExpansionState:t,action:r})=>{const n=null==t?void 0:t.findIndex((t=>{var r;return(null===(r=t.qPos)||void 0===r?void 0:r.qDimName)===e}));return{expansionData:pA(e,r),index:n}})({qEffectiveDimensionName:r,oldExpansionState:t,action:n});await(async({model:e,newExpansionState:t,errorMsg:r})=>{const{index:n,expansionData:o}=t;try{let t,r=fA,i="Add";void 0===n?t=JSON.stringify([o]):-1===n?(r=`${fA}/-`,t=JSON.stringify(o)):(r=`${fA}/${n}`,i="Replace",t=JSON.stringify(o)),await e.applyPatches([{qPath:r,qOp:i,qValue:t}],!0)}catch(e){console.error(r,e)}})({model:e,newExpansionState:o,errorMsg:`Failed to ${n} dimension`})},hA=({model:e,effectivePropertiesService:t,cell:r,env:n})=>{if(!n.flags.isEnabled("CLIENT_IM_6273_EXPAND_OR_COLLAPSE_DIM")||void 0===r.qEffectiveDimensionName)return;const o={model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r.qEffectiveDimensionName};return{expandCallback:mA({...o,action:dA.Expand}),collapseCallback:mA({...o,action:dA.Collapse})}},gA={[FE.Sorting]:!0,[FE.Selections]:!0,[FE.Searching]:!0},bA=({cell:e,style:t,isFirstColumn:r,isLastColumn:n,isLastRow:o,changeSortOrder:i,iconsVisibilityStatus:a,columnWidth:l,overrideLeftGridWidth:s,shouldApplyIndentModeColumnWidth:u,tableWidth:d})=>{var p;const f=c(null),{styleService:m,layoutService:h,effectivePropertiesService:g}=PC(),{app:b,interactions:v,embed:y,translator:x,env:S,model:E}=MC(),{fontSize:C,fontFamily:w,fontStyle:R,fontWeight:L,textDecoration:I,color:M,background:D,hoverBackground:A,activeBackground:P}=m.header,O=c(null),{shouldShowLockIcon:k,shouldShowMenuIcon:T}=a,{open:_,setOpen:q,handleOpenMenu:N,setIsAdjustingWidth:F}=ZI(),{direction:j}=RC(),z={sortFromMenu:async(t,r)=>{t.stopPropagation(),await i(e,r)}},G={embed:y,listboxRef:f,sortCriteria:h.searchSortFromDimension&&e.isDim?g.getSortCriteriaForDimension(e.dimensionInfoIndex):void 0},B={app:b,qStateName:h.layout.qStateName},{labelTextAlign:$}=null!==(p=h.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==p?p:{},W=DI($,"flex-start",j);return Yr.jsxs(rA,{className:jt,title:e.label,interactions:v,background:_?P:D,hoverBackground:A,shouldShowMenuIcon:T,isDimension:e.isDim,style:{...t,...pg,...bg(e,o,r,n,m.grid.border,j),color:M},"data-testid":"title-cell",onClick:N,children:[Yr.jsxs(oA,{children:[k?Yr.jsx(iA,{children:Yr.jsx(XI,{height:12})}):null,Yr.jsx(aA,{fontFamily:w,fontSize:C,fontStyle:R,fontWeight:L,textDecoration:I,justifyContent:W,children:Yr.jsx("span",{style:fg,children:e.label})})]}),e.isDim?Yr.jsxs(Yr.Fragment,{children:[Yr.jsx(GE,{headerData:e,translator:x,anchorRef:O,open:_,setOpen:q,interactions:v,menuAvailabilityFlags:gA,sortRelatedArgs:z,searchRelatedArgs:G,selectionRelatedArgs:B,expandOrCollapseArgs:hA({model:E,effectivePropertiesService:g,cell:e,env:S}),shouldShowMenuIcon:T,model:E&&"setActiveField"in E?E:void 0,direction:j}),Yr.jsx(nA,{ref:f,direction:j}),Yr.jsx(nA,{ref:O,direction:j})]}):null,Yr.jsx(eM,{cellInfo:{...e,isLeftColumn:!0},columnWidth:l,isLastColumn:n,overrideLeftGridWidth:s,setIsAdjustingWidth:F,shouldApplyIndentModeColumnWidth:u,tableWidth:d})]})},vA=({rowSpan:e,columnSpan:t})=>{const{styleService:r}=PC(),{direction:n}=RC();return e>0&&t>0?Yr.jsx("div",{style:{...dg,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"rtl"===n?"0px 0px 0px 1px":"0px 1px 0px 0px",borderColor:r.grid.border,background:r.grid.background},"data-testid":"empty-header-cell"}):null};function yA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xA(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const SA=(e,t)=>Yr.jsx("svg",xA(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){yA(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),{children:Yr.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})})),EA=d(SA);function CA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wA(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const RA=(e,t)=>Yr.jsxs("svg",wA(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){CA(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),{children:[Yr.jsx("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),Yr.jsx("use",{fillRule:"evenodd"})]})),LA=d(RA),IA=({tableWidth:e,leftGridWidth:t,overrideLeftGridWidth:r})=>{const{direction:n}=RC(),{styleService:o}=PC(),{interactions:i,translator:a}=MC(),{isActive:l}=iI(),{dataModel:s}=vR(),{setIsAdjustingWidth:u}=JI([s]);if(!(!!i.active&&!l))return null;const c=QI(o,{isLeftColumn:!0});return Yr.jsx(SS,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:c,columnWidth:t,updateWidthCallback:t=>{r(Math.min(t,e*SR))},confirmWidthCallback:n=>{var o;if(n.type===$t.FitToContent)return void s.applyIndentModeColumnWidth({type:$t.Auto});const i=Math.min(null!==(o=n.pixels)&&void 0!==o?o:t,e*SR);r(i),s.applyIndentModeColumnWidth({type:$t.Pixels,pixels:i})},setIsAdjustingWidth:u,accessibilityRelatedArgs:{translator:a,columnLabel:a.get("SNPivotTable.IndentMode.Rows")},direction:n})};function MA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DA(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const AA=(e,t)=>Yr.jsx("svg",DA(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){MA(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),{children:Yr.jsx("path",{d:"M3 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})})),PA=d(AA),OA=({cell:e,changeSortOrder:t})=>{const r=c(null),n=c(null),{app:o,interactions:i,embed:a,translator:l,env:s,model:u}=MC(),{layoutService:d,effectivePropertiesService:p}=PC(),{open:f,setOpen:m,handleOpenMenu:h}=ZI();return Yr.jsxs(sA,{onClick:h,isActive:f,children:[Yr.jsx(uA,{children:e.label}),Yr.jsxs(cA,{className:"indent-mode-dropdown-more",visible:f,children:[Yr.jsx(PA,{}),e.isDim?Yr.jsxs(Yr.Fragment,{children:[Yr.jsx(GE,{headerData:e,translator:l,anchorRef:r,open:f,setOpen:m,interactions:i,menuAvailabilityFlags:gA,sortRelatedArgs:{sortFromMenu:async(r,n)=>{r.stopPropagation(),await t(e,n)}},searchRelatedArgs:{embed:a,listboxRef:n},selectionRelatedArgs:{app:o,qStateName:d.layout.qStateName},expandOrCollapseArgs:hA({model:u,effectivePropertiesService:p,cell:e,env:s}),shouldShowMenuIcon:!1,model:u&&"setActiveField"in u?u:void 0}),Yr.jsx(nA,{ref:n}),Yr.jsx(nA,{ref:r})]}):null]})]})},kA=({idx:e,menu:t,menuItems:r,isOnlyOneRow:n})=>{var o,i;const a=(null===(o=r.at(-1))||void 0===o?void 0:o.id)===qC,l=e+1<r.length&&(null===(i=r[e+1])||void 0===i?void 0:i.id)===qC;return!(n&&a&&l)&&((null==t?void 0:t.id)!==qC&&e<r.length-1)},TA=({menuItems:e,changeSortOrder:t,overrideLeftGridWidth:r,leftGridWidth:n,tableWidth:o})=>{const{styleService:i}=PC(),{interactions:a,translator:l}=MC(),{dataModel:s,gridSectionsData:{headersData:d}}=vR(),[p,f]=u(!1),m=c(null),{headerCellHeight:h}=i,{color:g,background:b,hoverBackground:v,activeBackground:y,fontFamily:x,fontSize:S,fontStyle:E,fontWeight:C,textDecoration:w}=i.header,{isAdjustingWidth:R}=JI([s]),L=e=>{e.stopPropagation()},I={height:h,gridColumn:`1 / span ${d.size.x}`,gridRow:d.size.y,zIndex:d.size.x-0};return Yr.jsxs(rA,{isDimension:!0,background:p?y:b,interactions:a,hoverBackground:v,style:{...I,...pg,color:g},onClick:e=>{!a.active||rI(e)||R||f(!p)},"data-testid":"indentModeHeaderCellWrapper",children:[Yr.jsxs(oA,{justifyContent:"flex-start",children:[Yr.jsx(aA,{fontFamily:x,fontSize:S,fontStyle:E,fontWeight:C,textDecoration:w,justifyContent:"flex-start",children:Yr.jsx("span",{style:fg,children:l.get("SNPivotTable.IndentMode.Rows")})}),p?Yr.jsx(LA,{}):Yr.jsx(EA,{}),Yr.jsx(nA,{ref:m})]}),Yr.jsx(lA,{open:p,anchorEl:m.current,children:e.map(((r,n)=>[r&&r.id!==qC&&Yr.jsx("li",{role:"presentation",onClick:L,onKeyDown:L,children:Yr.jsx(OA,{cell:r,changeSortOrder:t})}),kA({idx:n,menu:r,menuItems:e,isOnlyOneRow:1===d.size.y})&&Yr.jsx(DS,{"data-testid":"group-divider",variant:"middle"})]))}),Yr.jsx(IA,{tableWidth:o,leftGridWidth:n,overrideLeftGridWidth:r})]})},_A=({layoutService:e,headersData:t,topRowIndex:r})=>e.isIndentModeEnabled&&t.size.x>1&&r+1===t.size.y,qA={display:"grid",width:"fit-content"},NA=({tableWidth:e,leftGridWidth:t,columnWidths:r,rowHight:n,changeSortOrder:o,getHeaderCellsIconsVisibilityStatus:i,height:a,overrideLeftGridWidth:l})=>{const{layoutService:s}=PC(),{gridSectionsData:{headersData:u}}=vR();return Yr.jsxs("div",{"data-testid":"HEADER_GRID",style:{...qA,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:u.data.map((()=>`${n}px`)).join(" "),height:a},children:[u.size.y>1&&Yr.jsx(vA,{columnSpan:u.size.x-1,rowSpan:u.size.y-1}),u.data.map(((a,c)=>{let d=[];if(_A({layoutService:s,headersData:u,topRowIndex:c})){const r=a.at(0);var p;if(Array.isArray(r))d.push(Yr.jsx(TA,{menuItems:r,changeSortOrder:o,overrideLeftGridWidth:l,leftGridWidth:t,tableWidth:e},null===(p=r.at(0))||void 0===p?void 0:p.id));return d}return d=a.reduce(((t,a,d)=>{if(a&&!Array.isArray(a)){const p=i(d,a.isLocked,a.label),f=s.isIndentModeEnabled&&1===u.size.x;t.push(Yr.jsx(bA,{style:{width:r[d],height:n,gridColumn:s.isIndentModeEnabled&&u.size.x>1?2:d+1,gridRow:c+1,zIndex:u.size.x-d},isLastRow:c===u.size.y-1,isFirstColumn:0===d,isLastColumn:d===u.size.x-1,changeSortOrder:o,cell:a,iconsVisibilityStatus:p,columnWidth:r[d],overrideLeftGridWidth:l,shouldApplyIndentModeColumnWidth:f,tableWidth:e},a.id))}return t}),[]),d}))]})};var FA=h(NA);const jA=(e,t,r,n)=>{const{layoutService:o}=PC();g((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,r,n,o])},zA=(e,t)=>{$g((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},GA=(e,t)=>{const{isLast:r,list:n,listValues:o}=t;return r?n[e]:o[e]},BA=e=>"flex-start"===e?"flex-end":"flex-start",$A=(e,t,r,n,o)=>{var i,a;if(o)return;const l=e.representation,s=CR({isLeftColumn:r,layoutService:t,representation:l}),u=r?"flex-start":"center",c=null===(i=e.representation.resolvedImagePosition)||void 0===i?void 0:i.horizontal;if(e.representation.type===Ut.Image)return s&&c&&"center"!==c&&"rtl"===n?BA(c):null!=c?c:u;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){var d;const{labelTextAlign:r}=null!==(d=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==d?d:{};return DI(r,u,n)}const{textAlign:p}=null!==(a=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==a?a:{};return DI(p,u,n)},WA=()=>{},HA=({children:e,reactWindowStyle:t,cell:r,data:n,showTotalCellDivider:o,isLastRow:i,isLastColumn:a,isLeftColumn:l,isCellSelected:s,isAdjustingWidth:u,index:c})=>{var d;const{styleService:p,layoutService:f}=PC(),{interactions:m}=MC(),{direction:h}=RC(),{isLocked:g,createMouseDownHandler:b,createMouseOverHandler:v}=iI(),{showLastBorder:y}=n,x=g(r)||r.isLockedByDimension,S=!(x||!m.active||!m.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||u),E=S?b(c,(e=>GA(e,n))):void 0,C=S?v(c):void 0,w=CR({isLeftColumn:l,layoutService:f,representation:r.representation});return Yr.jsx("div",{className:jt,title:m.passive?r.representation.text:void 0,style:{...t,...gg(i,a,p.grid.border,h,y),...vg({bottomDivider:o&&l,rightDivider:o&&!l,borderColor:p.grid.divider}),...pg,padding:"rtl"===h?"0px 0px 0px 4px":"0px 4px",cursor:gI(S),background:dI({styleService:p,isCellSelected:s,cell:r,isCellLocked:x}),zIndex:l?void 0:f.size.x-r.x,justifyContent:$A(r,f,l,h,w),display:"flex",...f.isIndentModeEnabled&&l&&{["rtl"===h?"paddingRight":"paddingLeft"]:Math.max(4,24*(null!==(d=r.indentLevel)&&void 0!==d?d:0))},textAlign:AI(r,f)},"aria-hidden":"true",onMouseDown:E,onMouseOver:C,onKeyUp:WA,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":r.x,"data-page-x":r.pageX,"data-y":r.y,"data-page-y":r.pageY,"data-cell-type":r.ref.qType,"data-dimension-info-index":r.dimensionInfoIndex,children:e})},VA=e=>{e.stopPropagation()},UA=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:VA,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}}),YA=({href:e,text:r,interactions:n,color:o})=>t.createElement(Np,UA({href:e,text:r,interactions:n,color:o}),r),KA=G();KA.use(z),KA.renderer.prio(["canvas"]);const XA=(e,t)=>e&&"center"!==e&&"rtl"===t?BA(e):e,JA=({cell:e,representation:t,textStyle:r,imageContainerHorizontalAlignment:n})=>{var o,i;const{imageBox:a}=t,{styleService:{grid:{lineClamp:l}}}=PC(),{direction:s}=RC();return Yr.jsxs("div",{style:{display:"grid",gridTemplateColumns:`${null!==(o=null==a?void 0:a.width)&&void 0!==o?o:24}px 1fr`,maxHeight:"fit-content",alignItems:"center",justifyContent:"flex-start",overflow:"hidden",boxSizing:"border-box"},children:[Yr.jsx("div",{"data-key":"image-container--partial-image",style:{display:"flex",flexDirection:"column",justifyContent:lI(e),alignItems:XA(n,s),overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",width:null!==(i=null==a?void 0:a.width)&&void 0!==i?i:24,height:"100%"},children:Yr.jsx(II,{representation:t,textStyle:r})}),Yr.jsx("span",{style:{paddingRight:0,padding:4/(l<=2?2:1),alignSelf:lI(e)},children:!!t.labelStructure&&RI(t.labelStructure)})]})},ZA=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`,QA=({href:e,text:t,labelStructure:r,interactions:n,color:o})=>Yr.jsxs("span",{children:[Yr.jsx(bD,{...UA({href:e,text:t,interactions:n,color:o}),children:null!=r&&r.maskedValue?r.maskedValue:null==r?void 0:r.originalValue}),!!r&&ZA(r)]}),eP=({children:e,textStyle:t})=>Yr.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),tP=({cell:e,isCellSelected:t,isLeftColumn:r})=>{const{direction:n}=RC(),{isActive:o}=iI(),{layoutService:i,styleService:a}=PC(),{interactions:l}=MC();let s=r&&!e.isNull?(e=>{const{representation:{text:t,labelStructure:r}}=e;if(!r||!r.originalValue)return t;const{originalValue:n,maskedValue:o,suffix:i,delimeter:a}=r;return`${0!==o.length?o:n} ${i?a:""} ${i}`.trim()})(e):e.representation.text;if(e.isEmpty)return null;const u=(({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n})=>({...fg,...mg(n?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:pI({cell:e,styleService:t,isCellSelected:r}),fontWeight:fI({cell:e,styleService:t}),fontStyle:mI({cell:e,styleService:t}),textDecoration:hI({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:a,isCellSelected:t,isLeftColumn:r});if(e.representation.type===Ut.Image&&!e.isTotal&&!e.isNull){const{labelStructure:t}=e.representation,o=r&&t&&t.suffix?JA:MI;return Yr.jsx(o,{cell:e,representation:e.representation,leafCount:e.leafCount,textStyle:u,isLeftColumn:r,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand,imageContainerHorizontalAlignment:$A(e,i,r,n)})}if(e.representation.type===Ut.Link&&!o&&!e.isTotal){const t=r&&e.representation.labelStructure?QA:YA;s=Yr.jsx(t,{text:e.representation.text,labelStructure:e.representation.labelStructure,href:e.representation.url,interactions:l,color:e.expressionColor.color})}return Yr.jsx(eP,{textStyle:{...u,...e.representation.type===Ut.Image&&e.isNull?{alignSelf:lI(e)}:{}},children:s})},rP=({index:e,style:t,data:r})=>{const{styleService:n,layoutService:o}=PC(),{isSelected:i}=iI(),{isLeftColumn:a=!1,showLastBorder:l,itemCount:s,isLast:u,totalDividerIndex:c}=r,{isAdjustingWidth:d,setIsAdjustingWidth:p}=JI([r]),f=GA(e,r),m=a?e===s-1:u,h=a?u:e===s-1,g=WL(f,c,o.isIndentModeEnabled);if(void 0===f){const{background:r}=n.dimensionValues;return Yr.jsx(HL,{style:{...t,background:r},index:e,isLastRow:m,isLastColumn:h,showLastBorder:l,isLeftColumn:a,showTotalCellDivider:g})}const b=i(f);return Yr.jsxs(HA,{reactWindowStyle:t,isLeftColumn:a,isLastRow:m,isLastColumn:h,isCellSelected:b,showTotalCellDivider:g,cell:f,data:r,isAdjustingWidth:d,index:e,children:[Yr.jsxs(VL,{verticalAlign:lI(f),width:UL(f.representation),right:f.isLeftColumn?void 0:4,isLeftColumn:a,children:[Yr.jsx(yI,{isLeftColumn:a,isCellSelected:b,cell:f}),Yr.jsx(tP,{isLeftColumn:a,isCellSelected:b,cell:f})]}),Yr.jsx(eM,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?rr.Measures:rr.Dimension},columnWidth:t.width,isLastColumn:h,setIsAdjustingWidth:p})]})};var nP=t.memo(rP,DL);const oP=({list:e,listValues:t,isLastRow:r,getRightGridColumnWidth:n})=>o=>{var i;const a=r?e[o]:t.at(o);return a&&0===o&&a.x>0?(a.leafCount+a.x+a.distanceToNextCell)*n():!r&&a?(a.leafCount+a.distanceToNextCell)*n():n(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o)},iP=(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}},aP=(e,t)=>r=>{e.current&&(e.current[t]=r)},lP={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...dg},sP={overflow:"hidden",willChange:"auto",flexShrink:0},uP=({leftGridRef:e,width:t,height:r,columnWidths:n,showLastBorder:o})=>{const{pageInfo:i,direction:a}=RC(),{layoutService:l,styleService:{contentCellHeight:s,grid:{divider:u}}}=PC(),{qSize:c}=l.layout.qHyperCube,{gridSectionsData:{leftDimensionData:d},visibleDimensionsInfo:{visibleLeftDimensionInfo:p}}=vR();zA(e,d),jA(e,t,r,s);const f=i.rowsOnCurrentPage*s,m={...lP,borderColor:u,width:n.reduce(((e,t)=>e+t),0)};return Yr.jsx("div",{style:m,"data-section-id":"LEFT_GRID",children:d.grid.map(((t,u)=>{const m=u===d.columnCount-1,h=WC(p[u]),{itemCount:g,estimatedItemSize:b,listValues:v}=iP(t,f,i.rowsOnCurrentPage,m),y=l.isIndentModeEnabled?()=>s:((e,t,r,n,o)=>i=>{const a=n?e[i]:t.at(i);if(a&&0===i&&a.pageY>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*r;if(a&&a.leafCount>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*r}return r})(t,v,s,m,c.qcy);return Yr.jsx(RL,{ref:aP(e,u),style:{...sP,flexGrow:m?1:0,direction:a},height:r,width:n[u],itemCount:g,itemSize:y,layout:"vertical",itemData:{list:t,isLeftColumn:!0,isLast:m,itemCount:g,showLastBorder:o,listValues:v,totalDividerIndex:d.totalDividerIndex},itemKey:BI,estimatedItemSize:b,children:nP},h)}))})};var cP=h(uP);const dP={overflow:"hidden",willChange:"auto"},pP=e=>({...dg,borderWidth:"rtl"===e?"0px 1px 0px 0px":"0px 0px 0px 1px"}),fP=({topGridRef:e,rowHightCallback:t,width:r,height:n,showLastBorder:o,getRightGridColumnWidth:i})=>{const{direction:a}=RC(),{layoutService:l,styleService:{grid:{divider:s},headerCellHeight:u}}=PC(),{gridSectionsData:{headersData:c,topDimensionData:d}}=vR(),p={...pP(a),borderColor:s,height:n};zA(e,d),jA(e,r,n,u);const f=l.size.x*i();return 0===d.rowCount?Yr.jsx("div",{style:{width:r,height:n,...pP(a)}}):Yr.jsx("div",{style:p,"data-section-id":"TOP_GRID",children:d.grid.map(((n,s)=>{const u=s===d.rowCount-1,{itemCount:p,estimatedItemSize:m,listValues:h}=iP(n,f,l.size.x,u),g=(({layoutService:e,headersData:t,topRowIndex:r})=>{const n=t.data.at(r);if(void 0===n)return;const o=t.size.x-1,i=_A({layoutService:e,headersData:t,topRowIndex:r})?0:o,a=n.at(i),l=Array.isArray(a)?a.at(o):a;return l?e.getDimensionInfo(l.dimensionInfoIndex):void 0})({layoutService:l,headersData:c,topRowIndex:s}),b=g?WC(g):`empty ${s}`;return Yr.jsx(RL,{ref:aP(e,s),style:dP,height:t(),width:r,itemCount:p,itemSize:oP({list:n,listValues:h,isLastRow:u,getRightGridColumnWidth:i}),layout:"horizontal",itemData:{list:n,isLast:u,itemCount:p,showLastBorder:o,listValues:h,totalDividerIndex:d.totalDividerIndex},itemKey:BI,estimatedItemSize:m,direction:a,children:nP},b)}))})};var mP=h(fP);const hP=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=PC(),r=WR(),n=(()=>{const{model:e}=MC(),t=p((async(t,r)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:n,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(r===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!n).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(),{gridSectionsWrapperRefs:{headerGridWrapperRef:o,topGridWrapperRef:i,leftGridWrapperRef:a,dataGridWrapperRef:l},gridRefs:{topGridRef:s,leftGridRef:u,dataGridRef:c},scrollDirectionRefs:{verticalScrollDirection:d,horizontalScrollDirection:m},scrollbarsDimensions:{verticalScrollbarWidth:h,horizontalScrollbarHeight:g,resetHorizontalScrollbarHeight:b}}=$R(),{leftGridWidth:v,leftGridFullWidth:y,leftGridColumnWidths:x,rightGridFullWidth:S,showLastRightBorder:E,getRightGridColumnWidth:C,getHeaderCellsIconsVisibilityStatus:w,overrideLeftGridWidth:R}=function({tableWidth:e,verticalScrollbarWidth:t,resetHorizontalScrollbarHeight:r}){const{layoutService:n,styleService:o}=PC(),{gridSectionsData:{headersData:i}}=vR(),{measureText:a}=jg(o.header),l=_R({tableWidth:e}),s=qR({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:l.leftGridWidth}),u=l.leftGridWidth+s.rightGridFullWidth+1<e,c=p(((e,t,r="")=>{let o=e;n.isIndentModeEnabled&&(o=1,1===i.size.x&&(o=0));const s=l.leftGridColumnWidths[o];let u=!1,c=!1,d=a(r)+xR;return t&&d+20<=s&&(c=!0,d+=20),d+20<=s&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:c}}),[l.leftGridColumnWidths,a,n.isIndentModeEnabled,i.size.x]);return f((()=>{const e=l.leftGridWidth===l.leftGridFullWidth,t=s.rightGridWidth===s.rightGridFullWidth;e&&t&&r()}),[r,l.leftGridWidth,l.leftGridFullWidth,s.rightGridWidth,s.rightGridFullWidth]),{...l,...s,showLastRightBorder:u,getHeaderCellsIconsVisibilityStatus:c}}({tableWidth:r.width,verticalScrollbarWidth:h,resetHorizontalScrollbarHeight:b}),{gridScaffoldDimensions:L,headerGridDims:I,topGridDims:M,leftGridDims:D,dataGridDims:A,metadata:{everyThingFitsInTableRectHeight:P,scrollbarsVisibilityStatus:O}}=(({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:r,leftGridOriginalWidth:n,rightGridOriginalWidth:o},scrollBarsDimensions:{verticalScrollbarWidth:i,horizontalScrollbarHeight:a}})=>{const l=WR(),{pageInfo:s}=RC(),{gridSectionsData:{headersData:u,topDimensionData:c}}=vR(),d=Math.min(l.height*SR,Math.max(l.height*SR-25,l.height-t-a)),p=l.width*SR,f=s.rowsOnCurrentPage*t,m=Math.max(u.size.y,c.rowCount,1),h=e*m,g=e*m,b=Math.min(p,r),v=l.width-p,y=Math.max(v,l.width-b),x=Math.min(d,h,g),{availableHeight:S,everyThingFitsInTableRectHeight:E,everyThingFitsInTableRectWidth:C}=((e,t,r)=>{const n=t+1+r+i<=l.width,o=e+1+f+a,s=o-l.height<a||o<=l.height;return{availableHeight:s?o:l.height,everyThingFitsInTableRectHeight:s,everyThingFitsInTableRectWidth:n}})(x,b,y),w=S-d,R=Math.max(w,S-x),L=Math.min(R,f),I=Math.min(R,f),M=h+1+f,{visibilityStatus:D,metadata:{hasLeftGridOverflowX:A,hasDataGridOverflowX:P}}=(e=>{const{gridScaffold:{X_AXIS:{leftSectionWidth:t,rightSectionWidth:r},Y_AXIS:{topSectionHeight:n,bottomSectionHeight:o}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:i,rightSectionFullWidth:a},Y_AXIS:{topSectionFullHeight:l,bottomSectionFullHeight:s}}}=e,u=l>n,c=i>t,d=a>r,p=s>o;return{visibilityStatus:{topGrid:{overflowX:"hidden",overflowY:u?"scroll":"hidden"},leftGrid:{overflowX:c?"scroll":"hidden",overflowY:"hidden"},dataGrid:{overflowX:d?"scroll":"hidden",overflowY:p?"scroll":"hidden"}},metadata:{hasTopGridOverflowY:u,hasLeftGridOverflowX:c,hasDataGridOverflowX:d,hasDataGridOverflowY:p}}})({gridScaffold:{X_AXIS:{leftSectionWidth:b,rightSectionWidth:y},Y_AXIS:{topSectionHeight:x,bottomSectionHeight:R}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:n,rightSectionFullWidth:o},Y_AXIS:{topSectionFullHeight:g,bottomSectionFullHeight:M-g}}});return{gridScaffoldDimensions:{width:l.width,height:l.height,gridTemplateColumns:`${b}px ${y}px`,gridTemplateRows:`${x}px ${R}px`},headerGridDims:{width:-1,height:x},topGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:g},stickyWrapper:{width:y-1-i,height:-1},self:{width:Math.min(o,y)-(C?1:0)-i,height:g}},leftGridDims:{fullSizeWrapper:{width:b,height:M-g+(!A&&P?a:0)},stickyWrapper:{width:b,height:R-1-a},self:{width:b,height:Math.max(t,L-(E?0:a-1))}},dataGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:M-g+(!P&&A?a:0)},stickyWrapper:{width:y-1-i,height:R-1-a},self:{width:Math.min(o,y)-(C?1:0)-i,height:Math.max(t,I-(E?0:a-1))}},metadata:{everyThingFitsInTableRectHeight:E,scrollbarsVisibilityStatus:D}}})({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:v,leftGridOriginalWidth:y,rightGridOriginalWidth:S},scrollBarsDimensions:{verticalScrollbarWidth:h,horizontalScrollbarHeight:g}}),k=p((()=>e),[e]),T=p((()=>t),[t]);return(()=>{const{downloadService:e}=PC();f((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),Yr.jsxs(VR,{style:L,children:[Yr.jsx("div",{style:{overflow:"hidden"},ref:o,children:Yr.jsx(FA,{tableWidth:r.width,leftGridWidth:v,columnWidths:x,getHeaderCellsIconsVisibilityStatus:w,rowHight:e,height:I.height,changeSortOrder:n,overrideLeftGridWidth:R})}),Yr.jsx(KR,{style:O.topGrid,origin:or.TopGrid,ref:i,children:Yr.jsx(HR,{style:M.fullSizeWrapper,children:Yr.jsx(XR,{style:M.stickyWrapper,children:Yr.jsx(mP,{topGridRef:s,rowHightCallback:k,...M.self,showLastBorder:{right:E,bottom:!1},getRightGridColumnWidth:C})})})}),Yr.jsx(KR,{style:O.leftGrid,origin:or.LeftGrid,ref:a,children:Yr.jsx(HR,{style:D.fullSizeWrapper,children:Yr.jsx(XR,{style:D.stickyWrapper,children:Yr.jsx(cP,{leftGridRef:u,...D.self,columnWidths:x,showLastBorder:{right:!1,bottom:P}})})})}),Yr.jsx(KR,{style:O.dataGrid,origin:or.DataGrid,ref:l,children:Yr.jsx(HR,{style:A.fullSizeWrapper,children:Yr.jsx(XR,{style:A.stickyWrapper,children:Yr.jsx(VI,{dataGridRef:c,rowHightCallback:T,...A.self,showLastBorder:{right:E,bottom:P},getRightGridColumnWidth:C,verticalScrollDirection:d,horizontalScrollDirection:m})})})})]})},gP=()=>{const{keyboard:e,theme:t,interactions:r,translator:n}=MC(),{pageInfo:o,updatePageInfo:i,rect:a}=RC(),{layoutService:l}=PC(),{layout:s,hasData:u}=l;return Yr.jsxs(Yr.Fragment,{children:[u?Yr.jsx(hP,{}):null,Yr.jsx(kC,{}),Yr.jsx(CC,{paginationNeeded:o.shouldShowPagination,handleChangePage:e=>{i({page:e})},pageInfo:o,totalRowCount:o.totalRowCount,totalColumnCount:0,totalPages:o.totalPages,keyboard:e,translator:n,theme:t,interactions:r,rect:a,layout:s})]})},bP={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_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_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},vP=12,yP=14,xP=16,SP=24,EP=3,CP=300,wP=400,RP=600,LP=700,IP={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Sr(bP.GREYSCALE_0,.05),Sr(bP.GREEN_PALE,.5),Sr(bP.BLUE_PALE,.5),Sr(bP.GREEN_PALE,.5),Sr(bP.BLUE_PALE,.5),Sr(bP.GREEN_PALE,.5),Sr(bP.BLUE_PALE,.5);var MP;function DP(){return DP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},DP.apply(null,arguments)}Sr(bP.GREEN_PALE,.5),Sr(bP.BLUE_PALE,.5),Sr(bP.GREEN_PALE,.5),Sr(bP.BLUE_PALE,.5);var AP,PP=function(e){return r.createElement("svg",DP({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),MP||(MP=r.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function OP(){return OP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},OP.apply(null,arguments)}var kP=function(e){return r.createElement("svg",OP({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),AP||(AP=r.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 TP({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Yr.jsx("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})}function _P(e={}){return Yr.jsx(TP,{...e,children:Yr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Yr.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Yr.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function qP(e={}){return Yr.jsx(TP,{...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Yr.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Yr.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function NP(e={}){return Yr.jsx(TP,{fontSize:"medium",...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Yr.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function FP(e={}){return Yr.jsx(TP,{fontSize:"medium",...e,children:Yr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Yr.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Yr.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function jP({className:e}){return Yr.jsx(TP,{fontSize:"small",className:e,children:Yr.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Yr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Yr.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Yr.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Yr.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Yr.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function zP(e={}){return Yr.jsx(TP,{...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Yr.jsx("rect",{stroke:bP.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}Yr.jsx(kP,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Yr.jsx(PP,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Yr.jsx(NP,{}),Yr.jsx(FP,{}),Yr.jsx((function(e={}){return Yr.jsx(TP,{...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Yr.jsx("rect",{stroke:"#000000",fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}),{}),Yr.jsx(_P,{}),Yr.jsx(qP,{}),Yr.jsx(PP,{style:{color:bP.TEXT_PRIMARY},"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16});const GP={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:EP,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var BP=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:bP.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:bP.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Yr.jsx(PP,{"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 ${bP.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:bP.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${bP.MISC_FOCUS_BORDER}`,borderRadius:EP,backgroundColor:bP.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 ${bP.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:bP.WHITE,color:bP.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 ${bP.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:bP.GREYSCALE_0_15,backgroundColor:bP.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:bP.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${bP.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:bP.GREEN_PALE},"&:active":{backgroundColor:bP.GREEN_DARK},"&.Mui-focusVisible":{borderColor:bP.GREEN_PALE,boxShadow:`0 0 0 3px ${Lv(bP.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:bP.BLUE_PALE},"&:active":{backgroundColor:bP.BLUE_DARK},"&.Mui-focusVisible":{borderColor:bP.BLUE_PALE,boxShadow:`0 0 0 3px ${Lv(bP.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:bP.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${bP.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:bP.GREYSCALE_0_15,backgroundColor:bP.GREYSCALE_100_60,"&:active":{backgroundColor:bP.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:bP.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${bP.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:bP.PURPLE,"&.Mui-focusVisible":{borderColor:bP.PURPLE,boxShadow:`0 0 0 3px ${Lv(bP.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:bP.GREEN,"&.Mui-focusVisible":{borderColor:bP.GREEN,boxShadow:`0 0 0 3px ${Lv(bP.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:bP.BLUE,"&.Mui-focusVisible":{borderColor:bP.BLUE,boxShadow:`0 0 0 3px ${Lv(bP.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:bP.ORANGE,"&.Mui-focusVisible":{borderColor:bP.ORANGE,boxShadow:`0 0 0 3px ${Lv(bP.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:bP.RED,"&.Mui-focusVisible":{borderColor:bP.RED,boxShadow:`0 0 0 3px ${Lv(bP.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:bP.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:bP.PURPLE_PALE},"&:active":{backgroundColor:bP.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:bP.PURPLE_PALE,boxShadow:`0 0 0 3px ${Lv(bP.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:bP.GREEN_PALE},"&:active":{backgroundColor:bP.GREEN_DARK},"&.Mui-focusVisible":{borderColor:bP.GREEN_PALE,boxShadow:`0 0 0 3px ${Lv(bP.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:bP.BLUE_PALE},"&:active":{backgroundColor:bP.BLUE_DARK},"&.Mui-focusVisible":{borderColor:bP.BLUE_PALE,boxShadow:`0 0 0 3px ${Lv(bP.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:bP.ORANGE_PALE},"&:active":{backgroundColor:bP.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:bP.ORANGE_PALE,boxShadow:`0 0 0 3px ${Lv(bP.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:bP.RED_PALE},"&:active":{backgroundColor:bP.RED_DARK},"&.Mui-focusVisible":{borderColor:bP.RED_PALE,boxShadow:`0 0 0 3px ${Lv(bP.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:bP.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:bP.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:EP,boxShadow:`inset 0 0 0 2px ${bP.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Yr.jsx(kP,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:vP,borderRadius:EP,color:bP.TEXT_PRIMARY,backgroundColor:bP.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:bP.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${bP.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:bP.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:bP.GREYSCALE_0_05,color:bP.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:bP.GREEN,borderColor:bP.GREEN},"&.MuiChip-outlinedInfo":{color:bP.BLUE,borderColor:bP.BLUE},"&.MuiChip-outlinedWarning":{color:bP.ORANGE,borderColor:bP.ORANGE},"&.MuiChip-outlinedError":{color:bP.RED,borderColor:bP.RED}},outlined:{border:`solid 1px ${bP.GREYSCALE_0_15}`,backgroundColor:bP.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:EP,boxShadow:"none",backgroundColor:bP.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:bP.GREEN,borderColor:bP.GREEN},outlinedSecondary:{color:bP.BLUE,borderColor:bP.BLUE},label:{fontFamily:IP.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Yr.jsx(kP,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Yr.jsx(PP,{"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:yP,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:bP.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${bP.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:bP.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:bP.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:bP.GREYSCALE_0_05}}},popupIndicator:{borderRadius:EP,border:`solid 1px ${bP.GREYSCALE_0_15}`,color:bP.GREYSCALE_0_60,marginRight:0,width:SP,height:SP},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${bP.GREYSCALE_0_15}`},clearIndicator:{borderRadius:EP,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:bP.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:yP}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:vP,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:bP.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:bP.GREYSCALE_25,fontSize:vP,fontFamily:IP.FONT_FAMILY,fontWeight:RP,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:bP.TEXT_PRIMARY},"&.Mui-error":{color:bP.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:bP.TEXT_SECONDARY,content:"'(optional)'",fontWeight:wP,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:bP.TEXT_SECONDARY,content:"'(required)'",fontWeight:wP,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:yP,lineHeight:"16px",backgroundColor:bP.WHITE,borderRadius:EP,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${bP.GREYSCALE_0_05}`,borderColor:bP.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${bP.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${bP.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${bP.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${bP.RED}`,boxShadow:`0px 0px 0px 1px ${bP.RED}, inset 0 2px 0 0 ${bP.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${bP.GREYSCALE_0_10}`,borderColor:bP.GREYSCALE_0_10,backgroundColor:bP.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:bP.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:bP.GREYSCALE_0_15,borderRadius:EP,boxShadow:`inset 0 2px 0 0 ${bP.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Yr.jsx(PP,{...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:bP.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:bP.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:bP.GREYSCALE_0_03},"&:active":{backgroundColor:bP.GREYSCALE_0_10},"&:focus":{backgroundColor:bP.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${bP.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${bP.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:bP.GREYSCALE_0_30,"&:hover":{backgroundColor:bP.GREYSCALE_0_0,borderColor:bP.GREYSCALE_0_15},"& ~svg":{color:bP.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${bP.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:EP}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:bP.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${bP.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:bP.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:yP,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:vP,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:vP,fontWeight:RP,color:bP.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:RP}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${bP.GREYSCALE_0_15}, 0px 0px 0px 1px ${bP.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Yr.jsx(NP,{}),checkedIcon:Yr.jsx(FP,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:bP.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${bP.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:bP.GREEN_PALE,boxShadow:`0 0 0 3px ${Lv(bP.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:bP.BLUE_PALE,boxShadow:`0 0 0 3px ${Lv(bP.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:bP.GREYSCALE_0_20}},"&.Mui-disabled":{fill:bP.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Yr.jsx(zP,{}),checkedIcon:Yr.jsx(_P,{}),indeterminateIcon:Yr.jsx(qP,{})},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:bP.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:bP.GREYSCALE_0_55,color:bP.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:bP.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:bP.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:bP.GREYSCALE_0_55,"&:hover":{color:bP.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:bP.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:bP.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:yP,color:bP.TEXT_PRIMARY,lineHeight:"16px",fontWeight:RP},secondary:{fontSize:vP,color:bP.GREYSCALE_45,fontWeight:wP,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:yP,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:yP,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:bP.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:vP,borderBottom:`solid 1px ${bP.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:yP,color:bP.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:bP.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:bP.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:bP.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:bP.RED}}},"&.Mui-focusVisible":{backgroundColor:bP.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:bP.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:bP.GREEN,height:"24px","&.Mui-disabled":{color:bP.GREYSCALE_0_15}},rail:{backgroundColor:bP.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${bP.GREYSCALE_0_05}`,borderRadius:EP,boxShadow:`inset 0px 0px 0px 1px ${bP.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${bP.GREYSCALE_0_05}`,borderRadius:EP},thumb:{height:"16px",width:"16px",borderRadius:EP,backgroundColor:bP.WHITE,boxShadow:`0px 1px 2px 0px ${bP.GREYSCALE_0_15}, 0px 0px 0px 1px ${bP.GREYSCALE_0_05}`,"&:hover":{borderRadius:EP,boxShadow:`0 2px 4px 0 ${bP.GREYSCALE_0_30}, 0 0 0 1px ${bP.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${bP.GREYSCALE_0_15}, 0 0 0 1px ${bP.GREYSCALE_0_06}, 0 0 0 2px ${bP.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${bP.GREYSCALE_0_15}, 0 0 0 1px ${bP.GREYSCALE_0_06}, 0 0 0 2px ${bP.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:bP.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:bP.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:bP.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:bP.GREYSCALE_0_15},markLabel:{color:bP.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:bP.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:bP.WHITE,color:bP.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:bP.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:bP.GREEN_PALE,boxShadow:`0 0 0 3px ${Lv(bP.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:bP.BLUE_PALE,boxShadow:`0 0 0 3px ${Lv(bP.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:bP.GREYSCALE_0_15,borderRadius:EP},thumb:{height:"16px",width:"16px",borderRadius:EP,backgroundColor:bP.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:yP,fontWeight:RP,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${bP.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${bP.MISC_FOCUS_BORDER}`,backgroundColor:bP.GREYSCALE_0_03,borderRadius:EP},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:bP.GREYSCALE_25,"&.Mui-selected":{color:bP.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:yP,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:EP,"&:hover":{backgroundColor:bP.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${bP.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${bP.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:EP,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:bP.GREYSCALE_0_05},"&:hover":{backgroundColor:bP.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${bP.GREYSCALE_85}`,borderRight:`1px solid ${bP.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:RP,backgroundColor:bP.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:bP.GREYSCALE_98,borderBottom:`1px solid ${bP.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${bP.GREYSCALE_85}`,borderTop:`1px solid ${bP.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:bP.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:bP.GREYSCALE_0_05,"&:hover":{backgroundColor:bP.GREYSCALE_0_03}},"&&:hover":{backgroundColor:bP.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Yr.jsx(jP,{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 ${bP.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:yP,borderRadius:EP,padding:"7px 16px",border:`1px solid ${bP.GREYSCALE_0_15}`,backgroundColor:bP.GREYSCALE_100_60,color:bP.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:bP.GREYSCALE_0_10,border:`1px solid ${bP.GREYSCALE_0_30}`},"&:hover":{backgroundColor:bP.GREYSCALE_0_03,border:`1px solid ${bP.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:bP.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${bP.MISC_FOCUS_BORDER}`,border:`1px solid ${bP.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:bP.GREYSCALE_25,backgroundColor:bP.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:bP.GREYSCALE_0_10,border:`1px solid ${bP.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:vP,height:24,width:24,padding:7},sizeLarge:{fontSize:xP,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:yP,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:bP.GREYSCALE_20},tooltip:{backgroundColor:bP.GREYSCALE_20,fontSize:vP,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...GP}:{}}))(t);const $P=e=>({mode:"light",primary:{ultraLight:bP.GREEN_ULTRA_LIGHT,light:bP.GREEN_PALE,main:bP.GREEN,dark:bP.GREEN_DARK,extraDark:bP.GREEN_EXTRA_DARK,contrastText:bP.WHITE},secondary:{ultraLight:bP.BLUE_ULTRA_LIGHT,light:bP.BLUE_PALE,main:bP.BLUE,dark:bP.BLUE_DARK,extraDark:bP.BLUE_EXTRA_DARK,contrastText:bP.WHITE},error:{ultraLight:bP.RED_ULTRA_LIGHT,light:bP.RED_PALE,main:bP.RED,dark:bP.RED_DARK,extraDark:bP.RED_EXTRA_DARK,contrastText:bP.WHITE},warning:{ultraLight:bP.ORANGE_ULTRA_LIGHT,light:bP.ORANGE_PALE,main:bP.ORANGE,dark:bP.ORANGE_DARK,extraDark:bP.ORANGE_EXTRA_DARK,contrastText:bP.WHITE},success:{ultraLight:bP.GREEN_ULTRA_LIGHT,light:bP.GREEN_PALE,main:bP.GREEN,dark:bP.GREEN_DARK,extraDark:bP.GREEN_EXTRA_DARK,contrastText:bP.WHITE},info:{ultraLight:bP.BLUE_ULTRA_LIGHT,light:bP.BLUE_PALE,main:bP.BLUE,dark:bP.BLUE_DARK,extraDark:bP.BLUE_EXTRA_DARK,contrastText:bP.WHITE},text:{primary:bP.TEXT_PRIMARY,secondary:bP.TEXT_SECONDARY,disabled:bP.GREYSCALE_0_30},action:{hover:bP.GREYSCALE_0_03,hoverOpacity:.03,selected:bP.GREYSCALE_0_05,selectedOpacity:.05,focus:bP.MISC_FOCUS_BORDER},amethyst:{ultraLight:bP.WHITE,main:bP.PURPLE,light:bP.PURPLE_PALE,dark:bP.PURPLE_DARK,extraDark:bP.GREYSCALE_0_0,contrastText:bP.WHITE},background:{paper:bP.WHITE,default:bP.GREYSCALE_95},divider:bP.GREYSCALE_0_15}),WP=(e="light",t=!1)=>((e,t=!1)=>({components:BP(0,t),palette:$P(),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:yP,fontWeightLight:CP,fontWeightRegular:wP,fontWeightMedium:RP,fontWeightBold:LP,htmlFontSize:yP,fontFamily:IP.FONT_FAMILY,button:{fontWeight:RP,fontSize:yP,textTransform:"none"},body1:{fontSize:xP,lineHeight:"24px"},body2:{fontSize:yP,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:SP,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:xP,fontWeight:RP,lineHeight:"16px"},h6:{fontSize:yP,fontWeight:RP,lineHeight:"16px"},caption:{color:bP.TEXT_SECONDARY},subtitle1:{fontSize:yP,color:bP.TEXT_SECONDARY},subtitle2:{fontSize:vP,color:bP.TEXT_SECONDARY}},shape:{borderRadius:EP}}))(0,t);const HP=(e,{selections:r,baseObjects:n,coreServices:o,nebulaObjects:i})=>{const a=function(e){var t;const r=WP();return null!=r&&null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),_x({...r,direction:e})}(n.direction);e.render(Yr.jsx(t.StrictMode,{children:Yr.jsx(gS,{theme:a,children:Yr.jsx(DC,{...i,children:Yr.jsx(LC,{...n,children:Yr.jsx(aI,{selections:r,children:Yr.jsx(OC,{...o,children:Yr.jsx(yR,{children:Yr.jsx(gP,{})})})})})})})}))};var VP,UP,YP,KP;!function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.Border="border",e.Divider="divider"}(VP||(VP={})),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"}(UP||(UP={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(YP||(YP={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(KP||(KP={}));const XP=e=>e?`${parseInt(e,10)}px`:void 0,JP=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?sg.Transparent:r}},ZP=(e,t)=>+(parseInt(e,10)*lg*t+8).toFixed(2),QP=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?ig:"normal",eO=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",tO=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",rO=document.createElement("textarea");function nO(e){rO.value=e,document.body.appendChild(rO),rO.select(),rO.setSelectionRange(0,rO.value.length),document.execCommand("copy"),document.body.removeChild(rO)}rO.style.position="absolute",rO.style.left="-9999px",rO.setAttribute("readonly","");function oO(e){null==L||L(((t,r)=>{const n=r.target,o=null==n?void 0:n.closest(`.${jt}`);null!=o&&o.title&&t.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{(e=>{var t;const r=e.title;r&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(r).catch((()=>{nO(r)})):nO(r))})(o)}}),null==e||e.forEach((e=>{e(t,r,o)}))}))}const iO=({model:e,env:t,layoutService:r,effectivePropertiesService:n,translator:o})=>Mg(((i,a,l)=>{if(!e||n.qAlwaysFullyExpanded||!t.flags.isEnabled("CLIENT_IM_6273_EXPAND_OR_COLLAPSE_DIM"))return;const s=e,u=i.addItem({translation:"Object.PivotTable.ContextMenu.ExpandCollapse",tid:"expand-collapse-group"}),{qEffectiveDimensionName:c,label:d}=((e,t)=>{const r=((e,t)=>{const r=null==e?void 0:e.getAttribute("data-dimension-info-index");if("string"==typeof r)return t.getDimensionInfo(+r)})(e,t);return"object"==typeof r?{qEffectiveDimensionName:r.qEffectiveDimensionName,label:r.qFallbackTitle}:{qEffectiveDimensionName:void 0,label:void 0}})(l,r);u.addItem((e=>({icon:"lui-icon lui-icon--plus",translation:"Object.PivotTable.ContextMenu.ExpandAll",tid:"expand-all",select:async()=>{try{await e.expandTop(TC,0,0,!0),await e.expandLeft(TC,0,0,!0)}catch(e){console.error("Failed to expand all",e)}}}))(s)),"string"==typeof c&&u.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:r,label:n,translator:o})=>({icon:"lui-icon lui-icon--plus",translation:o.get("SNPivotTable.ContextMenu.ExpandDimension",[null!=n?n:""]),tid:"expand-dimension",select:mA({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:dA.Expand})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:c,label:d,translator:o})),u.addItem((e=>({icon:"lui-icon lui-icon--minus",translation:"Object.PivotTable.ContextMenu.CollapseAll",tid:"collapse-all",select:async()=>{try{await e.collapseTop(TC,0,0,!0),await e.collapseLeft(TC,0,0,!0)}catch(e){console.error("Failed to collapse all",e)}}}))(s)),"string"==typeof c&&u.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:r,label:n,translator:o})=>({icon:"lui-icon lui-icon--minus",translation:o.get("SNPivotTable.ContextMenu.CollapseDimension",[null!=n?n:""]),tid:"collapse-dimension",select:mA({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:dA.Collapse})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:c,label:d,translator:o}))}),[e,r,n]),aO=(e,t)=>y((()=>(({layout:e,flags:t})=>{var r,n,o,i;const{qHyperCube:a,nullValueRepresentation:l,snapshotData:s}=e,{qNoOfLeftDims:u,qEffectiveInterColumnSortOrder:c,qMeasureInfo:d,qDimensionInfo:p}=a,f=!!s,m=null!==(r=null==s||null===(n=s.content)||void 0===n?void 0:n.rowsPerPage)&&void 0!==r?r:15e3,h={x:Math.min(e.qHyperCube.qSize.qcx,ag),y:Math.min(e.qHyperCube.qSize.qcy,m)},g=c.slice(0,u),b=e=>g.some((t=>t===e)),v=b(_C),y=new Map(c.map((e=>{var t;return[null!==(t=p[e])&&void 0!==t?t:_C,e]}))),x=d.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return{layout:e,getNullValueText:()=>{var e;return null!==(e=null==l?void 0:l.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(v)return 0;const r=e%x.length;return t?r:d.findIndex((e=>e===x[r]))},getDimensionInfo:e=>e===_C?void 0:p.at(e),getDimensionInfoIndex:e=>{var t;return null!==(t=y.get(e))&&void 0!==t?t:-1},size:h,isSnapshot:f,hasLimitedData:!f&&h.x<e.qHyperCube.qSize.qcx,hasData:h.x>0&&h.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,hasPseudoDimOnLeft:v,leftDimensionInfoIndexes:g,isLeftDimension:b,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:x,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode),indentModeFeatures:{isLinksSupported:t.isEnabled("CLIENT_IM_5975_INDENT_MODE_LINKS"),isImagesSupported:t.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES")},indentModeColumnWidth:null!==(o=e.qHyperCube.indentModeColumnWidth)&&void 0!==o?o:{type:$t.Auto,pixels:Bt.PixelsDefault,percentage:Bt.PercentageDefault},searchSortFromDimension:"inherit"===(null===(i=e.search)||void 0===i?void 0:i.sorting)}})({layout:e,flags:t})),[e,t]),lO=({model:e,layoutService:t,viewService:r,pageInfo:n,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=Ag(e);return t.current=e,t})(pR(o));return qg((async()=>{const{qHyperCube:t}=i,{maxNumberOfVisibleRows:o,maxNumberOfVisibleColumns:u}=s.current;var c,d;if(a)return null!==(c=null===(d=i.snapshotData)||void 0===d||null===(d=d.content)||void 0===d?void 0:d.qPivotDataPages)&&void 0!==c?c:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,r,n)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=n||t.gridRowStartIndex+t.gridHeight>=r))(l,r,o,u)||((e,t,r,n)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(n,l.qcx)||c<Math.min(r,l.qcy)})(i,n,o,u))){const t=((e,t,r,n,o,i)=>{const a=n.page*n.rowsPerPage,l=Math.min(a+n.rowsPerPage,r.qcy),s=Math.min(ag,r.qcx);if(r.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,r=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),r>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:c,qWidth:Math.min(s-u,i),qHeight:Math.min(l-c,o)}})(l,r,i.qHyperCube.qSize,n,o,u);return t?e.getHyperCubePivotData(TC,fR(t)):[]}return t.qPivotDataPages}),[i,a,e,r,n.page,n.rowsPerPage,s,l])},sO=({rowsPerPage:e,totalRowCount:t,page:r})=>Math.min(e,t-r*e),uO=(e,t,r=15e3)=>({rowsPerPage:r,totalPages:Math.max(1,Math.ceil(e/r)),totalRowCount:e,rowsOnCurrentPage:sO({rowsPerPage:r,totalRowCount:e,page:t})}),cO=15,dO=({layoutService:e,viewService:t,rect:r,model:n,pageInfo:o})=>{var i;return I((async e=>{const i=e;if(!i.snapshotData||!n||i.snapshotData.content)return i;if("getHyperCubePivotData"in n){const{scrollTop:e,scrollLeft:a,leftGridScrollLeft:l,topGridScrollTop:s}=t,u=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,l=t.page*t.rowsPerPage,s=Math.max(n-cO,0),u=Math.max(l+o-cO,l,0),c=ag-s,d=l+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=pR(r);return{qLeft:s,qTop:u,qWidth:Math.min(c,e+30),qHeight:Math.min(d,t+30)}}return{qLeft:s,qTop:u,qWidth:Math.min(c,i+30),qHeight:Math.min(d,a+30)}})(t,o,r),c=fR(u),d={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};i.snapshotData.content={qPivotDataPages:await n.getHyperCubePivotData(TC,[d,...c]),scrollTop:e,scrollLeft:a,leftGridScrollLeft:l,topGridScrollTop:s,page:o.page,rowsPerPage:o.rowsPerPage},i.snapshotData.object.size.w=r.width,i.snapshotData.object.size.h=r.height}return i})),M((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,topGridScrollTop:e.topGridScrollTop,renderPage:t.page}))(t,o)})),[t]),null!==(i=e.layout.snapshotData)&&void 0!==i&&i.content?{left:r.left,top:r.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:r};var pO={SNPivotTable_ContextMenu_CollapseDimension:{id:"SNPivotTable.ContextMenu.CollapseDimension",locale:{"de-DE":"{0} reduzieren","en-US":"Collapse {0}","es-ES":"Contraer {0}","fr-FR":"Réduire {0}","it-IT":"Comprimi {0}","ja-JP":"{0} を折りたたむ","ko-KR":"{0} 축소","nl-NL":"{0} samenvouwen","pl-PL":"Zwiń {0}","pt-BR":"Recolher {0}","ru-RU":"Свернуть {0}","sv-SE":"Dölj {0}","tr-TR":"{0} öğelerini daralt","zh-CN":"折叠 {0}","zh-TW":"收合 {0}"}},SNPivotTable_ContextMenu_ExpandDimension:{id:"SNPivotTable.ContextMenu.ExpandDimension",locale:{"de-DE":"{0} erweitern","en-US":"Expand {0}","es-ES":"Expandir {0}","fr-FR":"Développer {0}","it-IT":"Espandi {0}","ja-JP":"{0} を展開","ko-KR":"{0} 확장","nl-NL":"{0} uitvouwen","pl-PL":"Rozwiń {0}","pt-BR":"Expandir {0}","ru-RU":"Развернуть {0}","sv-SE":"Visa {0}","tr-TR":"{0} öğelerini genişlet","zh-CN":"展开 {0}","zh-TW":"展開 {0}"}},SNPivotTable_IndentMode_Rows:{id:"SNPivotTable.IndentMode.Rows",locale:{"de-DE":"Zeilen","en-US":"Rows","es-ES":"Filas","fr-FR":"Lignes","it-IT":"Righe","ja-JP":"行","ko-KR":"행","nl-NL":"Rijen","pl-PL":"Wiersze","pt-BR":"Linhas","ru-RU":"Строки","sv-SE":"Rader","tr-TR":"Satırlar","zh-CN":"行","zh-TW":"列"}},SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const fO=()=>{const e=D(),t=e.language();return y((()=>{!function(e){const t="SNPivotTable_LimitedData";e.get(t)===t&&Object.keys(pO).forEach((t=>{e.add(pO[t])}))}(e)}),[e]),{translator:e,language:t}},mO=e=>{const{flags:t}=e,r=A(),n=(e=>{const t=y((()=>zg(e)),[e]);return C((()=>()=>{t.unmount()}),[t]),t})(r),o=P(),i=O(),a=k(),l=T(),s=_(),u=Pg(),c=((e,t)=>{const[r]=qg((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return{...await e.getEffectiveProperties()}}),[e,t]);return y((()=>{var e,t;const n=void 0!==(null==r?void 0:r.qHyperCubeDef.qSortbyYValue)&&1===Math.abs(r.qHyperCubeDef.qSortbyYValue),o=null!==(e=null==r?void 0:r.qHyperCubeDef.qDimensions.map((e=>e.qDef.qSortCriterias)))&&void 0!==e?e:[];return{qAlwaysFullyExpanded:null!==(t=null==r?void 0:r.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==t&&t,qExpansionState:null==r?void 0:r.qHyperCubeDef.qExpansionState,isSortedByFirstMeasure:n,getSortCriteriaForDimension:e=>o[e]}}),[r])})(i,o),d=aO(o,t),p=(e=>{const t=R();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(d.isSnapshot),f=q(),m=_g(o,r),{translator:h,language:g}=fO(),{pageInfo:b,updatePageInfo:v}=((e,t)=>{const{size:r,layout:{qHyperCube:{qSize:n}}}=e,o=t.isDownloadedAsPDForImage||e.isSnapshot,i=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(e),[a,l]=E((()=>{const a=((e,t)=>{var r,n,o,i;return t.isDownloadedAsPDForImage?null!==(r=null===(n=t.viewState)||void 0===n?void 0:n.renderPage)&&void 0!==r?r:0:e.isSnapshot&&null!==(o=null===(i=e.layout.snapshotData)||void 0===i||null===(i=i.content)||void 0===i?void 0:i.page)&&void 0!==o?o:0})(e,t);return{page:a,shouldShowPagination:n.qcy>r.y&&!o,...uO(n.qcy,a,i)}})),s=e.layout.qHyperCube.qSize.qcy;return C((()=>{l((t=>({...t,...uO(s,t.page,i),shouldShowPagination:s>e.size.y&&!o})))}),[s,e.size.y,l,o,i]),C((()=>{const{page:e,totalPages:t}=a;if(e+1>t){const e=t-1,r=sO({...a,page:e});l({...a,page:e,rowsOnCurrentPage:r})}}),[a]),{pageInfo:a,updatePageInfo:e=>{l({...a,...e,rowsOnCurrentPage:sO({...a,...e})})}}})(d,u),S=((e,t,r)=>y((()=>((e,t)=>{var r,n,o,i,a,l,s,u;if(e.isDownloadedAsPDForImage){var c,d,p,f;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(c=null==t?void 0:t.scrollTop)&&void 0!==c?c:0,scrollLeft:null!==(d=null==t?void 0:t.scrollLeft)&&void 0!==d?d:0,leftGridScrollLeft:null!==(p=null==t?void 0:t.leftGridScrollLeft)&&void 0!==p?p:0,topGridScrollTop:null!==(f=null==t?void 0:t.topGridScrollTop)&&void 0!==f?f:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(r=null==t||null===(n=t.content)||void 0===n?void 0:n.scrollTop)&&void 0!==r?r:0,scrollLeft:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.leftGridScrollLeft)&&void 0!==a?a:0,topGridScrollTop:null!==(s=null==t||null===(u=t.content)||void 0===u?void 0:u.topGridScrollTop)&&void 0!==s?s:0}})(r,t.snapshotData)),[r,e.page,t.snapshotData]))(b,o,u),w=dO({rect:N(),layoutService:d,viewService:S,model:i,pageInfo:b}),[L,I]=lO({model:i,layoutService:d,viewService:S,pageInfo:b,rect:w}),M=y((()=>((e,t,r)=>{var n,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,L,I,M,D,A,P,O,k,T,_,q,N,F,j,z,G,B,$,W,H,V,U,Y,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[VP.LineClamp])&&void 0!==i?i:oe(UP.Grid,YP.Grid,KP.LineClamp))&&void 0!==o?o:1),ae=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==ne?void 0:ne[VP.ColumnLineClamp])&&void 0!==l?l:oe(UP.Grid,YP.Grid,KP.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=JP(e,null==J?void 0:J[VP.Background]))&&void 0!==u?u:oe(UP.Dimension,YP.LabelName,KP.BackgroundColor))&&void 0!==s?s:sg.Transparent,se={header:{fontSize:null!==(c=null!==(d=XP(null==J?void 0:J[VP.FontSize]))&&void 0!==d?d:oe(UP.Dimension,YP.LabelName,KP.FontSize))&&void 0!==c?c:ng,fontFamily:null!==(p=null!==(f=null==J?void 0:J[VP.FontFamily])&&void 0!==f?f:oe(UP.Dimension,YP.LabelName,KP.FontFamily))&&void 0!==p?p:og,fontWeight:QP(null==J?void 0:J[VP.FontStyle],ig),fontStyle:eO(null==J?void 0:J[VP.FontStyle]),textDecoration:tO(null==J?void 0:J[VP.FontStyle]),color:null!==(m=null!==(h=JP(e,null==J?void 0:J[VP.FontColor]))&&void 0!==h?h:oe(UP.Dimension,YP.LabelName,KP.FontColor))&&void 0!==m?m:fm.TEXT,background:le,hoverBackground:Hh(le,Wt),activeBackground:Hh(le,Ht)},dimensionValues:{fontSize:null!==(g=null!==(b=XP(null==Z?void 0:Z[VP.FontSize]))&&void 0!==b?b:oe(UP.Dimension,YP.LabelValue,KP.FontSize))&&void 0!==g?g:ng,fontFamily:null!==(v=null!==(y=null==Z?void 0:Z[VP.FontFamily])&&void 0!==y?y:oe(UP.Dimension,YP.LabelValue,KP.FontFamily))&&void 0!==v?v:og,fontWeight:QP(null==Z?void 0:Z[VP.FontStyle],void 0),fontStyle:eO(null==Z?void 0:Z[VP.FontStyle]),textDecoration:tO(null==Z?void 0:Z[VP.FontStyle]),color:null!==(x=null!==(S=JP(e,null==Z?void 0:Z[VP.FontColor]))&&void 0!==S?S:oe(UP.Dimension,YP.LabelValue,KP.FontColor))&&void 0!==x?x:fm.TEXT,background:null!==(E=null!==(C=JP(e,null==Z?void 0:Z[VP.Background]))&&void 0!==C?C:oe(UP.Dimension,YP.LabelValue,KP.BackgroundColor))&&void 0!==E?E:sg.Transparent},measureValues:{fontSize:null!==(w=null!==(R=XP(null==Q?void 0:Q[VP.FontSize]))&&void 0!==R?R:oe(UP.Measure,YP.LabelValue,KP.FontSize))&&void 0!==w?w:ng,fontFamily:null!==(L=null!==(I=null==Q?void 0:Q[VP.FontFamily])&&void 0!==I?I:oe(UP.Measure,YP.LabelValue,KP.FontFamily))&&void 0!==L?L:og,fontWeight:QP(null==Q?void 0:Q[VP.FontStyle],"normal"),fontStyle:eO(null==Q?void 0:Q[VP.FontStyle]),textDecoration:tO(null==Q?void 0:Q[VP.FontStyle]),color:null!==(M=null!==(D=JP(e,null==Q?void 0:Q[VP.FontColor]))&&void 0!==D?D:oe(UP.Measure,YP.LabelValue,KP.FontColor))&&void 0!==M?M:sg.FontSecondary,background:null!==(A=null!==(P=JP(e,null==Q?void 0:Q[VP.Background]))&&void 0!==P?P:oe(UP.Measure,YP.LabelValue,KP.BackgroundColor))&&void 0!==A?A:sg.Transparent},measureLabels:{fontWeight:QP(null==ee?void 0:ee[VP.FontStyle],"normal"),fontStyle:eO(null==ee?void 0:ee[VP.FontStyle]),textDecoration:tO(null==ee?void 0:ee[VP.FontStyle]),color:null!==(O=null!==(k=JP(e,null==ee?void 0:ee[VP.FontColor]))&&void 0!==k?k:oe(UP.Measure,YP.LabelName,KP.FontColor))&&void 0!==O?O:sg.FontSecondary,background:null!==(T=null!==(_=JP(e,null==ee?void 0:ee[VP.Background]))&&void 0!==_?_:oe(UP.Measure,YP.LabelName,KP.BackgroundColor))&&void 0!==T?T:sg.Transparent},totalValues:{fontWeight:QP(null==te?void 0:te[VP.FontStyle],ig),fontStyle:eO(null==te?void 0:te[VP.FontStyle]),textDecoration:tO(null==te?void 0:te[VP.FontStyle]),color:null!==(q=null!==(N=JP(e,null==te?void 0:te[VP.FontColor]))&&void 0!==N?N:oe(UP.Total,YP.LabelValue,KP.FontColor))&&void 0!==q?q:fm.TEXT,background:null!==(F=null!==(j=JP(e,null==te?void 0:te[VP.Background]))&&void 0!==j?j:oe(UP.Total,YP.LabelValue,KP.BackgroundColor))&&void 0!==F?F:sg.Transparent},nullValues:{fontWeight:QP(null==re?void 0:re[VP.FontStyle],"normal"),fontStyle:eO(null==re?void 0:re[VP.FontStyle]),textDecoration:tO(null==re?void 0:re[VP.FontStyle]),color:null!==(z=null!==(G=JP(e,null==re?void 0:re[VP.FontColor]))&&void 0!==G?G:oe(UP.Null,YP.LabelValue,KP.FontColor))&&void 0!==z?z:fm.TEXT,background:null!==(B=null!==($=JP(e,null==re?void 0:re[VP.Background]))&&void 0!==$?$:oe(UP.Null,YP.LabelValue,KP.BackgroundColor))&&void 0!==B?B:sg.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(W=null!==(H=JP(e,null==ne?void 0:ne[VP.Border]))&&void 0!==H?H:oe(UP.Grid,YP.Grid,KP.BorderColor))&&void 0!==W?W:sg.DividerLight,divider:null!==(V=null!==(U=JP(e,null==ne?void 0:ne[VP.Divider]))&&void 0!==U?U:oe(UP.Grid,YP.Divider,KP.BorderColor))&&void 0!==V?V:sg.DividerDark,background:null!==(Y=null!==(K=JP(e,null==ne?void 0:ne[VP.Background]))&&void 0!==K?K:oe(UP.Grid,YP.Grid,KP.BackgroundColor))&&void 0!==Y?Y:sg.Transparent},selectedColors:Wh(e)};return se.headerCellHeight=Math.max(ZP(se.header.fontSize,ae),ZP(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(ZP(se.measureValues.fontSize,ie),ZP(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=ZP(se.dimensionValues.fontSize,1),se})(m,d,t)),[m,d,t]),D=((e,t,r)=>{const[,n,o]=qg((async()=>{var t;const n=_m(r.flags),o=e.getStyle("","","fontFamily"),i=e.getStyle("object","label.name","fontFamily"),a=e.getStyle("object","label.value","fontFamily"),l=null!==(t=e.getStyle("","","fontFamilies"))&&void 0!==t?t:[];return Promise.all([...n,...l,o,i,a,Bg].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,r]);return o?(console.warn("Failed to load fonts:",o),!0):!n})(m,o,e),F=x(),j=e.flags.isEnabled("CLIENT_IM_6225_PIVOT_TABLE_RTL")?F.direction:"ltr";oO([iO({model:i,env:e,layoutService:d,effectivePropertiesService:c,translator:h})]),C((()=>{!I&&i&&!!L&&D&&HP(n,{selections:f,baseObjects:{rect:w,pageInfo:b,qPivotDataPages:L,updatePageInfo:v,direction:j},nebulaObjects:{env:e,app:a,model:i,embed:l,theme:m,keyboard:s,translator:h,interactions:p},coreServices:{styleService:M,viewService:S,layoutService:d,downloadService:u,effectivePropertiesService:c}})}),[i,a,w,p,f,S,d,u,I,L,M,n,D,h,g,b,v,c,l,s,m,e,j])},hO={version:"4.6.2",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:[]},gO=()=>({...hO,qHyperCubeDef:{...hO.qHyperCubeDef,qIndentMode:!1}})}}}));
174
+ `),dM.rippleVisible,vM,550,(({theme:e})=>e.transitions.easing.easeInOut),dM.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),dM.child,dM.childLeaving,yM,550,(({theme:e})=>e.transitions.easing.easeInOut),dM.childPulsate,xM,(({theme:e})=>e.transitions.easing.easeInOut)),CM=r.forwardRef((function(e,t){const n=oM({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,l=Er(n,pM),[s,u]=r.useState([]),c=r.useRef(0),d=r.useRef(null);r.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[s]);const p=r.useRef(!1),f=qv(),m=r.useRef(null),h=r.useRef(null),g=r.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:a}=e;u((e=>[...e,Yr.jsx(EM,{classes:{ripple:fl(i.ripple,dM.ripple),rippleVisible:fl(i.rippleVisible,dM.rippleVisible),ripplePulsate:fl(i.ripplePulsate,dM.ripplePulsate),child:fl(i.child,dM.child),childLeaving:fl(i.childLeaving,dM.childLeaving),childPulsate:fl(i.childPulsate,dM.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},c.current)])),c.current+=1,d.current=a}),[i]),b=r.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:n=!1,center:i=o||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)d=Math.sqrt((2*s.width**2+s.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===m.current&&(m.current=()=>{g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})},f.start(80,(()=>{m.current&&(m.current(),m.current=null)}))):g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})}),[o,g,f]),v=r.useCallback((()=>{b({},{pulsate:!0})}),[b]),y=r.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&m.current)return m.current(),m.current=null,void f.start(0,(()=>{y(e,t)}));m.current=null,u((e=>e.length>0?e.slice(1):e)),d.current=t}),[f]);return r.useImperativeHandle(t,(()=>({pulsate:v,start:b,stop:y})),[v,b,y]),Yr.jsx(SM,hr({className:fl(dM.root,i.root,a),ref:h},l,{children:Yr.jsx(xc,{component:null,exit:!0,children:s})}))}));function wM(e){return mv("MuiButtonBase",e)}const RM=hv("MuiButtonBase",["root","disabled","focusVisible"]),LM=["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"],IM=mS("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"},[`&.${RM.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),MM=r.forwardRef((function(e,t){const n=oM({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:m,onClick:h,onContextMenu:g,onDragLeave:b,onFocus:v,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:I,tabIndex:M=0,TouchRippleProps:D,touchRippleRef:A,type:P}=n,O=Er(n,LM),k=r.useRef(null),T=r.useRef(null),_=Ov(T,A),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=Hv(),[z,G]=r.useState(!1);u&&z&&G(!1),r.useImperativeHandle(o,(()=>({focusVisible:()=>{G(!0),k.current.focus()}})),[]);const[B,$]=r.useState(!1);r.useEffect((()=>{$(!0)}),[]);const W=B&&!c&&!u;function H(e,t,r=d){return Pv((n=>{t&&t(n);return!r&&T.current&&T.current[e](n),!0}))}r.useEffect((()=>{z&&p&&!c&&B&&T.current.pulsate()}),[c,p,z,B]);const V=H("start",E),U=H("stop",g),Y=H("stop",b),K=H("stop",w),X=H("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=H("start",I),Z=H("stop",R),Q=H("stop",L),ee=H("stop",(e=>{F(e),!1===q.current&&G(!1),m&&m(e)}),!1),te=Pv((e=>{k.current||(k.current=e.currentTarget),N(e),!0===q.current&&(G(!0),y&&y(e)),v&&v(e)})),re=()=>{const e=k.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=r.useRef(!1),oe=Pv((e=>{p&&!ne.current&&z&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!u&&(e.preventDefault(),h&&h(e))})),ie=Pv((e=>{p&&" "===e.key&&T.current&&z&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(O.href||O.to)&&(ae=f);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=u):(O.href||O.to||(le.role="button"),u&&(le["aria-disabled"]=u));const se=Ov(t,j,k),ue=hr({},n,{centerRipple:i,component:s,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:M,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Uv({root:["root",t&&"disabled",r&&"focusVisible"]},wM,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Yr.jsxs(IM,hr({as:ae,className:fl(ce.root,l),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:u?-1:M,type:P},le,O,{children:[a,W?Yr.jsx(CM,hr({ref:_,center:i},D)):null]}))}));function DM(e){return mv("MuiTypography",e)}hv("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const AM=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],PM=mS("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${ab(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>hr({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),OM={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},kM={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},TM=r.forwardRef((function(e,t){const r=oM({props:e,name:"MuiTypography"}),n=(e=>kM[e]||e)(r.color),o=sv(hr({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=OM}=o,f=Er(o,AM),m=hr({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||OM[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Uv({root:["root",i,"inherit"!==e.align&&`align${ab(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},DM,a)})(m);return Yr.jsx(PM,hr({as:h,ref:t,ownerState:m,className:fl(g.root,a)},f))}));const _M=r.forwardRef((function(e,t){const{children:n,container:o,disablePortal:i=!1}=e,[a,l]=r.useState(null),s=Ov(r.isValidElement(n)?Qv(n):null,t);if(Ev((()=>{i||l(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,i]),Ev((()=>{if(a&&!i)return Av(t,a),()=>{Av(t,null)}}),[t,a,i]),i){if(r.isValidElement(n)){const e={ref:s};return r.cloneElement(n,e)}return Yr.jsx(r.Fragment,{children:n})}return Yr.jsx(r.Fragment,{children:a?j.createPortal(n,a):a})})),qM=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],NM={entering:{opacity:1},entered:{opacity:1}},FM=r.forwardRef((function(e,t){const n=Nx(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:s,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:m,onExiting:h,style:g,timeout:b=o,TransitionComponent:v=mc}=e,y=Er(e,qM),x=r.useRef(null),S=Ov(x,Qv(l),t),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=E(p),w=E(((e,t)=>{iM(e);const r=aM({style:g,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),R=E(d),L=E(h),I=E((e=>{const t=aM({style:g,timeout:b,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),M=E(m);return Yr.jsx(v,hr({appear:a,in:u,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:I,onExited:M,onExiting:L,addEndListener:e=>{i&&i(x.current,e)},timeout:b},y,{children:(e,t)=>r.cloneElement(l,hr({style:hr({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},NM[e],g,l.props.style),ref:S},t))}))}));function jM(e){return mv("MuiBackdrop",e)}hv("MuiBackdrop",["root","invisible"]);const zM=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],GM=mS("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>hr({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),BM=r.forwardRef((function(e,t){var r,n,o;const i=oM({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=FM,transitionDuration:g}=i,b=Er(i,zM),v=hr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Uv({root:["root",r&&"invisible"]},jM,t)})(v),x=null!=(r=f.root)?r:c.root;return Yr.jsx(h,hr({in:p,timeout:g},b,{children:Yr.jsx(GM,hr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:s,className:fl(y.root,l,null==x?void 0:x.className),ownerState:hr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),$M=hv("MuiBox",["root"]),WM=_x(),HM=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:i}=e,a=Pa("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Qb);return r.forwardRef((function(e,r){const l=av(n),s=sv(e),{className:u,component:c="div"}=s,d=Er(s,pv);return Yr.jsx(a,hr({as:c,ref:r,className:fl(u,i?i(o):o),theme:t&&l[t]||l},d))}))}({themeId:Yg,defaultTheme:WM,defaultClassName:$M.root,generateClassName:dv.generate});function VM(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function UM(e){return parseInt(Dv(e).getComputedStyle(e).paddingRight,10)||0}function YM(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&&VM(e,o)}))}function KM(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function XM(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Mv(e);return t.body===e?Dv(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Vv(Mv(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${UM(n)+e}px`;const t=Mv(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${UM(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Mv(n).body;else{const t=n.parentElement,r=Dv(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 JM=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ZM(e){const t=[],r=[];return Array.from(e.querySelectorAll(JM)).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 QM(){return!0}function eD(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:a=ZM,isEnabled:l=QM,open:s}=e,u=r.useRef(!1),c=r.useRef(null),d=r.useRef(null),p=r.useRef(null),f=r.useRef(null),m=r.useRef(!1),h=r.useRef(null),g=Ov(Qv(t),h),b=r.useRef(null);r.useEffect((()=>{s&&h.current&&(m.current=!n)}),[n,s]),r.useEffect((()=>{if(!s||!h.current)return;const e=Mv(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),m.current&&h.current.focus()),()=>{i||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[s]),r.useEffect((()=>{if(!s||!h.current)return;const e=Mv(h.current),t=t=>{b.current=t,!o&&l()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!l()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!m.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=a(h.current)),r.length>0){var n,i;const e=Boolean((null==(n=b.current)?void 0:n.shiftKey)&&"Tab"===(null==(i=b.current)?void 0:i.key)),t=r[0],o=r[r.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const n=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[n,o,i,l,s,a]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0};return Yr.jsxs(r.Fragment,{children:[Yr.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),r.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0,f.current=e.target;const r=t.props.onFocus;r&&r(e)}}),Yr.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const tD=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&&VM(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);YM(t,e.mount,e.modalRef,n,!0);const o=KM(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=KM(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=XM(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=KM(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&&VM(e.modalRef,t),YM(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&&VM(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function rD(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:i=tD,closeAfterTransition:a=!1,onTransitionEnter:l,onTransitionExited:s,children:u,onClose:c,open:d,rootRef:p}=e,f=r.useRef({}),m=r.useRef(null),h=r.useRef(null),g=Ov(h,p),[b,v]=r.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(f.current.modalRef=h.current,f.current.mount=m.current,f.current),E=()=>{i.mount(S(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},C=Pv((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Mv(m.current).body;i.add(S(),e),h.current&&E()})),w=r.useCallback((()=>i.isTopModal(S())),[i]),R=Pv((e=>{m.current=e,e&&(d&&w()?E():h.current&&VM(h.current,x))})),L=r.useCallback((()=>{i.remove(S(),x)}),[x,i]);r.useEffect((()=>()=>{L()}),[L]),r.useEffect((()=>{d?C():y&&a||L()}),[d,L,y,a,C]);const I=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},M=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Kv(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=hr({},r,t);return hr({role:"presentation"},n,{onKeyDown:I(n),ref:g})},getBackdropProps:(e={})=>hr({"aria-hidden":!0},e,{onClick:M(e),open:d}),getTransitionProps:()=>({onEnter:Iv((()=>{v(!1),l&&l()}),null==u?void 0:u.props.onEnter),onExited:Iv((()=>{v(!0),s&&s(),a&&L()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:R,isTopModal:w,exited:b,hasTransition:y}}function nD(e){return mv("MuiModal",e)}hv("MuiModal",["root","hidden","backdrop"]);const oD=["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"],iD=mS("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>hr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),aD=mS(BM,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),lD=r.forwardRef((function(e,t){var n,o,i,a,l,s;const u=oM({name:"MuiModal",props:e}),{BackdropComponent:c=aD,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:m,container:h,component:g,components:b={},componentsProps:v={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:I,open:M,slotProps:D,slots:A}=u,P=Er(u,oD),O=hr({},u,{closeAfterTransition:f,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:k,getBackdropProps:T,getTransitionProps:_,portalRef:q,isTopModal:N,exited:F,hasTransition:j}=rD(hr({},O,{rootRef:t})),z=hr({},O,{exited:F}),G=(e=>{const{open:t,exited:r,classes:n}=e;return Uv({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},nD,n)})(z),B={};if(void 0===m.props.tabIndex&&(B.tabIndex="-1"),j){const{onEnter:e,onExited:t}=_();B.onEnter=e,B.onExited=t}const $=null!=(n=null!=(o=null==A?void 0:A.root)?o:b.Root)?n:iD,W=null!=(i=null!=(a=null==A?void 0:A.backdrop)?a:b.Backdrop)?i:c,H=null!=(l=null==D?void 0:D.root)?l:v.root,V=null!=(s=null==D?void 0:D.backdrop)?s:v.backdrop,U=Zv({elementType:$,externalSlotProps:H,externalForwardedProps:P,getSlotProps:k,additionalProps:{ref:t,as:g},ownerState:z,className:fl(p,null==H?void 0:H.className,null==G?void 0:G.root,!z.open&&z.exited&&(null==G?void 0:G.hidden))}),Y=Zv({elementType:W,externalSlotProps:V,additionalProps:d,getSlotProps:e=>T(hr({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:fl(null==V?void 0:V.className,null==d?void 0:d.className,null==G?void 0:G.backdrop),ownerState:z});return L||M||j&&!F?Yr.jsx(_M,{ref:q,container:h,disablePortal:E,children:Yr.jsxs($,hr({},U,{children:[!R&&c?Yr.jsx(W,hr({},Y)):null,Yr.jsx(eD,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:N,open:M,children:r.cloneElement(m,B)})]}))}):null})),sD=hv("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),uD=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function cD(e){return`scale(${e}, ${e**2})`}const dD={entering:{opacity:1,transform:cD(1)},entered:{opacity:1,transform:"none"}},pD="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),fD=r.forwardRef((function(e,t){const{addEndListener:n,appear:o=!0,children:i,easing:a,in:l,onEnter:s,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:m,timeout:h="auto",TransitionComponent:g=mc}=e,b=Er(e,uD),v=qv(),y=r.useRef(),x=Nx(),S=r.useRef(null),E=Ov(S,Qv(i),t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},w=C(c),R=C(((e,t)=>{iM(e);const{duration:r,delay:n,easing:o}=aM({style:m,timeout:h,easing:a},{mode:"enter"});let i;"auto"===h?(i=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=i):i=r,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:n}),x.transitions.create("transform",{duration:pD?i:.666*i,delay:n,easing:o})].join(","),s&&s(e,t)})),L=C(u),I=C(f),M=C((e=>{const{duration:t,delay:r,easing:n}=aM({style:m,timeout:h,easing:a},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:pD?o:.666*o,delay:pD?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=cD(.75),d&&d(e)})),D=C(p);return Yr.jsx(g,hr({appear:o,in:l,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:M,onExited:D,onExiting:I,addEndListener:e=>{"auto"===h&&v.start(y.current||0,e),n&&n(S.current,e)},timeout:"auto"===h?null:h},b,{children:(e,t)=>r.cloneElement(i,hr({style:hr({opacity:0,transform:cD(.75),visibility:"exited"!==e||l?void 0:"hidden"},dD[e],m,i.props.style),ref:E},t))}))}));function mD(e){return mv("MuiLink",e)}fD.muiSupportAuto=!0;const hD=hv("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),gD={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},bD=({theme:e,ownerState:t})=>{const r=(e=>gD[e]||e)(t.color),n=sb(e,`palette.${r}`,!1)||t.color,o=sb(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:yy(n,.4)},vD=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],yD=mS(TM,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${ab(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>hr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&hr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:bD({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"},[`&.${hD.focusVisible}`]:{outline:"auto"}}))),xD=r.forwardRef((function(e,t){const n=oM({props:e,name:"MuiLink"}),{className:o,color:i="primary",component:a="a",onBlur:l,onFocus:s,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:p}=n,f=Er(n,vD),{isFocusVisibleRef:m,onBlur:h,onFocus:g,ref:b}=Hv(),[v,y]=r.useState(!1),x=Ov(t,b),S=hr({},n,{color:i,component:a,focusVisible:v,underline:c,variant:d}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return Uv({root:["root",`underline${ab(o)}`,"button"===r&&"button",n&&"focusVisible"]},mD,t)})(S);return Yr.jsx(yD,hr({color:i,className:fl(E.root,o),classes:u,component:a,onBlur:e=>{h(e),!1===m.current&&y(!1),l&&l(e)},onFocus:e=>{g(e),!0===m.current&&y(!0),s&&s(e)},ref:x,ownerState:S,variant:d,sx:[...Object.keys(gD).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},f))})),SD=r.createContext({});function ED(e){return mv("MuiList",e)}hv("MuiList",["root","padding","dense","subheader"]);const CD=["children","className","component","dense","disablePadding","subheader"],wD=mS("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>hr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),RD=r.forwardRef((function(e,t){const n=oM({props:e,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:l=!1,disablePadding:s=!1,subheader:u}=n,c=Er(n,CD),d=r.useMemo((()=>({dense:l})),[l]),p=hr({},n,{component:a,dense:l,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Uv({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},ED,t)})(p);return Yr.jsx(SD.Provider,{value:d,children:Yr.jsxs(wD,hr({as:a,className:fl(f.root,i),ref:t,ownerState:p},c,{children:[u,o]}))})})),LD=hv("MuiListItemIcon",["root","alignItemsFlexStart"]),ID=hv("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),MD=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function DD(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function AD(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function PD(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 OD(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")&&PD(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}const kD=r.forwardRef((function(e,t){const{actions:n,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:s=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,p=Er(e,MD),f=r.useRef(null),m=r.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ev((()=>{o&&f.current.focus()}),[o]),r.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&r){const r=`${Vv(Mv(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}})),[]);const h=Ov(f,t);let g=-1;r.Children.forEach(a,((e,t)=>{r.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===t&&(g+=1,g>=a.length&&(g=-1))}));const b=r.Children.map(a,((e,t)=>{if(t===g){const t={};return i&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),r.cloneElement(e,t)}return e}));return Yr.jsx(RD,hr({role:"menu",ref:h,className:l,onKeyDown:e=>{const t=f.current,r=e.key,n=Mv(t).activeElement;if("ArrowDown"===r)e.preventDefault(),OD(t,n,u,s,DD);else if("ArrowUp"===r)e.preventDefault(),OD(t,n,u,s,AD);else if("Home"===r)e.preventDefault(),OD(t,null,u,s,DD);else if("End"===r)e.preventDefault(),OD(t,null,u,s,AD);else if(1===r.length){const o=m.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=n&&!o.repeating&&PD(n,o);o.previousKeyMatched&&(l||OD(t,n,!1,s,DD,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:o?0:-1},p,{children:b}))}));function TD(e){return mv("MuiPopover",e)}hv("MuiPopover",["root","paper"]);const _D=["onEntering"],qD=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],ND=["slotProps"];function FD(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function jD(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function zD(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function GD(e){return"function"==typeof e?e():e}const BD=mS(lD,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$D=mS(cM,{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}),WD=r.forwardRef((function(e,t){var n,o,i;const a=oM({props:e,name:"MuiPopover"}),{action:l,anchorEl:s,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:f,container:m,elevation:h=8,marginThreshold:g=16,open:b,PaperProps:v={},slots:y,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=fD,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=a,L=Er(a.TransitionProps,_D),I=Er(a,qD),M=null!=(n=null==x?void 0:x.paper)?n:v,D=r.useRef(),A=Ov(D,M.ref),P=hr({},a,{anchorOrigin:u,anchorReference:d,elevation:h,marginThreshold:g,externalPaperSlotProps:M,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),O=(e=>{const{classes:t}=e;return Uv({root:["root"],paper:["paper"]},TD,t)})(P),k=r.useCallback((()=>{if("anchorPosition"===d)return c;const e=GD(s),t=(e&&1===e.nodeType?e:Mv(D.current).body).getBoundingClientRect();return{top:t.top+FD(t,u.vertical),left:t.left+jD(t,u.horizontal)}}),[s,u.horizontal,u.vertical,c,d]),T=r.useCallback((e=>({vertical:FD(e,S.vertical),horizontal:jD(e,S.horizontal)})),[S.horizontal,S.vertical]),_=r.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=T(t);if("none"===d)return{top:null,left:null,transformOrigin:zD(r)};const n=k();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=Dv(GD(s)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,r.vertical+=e}else if(null!==g&&a>c){const e=a-c;o-=e,r.vertical+=e}if(null!==g&&i<g){const e=i-g;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:zD(r)}}),[s,d,k,T,g]),[q,N]=r.useState(b),F=r.useCallback((()=>{const e=D.current;if(!e)return;const t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[_]);r.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[s,R,F]);r.useEffect((()=>{b&&F()})),r.useImperativeHandle(l,(()=>b?{updatePosition:()=>{F()}}:null),[b,F]),r.useEffect((()=>{if(!b)return;const e=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}((()=>{F()})),t=Dv(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,b,F]);let j=C;"auto"!==C||E.muiSupportAuto||(j=void 0);const z=m||(s?Mv(GD(s)).body:void 0),G=null!=(o=null==y?void 0:y.root)?o:BD,B=null!=(i=null==y?void 0:y.paper)?i:$D,$=Zv({elementType:B,externalSlotProps:hr({},M,{style:q?M.style:hr({},M.style,{opacity:0})}),additionalProps:{elevation:h,ref:A},ownerState:P,className:fl(O.paper,null==M?void 0:M.className)}),W=Zv({elementType:G,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:I,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:b},ownerState:P,className:fl(O.root,f)}),{slotProps:H}=W,V=Er(W,ND);return Yr.jsx(G,hr({},V,!Yv(G)&&{slotProps:H,disableScrollLock:R},{children:Yr.jsx(E,hr({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:j},L,{children:Yr.jsx(B,hr({},$,{children:p}))}))}))}));function HD(e){return mv("MuiMenu",e)}hv("MuiMenu",["root","paper","list"]);const VD=["onEntering"],UD=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],YD={vertical:"top",horizontal:"right"},KD={vertical:"top",horizontal:"left"},XD=mS(WD,{shouldForwardProp:e=>fS(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),JD=mS($D,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ZD=mS(kD,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),QD=r.forwardRef((function(e,t){var n,o;const i=oM({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:s,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:f={},PopoverClasses:m,transitionDuration:h="auto",TransitionProps:{onEntering:g}={},variant:b="selectedMenu",slots:v={},slotProps:y={}}=i,x=Er(i.TransitionProps,VD),S=Er(i,UD),E=(()=>{const e=r.useContext(iy);return null!=e&&e})(),C=hr({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:h,TransitionProps:x,variant:b}),w=(e=>{const{classes:t}=e;return Uv({root:["root"],paper:["paper"],list:["list"]},HD,t)})(C),R=a&&!u&&p,L=r.useRef(null);let I=-1;r.Children.map(l,((e,t)=>{r.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===I)&&(I=t))}));const M=null!=(n=v.paper)?n:JD,D=null!=(o=y.paper)?o:f,A=Zv({elementType:v.root,externalSlotProps:y.root,ownerState:C,className:[w.root,s]}),P=Zv({elementType:M,externalSlotProps:D,ownerState:C,className:w.paper});return Yr.jsx(XD,hr({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?YD:KD,slots:{paper:M,root:v.root},slotProps:{root:A,paper:P},open:p,ref:t,transitionDuration:h,TransitionProps:hr({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,{direction:E?"rtl":"ltr"}),g&&g(e,t)}},x),ownerState:C},S,{classes:m,children:Yr.jsx(ZD,hr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:L,autoFocus:a&&(-1===I||u),autoFocusItem:R,variant:b},c,{className:fl(w.list,c.className),children:l}))}))}));function eA(e){return mv("MuiMenuItem",e)}const tA=hv("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),rA=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],nA=mS(MM,{shouldForwardProp:e=>fS(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>hr({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${tA.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yy(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${tA.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yy(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${tA.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:yy(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yy(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${tA.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${tA.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${sD.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${sD.inset}`]:{marginLeft:52},[`& .${ID.root}`]:{marginTop:0,marginBottom:0},[`& .${ID.inset}`]:{paddingLeft:36},[`& .${LD.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&hr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${LD.root} svg`]:{fontSize:"1.25rem"}})))),oA=r.forwardRef((function(e,t){const n=oM({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:s=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=n,f=Er(n,rA),m=r.useContext(SD),h=r.useMemo((()=>({dense:a||m.dense||!1,disableGutters:s})),[m.dense,a,s]),g=r.useRef(null);Ev((()=>{o&&g.current&&g.current.focus()}),[o]);const b=hr({},n,{dense:h.dense,divider:l,disableGutters:s}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return hr({},a,Uv({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},eA,a))})(n),y=Ov(g,t);let x;return n.disabled||(x=void 0!==d?d:-1),Yr.jsx(SD.Provider,{value:h,children:Yr.jsx(nA,hr({ref:y,role:c,tabIndex:x,component:i,focusVisibleClassName:fl(v.focusVisible,u),className:fl(v.root,p)},f,{ownerState:b,classes:v}))})})),iA=mS(HM,{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}}))),aA=mS("div",{shouldForwardProp:e=>!["direction"].includes(e)})((({direction:e})=>({position:"absolute",left:"rtl"!==e?0:void 0,bottom:0}))),lA=mS("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...cg,justifyContent:null!=e?e:cg.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),sA=mS("div")((()=>({...cg}))),uA=mS("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}))),cA=mS(QD)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),dA=mS(oA,{shouldForwardProp:e=>!["isActive"].includes(e)})((({theme:e,isActive:t})=>({width:220,maxHeight:32,borderRadius:e.spacing(.5),margin:e.spacing(.25,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between",position:"relative",overflow:"hidden ",boxSizing:"border-box",background:t?"rgba(0, 0, 0, 0.05)":"transparent","&:hover":{".indent-mode-dropdown-more":{opacity:1}}}))),pA=mS("span")({textOverflow:"ellipsis",overflow:"hidden"}),fA=mS("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:20,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"})));var mA;!function(e){e.Expand="Expand",e.Collapse="Collapse"}(mA||(mA={}));const hA=(e,t)=>({qExcludeList:t===mA.Expand,qPos:{qDimName:e,qElemNo:[]}}),gA=`${TC}/qExpansionState`,bA=({model:e,qExpansionState:t,qEffectiveDimensionName:r,action:n})=>async()=>{const o=(({qEffectiveDimensionName:e,oldExpansionState:t,action:r})=>{const n=null==t?void 0:t.findIndex((t=>{var r;return(null===(r=t.qPos)||void 0===r?void 0:r.qDimName)===e}));return{expansionData:hA(e,r),index:n}})({qEffectiveDimensionName:r,oldExpansionState:t,action:n});await(async({model:e,newExpansionState:t,errorMsg:r})=>{const{index:n,expansionData:o}=t;try{let t,r=gA,i="Add";void 0===n?t=JSON.stringify([o]):-1===n?(r=`${gA}/-`,t=JSON.stringify(o)):(r=`${gA}/${n}`,i="Replace",t=JSON.stringify(o)),await e.applyPatches([{qPath:r,qOp:i,qValue:t}],!0)}catch(e){console.error(r,e)}})({model:e,newExpansionState:o,errorMsg:`Failed to ${n} dimension`})},vA=({model:e,effectivePropertiesService:t,cell:r,env:n})=>{if(!n.flags.isEnabled("CLIENT_IM_6273_EXPAND_OR_COLLAPSE_DIM")||void 0===r.qEffectiveDimensionName)return;const o={model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r.qEffectiveDimensionName};return{expandCallback:bA({...o,action:mA.Expand}),collapseCallback:bA({...o,action:mA.Collapse})}},yA={[FE.Sorting]:!0,[FE.Selections]:!0,[FE.Searching]:!0},xA=({cell:e,style:t,isFirstColumn:r,isLastColumn:n,isLastRow:o,changeSortOrder:i,iconsVisibilityStatus:a,columnWidth:l,overrideLeftGridWidth:s,shouldApplyIndentModeColumnWidth:u,tableWidth:d})=>{var p;const f=c(null),{styleService:m,layoutService:h,effectivePropertiesService:g}=PC(),{app:b,interactions:v,embed:y,translator:x,env:S,model:E}=MC(),{fontSize:C,fontFamily:w,fontStyle:R,fontWeight:L,textDecoration:I,color:M,background:D,hoverBackground:A,activeBackground:P}=m.header,O=c(null),{shouldShowLockIcon:k,shouldShowMenuIcon:T}=a,{open:_,setOpen:q,handleOpenMenu:N,setIsAdjustingWidth:F}=tM(),{direction:j}=RC(),z={sortFromMenu:async(t,r)=>{t.stopPropagation(),await i(e,r)}},G={embed:y,listboxRef:f,sortCriteria:h.searchSortFromDimension&&e.isDim?g.getSortCriteriaForDimension(e.dimensionInfoIndex):void 0},B={app:b,qStateName:h.layout.qStateName},{labelTextAlign:$}=null!==(p=h.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==p?p:{},W=OI($,"flex-start",j);return Yr.jsxs(iA,{className:jt,title:e.label,interactions:v,background:_?P:D,hoverBackground:A,shouldShowMenuIcon:T,isDimension:e.isDim,style:{...t,...pg,...bg(e,o,r,n,m.grid.border,j),color:M},"data-testid":"title-cell",onClick:N,children:[Yr.jsxs(lA,{children:[k?Yr.jsx(sA,{children:Yr.jsx(QI,{height:12})}):null,Yr.jsx(uA,{fontFamily:w,fontSize:C,fontStyle:R,fontWeight:L,textDecoration:I,justifyContent:W,children:Yr.jsx("span",{style:fg,children:e.label})})]}),e.isDim?Yr.jsxs(Yr.Fragment,{children:[Yr.jsx(GE,{headerData:e,translator:x,anchorRef:O,open:_,setOpen:q,interactions:v,menuAvailabilityFlags:yA,sortRelatedArgs:z,searchRelatedArgs:G,selectionRelatedArgs:B,expandOrCollapseArgs:vA({model:E,effectivePropertiesService:g,cell:e,env:S}),shouldShowMenuIcon:T,model:E&&"setActiveField"in E?E:void 0,direction:j}),Yr.jsx(aA,{ref:f,direction:j}),Yr.jsx(aA,{ref:O,direction:j})]}):null,Yr.jsx(nM,{cellInfo:{...e,isLeftColumn:!0},columnWidth:l,isLastColumn:n,overrideLeftGridWidth:s,setIsAdjustingWidth:F,shouldApplyIndentModeColumnWidth:u,tableWidth:d})]})},SA=({rowSpan:e,columnSpan:t})=>{const{styleService:r}=PC(),{direction:n}=RC();return e>0&&t>0?Yr.jsx("div",{style:{...dg,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"rtl"===n?"0px 0px 0px 1px":"0px 1px 0px 0px",borderColor:r.grid.border,background:r.grid.background},"data-testid":"empty-header-cell"}):null};function EA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CA(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const wA=(e,t)=>Yr.jsx("svg",CA(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){EA(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),{children:Yr.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})})),RA=d(wA);function LA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IA(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const MA=(e,t)=>Yr.jsxs("svg",IA(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){LA(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),{children:[Yr.jsx("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),Yr.jsx("use",{fillRule:"evenodd"})]})),DA=d(MA),AA=({tableWidth:e,leftGridWidth:t,overrideLeftGridWidth:r})=>{const{direction:n}=RC(),{styleService:o}=PC(),{interactions:i,translator:a}=MC(),{isActive:l}=sI(),{dataModel:s}=vR(),{setIsAdjustingWidth:u}=eM([s]);if(!(!!i.active&&!l))return null;const c=rM(o,{isLeftColumn:!0});return Yr.jsx(SS,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:c,columnWidth:t,updateWidthCallback:t=>{r(Math.min(t,e*SR))},confirmWidthCallback:n=>{var o;if(n.type===$t.FitToContent)return void s.applyIndentModeColumnWidth({type:$t.Auto});const i=Math.min(null!==(o=n.pixels)&&void 0!==o?o:t,e*SR);r(i),s.applyIndentModeColumnWidth({type:$t.Pixels,pixels:i})},setIsAdjustingWidth:u,accessibilityRelatedArgs:{translator:a,columnLabel:a.get("SNPivotTable.IndentMode.Rows")},direction:n})};function PA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OA(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const kA=(e,t)=>Yr.jsx("svg",OA(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){PA(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),{children:Yr.jsx("path",{d:"M3 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})})),TA=d(kA),_A=({cell:e,changeSortOrder:t})=>{const r=c(null),n=c(null),{app:o,interactions:i,embed:a,translator:l,env:s,model:u}=MC(),{layoutService:d,effectivePropertiesService:p}=PC(),{open:f,setOpen:m,handleOpenMenu:h}=tM();return Yr.jsxs(dA,{onClick:h,isActive:f,children:[Yr.jsx(pA,{children:e.label}),Yr.jsxs(fA,{className:"indent-mode-dropdown-more",visible:f,children:[Yr.jsx(TA,{}),e.isDim?Yr.jsxs(Yr.Fragment,{children:[Yr.jsx(GE,{headerData:e,translator:l,anchorRef:r,open:f,setOpen:m,interactions:i,menuAvailabilityFlags:yA,sortRelatedArgs:{sortFromMenu:async(r,n)=>{r.stopPropagation(),await t(e,n)}},searchRelatedArgs:{embed:a,listboxRef:n},selectionRelatedArgs:{app:o,qStateName:d.layout.qStateName},expandOrCollapseArgs:vA({model:u,effectivePropertiesService:p,cell:e,env:s}),shouldShowMenuIcon:!1,model:u&&"setActiveField"in u?u:void 0}),Yr.jsx(aA,{ref:n}),Yr.jsx(aA,{ref:r})]}):null]})]})},qA=({idx:e,menu:t,menuItems:r,isOnlyOneRow:n})=>{var o,i;const a=(null===(o=r.at(-1))||void 0===o?void 0:o.id)===qC,l=e+1<r.length&&(null===(i=r[e+1])||void 0===i?void 0:i.id)===qC;return!(n&&a&&l)&&((null==t?void 0:t.id)!==qC&&e<r.length-1)},NA=({menuItems:e,changeSortOrder:t,overrideLeftGridWidth:r,leftGridWidth:n,tableWidth:o})=>{const{styleService:i}=PC(),{interactions:a,translator:l}=MC(),{dataModel:s,gridSectionsData:{headersData:d}}=vR(),[p,f]=u(!1),m=c(null),{headerCellHeight:h}=i,{color:g,background:b,hoverBackground:v,activeBackground:y,fontFamily:x,fontSize:S,fontStyle:E,fontWeight:C,textDecoration:w}=i.header,{isAdjustingWidth:R}=eM([s]),L=e=>{e.stopPropagation()},I={height:h,gridColumn:`1 / span ${d.size.x}`,gridRow:d.size.y,zIndex:d.size.x-0};return Yr.jsxs(iA,{isDimension:!0,background:p?y:b,interactions:a,hoverBackground:v,style:{...I,...pg,color:g},onClick:e=>{!a.active||rI(e)||R||f(!p)},"data-testid":"indentModeHeaderCellWrapper",children:[Yr.jsxs(lA,{justifyContent:"flex-start",children:[Yr.jsx(uA,{fontFamily:x,fontSize:S,fontStyle:E,fontWeight:C,textDecoration:w,justifyContent:"flex-start",children:Yr.jsx("span",{style:fg,children:l.get("SNPivotTable.IndentMode.Rows")})}),p?Yr.jsx(DA,{}):Yr.jsx(RA,{}),Yr.jsx(aA,{ref:m})]}),Yr.jsx(cA,{open:p,anchorEl:m.current,children:e.map(((r,n)=>[r&&r.id!==qC&&Yr.jsx("li",{role:"presentation",onClick:L,onKeyDown:L,children:Yr.jsx(_A,{cell:r,changeSortOrder:t})}),qA({idx:n,menu:r,menuItems:e,isOnlyOneRow:1===d.size.y})&&Yr.jsx(DS,{"data-testid":"group-divider",variant:"middle"})]))}),Yr.jsx(AA,{tableWidth:o,leftGridWidth:n,overrideLeftGridWidth:r})]})},FA=({layoutService:e,headersData:t,topRowIndex:r})=>e.isIndentModeEnabled&&t.size.x>1&&r+1===t.size.y,jA={display:"grid",width:"fit-content"},zA=({tableWidth:e,leftGridWidth:t,columnWidths:r,rowHight:n,changeSortOrder:o,getHeaderCellsIconsVisibilityStatus:i,height:a,overrideLeftGridWidth:l})=>{const{layoutService:s}=PC(),{gridSectionsData:{headersData:u}}=vR();return Yr.jsxs("div",{"data-testid":"HEADER_GRID",style:{...jA,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:u.data.map((()=>`${n}px`)).join(" "),height:a},children:[u.size.y>1&&Yr.jsx(SA,{columnSpan:u.size.x-1,rowSpan:u.size.y-1}),u.data.map(((a,c)=>{let d=[];if(FA({layoutService:s,headersData:u,topRowIndex:c})){const r=a.at(0);var p;if(Array.isArray(r))d.push(Yr.jsx(NA,{menuItems:r,changeSortOrder:o,overrideLeftGridWidth:l,leftGridWidth:t,tableWidth:e},null===(p=r.at(0))||void 0===p?void 0:p.id));return d}return d=a.reduce(((t,a,d)=>{if(a&&!Array.isArray(a)){const p=i(d,a.isLocked,a.label),f=s.isIndentModeEnabled&&1===u.size.x;t.push(Yr.jsx(xA,{style:{width:r[d],height:n,gridColumn:s.isIndentModeEnabled&&u.size.x>1?2:d+1,gridRow:c+1,zIndex:u.size.x-d},isLastRow:c===u.size.y-1,isFirstColumn:0===d,isLastColumn:d===u.size.x-1,changeSortOrder:o,cell:a,iconsVisibilityStatus:p,columnWidth:r[d],overrideLeftGridWidth:l,shouldApplyIndentModeColumnWidth:f,tableWidth:e},a.id))}return t}),[]),d}))]})};var GA=h(zA);const BA=(e,t,r,n)=>{const{layoutService:o}=PC();g((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,r,n,o])},$A=(e,t)=>{$g((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},WA=(e,t)=>{const{isLast:r,list:n,listValues:o}=t;return r?n[e]:o[e]},HA=e=>"flex-start"===e?"flex-end":"flex-start",VA=(e,t,r,n,o)=>{var i,a;if(o)return;const l=e.representation,s=CR({isLeftColumn:r,layoutService:t,representation:l}),u=r?"flex-start":"center",c=null===(i=e.representation.resolvedImagePosition)||void 0===i?void 0:i.horizontal;if(e.representation.type===Ut.Image)return s&&c&&"center"!==c&&"rtl"===n?HA(c):null!=c?c:u;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){var d;const{labelTextAlign:r}=null!==(d=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==d?d:{};return OI(r,u,n)}const{textAlign:p}=null!==(a=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==a?a:{};return OI(p,u,n)},UA=()=>{},YA=({children:e,reactWindowStyle:t,cell:r,data:n,showTotalCellDivider:o,isLastRow:i,isLastColumn:a,isLeftColumn:l,isCellSelected:s,isAdjustingWidth:u,index:c})=>{var d;const{styleService:p,layoutService:f}=PC(),{interactions:m}=MC(),{direction:h}=RC(),{isLocked:g,createMouseDownHandler:b,createMouseOverHandler:v,createPointerUpHandler:y}=sI(),{showLastBorder:x}=n,S=g(r)||r.isLockedByDimension,E=!(S||!m.active||!m.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||u),C=E?b(c,(e=>WA(e,n))):void 0,w=E?v(c):void 0,R=E?y(c,(e=>WA(e,n))):void 0,L=CR({isLeftColumn:l,layoutService:f,representation:r.representation});return Yr.jsx("div",{className:jt,title:m.passive?r.representation.text:void 0,style:{...t,...gg(i,a,p.grid.border,h,x),...vg({bottomDivider:o&&l,rightDivider:o&&!l,borderColor:p.grid.divider}),...pg,padding:"rtl"===h?"0px 0px 0px 4px":"0px 4px",cursor:yI(E),background:mI({styleService:p,isCellSelected:s,cell:r,isCellLocked:S}),zIndex:l?void 0:f.size.x-r.x,justifyContent:VA(r,f,l,h,L),display:"flex",...f.isIndentModeEnabled&&l&&{["rtl"===h?"paddingRight":"paddingLeft"]:Math.max(4,24*(null!==(d=r.indentLevel)&&void 0!==d?d:0))},textAlign:kI(r,f)},"aria-hidden":"true",onMouseDown:C,onMouseOver:w,onPointerUp:R,onKeyUp:UA,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":r.x,"data-page-x":r.pageX,"data-y":r.y,"data-page-y":r.pageY,"data-cell-type":r.ref.qType,"data-dimension-info-index":r.dimensionInfoIndex,children:e})},KA=e=>{e.stopPropagation()},XA=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:KA,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}}),JA=({href:e,text:r,interactions:n,color:o})=>t.createElement(Np,XA({href:e,text:r,interactions:n,color:o}),r),ZA=G();ZA.use(z),ZA.renderer.prio(["canvas"]);const QA=(e,t)=>e&&"center"!==e&&"rtl"===t?HA(e):e,eP=({cell:e,representation:t,textStyle:r,imageContainerHorizontalAlignment:n})=>{var o,i;const{imageBox:a}=t,{styleService:{grid:{lineClamp:l}}}=PC(),{direction:s}=RC();return Yr.jsxs("div",{style:{display:"grid",gridTemplateColumns:`${null!==(o=null==a?void 0:a.width)&&void 0!==o?o:24}px 1fr`,maxHeight:"fit-content",alignItems:"center",justifyContent:"flex-start",overflow:"hidden",boxSizing:"border-box"},children:[Yr.jsx("div",{"data-key":"image-container--partial-image",style:{display:"flex",flexDirection:"column",justifyContent:cI(e),alignItems:QA(n,s),overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",width:null!==(i=null==a?void 0:a.width)&&void 0!==i?i:24,height:"100%"},children:Yr.jsx(AI,{representation:t,textStyle:r})}),Yr.jsx("span",{style:{paddingRight:0,padding:4/(l<=2?2:1),alignSelf:cI(e)},children:!!t.labelStructure&&MI(t.labelStructure)})]})},tP=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`,rP=({href:e,text:t,labelStructure:r,interactions:n,color:o})=>Yr.jsxs("span",{children:[Yr.jsx(xD,{...XA({href:e,text:t,interactions:n,color:o}),children:null!=r&&r.maskedValue?r.maskedValue:null==r?void 0:r.originalValue}),!!r&&tP(r)]}),nP=({children:e,textStyle:t})=>Yr.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),oP=({cell:e,isCellSelected:t,isLeftColumn:r})=>{const{direction:n}=RC(),{isActive:o}=sI(),{layoutService:i,styleService:a}=PC(),{interactions:l}=MC();let s=r&&!e.isNull?(e=>{const{representation:{text:t,labelStructure:r}}=e;if(!r||!r.originalValue)return t;const{originalValue:n,maskedValue:o,suffix:i,delimeter:a}=r;return`${0!==o.length?o:n} ${i?a:""} ${i}`.trim()})(e):e.representation.text;if(e.isEmpty)return null;const u=(({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n})=>({...fg,...mg(n?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:hI({cell:e,styleService:t,isCellSelected:r}),fontWeight:gI({cell:e,styleService:t}),fontStyle:bI({cell:e,styleService:t}),textDecoration:vI({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:a,isCellSelected:t,isLeftColumn:r});if(e.representation.type===Ut.Image&&!e.isTotal&&!e.isNull){const{labelStructure:t}=e.representation,o=r&&t&&t.suffix?eP:PI;return Yr.jsx(o,{cell:e,representation:e.representation,leafCount:e.leafCount,textStyle:u,isLeftColumn:r,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand,imageContainerHorizontalAlignment:VA(e,i,r,n)})}if(e.representation.type===Ut.Link&&!o&&!e.isTotal){const t=r&&e.representation.labelStructure?rP:JA;s=Yr.jsx(t,{text:e.representation.text,labelStructure:e.representation.labelStructure,href:e.representation.url,interactions:l,color:e.expressionColor.color})}return Yr.jsx(nP,{textStyle:{...u,...e.representation.type===Ut.Image&&e.isNull?{alignSelf:cI(e)}:{}},children:s})},iP=({index:e,style:t,data:r})=>{const{styleService:n,layoutService:o}=PC(),{isSelected:i}=sI(),{isLeftColumn:a=!1,showLastBorder:l,itemCount:s,isLast:u,totalDividerIndex:c}=r,{isAdjustingWidth:d,setIsAdjustingWidth:p}=eM([r]),f=WA(e,r),m=a?e===s-1:u,h=a?u:e===s-1,g=WL(f,c,o.isIndentModeEnabled);if(void 0===f){const{background:r}=n.dimensionValues;return Yr.jsx(HL,{style:{...t,background:r},index:e,isLastRow:m,isLastColumn:h,showLastBorder:l,isLeftColumn:a,showTotalCellDivider:g})}const b=i(f);return Yr.jsxs(YA,{reactWindowStyle:t,isLeftColumn:a,isLastRow:m,isLastColumn:h,isCellSelected:b,showTotalCellDivider:g,cell:f,data:r,isAdjustingWidth:d,index:e,children:[Yr.jsxs(VL,{verticalAlign:cI(f),width:UL(f.representation),right:f.isLeftColumn?void 0:4,isLeftColumn:a,children:[Yr.jsx(EI,{isLeftColumn:a,isCellSelected:b,cell:f}),Yr.jsx(oP,{isLeftColumn:a,isCellSelected:b,cell:f})]}),Yr.jsx(nM,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?rr.Measures:rr.Dimension},columnWidth:t.width,isLastColumn:h,setIsAdjustingWidth:p})]})};var aP=t.memo(iP,DL);const lP=({list:e,listValues:t,isLastRow:r,getRightGridColumnWidth:n})=>o=>{var i;const a=r?e[o]:t.at(o);return a&&0===o&&a.x>0?(a.leafCount+a.x+a.distanceToNextCell)*n():!r&&a?(a.leafCount+a.distanceToNextCell)*n():n(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o)},sP=(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}},uP=(e,t)=>r=>{e.current&&(e.current[t]=r)},cP={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...dg},dP={overflow:"hidden",willChange:"auto",flexShrink:0},pP=({leftGridRef:e,width:t,height:r,columnWidths:n,showLastBorder:o})=>{const{pageInfo:i,direction:a}=RC(),{layoutService:l,styleService:{contentCellHeight:s,grid:{divider:u}}}=PC(),{qSize:c}=l.layout.qHyperCube,{gridSectionsData:{leftDimensionData:d},visibleDimensionsInfo:{visibleLeftDimensionInfo:p}}=vR();$A(e,d),BA(e,t,r,s);const f=i.rowsOnCurrentPage*s,m={...cP,borderColor:u,width:n.reduce(((e,t)=>e+t),0)};return Yr.jsx("div",{style:m,"data-section-id":"LEFT_GRID",children:d.grid.map(((t,u)=>{const m=u===d.columnCount-1,h=WC(p[u]),{itemCount:g,estimatedItemSize:b,listValues:v}=sP(t,f,i.rowsOnCurrentPage,m),y=l.isIndentModeEnabled?()=>s:((e,t,r,n,o)=>i=>{const a=n?e[i]:t.at(i);if(a&&0===i&&a.pageY>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*r;if(a&&a.leafCount>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*r}return r})(t,v,s,m,c.qcy);return Yr.jsx(RL,{ref:uP(e,u),style:{...dP,flexGrow:m?1:0,direction:a},height:r,width:n[u],itemCount:g,itemSize:y,layout:"vertical",itemData:{list:t,isLeftColumn:!0,isLast:m,itemCount:g,showLastBorder:o,listValues:v,totalDividerIndex:d.totalDividerIndex},itemKey:HI,estimatedItemSize:b,children:aP},h)}))})};var fP=h(pP);const mP={overflow:"hidden",willChange:"auto"},hP=e=>({...dg,borderWidth:"rtl"===e?"0px 1px 0px 0px":"0px 0px 0px 1px"}),gP=({topGridRef:e,rowHightCallback:t,width:r,height:n,showLastBorder:o,getRightGridColumnWidth:i})=>{const{direction:a}=RC(),{layoutService:l,styleService:{grid:{divider:s},headerCellHeight:u}}=PC(),{gridSectionsData:{headersData:c,topDimensionData:d}}=vR(),p={...hP(a),borderColor:s,height:n};$A(e,d),BA(e,r,n,u);const f=l.size.x*i();return 0===d.rowCount?Yr.jsx("div",{style:{width:r,height:n,...hP(a)}}):Yr.jsx("div",{style:p,"data-section-id":"TOP_GRID",children:d.grid.map(((n,s)=>{const u=s===d.rowCount-1,{itemCount:p,estimatedItemSize:m,listValues:h}=sP(n,f,l.size.x,u),g=(({layoutService:e,headersData:t,topRowIndex:r})=>{const n=t.data.at(r);if(void 0===n)return;const o=t.size.x-1,i=FA({layoutService:e,headersData:t,topRowIndex:r})?0:o,a=n.at(i),l=Array.isArray(a)?a.at(o):a;return l?e.getDimensionInfo(l.dimensionInfoIndex):void 0})({layoutService:l,headersData:c,topRowIndex:s}),b=g?WC(g):`empty ${s}`;return Yr.jsx(RL,{ref:uP(e,s),style:mP,height:t(),width:r,itemCount:p,itemSize:lP({list:n,listValues:h,isLastRow:u,getRightGridColumnWidth:i}),layout:"horizontal",itemData:{list:n,isLast:u,itemCount:p,showLastBorder:o,listValues:h,totalDividerIndex:d.totalDividerIndex},itemKey:HI,estimatedItemSize:m,direction:a,children:aP},b)}))})};var bP=h(gP);const vP=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=PC(),r=WR(),n=(()=>{const{model:e}=MC(),t=p((async(t,r)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:n,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(r===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!n).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(),{gridSectionsWrapperRefs:{headerGridWrapperRef:o,topGridWrapperRef:i,leftGridWrapperRef:a,dataGridWrapperRef:l},gridRefs:{topGridRef:s,leftGridRef:u,dataGridRef:c},scrollDirectionRefs:{verticalScrollDirection:d,horizontalScrollDirection:m},scrollbarsDimensions:{verticalScrollbarWidth:h,horizontalScrollbarHeight:g,resetHorizontalScrollbarHeight:b}}=$R(),{leftGridWidth:v,leftGridFullWidth:y,leftGridColumnWidths:x,rightGridFullWidth:S,showLastRightBorder:E,getRightGridColumnWidth:C,getHeaderCellsIconsVisibilityStatus:w,overrideLeftGridWidth:R}=function({tableWidth:e,verticalScrollbarWidth:t,resetHorizontalScrollbarHeight:r}){const{layoutService:n,styleService:o}=PC(),{gridSectionsData:{headersData:i}}=vR(),{measureText:a}=jg(o.header),l=_R({tableWidth:e}),s=qR({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:l.leftGridWidth}),u=l.leftGridWidth+s.rightGridFullWidth+1<e,c=p(((e,t,r="")=>{let o=e;n.isIndentModeEnabled&&(o=1,1===i.size.x&&(o=0));const s=l.leftGridColumnWidths[o];let u=!1,c=!1,d=a(r)+xR;return t&&d+20<=s&&(c=!0,d+=20),d+20<=s&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:c}}),[l.leftGridColumnWidths,a,n.isIndentModeEnabled,i.size.x]);return f((()=>{const e=l.leftGridWidth===l.leftGridFullWidth,t=s.rightGridWidth===s.rightGridFullWidth;e&&t&&r()}),[r,l.leftGridWidth,l.leftGridFullWidth,s.rightGridWidth,s.rightGridFullWidth]),{...l,...s,showLastRightBorder:u,getHeaderCellsIconsVisibilityStatus:c}}({tableWidth:r.width,verticalScrollbarWidth:h,resetHorizontalScrollbarHeight:b}),{gridScaffoldDimensions:L,headerGridDims:I,topGridDims:M,leftGridDims:D,dataGridDims:A,metadata:{everyThingFitsInTableRectHeight:P,scrollbarsVisibilityStatus:O}}=(({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:r,leftGridOriginalWidth:n,rightGridOriginalWidth:o},scrollBarsDimensions:{verticalScrollbarWidth:i,horizontalScrollbarHeight:a}})=>{const l=WR(),{pageInfo:s}=RC(),{gridSectionsData:{headersData:u,topDimensionData:c}}=vR(),d=Math.min(l.height*SR,Math.max(l.height*SR-25,l.height-t-a)),p=l.width*SR,f=s.rowsOnCurrentPage*t,m=Math.max(u.size.y,c.rowCount,1),h=e*m,g=e*m,b=Math.min(p,r),v=l.width-p,y=Math.max(v,l.width-b),x=Math.min(d,h,g),{availableHeight:S,everyThingFitsInTableRectHeight:E,everyThingFitsInTableRectWidth:C}=((e,t,r)=>{const n=t+1+r+i<=l.width,o=e+1+f+a,s=o-l.height<a||o<=l.height;return{availableHeight:s?o:l.height,everyThingFitsInTableRectHeight:s,everyThingFitsInTableRectWidth:n}})(x,b,y),w=S-d,R=Math.max(w,S-x),L=Math.min(R,f),I=Math.min(R,f),M=h+1+f,{visibilityStatus:D,metadata:{hasLeftGridOverflowX:A,hasDataGridOverflowX:P}}=(e=>{const{gridScaffold:{X_AXIS:{leftSectionWidth:t,rightSectionWidth:r},Y_AXIS:{topSectionHeight:n,bottomSectionHeight:o}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:i,rightSectionFullWidth:a},Y_AXIS:{topSectionFullHeight:l,bottomSectionFullHeight:s}}}=e,u=l>n,c=i>t,d=a>r,p=s>o;return{visibilityStatus:{topGrid:{overflowX:"hidden",overflowY:u?"scroll":"hidden"},leftGrid:{overflowX:c?"scroll":"hidden",overflowY:"hidden"},dataGrid:{overflowX:d?"scroll":"hidden",overflowY:p?"scroll":"hidden"}},metadata:{hasTopGridOverflowY:u,hasLeftGridOverflowX:c,hasDataGridOverflowX:d,hasDataGridOverflowY:p}}})({gridScaffold:{X_AXIS:{leftSectionWidth:b,rightSectionWidth:y},Y_AXIS:{topSectionHeight:x,bottomSectionHeight:R}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:n,rightSectionFullWidth:o},Y_AXIS:{topSectionFullHeight:g,bottomSectionFullHeight:M-g}}});return{gridScaffoldDimensions:{width:l.width,height:l.height,gridTemplateColumns:`${b}px ${y}px`,gridTemplateRows:`${x}px ${R}px`},headerGridDims:{width:-1,height:x},topGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:g},stickyWrapper:{width:y-1-i,height:-1},self:{width:Math.min(o,y)-(C?1:0)-i,height:g}},leftGridDims:{fullSizeWrapper:{width:b,height:M-g+(!A&&P?a:0)},stickyWrapper:{width:b,height:R-1-a},self:{width:b,height:Math.max(t,L-(E?0:a-1))}},dataGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:M-g+(!P&&A?a:0)},stickyWrapper:{width:y-1-i,height:R-1-a},self:{width:Math.min(o,y)-(C?1:0)-i,height:Math.max(t,I-(E?0:a-1))}},metadata:{everyThingFitsInTableRectHeight:E,scrollbarsVisibilityStatus:D}}})({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:v,leftGridOriginalWidth:y,rightGridOriginalWidth:S},scrollBarsDimensions:{verticalScrollbarWidth:h,horizontalScrollbarHeight:g}}),k=p((()=>e),[e]),T=p((()=>t),[t]);return(()=>{const{downloadService:e}=PC();f((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),Yr.jsxs(VR,{style:L,children:[Yr.jsx("div",{style:{overflow:"hidden"},ref:o,children:Yr.jsx(GA,{tableWidth:r.width,leftGridWidth:v,columnWidths:x,getHeaderCellsIconsVisibilityStatus:w,rowHight:e,height:I.height,changeSortOrder:n,overrideLeftGridWidth:R})}),Yr.jsx(KR,{style:O.topGrid,origin:or.TopGrid,ref:i,children:Yr.jsx(HR,{style:M.fullSizeWrapper,children:Yr.jsx(XR,{style:M.stickyWrapper,children:Yr.jsx(bP,{topGridRef:s,rowHightCallback:k,...M.self,showLastBorder:{right:E,bottom:!1},getRightGridColumnWidth:C})})})}),Yr.jsx(KR,{style:O.leftGrid,origin:or.LeftGrid,ref:a,children:Yr.jsx(HR,{style:D.fullSizeWrapper,children:Yr.jsx(XR,{style:D.stickyWrapper,children:Yr.jsx(fP,{leftGridRef:u,...D.self,columnWidths:x,showLastBorder:{right:!1,bottom:P}})})})}),Yr.jsx(KR,{style:O.dataGrid,origin:or.DataGrid,ref:l,children:Yr.jsx(HR,{style:A.fullSizeWrapper,children:Yr.jsx(XR,{style:A.stickyWrapper,children:Yr.jsx(KI,{dataGridRef:c,rowHightCallback:T,...A.self,showLastBorder:{right:E,bottom:P},getRightGridColumnWidth:C,verticalScrollDirection:d,horizontalScrollDirection:m})})})})]})},yP=()=>{const{keyboard:e,theme:t,interactions:r,translator:n}=MC(),{pageInfo:o,updatePageInfo:i,rect:a}=RC(),{layoutService:l}=PC(),{layout:s,hasData:u}=l;return Yr.jsxs(Yr.Fragment,{children:[u?Yr.jsx(vP,{}):null,Yr.jsx(kC,{}),Yr.jsx(CC,{paginationNeeded:o.shouldShowPagination,handleChangePage:e=>{i({page:e})},pageInfo:o,totalRowCount:o.totalRowCount,totalColumnCount:0,totalPages:o.totalPages,keyboard:e,translator:n,theme:t,interactions:r,rect:a,layout:s})]})},xP={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_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_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},SP=12,EP=14,CP=16,wP=24,RP=3,LP=300,IP=400,MP=600,DP=700,AP={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Sr(xP.GREYSCALE_0,.05),Sr(xP.GREEN_PALE,.5),Sr(xP.BLUE_PALE,.5),Sr(xP.GREEN_PALE,.5),Sr(xP.BLUE_PALE,.5),Sr(xP.GREEN_PALE,.5),Sr(xP.BLUE_PALE,.5);var PP;function OP(){return OP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},OP.apply(null,arguments)}Sr(xP.GREEN_PALE,.5),Sr(xP.BLUE_PALE,.5),Sr(xP.GREEN_PALE,.5),Sr(xP.BLUE_PALE,.5);var kP,TP=function(e){return r.createElement("svg",OP({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),PP||(PP=r.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function _P(){return _P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_P.apply(null,arguments)}var qP=function(e){return r.createElement("svg",_P({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),kP||(kP=r.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 NP({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Yr.jsx("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})}function FP(e={}){return Yr.jsx(NP,{...e,children:Yr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Yr.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Yr.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function jP(e={}){return Yr.jsx(NP,{...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Yr.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Yr.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function zP(e={}){return Yr.jsx(NP,{fontSize:"medium",...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Yr.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function GP(e={}){return Yr.jsx(NP,{fontSize:"medium",...e,children:Yr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Yr.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Yr.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function BP({className:e}){return Yr.jsx(NP,{fontSize:"small",className:e,children:Yr.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Yr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Yr.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Yr.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Yr.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Yr.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function $P(e={}){return Yr.jsx(NP,{...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Yr.jsx("rect",{stroke:xP.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}Yr.jsx(qP,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Yr.jsx(TP,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Yr.jsx(zP,{}),Yr.jsx(GP,{}),Yr.jsx((function(e={}){return Yr.jsx(NP,{...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Yr.jsx("rect",{stroke:"#000000",fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}),{}),Yr.jsx(FP,{}),Yr.jsx(jP,{}),Yr.jsx(TP,{style:{color:xP.TEXT_PRIMARY},"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16});const WP={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:RP,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var HP=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:xP.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:xP.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Yr.jsx(TP,{"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 ${xP.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:xP.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${xP.MISC_FOCUS_BORDER}`,borderRadius:RP,backgroundColor:xP.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 ${xP.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:xP.WHITE,color:xP.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:RP},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${xP.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:xP.GREYSCALE_0_15,backgroundColor:xP.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:xP.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${xP.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:xP.GREEN_PALE},"&:active":{backgroundColor:xP.GREEN_DARK},"&.Mui-focusVisible":{borderColor:xP.GREEN_PALE,boxShadow:`0 0 0 3px ${Lv(xP.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:xP.BLUE_PALE},"&:active":{backgroundColor:xP.BLUE_DARK},"&.Mui-focusVisible":{borderColor:xP.BLUE_PALE,boxShadow:`0 0 0 3px ${Lv(xP.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:RP,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:xP.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${xP.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:xP.GREYSCALE_0_15,backgroundColor:xP.GREYSCALE_100_60,"&:active":{backgroundColor:xP.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:xP.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${xP.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:xP.PURPLE,"&.Mui-focusVisible":{borderColor:xP.PURPLE,boxShadow:`0 0 0 3px ${Lv(xP.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:xP.GREEN,"&.Mui-focusVisible":{borderColor:xP.GREEN,boxShadow:`0 0 0 3px ${Lv(xP.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:xP.BLUE,"&.Mui-focusVisible":{borderColor:xP.BLUE,boxShadow:`0 0 0 3px ${Lv(xP.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:xP.ORANGE,"&.Mui-focusVisible":{borderColor:xP.ORANGE,boxShadow:`0 0 0 3px ${Lv(xP.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:xP.RED,"&.Mui-focusVisible":{borderColor:xP.RED,boxShadow:`0 0 0 3px ${Lv(xP.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:xP.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:xP.PURPLE_PALE},"&:active":{backgroundColor:xP.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:xP.PURPLE_PALE,boxShadow:`0 0 0 3px ${Lv(xP.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:xP.GREEN_PALE},"&:active":{backgroundColor:xP.GREEN_DARK},"&.Mui-focusVisible":{borderColor:xP.GREEN_PALE,boxShadow:`0 0 0 3px ${Lv(xP.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:xP.BLUE_PALE},"&:active":{backgroundColor:xP.BLUE_DARK},"&.Mui-focusVisible":{borderColor:xP.BLUE_PALE,boxShadow:`0 0 0 3px ${Lv(xP.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:xP.ORANGE_PALE},"&:active":{backgroundColor:xP.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:xP.ORANGE_PALE,boxShadow:`0 0 0 3px ${Lv(xP.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:xP.RED_PALE},"&:active":{backgroundColor:xP.RED_DARK},"&.Mui-focusVisible":{borderColor:xP.RED_PALE,boxShadow:`0 0 0 3px ${Lv(xP.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:xP.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:xP.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:RP,boxShadow:`inset 0 0 0 2px ${xP.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Yr.jsx(qP,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:SP,borderRadius:RP,color:xP.TEXT_PRIMARY,backgroundColor:xP.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:xP.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${xP.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:xP.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:xP.GREYSCALE_0_05,color:xP.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:xP.GREEN,borderColor:xP.GREEN},"&.MuiChip-outlinedInfo":{color:xP.BLUE,borderColor:xP.BLUE},"&.MuiChip-outlinedWarning":{color:xP.ORANGE,borderColor:xP.ORANGE},"&.MuiChip-outlinedError":{color:xP.RED,borderColor:xP.RED}},outlined:{border:`solid 1px ${xP.GREYSCALE_0_15}`,backgroundColor:xP.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:RP,boxShadow:"none",backgroundColor:xP.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:xP.GREEN,borderColor:xP.GREEN},outlinedSecondary:{color:xP.BLUE,borderColor:xP.BLUE},label:{fontFamily:AP.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Yr.jsx(qP,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Yr.jsx(TP,{"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:RP},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:RP,fontSize:EP,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:xP.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${xP.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:xP.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:xP.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:xP.GREYSCALE_0_05}}},popupIndicator:{borderRadius:RP,border:`solid 1px ${xP.GREYSCALE_0_15}`,color:xP.GREYSCALE_0_60,marginRight:0,width:wP,height:wP},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${xP.GREYSCALE_0_15}`},clearIndicator:{borderRadius:RP,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:xP.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:EP}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:SP,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:xP.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:xP.GREYSCALE_25,fontSize:SP,fontFamily:AP.FONT_FAMILY,fontWeight:MP,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:xP.TEXT_PRIMARY},"&.Mui-error":{color:xP.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:xP.TEXT_SECONDARY,content:"'(optional)'",fontWeight:IP,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:xP.TEXT_SECONDARY,content:"'(required)'",fontWeight:IP,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:EP,lineHeight:"16px",backgroundColor:xP.WHITE,borderRadius:RP,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${xP.GREYSCALE_0_05}`,borderColor:xP.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${xP.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${xP.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${xP.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${xP.RED}`,boxShadow:`0px 0px 0px 1px ${xP.RED}, inset 0 2px 0 0 ${xP.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${xP.GREYSCALE_0_10}`,borderColor:xP.GREYSCALE_0_10,backgroundColor:xP.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:xP.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:xP.GREYSCALE_0_15,borderRadius:RP,boxShadow:`inset 0 2px 0 0 ${xP.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Yr.jsx(TP,{...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:xP.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:xP.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:xP.GREYSCALE_0_03},"&:active":{backgroundColor:xP.GREYSCALE_0_10},"&:focus":{backgroundColor:xP.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${xP.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${xP.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:xP.GREYSCALE_0_30,"&:hover":{backgroundColor:xP.GREYSCALE_0_0,borderColor:xP.GREYSCALE_0_15},"& ~svg":{color:xP.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${xP.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:RP}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:xP.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${xP.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:xP.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:EP,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:SP,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:SP,fontWeight:MP,color:xP.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:MP}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${xP.GREYSCALE_0_15}, 0px 0px 0px 1px ${xP.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Yr.jsx(zP,{}),checkedIcon:Yr.jsx(GP,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:xP.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${xP.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:xP.GREEN_PALE,boxShadow:`0 0 0 3px ${Lv(xP.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:xP.BLUE_PALE,boxShadow:`0 0 0 3px ${Lv(xP.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:xP.GREYSCALE_0_20}},"&.Mui-disabled":{fill:xP.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Yr.jsx($P,{}),checkedIcon:Yr.jsx(FP,{}),indeterminateIcon:Yr.jsx(jP,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:RP,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:xP.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:xP.GREYSCALE_0_55,color:xP.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:xP.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:xP.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:xP.GREYSCALE_0_55,"&:hover":{color:xP.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:xP.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:xP.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:EP,color:xP.TEXT_PRIMARY,lineHeight:"16px",fontWeight:MP},secondary:{fontSize:SP,color:xP.GREYSCALE_45,fontWeight:IP,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:EP,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:EP,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:xP.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:SP,borderBottom:`solid 1px ${xP.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:EP,color:xP.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:xP.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:xP.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:xP.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:xP.RED}}},"&.Mui-focusVisible":{backgroundColor:xP.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:xP.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:xP.GREEN,height:"24px","&.Mui-disabled":{color:xP.GREYSCALE_0_15}},rail:{backgroundColor:xP.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${xP.GREYSCALE_0_05}`,borderRadius:RP,boxShadow:`inset 0px 0px 0px 1px ${xP.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${xP.GREYSCALE_0_05}`,borderRadius:RP},thumb:{height:"16px",width:"16px",borderRadius:RP,backgroundColor:xP.WHITE,boxShadow:`0px 1px 2px 0px ${xP.GREYSCALE_0_15}, 0px 0px 0px 1px ${xP.GREYSCALE_0_05}`,"&:hover":{borderRadius:RP,boxShadow:`0 2px 4px 0 ${xP.GREYSCALE_0_30}, 0 0 0 1px ${xP.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${xP.GREYSCALE_0_15}, 0 0 0 1px ${xP.GREYSCALE_0_06}, 0 0 0 2px ${xP.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${xP.GREYSCALE_0_15}, 0 0 0 1px ${xP.GREYSCALE_0_06}, 0 0 0 2px ${xP.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:xP.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:xP.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:xP.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:xP.GREYSCALE_0_15},markLabel:{color:xP.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:xP.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:xP.WHITE,color:xP.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:xP.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:xP.GREEN_PALE,boxShadow:`0 0 0 3px ${Lv(xP.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:xP.BLUE_PALE,boxShadow:`0 0 0 3px ${Lv(xP.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:xP.GREYSCALE_0_15,borderRadius:RP},thumb:{height:"16px",width:"16px",borderRadius:RP,backgroundColor:xP.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:EP,fontWeight:MP,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${xP.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${xP.MISC_FOCUS_BORDER}`,backgroundColor:xP.GREYSCALE_0_03,borderRadius:RP},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:xP.GREYSCALE_25,"&.Mui-selected":{color:xP.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:EP,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:RP,"&:hover":{backgroundColor:xP.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${xP.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${xP.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:RP,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:xP.GREYSCALE_0_05},"&:hover":{backgroundColor:xP.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${xP.GREYSCALE_85}`,borderRight:`1px solid ${xP.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:MP,backgroundColor:xP.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:xP.GREYSCALE_98,borderBottom:`1px solid ${xP.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${xP.GREYSCALE_85}`,borderTop:`1px solid ${xP.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:xP.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:xP.GREYSCALE_0_05,"&:hover":{backgroundColor:xP.GREYSCALE_0_03}},"&&:hover":{backgroundColor:xP.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Yr.jsx(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 ${xP.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:EP,borderRadius:RP,padding:"7px 16px",border:`1px solid ${xP.GREYSCALE_0_15}`,backgroundColor:xP.GREYSCALE_100_60,color:xP.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:xP.GREYSCALE_0_10,border:`1px solid ${xP.GREYSCALE_0_30}`},"&:hover":{backgroundColor:xP.GREYSCALE_0_03,border:`1px solid ${xP.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:xP.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${xP.MISC_FOCUS_BORDER}`,border:`1px solid ${xP.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:xP.GREYSCALE_25,backgroundColor:xP.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:xP.GREYSCALE_0_10,border:`1px solid ${xP.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:SP,height:24,width:24,padding:7},sizeLarge:{fontSize:CP,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:EP,borderRadius:RP}}},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:xP.GREYSCALE_20},tooltip:{backgroundColor:xP.GREYSCALE_20,fontSize:SP,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...WP}:{}}))(t);const VP=e=>({mode:"light",primary:{ultraLight:xP.GREEN_ULTRA_LIGHT,light:xP.GREEN_PALE,main:xP.GREEN,dark:xP.GREEN_DARK,extraDark:xP.GREEN_EXTRA_DARK,contrastText:xP.WHITE},secondary:{ultraLight:xP.BLUE_ULTRA_LIGHT,light:xP.BLUE_PALE,main:xP.BLUE,dark:xP.BLUE_DARK,extraDark:xP.BLUE_EXTRA_DARK,contrastText:xP.WHITE},error:{ultraLight:xP.RED_ULTRA_LIGHT,light:xP.RED_PALE,main:xP.RED,dark:xP.RED_DARK,extraDark:xP.RED_EXTRA_DARK,contrastText:xP.WHITE},warning:{ultraLight:xP.ORANGE_ULTRA_LIGHT,light:xP.ORANGE_PALE,main:xP.ORANGE,dark:xP.ORANGE_DARK,extraDark:xP.ORANGE_EXTRA_DARK,contrastText:xP.WHITE},success:{ultraLight:xP.GREEN_ULTRA_LIGHT,light:xP.GREEN_PALE,main:xP.GREEN,dark:xP.GREEN_DARK,extraDark:xP.GREEN_EXTRA_DARK,contrastText:xP.WHITE},info:{ultraLight:xP.BLUE_ULTRA_LIGHT,light:xP.BLUE_PALE,main:xP.BLUE,dark:xP.BLUE_DARK,extraDark:xP.BLUE_EXTRA_DARK,contrastText:xP.WHITE},text:{primary:xP.TEXT_PRIMARY,secondary:xP.TEXT_SECONDARY,disabled:xP.GREYSCALE_0_30},action:{hover:xP.GREYSCALE_0_03,hoverOpacity:.03,selected:xP.GREYSCALE_0_05,selectedOpacity:.05,focus:xP.MISC_FOCUS_BORDER},amethyst:{ultraLight:xP.WHITE,main:xP.PURPLE,light:xP.PURPLE_PALE,dark:xP.PURPLE_DARK,extraDark:xP.GREYSCALE_0_0,contrastText:xP.WHITE},background:{paper:xP.WHITE,default:xP.GREYSCALE_95},divider:xP.GREYSCALE_0_15}),UP=(e="light",t=!1)=>((e,t=!1)=>({components:HP(0,t),palette:VP(),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:EP,fontWeightLight:LP,fontWeightRegular:IP,fontWeightMedium:MP,fontWeightBold:DP,htmlFontSize:EP,fontFamily:AP.FONT_FAMILY,button:{fontWeight:MP,fontSize:EP,textTransform:"none"},body1:{fontSize:CP,lineHeight:"24px"},body2:{fontSize:EP,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:wP,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:CP,fontWeight:MP,lineHeight:"16px"},h6:{fontSize:EP,fontWeight:MP,lineHeight:"16px"},caption:{color:xP.TEXT_SECONDARY},subtitle1:{fontSize:EP,color:xP.TEXT_SECONDARY},subtitle2:{fontSize:SP,color:xP.TEXT_SECONDARY}},shape:{borderRadius:RP}}))(0,t);const YP=(e,{selections:r,baseObjects:n,coreServices:o,nebulaObjects:i})=>{const a=function(e){var t;const r=UP();return null!=r&&null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),_x({...r,direction:e})}(n.direction);e.render(Yr.jsx(t.StrictMode,{children:Yr.jsx(gS,{theme:a,children:Yr.jsx(DC,{...i,children:Yr.jsx(LC,{...n,children:Yr.jsx(uI,{selections:r,children:Yr.jsx(OC,{...o,children:Yr.jsx(yR,{children:Yr.jsx(yP,{})})})})})})})}))};var KP,XP,JP,ZP;!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"}(KP||(KP={})),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"}(XP||(XP={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(JP||(JP={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(ZP||(ZP={}));const QP=e=>e?`${parseInt(e,10)}px`:void 0,eO=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?sg.Transparent:r}},tO=(e,t)=>+(parseInt(e,10)*lg*t+8).toFixed(2),rO=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?ig:"normal",nO=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",oO=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",iO=document.createElement("textarea");function aO(e){iO.value=e,document.body.appendChild(iO),iO.select(),iO.setSelectionRange(0,iO.value.length),document.execCommand("copy"),document.body.removeChild(iO)}iO.style.position="absolute",iO.style.left="-9999px",iO.setAttribute("readonly","");function lO(e){null==L||L(((t,r)=>{const n=r.target,o=null==n?void 0:n.closest(`.${jt}`);null!=o&&o.title&&t.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{(e=>{var t;const r=e.title;r&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(r).catch((()=>{aO(r)})):aO(r))})(o)}}),null==e||e.forEach((e=>{e(t,r,o)}))}))}const sO=({model:e,env:t,layoutService:r,effectivePropertiesService:n,translator:o})=>Mg(((i,a,l)=>{if(!e||n.qAlwaysFullyExpanded||!t.flags.isEnabled("CLIENT_IM_6273_EXPAND_OR_COLLAPSE_DIM"))return;const s=e,u=i.addItem({translation:"Object.PivotTable.ContextMenu.ExpandCollapse",tid:"expand-collapse-group"}),{qEffectiveDimensionName:c,label:d}=((e,t)=>{const r=((e,t)=>{const r=null==e?void 0:e.getAttribute("data-dimension-info-index");if("string"==typeof r)return t.getDimensionInfo(+r)})(e,t);return"object"==typeof r?{qEffectiveDimensionName:r.qEffectiveDimensionName,label:r.qFallbackTitle}:{qEffectiveDimensionName:void 0,label:void 0}})(l,r);u.addItem((e=>({icon:"lui-icon lui-icon--plus",translation:"Object.PivotTable.ContextMenu.ExpandAll",tid:"expand-all",select:async()=>{try{await e.expandTop(TC,0,0,!0),await e.expandLeft(TC,0,0,!0)}catch(e){console.error("Failed to expand all",e)}}}))(s)),"string"==typeof c&&u.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:r,label:n,translator:o})=>({icon:"lui-icon lui-icon--plus",translation:o.get("SNPivotTable.ContextMenu.ExpandDimension",[null!=n?n:""]),tid:"expand-dimension",select:bA({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:mA.Expand})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:c,label:d,translator:o})),u.addItem((e=>({icon:"lui-icon lui-icon--minus",translation:"Object.PivotTable.ContextMenu.CollapseAll",tid:"collapse-all",select:async()=>{try{await e.collapseTop(TC,0,0,!0),await e.collapseLeft(TC,0,0,!0)}catch(e){console.error("Failed to collapse all",e)}}}))(s)),"string"==typeof c&&u.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:r,label:n,translator:o})=>({icon:"lui-icon lui-icon--minus",translation:o.get("SNPivotTable.ContextMenu.CollapseDimension",[null!=n?n:""]),tid:"collapse-dimension",select:bA({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:mA.Collapse})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:c,label:d,translator:o}))}),[e,r,n]),uO=(e,t)=>y((()=>(({layout:e,flags:t})=>{var r,n,o,i;const{qHyperCube:a,nullValueRepresentation:l,snapshotData:s}=e,{qNoOfLeftDims:u,qEffectiveInterColumnSortOrder:c,qMeasureInfo:d,qDimensionInfo:p}=a,f=!!s,m=null!==(r=null==s||null===(n=s.content)||void 0===n?void 0:n.rowsPerPage)&&void 0!==r?r:15e3,h={x:Math.min(e.qHyperCube.qSize.qcx,ag),y:Math.min(e.qHyperCube.qSize.qcy,m)},g=c.slice(0,u),b=e=>g.some((t=>t===e)),v=b(_C),y=new Map(c.map((e=>{var t;return[null!==(t=p[e])&&void 0!==t?t:_C,e]}))),x=d.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return{layout:e,getNullValueText:()=>{var e;return null!==(e=null==l?void 0:l.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(v)return 0;const r=e%x.length;return t?r:d.findIndex((e=>e===x[r]))},getDimensionInfo:e=>e===_C?void 0:p.at(e),getDimensionInfoIndex:e=>{var t;return null!==(t=y.get(e))&&void 0!==t?t:-1},size:h,isSnapshot:f,hasLimitedData:!f&&h.x<e.qHyperCube.qSize.qcx,hasData:h.x>0&&h.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,hasPseudoDimOnLeft:v,leftDimensionInfoIndexes:g,isLeftDimension:b,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:x,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode),indentModeFeatures:{isLinksSupported:t.isEnabled("CLIENT_IM_5975_INDENT_MODE_LINKS"),isImagesSupported:t.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES")},indentModeColumnWidth:null!==(o=e.qHyperCube.indentModeColumnWidth)&&void 0!==o?o:{type:$t.Auto,pixels:Bt.PixelsDefault,percentage:Bt.PercentageDefault},searchSortFromDimension:"inherit"===(null===(i=e.search)||void 0===i?void 0:i.sorting)}})({layout:e,flags:t})),[e,t]),cO=({model:e,layoutService:t,viewService:r,pageInfo:n,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=Ag(e);return t.current=e,t})(pR(o));return qg((async()=>{const{qHyperCube:t}=i,{maxNumberOfVisibleRows:o,maxNumberOfVisibleColumns:u}=s.current;var c,d;if(a)return null!==(c=null===(d=i.snapshotData)||void 0===d||null===(d=d.content)||void 0===d?void 0:d.qPivotDataPages)&&void 0!==c?c:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,r,n)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=n||t.gridRowStartIndex+t.gridHeight>=r))(l,r,o,u)||((e,t,r,n)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(n,l.qcx)||c<Math.min(r,l.qcy)})(i,n,o,u))){const t=((e,t,r,n,o,i)=>{const a=n.page*n.rowsPerPage,l=Math.min(a+n.rowsPerPage,r.qcy),s=Math.min(ag,r.qcx);if(r.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,r=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),r>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:c,qWidth:Math.min(s-u,i),qHeight:Math.min(l-c,o)}})(l,r,i.qHyperCube.qSize,n,o,u);return t?e.getHyperCubePivotData(TC,fR(t)):[]}return t.qPivotDataPages}),[i,a,e,r,n.page,n.rowsPerPage,s,l])},dO=({rowsPerPage:e,totalRowCount:t,page:r})=>Math.min(e,t-r*e),pO=(e,t,r=15e3)=>({rowsPerPage:r,totalPages:Math.max(1,Math.ceil(e/r)),totalRowCount:e,rowsOnCurrentPage:dO({rowsPerPage:r,totalRowCount:e,page:t})}),fO=15,mO=({layoutService:e,viewService:t,rect:r,model:n,pageInfo:o})=>{var i;return I((async e=>{const i=e;if(!i.snapshotData||!n||i.snapshotData.content)return i;if("getHyperCubePivotData"in n){const{scrollTop:e,scrollLeft:a,leftGridScrollLeft:l,topGridScrollTop:s}=t,u=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,l=t.page*t.rowsPerPage,s=Math.max(n-fO,0),u=Math.max(l+o-fO,l,0),c=ag-s,d=l+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=pR(r);return{qLeft:s,qTop:u,qWidth:Math.min(c,e+30),qHeight:Math.min(d,t+30)}}return{qLeft:s,qTop:u,qWidth:Math.min(c,i+30),qHeight:Math.min(d,a+30)}})(t,o,r),c=fR(u),d={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};i.snapshotData.content={qPivotDataPages:await n.getHyperCubePivotData(TC,[d,...c]),scrollTop:e,scrollLeft:a,leftGridScrollLeft:l,topGridScrollTop:s,page:o.page,rowsPerPage:o.rowsPerPage},i.snapshotData.object.size.w=r.width,i.snapshotData.object.size.h=r.height}return i})),M((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,topGridScrollTop:e.topGridScrollTop,renderPage:t.page}))(t,o)})),[t]),null!==(i=e.layout.snapshotData)&&void 0!==i&&i.content?{left:r.left,top:r.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:r};var hO={SNPivotTable_ContextMenu_CollapseDimension:{id:"SNPivotTable.ContextMenu.CollapseDimension",locale:{"de-DE":"{0} reduzieren","en-US":"Collapse {0}","es-ES":"Contraer {0}","fr-FR":"Réduire {0}","it-IT":"Comprimi {0}","ja-JP":"{0} を折りたたむ","ko-KR":"{0} 축소","nl-NL":"{0} samenvouwen","pl-PL":"Zwiń {0}","pt-BR":"Recolher {0}","ru-RU":"Свернуть {0}","sv-SE":"Dölj {0}","tr-TR":"{0} öğelerini daralt","zh-CN":"折叠 {0}","zh-TW":"收合 {0}"}},SNPivotTable_ContextMenu_ExpandDimension:{id:"SNPivotTable.ContextMenu.ExpandDimension",locale:{"de-DE":"{0} erweitern","en-US":"Expand {0}","es-ES":"Expandir {0}","fr-FR":"Développer {0}","it-IT":"Espandi {0}","ja-JP":"{0} を展開","ko-KR":"{0} 확장","nl-NL":"{0} uitvouwen","pl-PL":"Rozwiń {0}","pt-BR":"Expandir {0}","ru-RU":"Развернуть {0}","sv-SE":"Visa {0}","tr-TR":"{0} öğelerini genişlet","zh-CN":"展开 {0}","zh-TW":"展開 {0}"}},SNPivotTable_IndentMode_Rows:{id:"SNPivotTable.IndentMode.Rows",locale:{"de-DE":"Zeilen","en-US":"Rows","es-ES":"Filas","fr-FR":"Lignes","it-IT":"Righe","ja-JP":"行","ko-KR":"행","nl-NL":"Rijen","pl-PL":"Wiersze","pt-BR":"Linhas","ru-RU":"Строки","sv-SE":"Rader","tr-TR":"Satırlar","zh-CN":"行","zh-TW":"列"}},SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const gO=()=>{const e=D(),t=e.language();return y((()=>{!function(e){const t="SNPivotTable_LimitedData";e.get(t)===t&&Object.keys(hO).forEach((t=>{e.add(hO[t])}))}(e)}),[e]),{translator:e,language:t}},bO=e=>{const{flags:t}=e,r=A(),n=(e=>{const t=y((()=>zg(e)),[e]);return C((()=>()=>{t.unmount()}),[t]),t})(r),o=P(),i=O(),a=k(),l=T(),s=_(),u=Pg(),c=((e,t)=>{const[r]=qg((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return{...await e.getEffectiveProperties()}}),[e,t]);return y((()=>{var e,t;const n=void 0!==(null==r?void 0:r.qHyperCubeDef.qSortbyYValue)&&1===Math.abs(r.qHyperCubeDef.qSortbyYValue),o=null!==(e=null==r?void 0:r.qHyperCubeDef.qDimensions.map((e=>e.qDef.qSortCriterias)))&&void 0!==e?e:[];return{qAlwaysFullyExpanded:null!==(t=null==r?void 0:r.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==t&&t,qExpansionState:null==r?void 0:r.qHyperCubeDef.qExpansionState,isSortedByFirstMeasure:n,getSortCriteriaForDimension:e=>o[e]}}),[r])})(i,o),d=uO(o,t),p=(e=>{const t=R();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(d.isSnapshot),f=q(),m=_g(o,r),{translator:h,language:g}=gO(),{pageInfo:b,updatePageInfo:v}=((e,t)=>{const{size:r,layout:{qHyperCube:{qSize:n}}}=e,o=t.isDownloadedAsPDForImage||e.isSnapshot,i=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(e),[a,l]=E((()=>{const a=((e,t)=>{var r,n,o,i;return t.isDownloadedAsPDForImage?null!==(r=null===(n=t.viewState)||void 0===n?void 0:n.renderPage)&&void 0!==r?r:0:e.isSnapshot&&null!==(o=null===(i=e.layout.snapshotData)||void 0===i||null===(i=i.content)||void 0===i?void 0:i.page)&&void 0!==o?o:0})(e,t);return{page:a,shouldShowPagination:n.qcy>r.y&&!o,...pO(n.qcy,a,i)}})),s=e.layout.qHyperCube.qSize.qcy;return C((()=>{l((t=>({...t,...pO(s,t.page,i),shouldShowPagination:s>e.size.y&&!o})))}),[s,e.size.y,l,o,i]),C((()=>{const{page:e,totalPages:t}=a;if(e+1>t){const e=t-1,r=dO({...a,page:e});l({...a,page:e,rowsOnCurrentPage:r})}}),[a]),{pageInfo:a,updatePageInfo:e=>{l({...a,...e,rowsOnCurrentPage:dO({...a,...e})})}}})(d,u),S=((e,t,r)=>y((()=>((e,t)=>{var r,n,o,i,a,l,s,u;if(e.isDownloadedAsPDForImage){var c,d,p,f;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(c=null==t?void 0:t.scrollTop)&&void 0!==c?c:0,scrollLeft:null!==(d=null==t?void 0:t.scrollLeft)&&void 0!==d?d:0,leftGridScrollLeft:null!==(p=null==t?void 0:t.leftGridScrollLeft)&&void 0!==p?p:0,topGridScrollTop:null!==(f=null==t?void 0:t.topGridScrollTop)&&void 0!==f?f:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(r=null==t||null===(n=t.content)||void 0===n?void 0:n.scrollTop)&&void 0!==r?r:0,scrollLeft:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.leftGridScrollLeft)&&void 0!==a?a:0,topGridScrollTop:null!==(s=null==t||null===(u=t.content)||void 0===u?void 0:u.topGridScrollTop)&&void 0!==s?s:0}})(r,t.snapshotData)),[r,e.page,t.snapshotData]))(b,o,u),w=mO({rect:N(),layoutService:d,viewService:S,model:i,pageInfo:b}),[L,I]=cO({model:i,layoutService:d,viewService:S,pageInfo:b,rect:w}),M=y((()=>((e,t,r)=>{var n,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,L,I,M,D,A,P,O,k,T,_,q,N,F,j,z,G,B,$,W,H,V,U,Y,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[KP.LineClamp])&&void 0!==i?i:oe(XP.Grid,JP.Grid,ZP.LineClamp))&&void 0!==o?o:1),ae=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==ne?void 0:ne[KP.ColumnLineClamp])&&void 0!==l?l:oe(XP.Grid,JP.Grid,ZP.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=eO(e,null==J?void 0:J[KP.Background]))&&void 0!==u?u:oe(XP.Dimension,JP.LabelName,ZP.BackgroundColor))&&void 0!==s?s:sg.Transparent,se={header:{fontSize:null!==(c=null!==(d=QP(null==J?void 0:J[KP.FontSize]))&&void 0!==d?d:oe(XP.Dimension,JP.LabelName,ZP.FontSize))&&void 0!==c?c:ng,fontFamily:null!==(p=null!==(f=null==J?void 0:J[KP.FontFamily])&&void 0!==f?f:oe(XP.Dimension,JP.LabelName,ZP.FontFamily))&&void 0!==p?p:og,fontWeight:rO(null==J?void 0:J[KP.FontStyle],ig),fontStyle:nO(null==J?void 0:J[KP.FontStyle]),textDecoration:oO(null==J?void 0:J[KP.FontStyle]),color:null!==(m=null!==(h=eO(e,null==J?void 0:J[KP.FontColor]))&&void 0!==h?h:oe(XP.Dimension,JP.LabelName,ZP.FontColor))&&void 0!==m?m:fm.TEXT,background:le,hoverBackground:Hh(le,Wt),activeBackground:Hh(le,Ht)},dimensionValues:{fontSize:null!==(g=null!==(b=QP(null==Z?void 0:Z[KP.FontSize]))&&void 0!==b?b:oe(XP.Dimension,JP.LabelValue,ZP.FontSize))&&void 0!==g?g:ng,fontFamily:null!==(v=null!==(y=null==Z?void 0:Z[KP.FontFamily])&&void 0!==y?y:oe(XP.Dimension,JP.LabelValue,ZP.FontFamily))&&void 0!==v?v:og,fontWeight:rO(null==Z?void 0:Z[KP.FontStyle],void 0),fontStyle:nO(null==Z?void 0:Z[KP.FontStyle]),textDecoration:oO(null==Z?void 0:Z[KP.FontStyle]),color:null!==(x=null!==(S=eO(e,null==Z?void 0:Z[KP.FontColor]))&&void 0!==S?S:oe(XP.Dimension,JP.LabelValue,ZP.FontColor))&&void 0!==x?x:fm.TEXT,background:null!==(E=null!==(C=eO(e,null==Z?void 0:Z[KP.Background]))&&void 0!==C?C:oe(XP.Dimension,JP.LabelValue,ZP.BackgroundColor))&&void 0!==E?E:sg.Transparent},measureValues:{fontSize:null!==(w=null!==(R=QP(null==Q?void 0:Q[KP.FontSize]))&&void 0!==R?R:oe(XP.Measure,JP.LabelValue,ZP.FontSize))&&void 0!==w?w:ng,fontFamily:null!==(L=null!==(I=null==Q?void 0:Q[KP.FontFamily])&&void 0!==I?I:oe(XP.Measure,JP.LabelValue,ZP.FontFamily))&&void 0!==L?L:og,fontWeight:rO(null==Q?void 0:Q[KP.FontStyle],"normal"),fontStyle:nO(null==Q?void 0:Q[KP.FontStyle]),textDecoration:oO(null==Q?void 0:Q[KP.FontStyle]),color:null!==(M=null!==(D=eO(e,null==Q?void 0:Q[KP.FontColor]))&&void 0!==D?D:oe(XP.Measure,JP.LabelValue,ZP.FontColor))&&void 0!==M?M:sg.FontSecondary,background:null!==(A=null!==(P=eO(e,null==Q?void 0:Q[KP.Background]))&&void 0!==P?P:oe(XP.Measure,JP.LabelValue,ZP.BackgroundColor))&&void 0!==A?A:sg.Transparent},measureLabels:{fontWeight:rO(null==ee?void 0:ee[KP.FontStyle],"normal"),fontStyle:nO(null==ee?void 0:ee[KP.FontStyle]),textDecoration:oO(null==ee?void 0:ee[KP.FontStyle]),color:null!==(O=null!==(k=eO(e,null==ee?void 0:ee[KP.FontColor]))&&void 0!==k?k:oe(XP.Measure,JP.LabelName,ZP.FontColor))&&void 0!==O?O:sg.FontSecondary,background:null!==(T=null!==(_=eO(e,null==ee?void 0:ee[KP.Background]))&&void 0!==_?_:oe(XP.Measure,JP.LabelName,ZP.BackgroundColor))&&void 0!==T?T:sg.Transparent},totalValues:{fontWeight:rO(null==te?void 0:te[KP.FontStyle],ig),fontStyle:nO(null==te?void 0:te[KP.FontStyle]),textDecoration:oO(null==te?void 0:te[KP.FontStyle]),color:null!==(q=null!==(N=eO(e,null==te?void 0:te[KP.FontColor]))&&void 0!==N?N:oe(XP.Total,JP.LabelValue,ZP.FontColor))&&void 0!==q?q:fm.TEXT,background:null!==(F=null!==(j=eO(e,null==te?void 0:te[KP.Background]))&&void 0!==j?j:oe(XP.Total,JP.LabelValue,ZP.BackgroundColor))&&void 0!==F?F:sg.Transparent},nullValues:{fontWeight:rO(null==re?void 0:re[KP.FontStyle],"normal"),fontStyle:nO(null==re?void 0:re[KP.FontStyle]),textDecoration:oO(null==re?void 0:re[KP.FontStyle]),color:null!==(z=null!==(G=eO(e,null==re?void 0:re[KP.FontColor]))&&void 0!==G?G:oe(XP.Null,JP.LabelValue,ZP.FontColor))&&void 0!==z?z:fm.TEXT,background:null!==(B=null!==($=eO(e,null==re?void 0:re[KP.Background]))&&void 0!==$?$:oe(XP.Null,JP.LabelValue,ZP.BackgroundColor))&&void 0!==B?B:sg.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(W=null!==(H=eO(e,null==ne?void 0:ne[KP.Border]))&&void 0!==H?H:oe(XP.Grid,JP.Grid,ZP.BorderColor))&&void 0!==W?W:sg.DividerLight,divider:null!==(V=null!==(U=eO(e,null==ne?void 0:ne[KP.Divider]))&&void 0!==U?U:oe(XP.Grid,JP.Divider,ZP.BorderColor))&&void 0!==V?V:sg.DividerDark,background:null!==(Y=null!==(K=eO(e,null==ne?void 0:ne[KP.Background]))&&void 0!==K?K:oe(XP.Grid,JP.Grid,ZP.BackgroundColor))&&void 0!==Y?Y:sg.Transparent},selectedColors:Wh(e)};return se.headerCellHeight=Math.max(tO(se.header.fontSize,ae),tO(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(tO(se.measureValues.fontSize,ie),tO(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=tO(se.dimensionValues.fontSize,1),se})(m,d,t)),[m,d,t]),D=((e,t,r)=>{const[,n,o]=qg((async()=>{var t;const n=_m(r.flags),o=e.getStyle("","","fontFamily"),i=e.getStyle("object","label.name","fontFamily"),a=e.getStyle("object","label.value","fontFamily"),l=null!==(t=e.getStyle("","","fontFamilies"))&&void 0!==t?t:[];return Promise.all([...n,...l,o,i,a,Bg].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,r]);return o?(console.warn("Failed to load fonts:",o),!0):!n})(m,o,e),F=x(),j=e.flags.isEnabled("CLIENT_IM_6225_PIVOT_TABLE_RTL")?F.direction:"ltr";lO([sO({model:i,env:e,layoutService:d,effectivePropertiesService:c,translator:h})]),C((()=>{!I&&i&&!!L&&D&&YP(n,{selections:f,baseObjects:{rect:w,pageInfo:b,qPivotDataPages:L,updatePageInfo:v,direction:j},nebulaObjects:{env:e,app:a,model:i,embed:l,theme:m,keyboard:s,translator:h,interactions:p},coreServices:{styleService:M,viewService:S,layoutService:d,downloadService:u,effectivePropertiesService:c}})}),[i,a,w,p,f,S,d,u,I,L,M,n,D,h,g,b,v,c,l,s,m,e,j])},vO={version:"4.6.3",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:[]},yO=()=>({...vO,qHyperCubeDef:{...vO.qHyperCubeDef,qIndentMode:!1}})}}}));