@nebula.js/sn-pivot-table 3.11.0 → 3.12.1

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,14 +1,14 @@
1
1
  /*
2
- * @nebula.js/sn-pivot-table v3.11.0
2
+ * @nebula.js/sn-pivot-table v3.12.1
3
3
  * Copyright (c) 2024 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@nebula.js/stardust")):"function"==typeof define&&define.amd?define(["@nebula.js/stardust"],t):(e="undefined"!=typeof globalThis?globalThis:e||self)["sn-pivot-table"]=t(e.stardust)}(this,(function(e){"use strict";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var o={exports:{}};!function(e){self,e.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(h,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(h,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{r.r(o),r.d(o,{default:()=>Ae});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],o),h(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=h(0),m=h(1),g=v(d,f),b=v(p,m);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=h(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),k={},L=Array.isArray;function I(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function M(e){return void 0===e}function _(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function A(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=M(e[n||t])?i:e[t],e=e[n||t]}})),e}function P(e,t){var n=!0;if(I(e)&&I(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){P(e[r],t[r])||(n=!1)})),n);if(L(e)&&L(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!P(e[r],t[r]))return!1;return!0}return e===t}k.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);P(i,a)||_(t,o)||(M(a)?r.push({op:"add",path:l,value:i}):I(i)&&I(a)?r=r.concat(k.generate(a,i,l)):L(i)&&L(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&M(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(P(t,o))return r;if(!M(t[0])&&M(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(k.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){M(t[o])&&!_(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},k.apply=function(e,t){t.forEach((function(t){var n,r,o=A(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(L(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(L(a)&&L(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(I(a)&&I(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!_(n,e)&&delete n[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=A(e,t.from);L(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(L(o)?o.splice(+i,1):delete o[i])}))},k.clone=function(e){return R({},e)},k.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},k.updateObject=function(e,t){Object.keys(e).length?k.apply(e,k.generate(e,t)):R(e,t)};const D=k,T=function(e,n,r){if(!e)return Promise.resolve();var o=D.generate(n,r);return t()(!0,n,r),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var O="accumulation";function N(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===O)return n[r]}function q(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===O)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var h=E.getDimComp(u,1),m=E.getDimComp(u,0),g=E.getAggrComp(f,h,m);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(q(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(q(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(q(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(q(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=N(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=N(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(O))return!1;var i=N(t,e);return i&&!i.disabled}};return n}};var j="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function B(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var H={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),h=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",h);else{var m=E.getRangeComp("RangeSum",h),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(m," / ").concat(g)}var b=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var G="timeSeriesDecomposition";function V(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===G)return n[r]}function U(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===G)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=V(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var n=V(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(G))return!1;var i=V(t,e);return i&&!i.disabled}};return n}};var X="difference";function Q(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function J(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Z={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),h=E.getDimComp(u,0),m=E.getAggrComp(p,f,h);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Z).forEach((function(t){void 0===e[t]&&(e[t]=Z[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(J(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(J(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(J(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=Q(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t){if(1===e){var n=oe(t,0);t.splice(n,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var n=oe(t,0);t.splice(n,1)}return t}(o,i),i=function(e,t){if(0===e){var n=oe(t,1);t.splice(n,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",ke="qDef.base.qAggrFunc",Le={initBase:function(e,t){(t||Le.isValid(e))&&(n(e,ve,i(e,be)),n(e,xe,i(e,ye)),n(e,Ce,i(e,Se)),n(e,we,i(e,Ee)))},restoreBase:function(e){Le.isValid(e)&&(n(e,be,i(e,ve)),n(e,ye,i(e,xe)),n(e,Se,i(e,Ce)),n(e,Ee,i(e,we)),i(e,Re)&&i(e,ke)&&n(e,Re,i(e,ke)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),n=i(e,xe);return void 0!==t||void 0!==n}};const Ie=Le;function Me(e){return Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(e)}var _e={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Ae={modifiers:_e,apply:De,applyModifiers:Te,cleanUpMeasure:Oe,destroy:function(e){e&&Pe[e.id]&&Pe[e.id].masterItemSubscriber&&(Pe[e.id].masterItemSubscriber&&Pe[e.id].masterItemSubscriber.unsubscribe(),delete Pe[e.id])},hasActiveModifiers:Ne,getActiveModifier:qe,initBase:Ie.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return _e[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return _e[e]&&_e[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Ue({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Je({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Fe};var Pe={};function De(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Pe[n.id]=Pe[n.id]||{isFirstTime:!0};var u=Pe[n.id].isFirstTime;if(Pe[n.id].isFirstTime=!1,r&&"object"===Me(r))return Te({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Pe[n.id].lastReloadTime;if(Pe[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var h=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return h||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ue({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);Be(r);var o=Ze(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return h&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(n++,"object"!==Me(_e[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=_e[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Te({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Me(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Ze(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return ze(r).forEach((function(e){return Oe(e)})),Qe({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function Te(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?t()(!0,{},o):o),Be(o);var p=Ze(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=ze(r)),!n.length)return Promise.resolve();if(!Ne({measures:n,properties:r}))return n.forEach((function(e){return Oe(e)})),Promise.resolve();var s=a?void 0:Ze(r);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ue({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Ie.isValid(n)||Ie.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(l++,"object"!==Me(_e[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");_e[e.type].initModifier(e,n);var s=n.qLibraryId||c&&c.qLibraryId;s?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:_e[r.type].generateExpression({expression:l,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:s,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof _e[r.type].updateModifier&&_e[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:_e[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),He(n)):Oe(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Qe({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function Oe(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Me(e)&&!e.disabled&&!_e[e.type]}))}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function Ne(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:je(e),properties:n,layout:r})}))}function qe(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(_e[r.type]&&!r.disabled)return r}}function Fe(e){var t=qe(e);return!t||_e[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){ze(e).forEach((function(e){return function(e){var n=qe(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function He(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Me(t)&&(t.disabled||!_e[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ge(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,n=e.properties,r=e.layout;return!Ge(t)&&Ue({modifiers:je(t),properties:n,layout:r})}function Ue(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Me(e)||e.disabled||!_e[e.type])&&(void 0===o[e.type]&&(o[e.type]=_e[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Qe(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):T(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Je(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Me(e)&&!e.disabled&&_e[e.type]&&_e[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Ze(e){var t=ze(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ue({modifiers:r,properties:e})){var i=Ge(t);i&&n.push(i),o=o||Je({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Pe[t.id].masterItemSubscriber=Pe[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return De({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Pe[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),o=Math.floor(n/62);return o>0?t(o)+r:r}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(r,{default:()=>Be});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var l=r[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c};var p=n(645),f=n.n(p);const h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var l,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,s(r.qMeasures));var a,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!i.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(r=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(r)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=a}var S=n(229),E=n.n(S);function C(e,t){var n=E()(!0,{},t,e);return i.getValue(n,"qOtherTotalSpec.qOtherCounted")||i.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(n,"qOtherTotalSpec.qOtherLimit")||i.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function w(e,t){return E()(!0,{},t,e)}function R(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var k=Math.pow(2,53)-1;function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const M=function(e,t,n){var r="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(n,"qInfo.qType");i.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},_=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},A=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},P=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},D=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},T=function(e){var t,n=e.exportFormat,r=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=n.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<r?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},O=function(e){var t,n=e.exportFormat,r=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=n.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<r?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},N=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,o=t.data[0],i=r.dimensions||{max:0},a=r.measures||{max:0},l=R(a.max,o.dimensions.length,k),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,k),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},q=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(n.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?i.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},n,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return L(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 L(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},B=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return I(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},H=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){i.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const G={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,n||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:s}),m({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),n&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),r||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=F({exportFormat:t,initialProperties:r,hypercubePath:u}),b=i.getValue(r,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?P():w,k=s.defaultMeasure,L=void 0===k?D():k;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),T({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),O({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:L}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),q({exportFormat:t,newHyperCubeDef:v}),_("qMaxStackedCells",b,v),_("qNoOfLeftDims",b,v),A("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),A("qMode",b,v,"S"),A("qReductionMode",b,v,"N"),A("qSortbyYValue",b,v),A("qIndentMode",b,v),A("qShowTotalsAbove",b,v),M(g,t,r),m.qProperty=g;var I=i.getValue(c||{},"support.modifiers");return H({measures:v.qMeasures,modifierTypes:I}),p&&W(m.qProperty,"storedFilters"),"S"===v.qMode&&h&&W(m.qProperty,"dynamicScript"),m}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,n,r){t=t||[];var o=c(e,r,n),i=c(t,r,n);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!V[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,o){n=n||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][n],l=t.length;if(U(a,t,r,o),Y(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},Q={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},J={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Z={scatterplot:J,"sn-scatter-plot":J,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(r,o);var s=r[r.length-1];if(s){var u=n?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,o?t.qDef=r.key:(t.qExpression=r.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:f,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p})}n?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,n,r){var o,i,a,l={};switch(e){case"dimension":n.qLibraryId?(l.type="dimension",l.name=n.qLibraryId,l.id=n.qLibraryId):(l.type="field",t?(l.name=n.label||n.qDef,l.id=n.qDef):(l.name=n.qDef.qFieldDefs[0],l.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(n,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),i&&(l.expression=i)):(l.type="expression",t?(l.name=n.label||n.qExpression,l.id=n.qExpression):(l.name=n.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var o=n?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(ne(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:n||l,key:n||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}r||(i.auto=!1,i.mode=a)}function le(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var o=oe("dimension",!1,n[r.activeDimensionIndex]);o.activeDimensionIndex=r.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=i.getValue(t,"visualization"),o=n.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===l}(n,e,t)?0:n.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Z[t]||Q).colorModeOptions||Q.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},de=function(e,t){var n,r=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(n={auto:o,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?le(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==l&&!o.length)}({auto:o,colorMode:r,dimensions:a,measures:l,properties:e})?function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qMeasures"),[]),r=i.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var o=oe("measure",!1,n[r.activeMeasureIndex],!0);o.activeMeasureIndex=r.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||r[0])),!!l}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=i.getValue(e,"color.mode"),r=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&o.length<2&&i.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=i.getValue(n,"qHyperCubeDef.qMeasures",[]),o=i.getValue(n,"color.mode","");return!t&&"byExpression"===o&&r.length>0},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n},be={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=G.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=G.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:b,properties:d})&&he(d):me(d),b&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(n,"unsupportedAutoMinMax")||E()(n.measureAxis,t.measureAxis):W(n,"supportedAutoMinMax")||E()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,o=n.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[o].type[r]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,n.properties.measureAxes[t[0].axis])):E()(l,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},Ee={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function we(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(n,r,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(n,r,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}var ke="qHyperCubeDef.qMeasures",Le="conditionalColoring",Ie="measures",Me="qDef.conditionalColoring";const _e={quarantine:function(e){we({properties:e,arrayPath:ke,quarantineName:Le,arrayName:Ie,itemPath:Me})},unquarantine:function(e){Re({properties:e,arrayPath:ke,itemPath:Me,arrayName:Ie,quarantineName:Le})}};var Ae="qHyperCubeDef.qMeasures",Pe="measures",De="qHyperCubeDef.qDimensions",Te="dimensions",Oe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",qe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",ze="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){we({properties:e,arrayPath:Ae,quarantineName:je,arrayName:Pe,itemPath:ze}),we({properties:e,arrayPath:De,quarantineName:je,arrayName:Te,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,quarantineName:je,arrayName:Pe,itemPath:ze}),Re({properties:e,arrayPath:De,quarantineName:je,arrayName:Te,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ne,itemPath:ze}),we({properties:e,arrayPath:qe,quarantineName:je,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:qe,quarantineName:je,arrayName:Fe,itemPath:ze})}},Be={hypercube:G,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:_e,conditionalShow:$e}})(),r.default})()}(o);var i=n(o.exports);const a="qHyperCubeDef.qDimensions",l="dimensions",s="qDef.representation",u="tableRepresentation",c=e=>{i.unquarantineArrayProp({properties:e,arrayPath:a,itemPath:s,arrayName:l,quarantineName:u})},d=e=>{i.quarantineArrayProp({properties:e,arrayPath:a,itemPath:s,arrayName:l,quarantineName:u})};var p=Object.prototype.hasOwnProperty,f=Object.prototype.toString,h=Object.defineProperty,m=Object.getOwnPropertyDescriptor,g=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===f.call(e)},b=function(e){if(!e||"[object Object]"!==f.call(e))return!1;var t,n=p.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&p.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||p.call(e,t)},v=function(e,t){h&&"__proto__"===t.name?h(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},y=function(e,t){if("__proto__"===t){if(!p.call(e,t))return;if(m)return m(e,t).value}return e[t]};function x(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function S(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function E(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=y(l,n),l!==(o=y(t,n))&&(c&&o&&(b(o)||(i=g(o)))?(i?(i=!1,a=r&&g(r)?r:[]):a=r&&b(r)?r:{},v(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&v(l,{name:n,newValue:o}));return l}));var C=1/.7,w="\\s*([+-]?\\d+)\\s*",R="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",k="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",L=/^#([0-9a-f]{3,8})$/,I=new RegExp(`^rgb\\(${w},${w},${w}\\)$`),M=new RegExp(`^rgb\\(${k},${k},${k}\\)$`),_=new RegExp(`^rgba\\(${w},${w},${w},${R}\\)$`),A=new RegExp(`^rgba\\(${k},${k},${k},${R}\\)$`),P=new RegExp(`^hsl\\(${R},${k},${k}\\)$`),D=new RegExp(`^hsla\\(${R},${k},${k},${R}\\)$`),T={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 O(){return this.rgb().formatHex()}function N(){return this.rgb().formatRgb()}function q(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=L.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?F(t):3===n?new B(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?z(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?z(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=I.exec(e))?new B(t[1],t[2],t[3],1):(t=M.exec(e))?new B(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=_.exec(e))?z(t[1],t[2],t[3],t[4]):(t=A.exec(e))?z(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=P.exec(e))?Y(t[1],t[2]/100,t[3]/100,1):(t=D.exec(e))?Y(t[1],t[2]/100,t[3]/100,t[4]):T.hasOwnProperty(e)?F(T[e]):"transparent"===e?new B(NaN,NaN,NaN,0):null}function F(e){return new B(e>>16&255,e>>8&255,255&e,1)}function z(e,t,n,r){return r<=0&&(e=t=n=NaN),new B(e,t,n,r)}function j(e){return e instanceof E||(e=q(e)),e?new B((e=e.rgb()).r,e.g,e.b,e.opacity):new B}function $(e,t,n,r){return 1===arguments.length?j(e):new B(e,t,n,null==r?1:r)}function B(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function H(){return`#${U(this.r)}${U(this.g)}${U(this.b)}`}function W(){const e=G(this.opacity);return`${1===e?"rgb(":"rgba("}${V(this.r)}, ${V(this.g)}, ${V(this.b)}${1===e?")":`, ${e})`}`}function G(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function V(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function U(e){return((e=V(e))<16?"0":"")+e.toString(16)}function Y(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new X(e,t,n,r)}function K(e){if(e instanceof X)return new X(e.h,e.s,e.l,e.opacity);if(e instanceof E||(e=q(e)),!e)return new X;if(e instanceof X)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new X(a,l,s,e.opacity)}function X(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Q(e){return(e=(e||0)%360)<0?e+360:e}function J(e){return Math.max(0,Math.min(1,e||0))}function Z(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}x(E,q,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:O,formatHex:O,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return K(this).formatHsl()},formatRgb:N,toString:N}),x(B,$,S(E,{brighter(e){return e=null==e?C:Math.pow(C,e),new B(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new B(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new B(V(this.r),V(this.g),V(this.b),G(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:H,formatHex:H,formatHex8:function(){return`#${U(this.r)}${U(this.g)}${U(this.b)}${U(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:W,toString:W})),x(X,(function(e,t,n,r){return 1===arguments.length?K(e):new X(e,t,n,null==r?1:r)}),S(E,{brighter(e){return e=null==e?C:Math.pow(C,e),new X(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new X(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new B(Z(e>=240?e-240:e+120,o,r),Z(e,o,r),Z(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new X(Q(this.h),J(this.s),J(this.l),G(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=G(this.opacity);return`${1===e?"hsl(":"hsla("}${Q(this.h)}, ${100*J(this.s)}%, ${100*J(this.l)}%${1===e?")":`, ${e})`}`}}));const ee=Math.PI/180,te=180/Math.PI,ne=4/29,re=6/29,oe=3*re*re;function ie(e){if(e instanceof ae)return new ae(e.l,e.a,e.b,e.opacity);if(e instanceof de)return pe(e);e instanceof B||(e=j(e));var t,n,r=ce(e.r),o=ce(e.g),i=ce(e.b),a=le((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=le((.4360747*r+.3850649*o+.1430804*i)/.96422),n=le((.0139322*r+.0971045*o+.7141733*i)/.82521)),new ae(116*a-16,500*(t-a),200*(a-n),e.opacity)}function ae(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function le(e){return e>.008856451679035631?Math.pow(e,1/3):e/oe+ne}function se(e){return e>re?e*e*e:oe*(e-ne)}function ue(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ce(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function de(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function pe(e){if(isNaN(e.h))return new ae(e.l,0,0,e.opacity);var t=e.h*ee;return new ae(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}x(ae,(function(e,t,n,r){return 1===arguments.length?ie(e):new ae(e,t,n,null==r?1:r)}),S(E,{brighter(e){return new ae(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ae(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new B(ue(3.1338561*(t=.96422*se(t))-1.6168667*(e=1*se(e))-.4906146*(n=.82521*se(n))),ue(-.9787684*t+1.9161415*e+.033454*n),ue(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),x(de,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof de)return new de(e.h,e.c,e.l,e.opacity);if(e instanceof ae||(e=ie(e)),0===e.a&&0===e.b)return new de(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*te;return new de(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new de(e,t,n,null==r?1:r)}),S(E,{brighter(e){return new de(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new de(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return pe(this).rgb()}}));var fe=e=>()=>e;function he(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):fe(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?he:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):fe(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=$(e)).r,(t=$(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=he(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var me="center",ge="bottom";[{key:"NoDataExist",alignment:me,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:me,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:me,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:me},{key:"DataRangeIncludingZero",alignment:ge},{key:"LimitedData",alignment:ge},{key:"NegativeOrZeroValues",alignment:ge}].reduce((function(e,t){return e[t.key]=t,e}),{});var be,ve=["__proto__","constructor"];function ye(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!ve.some((function(e){return r.includes(e)}))){for(var i=e,a=0;a<r.length-1;++a){var l=r[a];void 0===i[l]&&(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}}}function xe(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(r,i)}),n)}}function Se(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Ee(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=we)):void 0===t&&(t=Ce);for(var n,r,o,i,a,l=new Le(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new Le(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(ke)}function Ce(e){return e.children}function we(e){return Array.isArray(e)?e[1]:null}function Re(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function ke(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Le(e){this.data=e,this.depth=this.height=0,this.parent=null}function Ie(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,n,r){const o=r&&"rows"===r.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")}}]}}Le.prototype=Ee.prototype={constructor:Le,count:function(){return this.eachAfter(Se)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Ee(this).eachBefore(Re)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},be=function(e){
7
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@nebula.js/stardust")):"function"==typeof define&&define.amd?define(["@nebula.js/stardust"],t):(e="undefined"!=typeof globalThis?globalThis:e||self)["sn-pivot-table"]=t(e.stardust)}(this,(function(e){"use strict";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var o={exports:{}};!function(e){self,e.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{r.r(o),r.d(o,{default:()=>Ae});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function v(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function b(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(v("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(v("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=b(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=m(0),h=m(1),g=b(d,f),v=b(p,h);return"".concat(a,"({1<").concat(g,",").concat(v,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),k={},L=Array.isArray;function I(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function M(e){return void 0===e}function _(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function A(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=M(e[n||t])?i:e[t],e=e[n||t]}})),e}function P(e,t){var n=!0;if(I(e)&&I(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){P(e[r],t[r])||(n=!1)})),n);if(L(e)&&L(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!P(e[r],t[r]))return!1;return!0}return e===t}k.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);P(i,a)||_(t,o)||(M(a)?r.push({op:"add",path:l,value:i}):I(i)&&I(a)?r=r.concat(k.generate(a,i,l)):L(i)&&L(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&M(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(P(t,o))return r;if(!M(t[0])&&M(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(k.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){M(t[o])&&!_(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},k.apply=function(e,t){t.forEach((function(t){var n,r,o=A(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(L(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(L(a)&&L(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(I(a)&&I(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!_(n,e)&&delete n[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=A(e,t.from);L(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(L(o)?o.splice(+i,1):delete o[i])}))},k.clone=function(e){return R({},e)},k.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},k.updateObject=function(e,t){Object.keys(e).length?k.apply(e,k.generate(e,t)):R(e,t)};const D=k,T=function(e,n,r){if(!e)return Promise.resolve();var o=D.generate(n,r);return t()(!0,n,r),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var O="accumulation";function N(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===O)return n[r]}function q(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===O)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(q(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(q(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(q(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(q(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=N(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=N(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(O))return!1;var i=N(t,e);return i&&!i.disabled}};return n}};var j="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function W(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var G={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const B={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),m=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var v=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var b=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(v,b,y);v=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return v},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,G)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(W(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(W(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(W(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(W(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(W(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(W(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var H="timeSeriesDecomposition";function V(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===H)return n[r]}function U(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===H)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=V(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var n=V(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(H))return!1;var i=V(t,e);return i&&!i.disabled}};return n}};var X="difference";function Q(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function J(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Z={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Z).forEach((function(t){void 0===e[t]&&(e[t]=Z[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(J(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(J(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(J(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=Q(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t){if(1===e){var n=oe(t,0);t.splice(n,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var n=oe(t,0);t.splice(n,1)}return t}(o,i),i=function(e,t){if(0===e){var n=oe(t,1);t.splice(n,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ve="qDef.qDef",be="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",ke="qDef.base.qAggrFunc",Le={initBase:function(e,t){(t||Le.isValid(e))&&(n(e,be,i(e,ve)),n(e,xe,i(e,ye)),n(e,Ce,i(e,Se)),n(e,we,i(e,Ee)))},restoreBase:function(e){Le.isValid(e)&&(n(e,ve,i(e,be)),n(e,ye,i(e,xe)),n(e,Se,i(e,Ce)),n(e,Ee,i(e,we)),i(e,Re)&&i(e,ke)&&n(e,Re,i(e,ke)),delete e.qDef.base)},isValid:function(e){var t=i(e,be),n=i(e,xe);return void 0!==t||void 0!==n}};const Ie=Le;function Me(e){return Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(e)}var _e={accumulation:z,movingAverage:B,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Ae={modifiers:_e,apply:De,applyModifiers:Te,cleanUpMeasure:Oe,destroy:function(e){e&&Pe[e.id]&&Pe[e.id].masterItemSubscriber&&(Pe[e.id].masterItemSubscriber&&Pe[e.id].masterItemSubscriber.unsubscribe(),delete Pe[e.id])},hasActiveModifiers:Ne,getActiveModifier:qe,initBase:Ie.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return _e[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return _e[e]&&_e[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Ue({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Je({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Fe};var Pe={};function De(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Pe[n.id]=Pe[n.id]||{isFirstTime:!0};var u=Pe[n.id].isFirstTime;if(Pe[n.id].isFirstTime=!1,r&&"object"===Me(r))return Te({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Pe[n.id].lastReloadTime;if(Pe[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return m||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ue({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);We(r);var o=Ze(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return m&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(n++,"object"!==Me(_e[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=_e[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Be(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Te({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Me(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Ze(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return ze(r).forEach((function(e){return Oe(e)})),Qe({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function Te(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?t()(!0,{},o):o),We(o);var p=Ze(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=ze(r)),!n.length)return Promise.resolve();if(!Ne({measures:n,properties:r}))return n.forEach((function(e){return Oe(e)})),Promise.resolve();var s=a?void 0:Ze(r);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ue({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Ie.isValid(n)||Ie.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(l++,"object"!==Me(_e[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");_e[e.type].initModifier(e,n);var s=n.qLibraryId||c&&c.qLibraryId;s?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:_e[r.type].generateExpression({expression:l,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:s,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof _e[r.type].updateModifier&&_e[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:_e[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),Ge(n)):Oe(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Qe({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function Oe(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Me(e)&&!e.disabled&&!_e[e.type]}))}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ge(e)}function Ne(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:je(e),properties:n,layout:r})}))}function qe(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(_e[r.type]&&!r.disabled)return r}}function Fe(e){var t=qe(e);return!t||_e[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function We(e){ze(e).forEach((function(e){return function(e){var n=qe(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function Ge(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Me(t)&&(t.disabled||!_e[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Be(e){return e.base||e.qDef&&e.qDef.base}function He(e){var t=Be(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,n=e.properties,r=e.layout;return!He(t)&&Ue({modifiers:je(t),properties:n,layout:r})}function Ue(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Me(e)||e.disabled||!_e[e.type])&&(void 0===o[e.type]&&(o[e.type]=_e[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Qe(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):T(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Je(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Me(e)&&!e.disabled&&_e[e.type]&&_e[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Ze(e){var t=ze(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ue({modifiers:r,properties:e})){var i=He(t);i&&n.push(i),o=o||Je({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Pe[t.id].masterItemSubscriber=Pe[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return De({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Pe[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),o=Math.floor(n/62);return o>0?t(o)+r:r}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(r,{default:()=>We});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var l=r[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c};var p=n(645),f=n.n(p);const m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var l,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,s(r.qMeasures));var a,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},v=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},b=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!i.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(r=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(r)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=a}var S=n(229),E=n.n(S);function C(e,t){var n=E()(!0,{},t,e);return i.getValue(n,"qOtherTotalSpec.qOtherCounted")||i.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(n,"qOtherTotalSpec.qOtherLimit")||i.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function w(e,t){return E()(!0,{},t,e)}function R(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var k=Math.pow(2,53)-1;function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const M=function(e,t,n){var r="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(n,"qInfo.qType");i.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},_=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},A=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},P=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},D=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},T=function(e){var t,n=e.exportFormat,r=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=n.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<r?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},O=function(e){var t,n=e.exportFormat,r=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=n.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<r?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},N=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,o=t.data[0],i=r.dimensions||{max:0},a=r.measures||{max:0},l=R(a.max,o.dimensions.length,k),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,k),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},q=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(n.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?i.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},n,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return L(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 L(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},W=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return I(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},G=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function B(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){i.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const H={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,n||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,v({exportFormat:o,properties:a}),n&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),b({exportFormat:o,properties:a}),r||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:r,hypercubePath:u}),v=i.getValue(r,u||"").qHyperCubeDef,b=i.getValue(g,u||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?P():w,k=s.defaultMeasure,L=void 0===k?D():k;b.qDimensions.length=0,b.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:b}),T({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:b,defaultDimension:R}),O({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:b,defaultMeasure:L}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),W({newProperties:g,dataDefinition:a,hypercubePath:u}),q({exportFormat:t,newHyperCubeDef:b}),_("qMaxStackedCells",v,b),_("qNoOfLeftDims",v,b),A("qInitialDataFetch",v,b,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),A("qMode",v,b,"S"),A("qReductionMode",v,b,"N"),A("qSortbyYValue",v,b),A("qIndentMode",v,b),A("qShowTotalsAbove",v,b),M(g,t,r),h.qProperty=g;var I=i.getValue(c||{},"support.modifiers");return G({measures:b.qMeasures,modifierTypes:I}),p&&B(h.qProperty,"storedFilters"),"S"===b.qMode&&m&&B(h.qProperty,"dynamicScript"),h}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,n,r){t=t||[];var o=c(e,r,n),i=c(t,r,n);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!V[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,o){n=n||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][n],l=t.length;if(U(a,t,r,o),Y(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},Q={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},J={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Z={scatterplot:J,"sn-scatter-plot":J,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(r,o);var s=r[r.length-1];if(s){var u=n?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,o?t.qDef=r.key:(t.qExpression=r.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:f,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p})}n?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,n,r){var o,i,a,l={};switch(e){case"dimension":n.qLibraryId?(l.type="dimension",l.name=n.qLibraryId,l.id=n.qLibraryId):(l.type="field",t?(l.name=n.label||n.qDef,l.id=n.qDef):(l.name=n.qDef.qFieldDefs[0],l.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(n,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),i&&(l.expression=i)):(l.type="expression",t?(l.name=n.label||n.qExpression,l.id=n.qExpression):(l.name=n.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var o=n?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(ne(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:n||l,key:n||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}r||(i.auto=!1,i.mode=a)}function le(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var o=oe("dimension",!1,n[r.activeDimensionIndex]);o.activeDimensionIndex=r.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=i.getValue(t,"visualization"),o=n.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===l}(n,e,t)?0:n.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Z[t]||Q).colorModeOptions||Q.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},de=function(e,t){var n,r=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(n={auto:o,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?le(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==l&&!o.length)}({auto:o,colorMode:r,dimensions:a,measures:l,properties:e})?function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qMeasures"),[]),r=i.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var o=oe("measure",!1,n[r.activeMeasureIndex],!0);o.activeMeasureIndex=r.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||r[0])),!!l}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=i.getValue(e,"color.mode"),r=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&o.length<2&&i.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=i.getValue(n,"qHyperCubeDef.qMeasures",[]),o=i.getValue(n,"color.mode","");return!t&&"byExpression"===o&&r.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n},ve={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=H.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=H.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),v=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:v,properties:d})&&me(d):he(d),v&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var be=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?B(n,"unsupportedAutoMinMax")||E()(n.measureAxis,t.measureAxis):B(n,"supportedAutoMinMax")||E()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,o=n.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),be.includes(r)&&t[o].type[r]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,n.properties.measureAxes[t[0].axis])):E()(l,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},Ee={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=ve.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=ve.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function we(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(n,r,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(n,r,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}var ke="qHyperCubeDef.qMeasures",Le="conditionalColoring",Ie="measures",Me="qDef.conditionalColoring";const _e={quarantine:function(e){we({properties:e,arrayPath:ke,quarantineName:Le,arrayName:Ie,itemPath:Me})},unquarantine:function(e){Re({properties:e,arrayPath:ke,itemPath:Me,arrayName:Ie,quarantineName:Le})}};var Ae="qHyperCubeDef.qMeasures",Pe="measures",De="qHyperCubeDef.qDimensions",Te="dimensions",Oe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",qe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",ze="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){we({properties:e,arrayPath:Ae,quarantineName:je,arrayName:Pe,itemPath:ze}),we({properties:e,arrayPath:De,quarantineName:je,arrayName:Te,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,quarantineName:je,arrayName:Pe,itemPath:ze}),Re({properties:e,arrayPath:De,quarantineName:je,arrayName:Te,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ne,itemPath:ze}),we({properties:e,arrayPath:qe,quarantineName:je,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:qe,quarantineName:je,arrayName:Fe,itemPath:ze})}},We={hypercube:H,colorChart:ve,axisChart:Ee,quarantineProperty:x,unquarantineProperty:B,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:_e,conditionalShow:$e}})(),r.default})()}(o);var i=n(o.exports);const a="qHyperCubeDef.qDimensions",l="dimensions",s="qDef.representation",u="tableRepresentation";var c,d;var p=function(){if(d)return c;d=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=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},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return c=function e(){var t,n,r,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(n in t)r=l(d,n),d!==(s=l(t,n))&&(m&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&i(r)?r:{},a(d,{name:n,newValue:e(m,c,s)})):void 0!==s&&a(d,{name:n,newValue:s}));return d},c}();function f(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function m(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function h(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(p);var g=1/.7,v="\\s*([+-]?\\d+)\\s*",b="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",y="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",x=/^#([0-9a-f]{3,8})$/,S=new RegExp(`^rgb\\(${v},${v},${v}\\)$`),E=new RegExp(`^rgb\\(${y},${y},${y}\\)$`),C=new RegExp(`^rgba\\(${v},${v},${v},${b}\\)$`),w=new RegExp(`^rgba\\(${y},${y},${y},${b}\\)$`),R=new RegExp(`^hsl\\(${b},${y},${y}\\)$`),k=new RegExp(`^hsla\\(${b},${y},${y},${b}\\)$`),L={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 I(){return this.rgb().formatHex()}function M(){return this.rgb().formatRgb()}function _(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=x.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?A(t):3===n?new O(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?P(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?P(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=S.exec(e))?new O(t[1],t[2],t[3],1):(t=E.exec(e))?new O(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=C.exec(e))?P(t[1],t[2],t[3],t[4]):(t=w.exec(e))?P(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=R.exec(e))?$(t[1],t[2]/100,t[3]/100,1):(t=k.exec(e))?$(t[1],t[2]/100,t[3]/100,t[4]):L.hasOwnProperty(e)?A(L[e]):"transparent"===e?new O(NaN,NaN,NaN,0):null}function A(e){return new O(e>>16&255,e>>8&255,255&e,1)}function P(e,t,n,r){return r<=0&&(e=t=n=NaN),new O(e,t,n,r)}function D(e){return e instanceof h||(e=_(e)),e?new O((e=e.rgb()).r,e.g,e.b,e.opacity):new O}function T(e,t,n,r){return 1===arguments.length?D(e):new O(e,t,n,null==r?1:r)}function O(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function N(){return`#${j(this.r)}${j(this.g)}${j(this.b)}`}function q(){const e=F(this.opacity);return`${1===e?"rgb(":"rgba("}${z(this.r)}, ${z(this.g)}, ${z(this.b)}${1===e?")":`, ${e})`}`}function F(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function z(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function j(e){return((e=z(e))<16?"0":"")+e.toString(16)}function $(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new G(e,t,n,r)}function W(e){if(e instanceof G)return new G(e.h,e.s,e.l,e.opacity);if(e instanceof h||(e=_(e)),!e)return new G;if(e instanceof G)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new G(a,l,s,e.opacity)}function G(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function B(e){return(e=(e||0)%360)<0?e+360:e}function H(e){return Math.max(0,Math.min(1,e||0))}function V(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}f(h,_,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:I,formatHex:I,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return W(this).formatHsl()},formatRgb:M,toString:M}),f(O,T,m(h,{brighter(e){return e=null==e?g:Math.pow(g,e),new O(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new O(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new O(z(this.r),z(this.g),z(this.b),F(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:N,formatHex:N,formatHex8:function(){return`#${j(this.r)}${j(this.g)}${j(this.b)}${j(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:q,toString:q})),f(G,(function(e,t,n,r){return 1===arguments.length?W(e):new G(e,t,n,null==r?1:r)}),m(h,{brighter(e){return e=null==e?g:Math.pow(g,e),new G(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new G(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new O(V(e>=240?e-240:e+120,o,r),V(e,o,r),V(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new G(B(this.h),H(this.s),H(this.l),F(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=F(this.opacity);return`${1===e?"hsl(":"hsla("}${B(this.h)}, ${100*H(this.s)}%, ${100*H(this.l)}%${1===e?")":`, ${e})`}`}}));const U=Math.PI/180,Y=180/Math.PI,K=4/29,X=6/29,Q=3*X*X;function J(e){if(e instanceof Z)return new Z(e.l,e.a,e.b,e.opacity);if(e instanceof oe)return ie(e);e instanceof O||(e=D(e));var t,n,r=re(e.r),o=re(e.g),i=re(e.b),a=ee((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=ee((.4360747*r+.3850649*o+.1430804*i)/.96422),n=ee((.0139322*r+.0971045*o+.7141733*i)/.82521)),new Z(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Z(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function ee(e){return e>.008856451679035631?Math.pow(e,1/3):e/Q+K}function te(e){return e>X?e*e*e:Q*(e-K)}function ne(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function re(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function oe(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function ie(e){if(isNaN(e.h))return new Z(e.l,0,0,e.opacity);var t=e.h*U;return new Z(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}f(Z,(function(e,t,n,r){return 1===arguments.length?J(e):new Z(e,t,n,null==r?1:r)}),m(h,{brighter(e){return new Z(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Z(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new O(ne(3.1338561*(t=.96422*te(t))-1.6168667*(e=1*te(e))-.4906146*(n=.82521*te(n))),ne(-.9787684*t+1.9161415*e+.033454*n),ne(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),f(oe,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof oe)return new oe(e.h,e.c,e.l,e.opacity);if(e instanceof Z||(e=J(e)),0===e.a&&0===e.b)return new oe(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Y;return new oe(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new oe(e,t,n,null==r?1:r)}),m(h,{brighter(e){return new oe(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new oe(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ie(this).rgb()}}));var ae=e=>()=>e;function le(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):ae(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?le:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):ae(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=T(e)).r,(t=T(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=le(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var se="center",ue="bottom";[{key:"NoDataExist",alignment:se,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:se,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:se,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:se},{key:"DataRangeIncludingZero",alignment:ue},{key:"LimitedData",alignment:ue},{key:"NegativeOrZeroValues",alignment:ue}].reduce((function(e,t){return e[t.key]=t,e}),{});var ce,de=["__proto__","constructor"];function pe(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!de.some((function(e){return r.includes(e)}))){for(var i=e,a=0;a<r.length-1;++a){var l=r[a];void 0===i[l]&&(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}}}function fe(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(r,i)}),n)}}function me(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function he(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=ve)):void 0===t&&(t=ge);for(var n,r,o,i,a,l=new xe(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new xe(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(ye)}function ge(e){return e.children}function ve(e){return Array.isArray(e)?e[1]:null}function be(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function ye(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function xe(e){this.data=e,this.depth=this.height=0,this.parent=null}function Se(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,n,r){const o=r&&"rows"===r.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")}}]}}xe.prototype=he.prototype={constructor:xe,count:function(){return this.eachAfter(me)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return he(this).eachBefore(be)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},ce=function(e){
8
8
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
9
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},be({exports:{}});const Me="qHyperCubeDef.qDimensions",_e="dimensions",Ae="qOtherTotalSpec.qTotalMode",Pe="totalMode",De={quarantine(e){i.quarantineArrayProp({properties:e,arrayPath:Me,quarantineName:Pe,arrayName:_e,itemPath:Ae})},unquarantine(e){i.unquarantineArrayProp({properties:e,arrayPath:Me,quarantineName:Pe,arrayName:_e,itemPath:Ae})}};function Te(e){const t=Ie(e);return(e,n,r,o)=>{var a,l,s,u,d,p;const f=i.hypercube.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t.targets[0],hypercubePath:o}),h=((null===(a=f.qProperty)||void 0===a||null===(a=a.qHyperCubeDef)||void 0===a?void 0:a.qDimensions)||[]).length,m=(null===(l=f.qProperty)||void 0===l||null===(l=l.qHyperCubeDef)||void 0===l||null===(l=l.qMeasures)||void 0===l?void 0:l.length)||0;let g,b=(null===(s=f.qProperty)||void 0===s||null===(s=s.qHyperCubeDef)||void 0===s?void 0:s.qInterColumnSortOrder)||[],v=!0;h+m===b.length&&ye(f,"qProperty.qLayoutExclude.quarantine.interColSortOrder",b.concat());const y=(null==f||null===(u=f.qProperty)||void 0===u||null===(u=u.qLayoutExclude)||void 0===u||null===(u=u.quarantine)||void 0===u?void 0:u.pivotInterColSortOrder)||void 0;y?(b=y,g=[...y],ye(f,"qProperty.qHyperCubeDef.qInterColumnSortOrder",b),delete f.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):b.length=0;const x=+(b.indexOf(-1)>-1),S=h+x;if(S>b.length)for(let e=b.length;e<S;e++)b.indexOf(e)<0&&b.push(e-x);for(let e=b.length-1;e>=0;e--)b[e]>=h&&b.splice(e,1);m>1&&b.indexOf(-1)<0?b.push(-1):m<2&&b.indexOf(-1)>-1&&b.splice(b.indexOf(-1),1);const E=null!==(d=null==f||null===(p=f.qProperty)||void 0===p||null===(p=p.qHyperCubeDef)||void 0===p?void 0:p.qNoOfLeftDims)&&void 0!==d?d:-1;if(h>0&&-1===E&&ye(f,"qProperty.qHyperCubeDef.qNoOfLeftDims",h),g&&b&&g.length===b.length){for(let e=0;e<g.length;e++)if(g[e]!==b[e]){v=!1;break}v&&i.unquarantineProperty(f.qProperty,"noOfLeftDims")}return i.conditionalShow.unquarantine(f.qProperty),De.unquarantine(f.qProperty),c(f.qProperty),i.unquarantineProperty(f.qProperty,"pivotTableIndentMode"),f}}function Oe(e,t){var n,r,o;const a=null!==(n=null==e||null===(r=e.qProperty)||void 0===r||null===(r=r.qHyperCubeDef)||void 0===r?void 0:r.qInterColumnSortOrder)&&void 0!==n?n:[],l=a.slice(),s=a.indexOf(-1);s>-1&&a.splice(s,1);const u=i.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),c=u.properties.qHyperCubeDef,p=c.qDimensions.length,f=c.qMeasures.length;let h=c.qInterColumnSortOrder;ye(u,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",l),i.quarantineProperty(u.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete u.properties.qHyperCubeDef.qNoOfLeftDims;const m=null==u||null===(o=u.properties)||void 0===o||null===(o=o.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.interColSortOrder;m&&(h=m,ye(u,"properties.qHyperCubeDef.qInterColumnSortOrder",h),ye(u,"data.0.interColumnSortOrder",h),delete u.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=h.length;e<p+f;e++)h.length<=e&&h.push(e);return i.quarantineProperty(u.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),i.conditionalShow.quarantine(u.properties),De.quarantine(u.properties),d(u.properties),u}const Ne={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}};let qe=function(e){return e.Text="text",e.Link="link",e.Image="image",e.Indicator="indicator",e}({}),Fe=function(e){return e.Attribute="attribute",e.Dimension="dimension",e.Measure="measure",e}({});const ze=e=>{switch(null==e?void 0:e.type){case"url":return qe.Link;case"image":return qe.Image;case"indicator":return qe.Indicator;default:return qe.Text}},je=(e,t)=>!e.properties.qHyperCubeDef.qIndentMode||!t,$e=(e,t,n)=>{if(e||t)return{uses:"dimensionRepresentationItems.representationType",show:(e,t,r)=>je(r,n),options(){const n=[{value:"text",translation:"Object.Table.Representation.Text"}];return t&&n.push({value:"url",translation:"Object.Table.Representation.Link"}),e&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),n}}},Be=(e,t)=>{if(e)return{representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:(e,n,r)=>ze(e.qDef.representation)===qe.Link&&je(r,t)},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:(e,n,r)=>{var o;return ze(e.qDef.representation)===qe.Link&&(null===(o=e.qDef.representation)||void 0===o?void 0:o.urlPosition)===Fe.Dimension&&je(r,t)}},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:(e,n,r)=>{var o;return ze(e.qDef.representation)===qe.Link&&(null===(o=e.qDef.representation)||void 0===o?void 0:o.urlPosition)===Fe.Attribute&&je(r,t)}}}},He=(e,t)=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:(e,n,r)=>ze(e.qDef.representation)===qe.Image&&je(r,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"}]}}}}},We=e=>{var t,n;const{anything:r,flags:o}=e,i=o.isEnabled("CLIENT_IM_5975_INDENT_MODE"),a=o.isEnabled("CLIENT_IM_5715_LINKS"),l=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=r&&null!==(t=r.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages"));return{representationType:$e(l,a,i),...Be(a,i),...He(l,i)}},Ge=e=>{var t,n;const{flags:r,anything:o}=e,i=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=o&&null!==(t=o.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages")),a=r.isEnabled("CLIENT_IM_5975_INDENT_MODE"),l=r.isEnabled("CLIENT_IM_6696_INDICATORS"),s=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"image",translation:"Object.Table.Representation.Image"}],u=[{value:"indicator",translation:"Object.Table.Representation.Indicator"}];return{representationType:{uses:"measureRepresentationItems.representationType",show:(e,t,n)=>je(n,a),options:i&&l?[...s,...u]:i?s:l?u:void 0},representationImage:i?{uses:"measureRepresentationItems.representationImage",show:(e,t,n)=>ze(e.qDef.representation)===qe.Image&&je(n,a),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:l?{uses:"measureRepresentationItems.representationIndicator"}:void 0}};var Ve,Ue,Ye,Ke;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(Ve||(Ve={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(Ue||(Ue={})),function(e){e.LEFT_GRID="leftGrid",e.DATA_GRID="dataGrid",e.CONTAINER_GRID="containerGrid"}(Ye||(Ye={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(Ke||(Ke={}));const Xe="12px",Qe="nebula-table-utils-head-menu-button",Je="sn-copy-cell";let Ze=function(e){return e.ENTER="Enter",e.SPACE=" ",e.ESC="Escape",e.TAB="Tab",e.SHIFT="Shift",e.LEFT="ArrowLeft",e.RIGHT="ArrowRight",e.UP="ArrowUp",e.DOWN="ArrowDown",e.C="c",e}({});const et="nebula-table-utils-column-adjuster";let tt=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),nt=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const rt={darker:.15,brighter:.3,opacity:.03},ot={darker:.3,brighter:.5,opacity:.05};var it,at;!function(e){e.NX_DIM_CELL_VALUE="V",e.NX_DIM_CELL_EMPTY="E",e.NX_DIM_CELL_NORMAL="N",e.NX_DIM_CELL_TOTAL="T",e.NX_DIM_CELL_OTHER="O",e.NX_DIM_CELL_AGGR="A",e.NX_DIM_CELL_PSEUDO="P",e.NX_DIM_CELL_ROOT="R",e.NX_DIM_CELL_NULL="U",e.NX_DIM_CELL_GENERATED="G"}(it||(it={})),function(e){e.NX_CELL_DATA="D",e.NX_CELL_TOP="T",e.NX_CELL_LEFT="L"}(at||(at={}));var lt=it;const st="image",ut=(e,t,n)=>{if(!n.properties.qHyperCubeDef.qIndentMode)return!0;const r=n.properties.qHyperCubeDef.qInterColumnSortOrder.indexOf(-1);let o=n.properties.qHyperCubeDef.qNoOfLeftDims;r>-1&&r<o&&(o-=1);const i=n.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===i||i>=o},ct=()=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:nt.Auto,translation:"Common.Auto"},{value:nt.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:nt.Pixels,translation:"Object.Table.Column.Pixels"},{value:nt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:nt.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:tt.PixelsDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===nt.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(tt.PixelsMin,Math.min(tt.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:tt.PercentageDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===nt.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(tt.PercentageMin,Math.min(tt.PercentageMax,e.qDef.columnWidth.percentage)))}}}),dt=({key:e,translation:t,env:n})=>{var r,o;if(!n.flags.isEnabled("CLIENT_IM_5863_PVT_TEXT_ALIGN"))return;const i=n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(r=n.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"tableImages"));return{[`${e}Auto`]:{ref:`qDef.${e}.auto`,type:"boolean",component:"switch",translation:t,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0,show:t=>{var n;if(!i||"labelTextAlign"===e)return!0;return(null==t||null===(n=t.qDef)||void 0===n||null===(n=n.representation)||void 0===n?void 0:n.type)!==st}},[e]:{ref:`qDef.${e}.align`,type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:t=>{var n,r;return!(void 0===t.qDef[e]||null!==(n=t.qDef[e])&&void 0!==n&&n.auto)&&(!i||"labelTextAlign"===e||(null===(r=t.qDef)||void 0===r||null===(r=r.representation)||void 0===r?void 0:r.type)!==st)}}}},pt="TOTAL_OFF",ft={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Ue.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Ue.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ue.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ue.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ue.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ue.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},ht="TOTAL_OFF",mt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Ue.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Ue.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ue.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ue.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ue.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ue.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},gt=e=>{var t,n;const{translator:r,anything:o,flags:i}=e,a=(e=>{var t,n;const{translator:r,anything:o,flags:i}=e;return{type:"items",component:"data-assets-panel-pivot",translation:"Common.Data",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:pt,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:pt,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&ut},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!=o&&null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==pt&&ut(e,0,n)}},dimensionLimits:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}:void 0}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:ft,...dt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...dt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...We(e),...ct()}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:i.isEnabled("CLIENT_IM_5851_MEASURE_FORMATTING")?{uses:"measures.items.numberFormatting"}:void 0}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:ft,...dt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...dt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Ge(e),...ct()}}}}}}})(e);return i.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?a:{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Properties.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:ht,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:ht,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&ut},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!=o&&null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==ht&&ut(e,0,n)}},dimensionLimits:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}:void 0,visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:mt,...dt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...dt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...We(e),...ct()}},measures:{type:"array",component:"measures",translation:"Common.Measures",ref:"qHyperCubeDef.qMeasures",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.measures.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:i.isEnabled("CLIENT_IM_5851_MEASURE_FORMATTING")?{uses:"measures.items.numberFormatting"}:void 0,visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:mt,...dt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...dt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Ge(e),...ct()}}}}},bt=(e,t,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:!1,defaultValue(e,t,r){const o=r.theme.current(),i=n(o);return{color:"transparent"===i?"none":i}}});function vt(e){return"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function yt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length&&vt(t[0]))return(t[0].r<<16)+(t[0].g<<8)+t[0].b;var r=0,o=0,i=0;if(1===t.length&&"string"==typeof t[0]){var a,l=t[0];(a=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(l))?(r=parseInt(a[1],10),o=parseInt(a[2],10),i=parseInt(a[3],10)):(a=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(l))?(r=parseInt(a[1],16),o=parseInt(a[2],16),i=parseInt(a[3],16)):(a=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(l))&&(r=parseInt(a[1]+a[1],16),o=parseInt(a[2]+a[2],16),i=parseInt(a[3]+a[3],16))}return(r<<16)+(o<<8)+i}function xt(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function St(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?St(Object(n),!0).forEach((function(t){xt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):St(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ct={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:255,g:255,b:255,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}},wt="qcm-color";function Rt(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o,i,a,l,s,u,c,d,p,f={type:wt,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},h=0,m=0,g=0,b=1;if((null===(e=n[0])||void 0===e?void 0:e.type)===wt){var v=n[0];h=v.r,m=v.g,g=v.b,b=v.a,f.invalid=n[0].invalid,f.spaces=Et({},n[0].spaces)}else if(n.length<3)if("string"==typeof n[0]){var y,x=n[0];if(y=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))h=parseInt(y[1],10),m=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))h=parseInt(y[1],10),m=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,h=parseInt(y[2],10),m=parseInt(y[3],10),g=parseInt(y[4],10);else if(y=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(x))h=parseInt(y[1],16),m=parseInt(y[2],16),g=parseInt(y[3],16),b=1;else if(y=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(x))h=parseInt(y[1]+y[1],16),m=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,h=S[0]+p,m=S[1]+p,g=S[2]+p,h=Math.round(255*h),m=Math.round(255*m),g=Math.round(255*g),b=1}else if(y=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/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,h=E[0]+p,m=E[1]+p,g=E[2]+p,h=Math.round(255*h),m=Math.round(255*m),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,h=C[0]+p,m=C[1]+p,g=C[2]+p,h=Math.round(255*h),m=Math.round(255*m),g=Math.round(255*g),b=1}else if(Ct[x.toLowerCase()]){a=x.toLowerCase();var w=Ct[a];h=w.r,m=w.g,g=w.b,b="number"==typeof Ct[a].a?Ct[a].a:1}else f.invalid=!0}else"number"==typeof n[0]&&n[0]>=0&&"argb"===n[1]?(b=(4278190080&n[0])>>>24,b/=255,h=(16711680&n[0])>>16,m=(65280&n[0])>>8,g=255&n[0]):"number"==typeof n[0]&&n[0]>=0?(h=(16711680&n[0])>>16,m=(65280&n[0])>>8,g=255&n[0]):f.invalid=!0;else n.length>=3?(h=n[0],m=n[1],g=n[2],b=arguments.length>=4?n[3]:1):f.invalid=!0;return Number.isNaN(+h+m+g+b)&&(f.invalid=!0),f.r=Math.floor(h),f.g=Math.floor(m),f.b=Math.floor(g),f.a=b,f.l=l,f}function kt(e){var t,n,r=0,o="string"==typeof e?Rt(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,r=0;else{switch(t=0==(n=s-u)?0:n/c,s){case i:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-i)/n+2;break;case l:r=(i-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}}var Lt=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function It(e){return.2126*Lt(e.r)+.7152*Lt(e.g)+.0722*Lt(e.g)}function Mt(){var e=Rt.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},n=function(){return t.spaces.hsla||(t.spaces.hsla=function(e){var t,n,r=0,o="string"==typeof e?Rt(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,r=0;else{switch(n=u-c,t=d>.5?n/(2-u-c):n/(u+c),u){case i:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-i)/n+2;break;case l:r=(i-a)/n+4}r/=6}return"hsla(".concat(360*r,",").concat(100*t,",").concat(100*d,",").concat(s,")")}(t)),t.spaces.hsla},r=function(e){var t=n(),r=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),o=parseFloat(r[1]),i=parseFloat(r[3]),a=parseFloat(r[7]),l=parseFloat(r[5]);return l+=e,l=Math.max(0,Math.min(l,100)),"hsla(".concat(o,",").concat(i,",").concat(l,",").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 n=e.type===t.type?e:Rt(e);return n.r===t.r&&n.g===t.g&&n.b===t.b&&n.a===t.a},isDark:function(){return function(){var e=Rt.apply(void 0,arguments);return e.invalid||It(e)<.5}(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=function(e){if(vt(e))return"rgb(".concat([e.r,e.g,e.b].join(","),")");var t="string"==typeof e?yt(e):e,n=(65280&t)>>8,r=255&t;return"rgb(".concat((16711680&t)>>16,",").concat(n,",").concat(r,")")}(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=function(e,t){if(vt(e))return"rgba(".concat([e.r,e.g,e.b,void 0!==t?t:e.a].join(","),")");var n="string"==typeof e?yt(e):e,r=(65280&n)>>8,o=255&n;return"rgba(".concat((16711680&n)>>16,",").concat(r,",").concat(o,",").concat(void 0!==t?t:e.a,")")}(t)),t.spaces.rgba},getHex:function(){return t.spaces.hex||(t.spaces.hex=function(e){var t,n,r;if(vt(e))return t=e.r.toString(16),n=e.g.toString(16),r=e.b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""));var o="string"==typeof e?yt(e):e;return t=((16711680&o)>>16).toString(16),n=((65280&o)>>8).toString(16),r=(255&o).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r)}(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=function(e){var t,n,r=0,o="string"==typeof e?Rt(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,r=0;else{switch(n=s-u,t=c>.5?n/(2-s-u):n/(s+u),s){case i:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-i)/n+2;break;case l:r=(i-a)/n+4}r/=6}return"hsl(".concat(360*r,",").concat(100*t,",").concat(100*c,")")}(t)),t.spaces.hsl},getHSLA:n,getShiftedHSLA:r,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=function(e){var t=kt(e),n=t.h,r=t.s,o=t.v;return"hsv(".concat(n,",").concat(r,",").concat(o,")")}(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=kt(t)),t.spaces.hsvObject},blend:function(e,n){var r=Math.floor(t.r+(e.r-t.r)*n),o=Math.floor(t.g+(e.g-t.g)*n),i=Math.floor(t.b+(e.b-t.b)*n),a=Math.floor(t.a+(e.getAlpha()-t.a)*n);return"rgba(".concat([r,o,i,a].join(","),")")},getShiftedColor:function(e){var n=void 0===e||Number.isNaN(+e)?1:e,o=.299*t.r+.587*t.g+.114*t.b,i=t.g<126?1:1+t.g/512;return Mt(r(20*(o*i<220?.8+1/(o+1)*4:-(.8+o/255*1))*n))}}}function _t(e,t){if(e&&t){var n=It(e),r=It(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}}var At=["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"],Pt=["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 Dt(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Pt:At}var Tt=Object.prototype.hasOwnProperty,Ot=Object.prototype.toString,Nt=Object.defineProperty,qt=Object.getOwnPropertyDescriptor,Ft=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Ot.call(e)},zt=function(e){if(!e||"[object Object]"!==Ot.call(e))return!1;var t,n=Tt.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Tt.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Tt.call(e,t)},jt=function(e,t){Nt&&"__proto__"===t.name?Nt(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},$t=function(e,t){if("__proto__"===t){if(!Tt.call(e,t))return;if(qt)return qt(e,t).value}return e[t]};function Bt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ht(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Wt(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=$t(l,n),l!==(o=$t(t,n))&&(c&&o&&(zt(o)||(i=Ft(o)))?(i?(i=!1,a=r&&Ft(r)?r:[]):a=r&&zt(r)?r:{},jt(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&jt(l,{name:n,newValue:o}));return l}));var Gt=1/.7,Vt="\\s*([+-]?\\d+)\\s*",Ut="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Yt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Kt=/^#([0-9a-f]{3,8})$/,Xt=new RegExp(`^rgb\\(${Vt},${Vt},${Vt}\\)$`),Qt=new RegExp(`^rgb\\(${Yt},${Yt},${Yt}\\)$`),Jt=new RegExp(`^rgba\\(${Vt},${Vt},${Vt},${Ut}\\)$`),Zt=new RegExp(`^rgba\\(${Yt},${Yt},${Yt},${Ut}\\)$`),en=new RegExp(`^hsl\\(${Ut},${Yt},${Yt}\\)$`),tn=new RegExp(`^hsla\\(${Ut},${Yt},${Yt},${Ut}\\)$`),nn={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 rn(){return this.rgb().formatHex()}function on(){return this.rgb().formatRgb()}function an(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Kt.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ln(t):3===n?new dn(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?sn(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?sn(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=Xt.exec(e))?new dn(t[1],t[2],t[3],1):(t=Qt.exec(e))?new dn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Jt.exec(e))?sn(t[1],t[2],t[3],t[4]):(t=Zt.exec(e))?sn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=en.exec(e))?bn(t[1],t[2]/100,t[3]/100,1):(t=tn.exec(e))?bn(t[1],t[2]/100,t[3]/100,t[4]):nn.hasOwnProperty(e)?ln(nn[e]):"transparent"===e?new dn(NaN,NaN,NaN,0):null}function ln(e){return new dn(e>>16&255,e>>8&255,255&e,1)}function sn(e,t,n,r){return r<=0&&(e=t=n=NaN),new dn(e,t,n,r)}function un(e){return e instanceof Wt||(e=an(e)),e?new dn((e=e.rgb()).r,e.g,e.b,e.opacity):new dn}function cn(e,t,n,r){return 1===arguments.length?un(e):new dn(e,t,n,null==r?1:r)}function dn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function pn(){return`#${gn(this.r)}${gn(this.g)}${gn(this.b)}`}function fn(){const e=hn(this.opacity);return`${1===e?"rgb(":"rgba("}${mn(this.r)}, ${mn(this.g)}, ${mn(this.b)}${1===e?")":`, ${e})`}`}function hn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function mn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function gn(e){return((e=mn(e))<16?"0":"")+e.toString(16)}function bn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new yn(e,t,n,r)}function vn(e){if(e instanceof yn)return new yn(e.h,e.s,e.l,e.opacity);if(e instanceof Wt||(e=an(e)),!e)return new yn;if(e instanceof yn)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new yn(a,l,s,e.opacity)}function yn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function xn(e){return(e=(e||0)%360)<0?e+360:e}function Sn(e){return Math.max(0,Math.min(1,e||0))}function En(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Bt(Wt,an,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:rn,formatHex:rn,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return vn(this).formatHsl()},formatRgb:on,toString:on}),Bt(dn,cn,Ht(Wt,{brighter(e){return e=null==e?Gt:Math.pow(Gt,e),new dn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new dn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new dn(mn(this.r),mn(this.g),mn(this.b),hn(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:pn,formatHex:pn,formatHex8:function(){return`#${gn(this.r)}${gn(this.g)}${gn(this.b)}${gn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:fn,toString:fn})),Bt(yn,(function(e,t,n,r){return 1===arguments.length?vn(e):new yn(e,t,n,null==r?1:r)}),Ht(Wt,{brighter(e){return e=null==e?Gt:Math.pow(Gt,e),new yn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new yn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new dn(En(e>=240?e-240:e+120,o,r),En(e,o,r),En(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new yn(xn(this.h),Sn(this.s),Sn(this.l),hn(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=hn(this.opacity);return`${1===e?"hsl(":"hsla("}${xn(this.h)}, ${100*Sn(this.s)}%, ${100*Sn(this.l)}%${1===e?")":`, ${e})`}`}}));const Cn=Math.PI/180,wn=180/Math.PI,Rn=4/29,kn=6/29,Ln=3*kn*kn;function In(e){if(e instanceof Mn)return new Mn(e.l,e.a,e.b,e.opacity);if(e instanceof Tn)return On(e);e instanceof dn||(e=un(e));var t,n,r=Dn(e.r),o=Dn(e.g),i=Dn(e.b),a=_n((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=_n((.4360747*r+.3850649*o+.1430804*i)/.96422),n=_n((.0139322*r+.0971045*o+.7141733*i)/.82521)),new Mn(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Mn(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function _n(e){return e>.008856451679035631?Math.pow(e,1/3):e/Ln+Rn}function An(e){return e>kn?e*e*e:Ln*(e-Rn)}function Pn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Dn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Tn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function On(e){if(isNaN(e.h))return new Mn(e.l,0,0,e.opacity);var t=e.h*Cn;return new Mn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Bt(Mn,(function(e,t,n,r){return 1===arguments.length?In(e):new Mn(e,t,n,null==r?1:r)}),Ht(Wt,{brighter(e){return new Mn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Mn(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new dn(Pn(3.1338561*(t=.96422*An(t))-1.6168667*(e=1*An(e))-.4906146*(n=.82521*An(n))),Pn(-.9787684*t+1.9161415*e+.033454*n),Pn(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Bt(Tn,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Tn)return new Tn(e.h,e.c,e.l,e.opacity);if(e instanceof Mn||(e=In(e)),0===e.a&&0===e.b)return new Tn(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*wn;return new Tn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Tn(e,t,n,null==r?1:r)}),Ht(Wt,{brighter(e){return new Tn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Tn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return On(this).rgb()}}));var Nn=e=>()=>e;function qn(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Nn(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?qn:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Nn(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=cn(e)).r,(t=cn(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=qn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var Fn,zn="center",jn="bottom";function $n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function Bn(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Hn(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Gn)):void 0===t&&(t=Wn);for(var n,r,o,i,a,l=new Yn(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new Yn(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Un)}function Wn(e){return e.children}function Gn(e){return Array.isArray(e)?e[1]:null}function Vn(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Un(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Yn(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:zn,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:zn,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:zn,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:zn},{key:"DataRangeIncludingZero",alignment:jn},{key:"LimitedData",alignment:jn},{key:"NegativeOrZeroValues",alignment:jn}].reduce((function(e,t){return e[t.key]=t,e}),{}),Yn.prototype=Hn.prototype={constructor:Yn,count:function(){return this.eachAfter(Bn)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Hn(this).eachBefore(Vn)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},Fn=function(e){
9
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),v=p-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},ce({exports:{}});const Ee="qHyperCubeDef.qDimensions",Ce="dimensions",we="qOtherTotalSpec.qTotalMode",Re="totalMode",ke={quarantine(e){i.quarantineArrayProp({properties:e,arrayPath:Ee,quarantineName:Re,arrayName:Ce,itemPath:we})},unquarantine(e){i.unquarantineArrayProp({properties:e,arrayPath:Ee,quarantineName:Re,arrayName:Ce,itemPath:we})}};function Le(e){const t=Se(e);return(e,n,r,o)=>{var c,d,p,f,m,h;const g=i.hypercube.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t.targets[0],hypercubePath:o}),v=((null===(c=g.qProperty)||void 0===c||null===(c=c.qHyperCubeDef)||void 0===c?void 0:c.qDimensions)||[]).length,b=(null===(d=g.qProperty)||void 0===d||null===(d=d.qHyperCubeDef)||void 0===d||null===(d=d.qMeasures)||void 0===d?void 0:d.length)||0;let y,x=(null===(p=g.qProperty)||void 0===p||null===(p=p.qHyperCubeDef)||void 0===p?void 0:p.qInterColumnSortOrder)||[],S=!0;v+b===x.length&&pe(g,"qProperty.qLayoutExclude.quarantine.interColSortOrder",x.concat());const E=(null==g||null===(f=g.qProperty)||void 0===f||null===(f=f.qLayoutExclude)||void 0===f||null===(f=f.quarantine)||void 0===f?void 0:f.pivotInterColSortOrder)||void 0;E?(x=E,y=[...E],pe(g,"qProperty.qHyperCubeDef.qInterColumnSortOrder",x),delete g.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):x.length=0;const C=+(x.indexOf(-1)>-1),w=v+C;if(w>x.length)for(let e=x.length;e<w;e++)x.indexOf(e)<0&&x.push(e-C);for(let e=x.length-1;e>=0;e--)x[e]>=v&&x.splice(e,1);b>1&&x.indexOf(-1)<0?x.push(-1):b<2&&x.indexOf(-1)>-1&&x.splice(x.indexOf(-1),1);const R=null!==(m=null==g||null===(h=g.qProperty)||void 0===h||null===(h=h.qHyperCubeDef)||void 0===h?void 0:h.qNoOfLeftDims)&&void 0!==m?m:-1;if(v>0&&-1===R&&pe(g,"qProperty.qHyperCubeDef.qNoOfLeftDims",v),y&&x&&y.length===x.length){for(let e=0;e<y.length;e++)if(y[e]!==x[e]){S=!1;break}S&&i.unquarantineProperty(g.qProperty,"noOfLeftDims")}return i.conditionalShow.unquarantine(g.qProperty),ke.unquarantine(g.qProperty),(e=>{i.unquarantineArrayProp({properties:e,arrayPath:a,itemPath:s,arrayName:l,quarantineName:u})})(g.qProperty),i.unquarantineProperty(g.qProperty,"pivotTableIndentMode"),g}}function Ie(e,t){var n,r,o;const c=null!==(n=null==e||null===(r=e.qProperty)||void 0===r||null===(r=r.qHyperCubeDef)||void 0===r?void 0:r.qInterColumnSortOrder)&&void 0!==n?n:[],d=c.slice(),p=c.indexOf(-1);p>-1&&c.splice(p,1);const f=i.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),m=f.properties.qHyperCubeDef,h=m.qDimensions.length,g=m.qMeasures.length;let v=m.qInterColumnSortOrder;pe(f,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",d),i.quarantineProperty(f.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete f.properties.qHyperCubeDef.qNoOfLeftDims;const b=null==f||null===(o=f.properties)||void 0===o||null===(o=o.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.interColSortOrder;b&&(v=b,pe(f,"properties.qHyperCubeDef.qInterColumnSortOrder",v),pe(f,"data.0.interColumnSortOrder",v),delete f.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=v.length;e<h+g;e++)v.length<=e&&v.push(e);return i.quarantineProperty(f.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),i.conditionalShow.quarantine(f.properties),ke.quarantine(f.properties),(e=>{i.quarantineArrayProp({properties:e,arrayPath:a,itemPath:s,arrayName:l,quarantineName:u})})(f.properties),f}const Me={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}};let _e=function(e){return e.Text="text",e.Link="link",e.Image="image",e.Indicator="indicator",e}({}),Ae=function(e){return e.Attribute="attribute",e.Dimension="dimension",e.Measure="measure",e}({});const Pe=e=>{switch(null==e?void 0:e.type){case"url":return _e.Link;case"image":return _e.Image;case"indicator":return _e.Indicator;default:return _e.Text}},De=(e,t)=>!e.properties.qHyperCubeDef.qIndentMode||!t,Te=(e,t,n)=>{if(e||t)return{uses:"dimensionRepresentationItems.representationType",show:(e,t,r)=>De(r,n),options(){const n=[{value:"text",translation:"Object.Table.Representation.Text"}];return t&&n.push({value:"url",translation:"Object.Table.Representation.Link"}),e&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),n}}},Oe=(e,t)=>{if(e)return{representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:(e,n,r)=>Pe(e.qDef.representation)===_e.Link&&De(r,t)},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:(e,n,r)=>{var o;return Pe(e.qDef.representation)===_e.Link&&(null===(o=e.qDef.representation)||void 0===o?void 0:o.urlPosition)===Ae.Dimension&&De(r,t)}},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:(e,n,r)=>{var o;return Pe(e.qDef.representation)===_e.Link&&(null===(o=e.qDef.representation)||void 0===o?void 0:o.urlPosition)===Ae.Attribute&&De(r,t)}}}},Ne=(e,t)=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:(e,n,r)=>Pe(e.qDef.representation)===_e.Image&&De(r,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"}]}}}}},qe=e=>{var t,n;const{anything:r,flags:o}=e,i=o.isEnabled("CLIENT_IM_5975_INDENT_MODE"),a=o.isEnabled("CLIENT_IM_5715_LINKS"),l=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=r&&null!==(t=r.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages"));return{representationType:Te(l,a,i),...Oe(a,i),...Ne(l,i)}},Fe=e=>{var t,n;const{flags:r,anything:o}=e,i=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=o&&null!==(t=o.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages")),a=r.isEnabled("CLIENT_IM_5975_INDENT_MODE"),l=r.isEnabled("CLIENT_IM_6696_INDICATORS"),s=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"image",translation:"Object.Table.Representation.Image"}],u=[{value:"indicator",translation:"Object.Table.Representation.Indicator"}];return{representationType:{uses:"measureRepresentationItems.representationType",show:(e,t,n)=>De(n,a),options:i&&l?[...s,...u]:i?s:l?u:void 0},representationImage:i?{uses:"measureRepresentationItems.representationImage",show:(e,t,n)=>Pe(e.qDef.representation)===_e.Image&&De(n,a),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:l?{uses:"measureRepresentationItems.representationIndicator"}:void 0}};var ze,je,$e,We;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(ze||(ze={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(je||(je={})),function(e){e.TOP_GRID="topGrid",e.LEFT_GRID="leftGrid",e.DATA_GRID="dataGrid",e.CONTAINER_GRID="containerGrid"}($e||($e={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(We||(We={}));const Ge="12px",Be="nebula-table-utils-head-menu-button",He="sn-copy-cell";let Ve=function(e){return e.ENTER="Enter",e.SPACE=" ",e.ESC="Escape",e.TAB="Tab",e.SHIFT="Shift",e.LEFT="ArrowLeft",e.RIGHT="ArrowRight",e.UP="ArrowUp",e.DOWN="ArrowDown",e.C="c",e}({});const Ue="nebula-table-utils-column-adjuster";let Ye=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}({}),Ke=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const Xe={darker:.15,brighter:.3,opacity:.03},Qe={darker:.3,brighter:.5,opacity:.05};var Je,Ze;!function(e){e.NX_DIM_CELL_VALUE="V",e.NX_DIM_CELL_EMPTY="E",e.NX_DIM_CELL_NORMAL="N",e.NX_DIM_CELL_TOTAL="T",e.NX_DIM_CELL_OTHER="O",e.NX_DIM_CELL_AGGR="A",e.NX_DIM_CELL_PSEUDO="P",e.NX_DIM_CELL_ROOT="R",e.NX_DIM_CELL_NULL="U",e.NX_DIM_CELL_GENERATED="G"}(Je||(Je={})),function(e){e.NX_CELL_DATA="D",e.NX_CELL_TOP="T",e.NX_CELL_LEFT="L"}(Ze||(Ze={}));var et=Je;const tt="image",nt=(e,t,n)=>{if(!n.properties.qHyperCubeDef.qIndentMode)return!0;const r=n.properties.qHyperCubeDef.qInterColumnSortOrder.indexOf(-1);let o=n.properties.qHyperCubeDef.qNoOfLeftDims;r>-1&&r<o&&(o-=1);const i=n.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===i||i>=o},rt=()=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:Ke.Auto,translation:"Common.Auto"},{value:Ke.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:Ke.Pixels,translation:"Object.Table.Column.Pixels"},{value:Ke.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:Ke.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:Ye.PixelsDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===Ke.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(Ye.PixelsMin,Math.min(Ye.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:Ye.PercentageDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===Ke.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(Ye.PercentageMin,Math.min(Ye.PercentageMax,e.qDef.columnWidth.percentage)))}}}),ot=({key:e,translation:t,env:n})=>{var r,o;const i=n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(r=n.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"tableImages"));return{[`${e}Auto`]:{ref:`qDef.${e}.auto`,type:"boolean",component:"switch",translation:t,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0,show:t=>{var n;if(!i||"labelTextAlign"===e)return!0;return(null==t||null===(n=t.qDef)||void 0===n||null===(n=n.representation)||void 0===n?void 0:n.type)!==tt}},[e]:{ref:`qDef.${e}.align`,type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:t=>{var n,r;return!(void 0===t.qDef[e]||null!==(n=t.qDef[e])&&void 0!==n&&n.auto)&&(!i||"labelTextAlign"===e||(null===(r=t.qDef)||void 0===r||null===(r=r.representation)||void 0===r?void 0:r.type)!==tt)}}}},it="TOTAL_OFF",at={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:je.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:je.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:je.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:je.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:je.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:je.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},lt="TOTAL_OFF",st={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:je.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:je.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:je.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:je.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:je.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:je.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},ut=e=>{var t,n;const{translator:r,anything:o,flags:i}=e,a=(e=>{var t,n;const{translator:r,anything:o,flags:i}=e;return{type:"items",component:"data-assets-panel-pivot",translation:"Common.Data",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:it,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:it,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&nt},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!=o&&null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==it&&nt(e,0,n)}},dimensionLimits:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}:void 0}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:at,...ot({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ot({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...qe(e),...rt()}}}},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:at,...ot({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ot({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Fe(e),...rt()}}}}}}})(e);return i.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?a:{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Properties.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:lt,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:lt,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&nt},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!=o&&null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==lt&&nt(e,0,n)}},dimensionLimits:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}:void 0,visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:st,...ot({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ot({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...qe(e),...rt()}},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:st,...ot({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...ot({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Fe(e),...rt()}}}}},ct=(e,t,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:!1,defaultValue(e,t,r){const o=r.theme.current(),i=n(o);return{color:"transparent"===i?"none":i}}});function dt(e){return"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function pt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length&&dt(t[0]))return(t[0].r<<16)+(t[0].g<<8)+t[0].b;var r=0,o=0,i=0;if(1===t.length&&"string"==typeof t[0]){var a,l=t[0];(a=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(l))?(r=parseInt(a[1],10),o=parseInt(a[2],10),i=parseInt(a[3],10)):(a=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(l))?(r=parseInt(a[1],16),o=parseInt(a[2],16),i=parseInt(a[3],16)):(a=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(l))&&(r=parseInt(a[1]+a[1],16),o=parseInt(a[2]+a[2],16),i=parseInt(a[3]+a[3],16))}return(r<<16)+(o<<8)+i}function ft(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ht(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(n),!0).forEach((function(t){ft(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gt={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:255,g:255,b:255,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}},vt="qcm-color";function bt(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o,i,a,l,s,u,c,d,p,f={type:vt,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},m=0,h=0,g=0,v=1;if((null===(e=n[0])||void 0===e?void 0:e.type)===vt){var b=n[0];m=b.r,h=b.g,g=b.b,v=b.a,f.invalid=n[0].invalid,f.spaces=ht({},n[0].spaces)}else if(n.length<3)if("string"==typeof n[0]){var y,x=n[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),v=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))v=parseInt(y[1],10)/255,m=parseInt(y[2],10),h=parseInt(y[3],10),g=parseInt(y[4],10);else if(y=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(x))m=parseInt(y[1],16),h=parseInt(y[2],16),g=parseInt(y[3],16),v=1;else if(y=/^#([A-f0-9])([A-f0-9])([A-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),v=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),v=1}else if(y=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),v=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),v=1}else if(gt[x.toLowerCase()]){a=x.toLowerCase();var w=gt[a];m=w.r,h=w.g,g=w.b,v="number"==typeof gt[a].a?gt[a].a:1}else f.invalid=!0}else"number"==typeof n[0]&&n[0]>=0&&"argb"===n[1]?(v=(4278190080&n[0])>>>24,v/=255,m=(16711680&n[0])>>16,h=(65280&n[0])>>8,g=255&n[0]):"number"==typeof n[0]&&n[0]>=0?(m=(16711680&n[0])>>16,h=(65280&n[0])>>8,g=255&n[0]):f.invalid=!0;else n.length>=3?(m=n[0],h=n[1],g=n[2],v=arguments.length>=4?n[3]:1):f.invalid=!0;return Number.isNaN(+m+h+g+v)&&(f.invalid=!0),f.r=Math.floor(m),f.g=Math.floor(h),f.b=Math.floor(g),f.a=v,f.l=l,f}function yt(e){var t,n,r=0,o="string"==typeof e?bt(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,r=0;else{switch(t=0==(n=s-u)?0:n/c,s){case i:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-i)/n+2;break;case l:r=(i-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}}var xt=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function St(e){return.2126*xt(e.r)+.7152*xt(e.g)+.0722*xt(e.b)}function Et(){var e=bt.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},n=function(){return t.spaces.hsla||(t.spaces.hsla=function(e){var t,n,r=0,o="string"==typeof e?bt(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,r=0;else{switch(n=u-c,t=d>.5?n/(2-u-c):n/(u+c),u){case i:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-i)/n+2;break;case l:r=(i-a)/n+4}r/=6}return"hsla(".concat(360*r,",").concat(100*t,",").concat(100*d,",").concat(s,")")}(t)),t.spaces.hsla},r=function(e){var t=n(),r=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),o=parseFloat(r[1]),i=parseFloat(r[3]),a=parseFloat(r[7]),l=parseFloat(r[5]);return l+=e,l=Math.max(0,Math.min(l,100)),"hsla(".concat(o,",").concat(i,",").concat(l,",").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 n=e.type===t.type?e:bt(e);return n.r===t.r&&n.g===t.g&&n.b===t.b&&n.a===t.a},isDark:function(){return function(){var e=bt.apply(void 0,arguments);return e.invalid||St(e)<.5}(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=function(e){if(dt(e))return"rgb(".concat([e.r,e.g,e.b].join(","),")");var t="string"==typeof e?pt(e):e,n=(65280&t)>>8,r=255&t;return"rgb(".concat((16711680&t)>>16,",").concat(n,",").concat(r,")")}(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=function(e,t){if(dt(e))return"rgba(".concat([e.r,e.g,e.b,void 0!==t?t:e.a].join(","),")");var n="string"==typeof e?pt(e):e,r=(65280&n)>>8,o=255&n;return"rgba(".concat((16711680&n)>>16,",").concat(r,",").concat(o,",").concat(void 0!==t?t:e.a,")")}(t)),t.spaces.rgba},getHex:function(){return t.spaces.hex||(t.spaces.hex=function(e){var t,n,r;if(dt(e))return t=e.r.toString(16),n=e.g.toString(16),r=e.b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""));var o="string"==typeof e?pt(e):e;return t=((16711680&o)>>16).toString(16),n=((65280&o)>>8).toString(16),r=(255&o).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r)}(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=function(e){var t,n,r=0,o="string"==typeof e?bt(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,r=0;else{switch(n=s-u,t=c>.5?n/(2-s-u):n/(s+u),s){case i:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-i)/n+2;break;case l:r=(i-a)/n+4}r/=6}return"hsl(".concat(360*r,",").concat(100*t,",").concat(100*c,")")}(t)),t.spaces.hsl},getHSLA:n,getShiftedHSLA:r,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=function(e){var t=yt(e),n=t.h,r=t.s,o=t.v;return"hsv(".concat(n,",").concat(r,",").concat(o,")")}(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=yt(t)),t.spaces.hsvObject},blend:function(e,n){var r=Math.floor(t.r+(e.r-t.r)*n),o=Math.floor(t.g+(e.g-t.g)*n),i=Math.floor(t.b+(e.b-t.b)*n),a=Math.floor(t.a+(e.getAlpha()-t.a)*n);return"rgba(".concat([r,o,i,a].join(","),")")},getShiftedColor:function(e){var n=void 0===e||Number.isNaN(+e)?1:e,o=.299*t.r+.587*t.g+.114*t.b,i=t.g<126?1:1+t.g/512;return Et(r(20*(o*i<220?.8+1/(o+1)*4:-(.8+o/255*1))*n))}}}function Ct(e,t){if(e&&t){var n=St(e),r=St(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}}var wt,Rt,kt=["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"],Lt=["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 It(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Lt:kt}var Mt=function(){if(Rt)return wt;Rt=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=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},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return wt=function e(){var t,n,r,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(n in t)r=l(d,n),d!==(s=l(t,n))&&(m&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&i(r)?r:{},a(d,{name:n,newValue:e(m,c,s)})):void 0!==s&&a(d,{name:n,newValue:s}));return d},wt}();function _t(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function At(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Pt(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Mt);var Dt=1/.7,Tt="\\s*([+-]?\\d+)\\s*",Ot="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Nt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qt=/^#([0-9a-f]{3,8})$/,Ft=new RegExp(`^rgb\\(${Tt},${Tt},${Tt}\\)$`),zt=new RegExp(`^rgb\\(${Nt},${Nt},${Nt}\\)$`),jt=new RegExp(`^rgba\\(${Tt},${Tt},${Tt},${Ot}\\)$`),$t=new RegExp(`^rgba\\(${Nt},${Nt},${Nt},${Ot}\\)$`),Wt=new RegExp(`^hsl\\(${Ot},${Nt},${Nt}\\)$`),Gt=new RegExp(`^hsla\\(${Ot},${Nt},${Nt},${Ot}\\)$`),Bt={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 Ht(){return this.rgb().formatHex()}function Vt(){return this.rgb().formatRgb()}function Ut(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=qt.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Yt(t):3===n?new Jt(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Kt(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Kt(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=Ft.exec(e))?new Jt(t[1],t[2],t[3],1):(t=zt.exec(e))?new Jt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=jt.exec(e))?Kt(t[1],t[2],t[3],t[4]):(t=$t.exec(e))?Kt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Wt.exec(e))?on(t[1],t[2]/100,t[3]/100,1):(t=Gt.exec(e))?on(t[1],t[2]/100,t[3]/100,t[4]):Bt.hasOwnProperty(e)?Yt(Bt[e]):"transparent"===e?new Jt(NaN,NaN,NaN,0):null}function Yt(e){return new Jt(e>>16&255,e>>8&255,255&e,1)}function Kt(e,t,n,r){return r<=0&&(e=t=n=NaN),new Jt(e,t,n,r)}function Xt(e){return e instanceof Pt||(e=Ut(e)),e?new Jt((e=e.rgb()).r,e.g,e.b,e.opacity):new Jt}function Qt(e,t,n,r){return 1===arguments.length?Xt(e):new Jt(e,t,n,null==r?1:r)}function Jt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Zt(){return`#${rn(this.r)}${rn(this.g)}${rn(this.b)}`}function en(){const e=tn(this.opacity);return`${1===e?"rgb(":"rgba("}${nn(this.r)}, ${nn(this.g)}, ${nn(this.b)}${1===e?")":`, ${e})`}`}function tn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function nn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function rn(e){return((e=nn(e))<16?"0":"")+e.toString(16)}function on(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ln(e,t,n,r)}function an(e){if(e instanceof ln)return new ln(e.h,e.s,e.l,e.opacity);if(e instanceof Pt||(e=Ut(e)),!e)return new ln;if(e instanceof ln)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new ln(a,l,s,e.opacity)}function ln(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function sn(e){return(e=(e||0)%360)<0?e+360:e}function un(e){return Math.max(0,Math.min(1,e||0))}function cn(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}_t(Pt,Ut,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ht,formatHex:Ht,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return an(this).formatHsl()},formatRgb:Vt,toString:Vt}),_t(Jt,Qt,At(Pt,{brighter(e){return e=null==e?Dt:Math.pow(Dt,e),new Jt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Jt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Jt(nn(this.r),nn(this.g),nn(this.b),tn(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:Zt,formatHex:Zt,formatHex8:function(){return`#${rn(this.r)}${rn(this.g)}${rn(this.b)}${rn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:en,toString:en})),_t(ln,(function(e,t,n,r){return 1===arguments.length?an(e):new ln(e,t,n,null==r?1:r)}),At(Pt,{brighter(e){return e=null==e?Dt:Math.pow(Dt,e),new ln(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ln(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Jt(cn(e>=240?e-240:e+120,o,r),cn(e,o,r),cn(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ln(sn(this.h),un(this.s),un(this.l),tn(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=tn(this.opacity);return`${1===e?"hsl(":"hsla("}${sn(this.h)}, ${100*un(this.s)}%, ${100*un(this.l)}%${1===e?")":`, ${e})`}`}}));const dn=Math.PI/180,pn=180/Math.PI,fn=4/29,mn=6/29,hn=3*mn*mn;function gn(e){if(e instanceof vn)return new vn(e.l,e.a,e.b,e.opacity);if(e instanceof En)return Cn(e);e instanceof Jt||(e=Xt(e));var t,n,r=Sn(e.r),o=Sn(e.g),i=Sn(e.b),a=bn((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=bn((.4360747*r+.3850649*o+.1430804*i)/.96422),n=bn((.0139322*r+.0971045*o+.7141733*i)/.82521)),new vn(116*a-16,500*(t-a),200*(a-n),e.opacity)}function vn(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function bn(e){return e>.008856451679035631?Math.pow(e,1/3):e/hn+fn}function yn(e){return e>mn?e*e*e:hn*(e-fn)}function xn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Sn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function En(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Cn(e){if(isNaN(e.h))return new vn(e.l,0,0,e.opacity);var t=e.h*dn;return new vn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}_t(vn,(function(e,t,n,r){return 1===arguments.length?gn(e):new vn(e,t,n,null==r?1:r)}),At(Pt,{brighter(e){return new vn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new vn(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Jt(xn(3.1338561*(t=.96422*yn(t))-1.6168667*(e=1*yn(e))-.4906146*(n=.82521*yn(n))),xn(-.9787684*t+1.9161415*e+.033454*n),xn(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),_t(En,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof En)return new En(e.h,e.c,e.l,e.opacity);if(e instanceof vn||(e=gn(e)),0===e.a&&0===e.b)return new En(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*pn;return new En(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new En(e,t,n,null==r?1:r)}),At(Pt,{brighter(e){return new En(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new En(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Cn(this).rgb()}}));var wn=e=>()=>e;function Rn(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):wn(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?Rn:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):wn(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Qt(e)).r,(t=Qt(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Rn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var kn,Ln="center",In="bottom";function Mn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function _n(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function An(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Dn)):void 0===t&&(t=Pn);for(var n,r,o,i,a,l=new Nn(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new Nn(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(On)}function Pn(e){return e.children}function Dn(e){return Array.isArray(e)?e[1]:null}function Tn(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function On(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Nn(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:Ln,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Ln,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:Ln,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Ln},{key:"DataRangeIncludingZero",alignment:In},{key:"LimitedData",alignment:In},{key:"NegativeOrZeroValues",alignment:In}].reduce((function(e,t){return e[t.key]=t,e}),{}),Nn.prototype=An.prototype={constructor:Nn,count:function(){return this.eachAfter(_n)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return An(this).eachBefore(Tn)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},kn=function(e){
10
10
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
11
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},Fn({exports:{}});const Kn=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},Xn=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,n,r)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:"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:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>Kn(e,!0)))],c=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...Dt(r).filter((e=>!s.includes(e))).map((e=>Kn(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),Qn=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Jn=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{var r;const o=t.fontSize,i=null!==(r=t.fontSizes)&&void 0!==r?r:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>Kn(e,!1)))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...Qn.filter((e=>!a.includes(e))).map((e=>Kn(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),Zn=({section:e,defaultFontStyle:t,translator:n,flags:r,getThemeValue:o,translation:i})=>({component:"panel-section",translation:null!=i?i:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:Xn({ref:`${e}.fontFamily`,themeAccessor:t=>{var n;return null!==(n=o(t,e,"fontFamily"))&&void 0!==n?n:t.fontFamily},translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:Jn({ref:`${e}.fontSize`,themeAccessor:t=>{var n;return null!==(n=o(t,e,"fontSize"))&&void 0!==n?n:t.fontSize},translator:n}),fontColor:bt(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=o(t,e,"color"))&&void 0!==n?n:t.color}))}},background:bt(`${e}.background`,"properties.background",(t=>{var n;return null!==(n=o(t,e,"backgroundColor"))&&void 0!==n?n:"transparent"}))}}}}),er=({section:e,defaultFontStyle:t,fallbackBackground:n,getThemeValue:r})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:bt(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=r(t,e,"color"))&&void 0!==n?n:t.color}))}},background:bt(`${e}.background`,"properties.background",(t=>{var o,i;return null!==(o=null!==(i=r(t,e,"backgroundColor"))&&void 0!==i?i:n)&&void 0!==o?o:"transparent"}))}}}}),tr=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),nr="12px",rr="Source Sans Pro, sans-serif",or="600",ir=15e3,ar=4/3,lr=1;var sr,ur;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(sr||(sr={})),function(e){e.Solid="solid",e.None="none"}(ur||(ur={}));const cr={display:"flex",justifyContent:"center",alignItems:"center"},dr={borderStyle:"solid"},pr={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},fr={lineHeight:ar,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},hr=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),mr=(e,t)=>e>0?`${e}px ${ur.Solid} ${t}`:ur.None,gr=(e,t,n,r)=>{const o=Number(!t||(null==r?void 0:r.right)),i=Number(!e||(null==r?void 0:r.bottom));return{borderRight:mr(o,n),borderBottom:mr(i,n),borderLeft:ur.None,borderTop:ur.None}},br=(e,t,n,r,o,i)=>{const a=gr(t,r,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=mr(2,o)),n||(a.borderLeft=mr(1,o))),a},vr=({bottomDivider:e,rightDivider:t,borderColor:n})=>{const r={};return e&&(r.borderBottom=mr(1,n)),t&&(r.borderRight=mr(1,n)),r},yr=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:tr("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?tr("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:bt("grid.border","properties.border",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:sr.DividerLight})),divider:bt("grid.divider","properties.pivot.divider",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n||null===(n=n.divider)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:sr.DividerDark})),background:bt("grid.background","properties.background",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:sr.Transparent}))}}}}),xr=(e,t,n)=>{var r,o,i,a,l,s;switch(t){case"header":return null==e||null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.dimension)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.name)||void 0===r?void 0:r[n];case"dimensionValues":return null==e||null===(o=e.object)||void 0===o||null===(o=o.pivotTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[n];case"measureLabels":return null==e||null===(i=e.object)||void 0===i||null===(i=i.pivotTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i[n];case"measureValues":return null==e||null===(a=e.object)||void 0===a||null===(a=a.pivotTableV2)||void 0===a||null===(a=a.measure)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[n];case"totalValues":return null==e||null===(l=e.object)||void 0===l||null===(l=l.pivotTableV2)||void 0===l||null===(l=l.total)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[n];case"nullValues":return null==e||null===(s=e.object)||void 0===s||null===(s=s.pivotTableV2)||void 0===s||null===(s=s.null)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[n];default:return}},Sr=(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:Zn({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:xr}),dimensionValueSection:Zn({section:"dimensionValues",translator:e,flags:t,getThemeValue:xr}),measureValueSection:Zn({section:"measureValues",translator:e,flags:t,getThemeValue:xr}),measureLabelSection:er({section:"measureLabels",getThemeValue:xr}),totalValuesSection:er({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:xr}),nullValuesSection:er({section:"nullValues",fallbackBackground:sr.NullValueBackground,getThemeValue:xr}),gridSection:yr(t)}}]}),Er=e=>({type:"items",items:{nullValueText:{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"},alwaysFullyExpanded:{ref:"qHyperCubeDef.qAlwaysFullyExpanded",type:"boolean",translation:"properties.pivot.fullyExpanded",defaultValue:!1},...e.isEnabled("CLIENT_IM_5975_INDENT_MODE")&&{indentMode:{ref:"qHyperCubeDef.qIndentMode",type:"boolean",translation:"properties.pivot.indentMode",defaultValue:!1,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}},type:{type:"string",component:"dropdown",ref:"qHyperCubeDef.indentModeColumnWidth.type",translation:"Object.Table.Column.Width",options:[{value:nt.Auto,translation:"Common.Auto"},{value:nt.Pixels,translation:"Object.Table.Column.Pixels"},{value:nt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:nt.Auto,show:e=>e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:tt.PixelsDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===nt.Pixels},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.pixels)&&(n.indentModeColumnWidth.pixels=Math.max(tt.PixelsMin,Math.min(tt.PixelsMax,n.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:tt.PercentageDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===nt.Percentage},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.percentage)&&(n.indentModeColumnWidth.percentage=Math.max(tt.PercentageMin,Math.min(tt.PercentageMaxInIndentMode,n.indentModeColumnWidth.percentage)))}}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(t){var n;const{qIndentMode:r}=t.qHyperCubeDef;return(!r||r&&!e.isEnabled("CLIENT_IM_5975_INDENT_MODE"))&&(null===(n=t.qHyperCubeDef)||void 0===n||null===(n=n.qDimensions)||void 0===n?void 0:n.some((e=>{var t;return"TOTAL_EXPR"===(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qTotalMode)})))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,n,r){e.qHyperCubeDef.qExpansionState=[],r.$emit("saveProperties",e)}}}}),Cr=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[Sr(e,t),Er(t)]}}}),wr="auto",Rr={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>t("integer",e?-1:0)},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>{var t;return!(null==e||null===(t=e.qHyperCubeDef)||void 0===t||!t.qSortbyYValue)}}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:wr,translation:"Object.Table.SortingInSearch",options:[{value:wr,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function kr(e){const{translator:t,flags:n}=e;return{type:"items",component:"accordion",items:{data:gt(e),sorting:Rr,addons:Ne,settings:Cr(t,n)}}}function Lr(e){return{support:{cssScaling:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),snapshot:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),export:e.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:kr(e),importProperties:Te(e),exportProperties:Oe}}function Ir(){return Ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ir.apply(null,arguments)}var Mr={exports:{}};function _r(){}function Ar(){}Ar.resetWarningCache=_r;Mr.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Ar,resetWarningCache:_r};return n.PropTypes=n,n}();var Pr=n(Mr.exports);function Dr(e){if(e.type)return e;if("#"===e.charAt(0))return Dr(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function Tr(e,t){return e=Dr(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}(e)}function Or(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Nr(e,t){return Nr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Nr(e,t)}function qr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Nr(e,t)}var Fr={exports:{}},zr={},jr=Symbol.for("react.element"),$r=Symbol.for("react.portal"),Br=Symbol.for("react.fragment"),Hr=Symbol.for("react.strict_mode"),Wr=Symbol.for("react.profiler"),Gr=Symbol.for("react.provider"),Vr=Symbol.for("react.context"),Ur=Symbol.for("react.forward_ref"),Yr=Symbol.for("react.suspense"),Kr=Symbol.for("react.memo"),Xr=Symbol.for("react.lazy"),Qr=Symbol.iterator;var Jr={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Zr=Object.assign,eo={};function to(e,t,n){this.props=e,this.context=t,this.refs=eo,this.updater=n||Jr}function no(){}function ro(e,t,n){this.props=e,this.context=t,this.refs=eo,this.updater=n||Jr}to.prototype.isReactComponent={},to.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},to.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},no.prototype=to.prototype;var oo=ro.prototype=new no;oo.constructor=ro,Zr(oo,to.prototype),oo.isPureReactComponent=!0;var io=Array.isArray,ao=Object.prototype.hasOwnProperty,lo={current:null},so={key:!0,ref:!0,__self:!0,__source:!0};function uo(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)ao.call(t,r)&&!so.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:jr,type:e,key:i,ref:a,props:o,_owner:lo.current}}function co(e){return"object"==typeof e&&null!==e&&e.$$typeof===jr}var po=/\/+/g;function fo(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function ho(e,t,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case jr:case $r:a=!0}}if(a)return o=o(a=e),e=""===r?"."+fo(a,0):r,io(o)?(n="",null!=e&&(n=e.replace(po,"$&/")+"/"),ho(o,t,n,"",(function(e){return e}))):null!=o&&(co(o)&&(o=function(e,t){return{$$typeof:jr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(po,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=""===r?".":r+":",io(e))for(var l=0;l<e.length;l++){var s=r+fo(i=e[l],l);a+=ho(i,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Qr&&e[Qr]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(i=e.next()).done;)a+=ho(i=i.value,t,n,s=r+fo(i,l++),o);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function mo(e,t,n){if(null==e)return e;var r=[],o=0;return ho(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function go(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var bo={current:null},vo={transition:null},yo={ReactCurrentDispatcher:bo,ReactCurrentBatchConfig:vo,ReactCurrentOwner:lo};function xo(){throw Error("act(...) is not supported in production builds of React.")}zr.Children={map:mo,forEach:function(e,t,n){mo(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return mo(e,(function(){t++})),t},toArray:function(e){return mo(e,(function(e){return e}))||[]},only:function(e){if(!co(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},zr.Component=to,zr.Fragment=Br,zr.Profiler=Wr,zr.PureComponent=ro,zr.StrictMode=Hr,zr.Suspense=Yr,zr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yo,zr.act=xo,zr.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Zr({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=lo.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)ao.call(t,s)&&!so.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==l?l[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:jr,type:e.type,key:o,ref:i,props:r,_owner:a}},zr.createContext=function(e){return(e={$$typeof:Vr,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:Gr,_context:e},e.Consumer=e},zr.createElement=uo,zr.createFactory=function(e){var t=uo.bind(null,e);return t.type=e,t},zr.createRef=function(){return{current:null}},zr.forwardRef=function(e){return{$$typeof:Ur,render:e}},zr.isValidElement=co,zr.lazy=function(e){return{$$typeof:Xr,_payload:{_status:-1,_result:e},_init:go}},zr.memo=function(e,t){return{$$typeof:Kr,type:e,compare:void 0===t?null:t}},zr.startTransition=function(e){var t=vo.transition;vo.transition={};try{e()}finally{vo.transition=t}},zr.unstable_act=xo,zr.useCallback=function(e,t){return bo.current.useCallback(e,t)},zr.useContext=function(e){return bo.current.useContext(e)},zr.useDebugValue=function(){},zr.useDeferredValue=function(e){return bo.current.useDeferredValue(e)},zr.useEffect=function(e,t){return bo.current.useEffect(e,t)},zr.useId=function(){return bo.current.useId()},zr.useImperativeHandle=function(e,t,n){return bo.current.useImperativeHandle(e,t,n)},zr.useInsertionEffect=function(e,t){return bo.current.useInsertionEffect(e,t)},zr.useLayoutEffect=function(e,t){return bo.current.useLayoutEffect(e,t)},zr.useMemo=function(e,t){return bo.current.useMemo(e,t)},zr.useReducer=function(e,t,n){return bo.current.useReducer(e,t,n)},zr.useRef=function(e){return bo.current.useRef(e)},zr.useState=function(e){return bo.current.useState(e)},zr.useSyncExternalStore=function(e,t,n){return bo.current.useSyncExternalStore(e,t,n)},zr.useTransition=function(){return bo.current.useTransition()},zr.version="18.3.1",Fr.exports=zr;var So=Fr.exports,Eo=n(So),Co=t({__proto__:null,default:Eo},[So]);const wo={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"},Ro={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...wo,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},ko=12,Lo=14,Io=16,Mo=24,_o=3,Ao=300,Po=400,Do=600,To=700,Oo={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Tr(Ro.GREYSCALE_0,.05),Tr(Ro.GREEN_PALE,.5),Tr(Ro.BLUE_PALE,.5),Tr(Ro.GREEN_PALE,.5),Tr(Ro.BLUE_PALE,.5),Tr(Ro.GREEN_PALE,.5),Tr(Ro.BLUE_PALE,.5);var No;function qo(){return qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qo.apply(this,arguments)}Tr(Ro.GREEN_PALE,.5),Tr(Ro.BLUE_PALE,.5),Tr(Ro.GREEN_PALE,.5),Tr(Ro.BLUE_PALE,.5);var Fo,zo=function(e){return So.createElement("svg",qo({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),No||(No=So.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function jo(){return jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jo.apply(this,arguments)}var $o=function(e){return So.createElement("svg",jo({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),Fo||(Fo=So.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 Bo({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Eo.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var Ho=(e={})=>Eo.createElement(Bo,{...e},Eo.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},Eo.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Eo.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),Wo=(e={})=>Eo.createElement(Bo,{...e},Eo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Eo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Eo.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Eo.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Go=(e={})=>Eo.createElement(Bo,{fontSize:"medium",...e},Eo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Eo.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},Eo.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),Vo=(e={})=>Eo.createElement(Bo,{fontSize:"medium",...e},Eo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Eo.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Eo.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),Uo=({className:e})=>Eo.createElement(Bo,{fontSize:"small",className:e},Eo.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},Eo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Eo.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},Eo.createElement("g",{transform:"translate(4.324187, 1.300372)"},Eo.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Eo.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"}))))));var Yo={black:"#000",white:"#fff"};var Ko={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var Xo={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var Qo={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var Jo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var Zo={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var ei={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var ti={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 ni(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 ri="$$material";function oi(){return oi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oi.apply(this,arguments)}function ii(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function ai(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 li=Object.freeze({__proto__:null,default:ai}),si=function(){return si=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},si.apply(this,arguments)};function ui(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var ci="-ms-",di="-moz-",pi="-webkit-",fi="comm",hi="rule",mi="decl",gi="@import",bi="@keyframes",vi="@layer",yi=Math.abs,xi=String.fromCharCode,Si=Object.assign;function Ei(e){return e.trim()}function Ci(e,t){return(e=t.exec(e))?e[0]:e}function wi(e,t,n){return e.replace(t,n)}function Ri(e,t,n){return e.indexOf(t,n)}function ki(e,t){return 0|e.charCodeAt(t)}function Li(e,t,n){return e.slice(t,n)}function Ii(e){return e.length}function Mi(e){return e.length}function _i(e,t){return t.push(e),e}function Ai(e,t){return e.filter((function(e){return!Ci(e,t)}))}var Pi=1,Di=1,Ti=0,Oi=0,Ni=0,qi="";function Fi(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Pi,column:Di,length:a,return:"",siblings:l}}function zi(e,t){return Si(Fi("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ji(e){for(;e.root;)e=zi(e.root,{children:[e]});_i(e,e.siblings)}function $i(){return Ni=Oi>0?ki(qi,--Oi):0,Di--,10===Ni&&(Di=1,Pi--),Ni}function Bi(){return Ni=Oi<Ti?ki(qi,Oi++):0,Di++,10===Ni&&(Di=1,Pi++),Ni}function Hi(){return ki(qi,Oi)}function Wi(){return Oi}function Gi(e,t){return Li(qi,e,t)}function Vi(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 Ui(e){return Ei(Gi(Oi-1,Xi(91===e?e+2:40===e?e+1:e)))}function Yi(e){for(;(Ni=Hi())&&Ni<33;)Bi();return Vi(e)>2||Vi(Ni)>3?"":" "}function Ki(e,t){for(;--t&&Bi()&&!(Ni<48||Ni>102||Ni>57&&Ni<65||Ni>70&&Ni<97););return Gi(e,Wi()+(t<6&&32==Hi()&&32==Bi()))}function Xi(e){for(;Bi();)switch(Ni){case e:return Oi;case 34:case 39:34!==e&&39!==e&&Xi(Ni);break;case 40:41===e&&Xi(e);break;case 92:Bi()}return Oi}function Qi(e,t){for(;Bi()&&e+Ni!==57&&(e+Ni!==84||47!==Hi()););return"/*"+Gi(t,Oi-1)+"*"+xi(47===e?e:Bi())}function Ji(e){for(;!Vi(Hi());)Bi();return Gi(e,Oi)}function Zi(e){return function(e){return qi="",e}(ea("",null,null,null,[""],e=function(e){return Pi=Di=1,Ti=Ii(qi=e),Oi=0,[]}(e),0,[0],e))}function ea(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",x=o,S=i,E=r,C=y;g;)switch(h=v,v=Bi()){case 40:if(108!=h&&58==ki(C,d-1)){-1!=Ri(C+=wi(Ui(v),"&","&\f"),"&\f",yi(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Ui(v);break;case 9:case 10:case 13:case 32:C+=Yi(h);break;case 92:C+=Ki(Wi()-1,7);continue;case 47:switch(Hi()){case 42:case 47:_i(na(Qi(Bi(),Wi()),t,n,s),s);break;default:C+="/"}break;case 123*m:l[u++]=Ii(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=wi(C,/\f/g,"")),f>0&&Ii(C)-d&&_i(f>32?ra(C+";",r,n,d-1,s):ra(wi(C," ","")+";",r,n,d-2,s),s);break;case 59:C+=";";default:if(_i(E=ta(C,t,n,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)ea(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===ki(C,3)?100:p){case 100:case 108:case 109:case 115:ea(e,E,E,r&&_i(ta(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,r?x:S);break;default:ea(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+Ii(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==$i())continue;switch(C+=xi(v),v*m){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Ii(C)-1)*b,b=1;break;case 64:45===Hi()&&(C+=Ui(Bi())),p=Hi(),c=d=Ii(y=C+=Ji(Wi())),v++;break;case 45:45===h&&2==Ii(C)&&(m=0)}}return i}function ta(e,t,n,r,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],h=Mi(f),m=0,g=0,b=0;m<r;++m)for(var v=0,y=Li(e,p+1,p=yi(g=a[m])),x=e;v<h;++v)(x=Ei(g>0?f[v]+" "+y:wi(y,/&\f/g,f[v])))&&(s[b++]=x);return Fi(e,t,n,0===o?hi:l,s,u,c,d)}function na(e,t,n,r){return Fi(e,t,n,fi,xi(Ni),Li(e,2,-2),0,r)}function ra(e,t,n,r,o){return Fi(e,t,n,mi,Li(e,0,r),Li(e,r+1,-1),r,o)}function oa(e,t,n){switch(function(e,t){return 45^ki(e,0)?(((t<<2^ki(e,0))<<2^ki(e,1))<<2^ki(e,2))<<2^ki(e,3):0}(e,t)){case 5103:return pi+"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 pi+e+e;case 4789:return di+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pi+e+di+e+ci+e+e;case 5936:switch(ki(e,t+11)){case 114:return pi+e+ci+wi(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pi+e+ci+wi(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pi+e+ci+wi(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return pi+e+ci+e+e;case 6165:return pi+e+ci+"flex-"+e+e;case 5187:return pi+e+wi(e,/(\w+).+(:[^]+)/,pi+"box-$1$2"+ci+"flex-$1$2")+e;case 5443:return pi+e+ci+"flex-item-"+wi(e,/flex-|-self/g,"")+(Ci(e,/flex-|baseline/)?"":ci+"grid-row-"+wi(e,/flex-|-self/g,""))+e;case 4675:return pi+e+ci+"flex-line-pack"+wi(e,/align-content|flex-|-self/g,"")+e;case 5548:return pi+e+ci+wi(e,"shrink","negative")+e;case 5292:return pi+e+ci+wi(e,"basis","preferred-size")+e;case 6060:return pi+"box-"+wi(e,"-grow","")+pi+e+ci+wi(e,"grow","positive")+e;case 4554:return pi+wi(e,/([^-])(transform)/g,"$1"+pi+"$2")+e;case 6187:return wi(wi(wi(e,/(zoom-|grab)/,pi+"$1"),/(image-set)/,pi+"$1"),e,"")+e;case 5495:case 3959:return wi(e,/(image-set\([^]*)/,pi+"$1$`$1");case 4968:return wi(wi(e,/(.+:)(flex-)?(.*)/,pi+"box-pack:$3"+ci+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+pi+e+e;case 4200:if(!Ci(e,/flex-|baseline/))return ci+"grid-column-align"+Li(e,t)+e;break;case 2592:case 3360:return ci+wi(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,Ci(e.props,/grid-\w+-end/)}))?~Ri(e+(n=n[t].value),"span",0)?e:ci+wi(e,"-start","")+e+ci+"grid-row-span:"+(~Ri(n,"span",0)?Ci(n,/\d+/):+Ci(n,/\d+/)-+Ci(e,/\d+/))+";":ci+wi(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return Ci(e.props,/grid-\w+-start/)}))?e:ci+wi(wi(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return wi(e,/(.+)-inline(.+)/,pi+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ii(e)-1-t>6)switch(ki(e,t+1)){case 109:if(45!==ki(e,t+4))break;case 102:return wi(e,/(.+:)(.+)-([^]+)/,"$1"+pi+"$2-$3$1"+di+(108==ki(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ri(e,"stretch",0)?oa(wi(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return wi(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,l){return ci+n+":"+r+l+(o?ci+n+"-span:"+(i?a:+a-+r)+l:"")+e}));case 4949:if(121===ki(e,t+6))return wi(e,":",":"+pi)+e;break;case 6444:switch(ki(e,45===ki(e,14)?18:11)){case 120:return wi(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+pi+(45===ki(e,14)?"inline-":"")+"box$3$1"+pi+"$2$3$1"+ci+"$2box$3")+e;case 100:return wi(e,":",":"+ci)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return wi(e,"scroll-","scroll-snap-")+e}return e}function ia(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function aa(e,t,n,r){switch(e.type){case vi:if(e.children.length)break;case gi:case mi:return e.return=e.return||e.value;case fi:return"";case bi:return e.return=e.value+"{"+ia(e.children,r)+"}";case hi:if(!Ii(e.value=e.props.join(",")))return""}return Ii(n=ia(e.children,r))?e.return=e.value+"{"+n+"}":""}function la(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case mi:return void(e.return=oa(e.value,e.length,n));case bi:return ia([zi(e,{value:wi(e.value,"@","@"+pi)})],r);case hi:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(Ci(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ji(zi(e,{props:[wi(t,/:(read-\w+)/,":"+di+"$1")]})),ji(zi(e,{props:[t]})),Si(e,{props:Ai(n,r)});break;case"::placeholder":ji(zi(e,{props:[wi(t,/:(plac\w+)/,":"+pi+"input-$1")]})),ji(zi(e,{props:[wi(t,/:(plac\w+)/,":"+di+"$1")]})),ji(zi(e,{props:[wi(t,/:(plac\w+)/,ci+"input-$1")]})),ji(zi(e,{props:[t]})),Si(e,{props:Ai(n,r)})}return""}))}}var sa={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},ua="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ca="active",da="data-styled-version",pa="6.1.13",fa="/*!sc*/\n",ha="undefined"!=typeof window&&"HTMLElement"in window,ma=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)),ga={},ba=Object.freeze([]),va=Object.freeze({});function ya(e,t,n){return void 0===n&&(n=va),e.theme!==n.theme&&e.theme||t||n.theme}var xa=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"]),Sa=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ea=/(^-|-$)/g;function Ca(e){return e.replace(Sa,"-").replace(Ea,"")}var wa=/(a)(d)/gi,Ra=52,ka=function(e){return String.fromCharCode(e+(e>25?39:97))};function La(e){var t,n="";for(t=Math.abs(e);t>Ra;t=t/Ra|0)n=ka(t%Ra)+n;return(ka(t%Ra)+n).replace(wa,"$1-$2")}var Ia,Ma=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},_a=function(e){return Ma(5381,e)};function Aa(e){return La(_a(e)>>>0)}function Pa(e){return"string"==typeof e&&!0}var Da="function"==typeof Symbol&&Symbol.for,Ta=Da?Symbol.for("react.memo"):60115,Oa=Da?Symbol.for("react.forward_ref"):60112,Na={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},qa={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Fa={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},za=((Ia={})[Oa]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ia[Ta]=Fa,Ia);function ja(e){return("type"in(t=e)&&t.type.$$typeof)===Ta?Fa:"$$typeof"in e?za[e.$$typeof]:Na;var t}var $a=Object.defineProperty,Ba=Object.getOwnPropertyNames,Ha=Object.getOwnPropertySymbols,Wa=Object.getOwnPropertyDescriptor,Ga=Object.getPrototypeOf,Va=Object.prototype;function Ua(e,t,n){if("string"!=typeof t){if(Va){var r=Ga(t);r&&r!==Va&&Ua(e,r,n)}var o=Ba(t);Ha&&(o=o.concat(Ha(t)));for(var i=ja(e),a=ja(t),l=0;l<o.length;++l){var s=o[l];if(!(s in qa||n&&n[s]||a&&s in a||i&&s in i)){var u=Wa(t,s);try{$a(e,s,u)}catch(e){}}}}return e}function Ya(e){return"function"==typeof e}function Ka(e){return"object"==typeof e&&"styledComponentId"in e}function Xa(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Qa(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function Ja(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Za(e,t,n){if(void 0===n&&(n=!1),!n&&!Ja(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Za(e[r],t[r]);else if(Ja(t))for(var r in t)e[r]=Za(e[r],t[r]);return e}function el(e,t){Object.defineProperty(e,"toString",{value:t})}function tl(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var nl=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw tl(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(fa);return t},e}(),rl=new Map,ol=new Map,il=1,al=function(e){if(rl.has(e))return rl.get(e);for(;ol.has(il);)il++;var t=il++;return rl.set(e,t),ol.set(t,e),t},ll=function(e,t){il=t+1,rl.set(e,t),ol.set(t,e)},sl="style[".concat(ua,"][").concat(da,'="').concat(pa,'"]'),ul=new RegExp("^".concat(ua,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),cl=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},dl=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(fa),o=[],i=0,a=r.length;i<a;i++){var l=r[i].trim();if(l){var s=l.match(ul);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(ll(c,u),cl(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},pl=function(e){for(var t=document.querySelectorAll(sl),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(ua)!==ca&&(dl(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var fl=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(ua,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(ua,ca),r.setAttribute(da,pa);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},hl=function(){function e(e){this.element=fl(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw tl(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}(),ml=function(){function e(e){this.element=fl(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),gl=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}(),bl=ha,vl={isServer:!ha,useCSSOMInjection:!ma},yl=function(){function e(e,t,n){void 0===e&&(e=va),void 0===t&&(t={});var r=this;this.options=si(si({},vl),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&ha&&bl&&(bl=!1,pl(this)),el(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return ol.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||!i.size||0===a.length)return"continue";var l="".concat(ua,".g").concat(n,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),r+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(fa)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return al(e)},e.prototype.rehydrate=function(){!this.server&&ha&&pl(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(si(si({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new gl(n):t?new hl(n):new ml(n)}(this.options),new nl(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(al(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(al(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(al(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),xl=/&/g,Sl=/^\s*\/\/.*$/gm;function El(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=El(e.children,t)),e}))}var Cl=new yl,wl=function(e){var t,n,r,o=void 0===e?va:e,i=o.options,a=void 0===i?va:i,l=o.plugins,s=void 0===l?ba:l,u=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===hi&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(xl,n).replace(r,u))})),a.prefix&&c.push(la),c.push(aa);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var s=e.replace(Sl,""),u=Zi(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=El(u,a.namespace));var d,p=[];return ia(u,function(e){var t=Mi(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||tl(15),Ma(e,t.name)}),5381).toString():"",d}(),Rl=Eo.createContext({shouldForwardProp:void 0,styleSheet:Cl,stylis:wl});function kl(){return So.useContext(Rl)}Rl.Consumer;var Ll=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=wl);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,el(this,(function(){throw tl(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=wl),this.name+e.hash},e}(),Il=function(e){return e>="A"&&e<="Z"};function Ml(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Il(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var _l=function(e){return null==e||!1===e||""===e},Al=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!_l(i)&&(Array.isArray(i)&&i.isCss||Ya(i)?r.push("".concat(Ml(o),":"),i,";"):Ja(i)?r.push.apply(r,ui(ui(["".concat(o," {")],Al(i),!1),["}"],!1)):r.push("".concat(Ml(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in sa||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Pl(e,t,n,r){return _l(e)?[]:Ka(e)?[".".concat(e.styledComponentId)]:Ya(e)?!Ya(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Pl(e(t),t,n,r):e instanceof Ll?n?(e.inject(n,r),[e.getName(r)]):[e]:Ja(e)?Al(e):Array.isArray(e)?Array.prototype.concat.apply(ba,e.map((function(e){return Pl(e,t,n,r)}))):[e.toString()];var o}function Dl(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ya(n)&&!Ka(n))return!1}return!0}var Tl=_a(pa),Ol=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Dl(e),this.componentId=t,this.baseHash=Ma(Tl,t),this.baseStyle=n,yl.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=Xa(r,this.staticRulesId);else{var o=Qa(Pl(this.rules,e,t,n)),i=La(Ma(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=Xa(r,i),this.staticRulesId=i}else{for(var l=Ma(this.baseHash,n.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=Qa(Pl(c,e,t,n));l=Ma(l,d+u),s+=d}}if(s){var p=La(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=Xa(r,p)}}return r},e}(),Nl=Eo.createContext(void 0);Nl.Consumer;var ql={};new Set;function Fl(e,t,n){var r=Ka(e),o=e,i=!Pa(e),a=t.attrs,l=void 0===a?ba:a,s=t.componentId,u=void 0===s?function(e,t){var n="string"!=typeof e?"sc":Ca(e);ql[n]=(ql[n]||0)+1;var r="".concat(n,"-").concat(Aa(pa+n+ql[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return Pa(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Ca(t.displayName),"-").concat(t.componentId):t.componentId||u,f=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,h=t.shouldForwardProp;if(r&&o.shouldForwardProp){var m=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;h=function(e,t){return m(e,t)&&g(e,t)}}else h=m}var b=new Ol(n,p,r?o.componentStyle:void 0);function v(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=Eo.useContext(Nl),c=kl(),d=e.shouldForwardProp||c.shouldForwardProp,p=ya(t,u,i)||va,f=function(e,t,n){for(var r,o=si(si({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=Ya(r=e[i])?r(o):r;for(var l in a)o[l]="className"===l?Xa(o[l],a[l]):"style"===l?si(si({},o[l]),a[l]):a[l]}return t.className&&(o.className=Xa(o.className,t.className)),o}(r,t,p),h=f.as||s,m={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?m.as=f.forwardedAs:d&&!d(g,h)||(m[g]=f[g]));var b=function(e,t){var n=kl();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,f),v=Xa(a,l);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),m[Pa(h)&&!xa.has(h)?"class":"className"]=v,m.ref=n,So.createElement(h,m)}(y,e,t)}v.displayName=d;var y=Eo.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=h,y.foldedComponentIds=r?Xa(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=r?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Za(e,o[r],!0);return e}({},o.defaultProps,e):e}}),el(y,(function(){return".".concat(y.styledComponentId)})),i&&Ua(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function zl(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var jl=function(e){return Object.assign(e,{isCss:!0})};function $l(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Ya(e)||Ja(e))return jl(Pl(zl(ba,ui([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Pl(r):jl(Pl(zl(r,t)))}function Bl(e,t,n){if(void 0===n&&(n=va),!t)throw tl(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,$l.apply(void 0,ui([r],o,!1)))};return r.attrs=function(r){return Bl(e,t,si(si({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return Bl(e,t,si(si({},n),r))},r}var Hl=function(e){return Bl(Fl,e)},Wl=Hl;xa.forEach((function(e){Wl[e]=Hl(e)}));var Gl=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Dl(e),yl.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(Qa(Pl(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&yl.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Vl(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Qa($l.apply(void 0,ui([e],t,!1))),o=Aa(r);return new Ll(o,r)}function Ul(e){const{injectFirst:t,children:n}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return n}Ul.propTypes={children:Pr.node,injectFirst:Pr.bool};const Yl=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=$l.apply(void 0,ui([e],t,!1)),o="sc-global-".concat(Aa(JSON.stringify(r))),i=new Gl(r,o),a=function(e){var t=kl(),n=Eo.useContext(Nl),r=Eo.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,ga,n,o);else{var l=si(si({},t),{theme:ya(t,r,a.defaultProps)});i.renderStyles(e,l,n,o)}}(r,e,t.styleSheet,n,t.stylis),null};return Eo.memo(a)}((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r}));var Kl=Yl;
11
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),v=p-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},kn({exports:{}});const qn=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},Fn=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,n,r)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:"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:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>qn(e,!0)))],c=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...It(r).filter((e=>!s.includes(e))).map((e=>qn(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),zn=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],jn=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{var r;const o=t.fontSize,i=null!==(r=t.fontSizes)&&void 0!==r?r:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>qn(e,!1)))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...zn.filter((e=>!a.includes(e))).map((e=>qn(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),$n=({section:e,defaultFontStyle:t,translator:n,flags:r,getThemeValue:o,translation:i})=>({component:"panel-section",translation:null!=i?i:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:Fn({ref:`${e}.fontFamily`,themeAccessor:t=>{var n;return null!==(n=o(t,e,"fontFamily"))&&void 0!==n?n:t.fontFamily},translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:jn({ref:`${e}.fontSize`,themeAccessor:t=>{var n;return null!==(n=o(t,e,"fontSize"))&&void 0!==n?n:t.fontSize},translator:n}),fontColor:ct(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=o(t,e,"color"))&&void 0!==n?n:t.color}))}},background:ct(`${e}.background`,"properties.background",(t=>{var n;return null!==(n=o(t,e,"backgroundColor"))&&void 0!==n?n:"transparent"}))}}}}),Wn=({section:e,defaultFontStyle:t,fallbackBackground:n,getThemeValue:r})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:ct(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=r(t,e,"color"))&&void 0!==n?n:t.color}))}},background:ct(`${e}.background`,"properties.background",(t=>{var o,i;return null!==(o=null!==(i=r(t,e,"backgroundColor"))&&void 0!==i?i:n)&&void 0!==o?o:"transparent"}))}}}}),Gn=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),Bn="12px",Hn="Source Sans Pro, sans-serif",Vn="600",Un=15e3,Yn=4/3;var Kn,Xn;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(Kn||(Kn={})),function(e){e.Solid="solid",e.None="none"}(Xn||(Xn={}));const Qn={display:"flex",justifyContent:"center",alignItems:"center"},Jn={borderStyle:"solid"},Zn={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},er={lineHeight:Yn,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},tr=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),nr=(e,t)=>e>0?`${e}px ${Xn.Solid} ${t}`:Xn.None,rr=(e,t,n,r)=>{const o=Number(!t||(null==r?void 0:r.right)),i=Number(!e||(null==r?void 0:r.bottom));return{borderRight:nr(o,n),borderBottom:nr(i,n),borderLeft:Xn.None,borderTop:Xn.None}},or=(e,t,n,r,o,i)=>{const a=rr(t,r,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=nr(2,o)),n||(a.borderLeft=nr(1,o))),a},ir=({bottomDivider:e,rightDivider:t,borderColor:n})=>{const r={};return e&&(r.borderBottom=nr(1,n)),t&&(r.borderRight=nr(1,n)),r},ar=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:Gn("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?Gn("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:ct("grid.border","properties.border",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:Kn.DividerLight})),divider:ct("grid.divider","properties.pivot.divider",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n||null===(n=n.divider)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:Kn.DividerDark})),background:ct("grid.background","properties.background",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:Kn.Transparent}))}}}}),lr=(e,t,n)=>{var r,o,i,a,l,s;switch(t){case"header":return null==e||null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.dimension)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.name)||void 0===r?void 0:r[n];case"dimensionValues":return null==e||null===(o=e.object)||void 0===o||null===(o=o.pivotTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[n];case"measureLabels":return null==e||null===(i=e.object)||void 0===i||null===(i=i.pivotTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i[n];case"measureValues":return null==e||null===(a=e.object)||void 0===a||null===(a=a.pivotTableV2)||void 0===a||null===(a=a.measure)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[n];case"totalValues":return null==e||null===(l=e.object)||void 0===l||null===(l=l.pivotTableV2)||void 0===l||null===(l=l.total)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[n];case"nullValues":return null==e||null===(s=e.object)||void 0===s||null===(s=s.pivotTableV2)||void 0===s||null===(s=s.null)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[n];default:return}},sr=(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:$n({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:lr}),dimensionValueSection:$n({section:"dimensionValues",translator:e,flags:t,getThemeValue:lr}),measureValueSection:$n({section:"measureValues",translator:e,flags:t,getThemeValue:lr}),measureLabelSection:Wn({section:"measureLabels",getThemeValue:lr}),totalValuesSection:Wn({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:lr}),nullValuesSection:Wn({section:"nullValues",fallbackBackground:Kn.NullValueBackground,getThemeValue:lr}),gridSection:ar(t)}}]}),ur=e=>({type:"items",items:{nullValueText:{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"},alwaysFullyExpanded:{ref:"qHyperCubeDef.qAlwaysFullyExpanded",type:"boolean",translation:"properties.pivot.fullyExpanded",defaultValue:!1},...e.isEnabled("CLIENT_IM_5975_INDENT_MODE")&&{indentMode:{ref:"qHyperCubeDef.qIndentMode",type:"boolean",translation:"properties.pivot.indentMode",defaultValue:!1,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}},type:{type:"string",component:"dropdown",ref:"qHyperCubeDef.indentModeColumnWidth.type",translation:"Object.Table.Column.Width",options:[{value:Ke.Auto,translation:"Common.Auto"},{value:Ke.Pixels,translation:"Object.Table.Column.Pixels"},{value:Ke.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:Ke.Auto,show:e=>e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:Ye.PixelsDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===Ke.Pixels},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.pixels)&&(n.indentModeColumnWidth.pixels=Math.max(Ye.PixelsMin,Math.min(Ye.PixelsMax,n.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:Ye.PercentageDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===Ke.Percentage},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.percentage)&&(n.indentModeColumnWidth.percentage=Math.max(Ye.PercentageMin,Math.min(Ye.PercentageMaxInIndentMode,n.indentModeColumnWidth.percentage)))}}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(t){var n;const{qIndentMode:r}=t.qHyperCubeDef;return(!r||r&&!e.isEnabled("CLIENT_IM_5975_INDENT_MODE"))&&(null===(n=t.qHyperCubeDef)||void 0===n||null===(n=n.qDimensions)||void 0===n?void 0:n.some((e=>{var t;return"TOTAL_EXPR"===(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qTotalMode)})))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,n,r){e.qHyperCubeDef.qExpansionState=[],r.$emit("saveProperties",e)}}}}),cr=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[sr(e,t),ur(t)]}}}),dr="auto",pr={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>t("integer",e?-1:0)},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>{var t;return!(null==e||null===(t=e.qHyperCubeDef)||void 0===t||!t.qSortbyYValue)}}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:dr,translation:"Object.Table.SortingInSearch",options:[{value:dr,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function fr(e){const{translator:t,flags:n}=e;return{type:"items",component:"accordion",items:{data:ut(e),sorting:pr,addons:Me,settings:cr(t,n)}}}function mr(e){return{support:{cssScaling:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),snapshot:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),export:e.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:fr(e),importProperties:Le(e),exportProperties:Ie}}var hr={exports:{}};function gr(){}function vr(){}vr.resetWarningCache=gr;hr.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:vr,resetWarningCache:gr};return n.PropTypes=n,n}();var br=n(hr.exports);function yr(e){if(e.type)return e;if("#"===e.charAt(0))return yr(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function xr(e,t){return e=yr(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}(e)}var Sr={exports:{}},Er={},Cr=Symbol.for("react.element"),wr=Symbol.for("react.portal"),Rr=Symbol.for("react.fragment"),kr=Symbol.for("react.strict_mode"),Lr=Symbol.for("react.profiler"),Ir=Symbol.for("react.provider"),Mr=Symbol.for("react.context"),_r=Symbol.for("react.forward_ref"),Ar=Symbol.for("react.suspense"),Pr=Symbol.for("react.memo"),Dr=Symbol.for("react.lazy"),Tr=Symbol.iterator;var Or={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Nr=Object.assign,qr={};function Fr(e,t,n){this.props=e,this.context=t,this.refs=qr,this.updater=n||Or}function zr(){}function jr(e,t,n){this.props=e,this.context=t,this.refs=qr,this.updater=n||Or}Fr.prototype.isReactComponent={},Fr.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},Fr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},zr.prototype=Fr.prototype;var $r=jr.prototype=new zr;$r.constructor=jr,Nr($r,Fr.prototype),$r.isPureReactComponent=!0;var Wr=Array.isArray,Gr=Object.prototype.hasOwnProperty,Br={current:null},Hr={key:!0,ref:!0,__self:!0,__source:!0};function Vr(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)Gr.call(t,r)&&!Hr.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:Cr,type:e,key:i,ref:a,props:o,_owner:Br.current}}function Ur(e){return"object"==typeof e&&null!==e&&e.$$typeof===Cr}var Yr=/\/+/g;function Kr(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function Xr(e,t,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Cr:case wr:a=!0}}if(a)return o=o(a=e),e=""===r?"."+Kr(a,0):r,Wr(o)?(n="",null!=e&&(n=e.replace(Yr,"$&/")+"/"),Xr(o,t,n,"",(function(e){return e}))):null!=o&&(Ur(o)&&(o=function(e,t){return{$$typeof:Cr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(Yr,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=""===r?".":r+":",Wr(e))for(var l=0;l<e.length;l++){var s=r+Kr(i=e[l],l);a+=Xr(i,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Tr&&e[Tr]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(i=e.next()).done;)a+=Xr(i=i.value,t,n,s=r+Kr(i,l++),o);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Qr(e,t,n){if(null==e)return e;var r=[],o=0;return Xr(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function Jr(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var Zr={current:null},eo={transition:null},to={ReactCurrentDispatcher:Zr,ReactCurrentBatchConfig:eo,ReactCurrentOwner:Br};function no(){throw Error("act(...) is not supported in production builds of React.")}Er.Children={map:Qr,forEach:function(e,t,n){Qr(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return Qr(e,(function(){t++})),t},toArray:function(e){return Qr(e,(function(e){return e}))||[]},only:function(e){if(!Ur(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Er.Component=Fr,Er.Fragment=Rr,Er.Profiler=Lr,Er.PureComponent=jr,Er.StrictMode=kr,Er.Suspense=Ar,Er.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=to,Er.act=no,Er.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Nr({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=Br.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)Gr.call(t,s)&&!Hr.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==l?l[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Cr,type:e.type,key:o,ref:i,props:r,_owner:a}},Er.createContext=function(e){return(e={$$typeof:Mr,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:Ir,_context:e},e.Consumer=e},Er.createElement=Vr,Er.createFactory=function(e){var t=Vr.bind(null,e);return t.type=e,t},Er.createRef=function(){return{current:null}},Er.forwardRef=function(e){return{$$typeof:_r,render:e}},Er.isValidElement=Ur,Er.lazy=function(e){return{$$typeof:Dr,_payload:{_status:-1,_result:e},_init:Jr}},Er.memo=function(e,t){return{$$typeof:Pr,type:e,compare:void 0===t?null:t}},Er.startTransition=function(e){var t=eo.transition;eo.transition={};try{e()}finally{eo.transition=t}},Er.unstable_act=no,Er.useCallback=function(e,t){return Zr.current.useCallback(e,t)},Er.useContext=function(e){return Zr.current.useContext(e)},Er.useDebugValue=function(){},Er.useDeferredValue=function(e){return Zr.current.useDeferredValue(e)},Er.useEffect=function(e,t){return Zr.current.useEffect(e,t)},Er.useId=function(){return Zr.current.useId()},Er.useImperativeHandle=function(e,t,n){return Zr.current.useImperativeHandle(e,t,n)},Er.useInsertionEffect=function(e,t){return Zr.current.useInsertionEffect(e,t)},Er.useLayoutEffect=function(e,t){return Zr.current.useLayoutEffect(e,t)},Er.useMemo=function(e,t){return Zr.current.useMemo(e,t)},Er.useReducer=function(e,t,n){return Zr.current.useReducer(e,t,n)},Er.useRef=function(e){return Zr.current.useRef(e)},Er.useState=function(e){return Zr.current.useState(e)},Er.useSyncExternalStore=function(e,t,n){return Zr.current.useSyncExternalStore(e,t,n)},Er.useTransition=function(){return Zr.current.useTransition()},Er.version="18.3.1",Sr.exports=Er;var ro=Sr.exports,oo=n(ro),io=t({__proto__:null,default:oo},[ro]);const ao={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"},lo={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...ao,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},so=12,uo=14,co=16,po=24,fo=3,mo=300,ho=400,go=600,vo=700,bo={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};xr(lo.GREYSCALE_0,.05),xr(lo.GREEN_PALE,.5),xr(lo.BLUE_PALE,.5),xr(lo.GREEN_PALE,.5),xr(lo.BLUE_PALE,.5),xr(lo.GREEN_PALE,.5),xr(lo.BLUE_PALE,.5);var yo;function xo(){return xo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xo.apply(this,arguments)}xr(lo.GREEN_PALE,.5),xr(lo.BLUE_PALE,.5),xr(lo.GREEN_PALE,.5),xr(lo.BLUE_PALE,.5);var So,Eo=function(e){return ro.createElement("svg",xo({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),yo||(yo=ro.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Co(){return Co=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Co.apply(this,arguments)}var wo=function(e){return ro.createElement("svg",Co({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),So||(So=ro.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 Ro({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return oo.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var ko=(e={})=>oo.createElement(Ro,{...e},oo.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},oo.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),oo.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),Lo=(e={})=>oo.createElement(Ro,{...e},oo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},oo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},oo.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),oo.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Io=(e={})=>oo.createElement(Ro,{fontSize:"medium",...e},oo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},oo.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},oo.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),Mo=(e={})=>oo.createElement(Ro,{fontSize:"medium",...e},oo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},oo.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),oo.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),_o=({className:e})=>oo.createElement(Ro,{fontSize:"small",className:e},oo.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},oo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},oo.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},oo.createElement("g",{transform:"translate(4.324187, 1.300372)"},oo.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),oo.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"}))))));var Ao={black:"#000",white:"#fff"};var Po={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var Do={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var To={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var Oo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var No={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var qo={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var Fo={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 zo(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 jo="$$material";function $o(){return $o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$o.apply(this,arguments)}function Wo(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Go(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 Bo=Object.freeze({__proto__:null,default:Go}),Ho=function(){return Ho=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ho.apply(this,arguments)};function Vo(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Uo="-ms-",Yo="-moz-",Ko="-webkit-",Xo="comm",Qo="rule",Jo="decl",Zo="@keyframes",ei=Math.abs,ti=String.fromCharCode,ni=Object.assign;function ri(e){return e.trim()}function oi(e,t){return(e=t.exec(e))?e[0]:e}function ii(e,t,n){return e.replace(t,n)}function ai(e,t,n){return e.indexOf(t,n)}function li(e,t){return 0|e.charCodeAt(t)}function si(e,t,n){return e.slice(t,n)}function ui(e){return e.length}function ci(e){return e.length}function di(e,t){return t.push(e),e}function pi(e,t){return e.filter((function(e){return!oi(e,t)}))}var fi=1,mi=1,hi=0,gi=0,vi=0,bi="";function yi(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:fi,column:mi,length:a,return:"",siblings:l}}function xi(e,t){return ni(yi("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Si(e){for(;e.root;)e=xi(e.root,{children:[e]});di(e,e.siblings)}function Ei(){return vi=gi>0?li(bi,--gi):0,mi--,10===vi&&(mi=1,fi--),vi}function Ci(){return vi=gi<hi?li(bi,gi++):0,mi++,10===vi&&(mi=1,fi++),vi}function wi(){return li(bi,gi)}function Ri(){return gi}function ki(e,t){return si(bi,e,t)}function Li(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 Ii(e){return ri(ki(gi-1,Ai(91===e?e+2:40===e?e+1:e)))}function Mi(e){for(;(vi=wi())&&vi<33;)Ci();return Li(e)>2||Li(vi)>3?"":" "}function _i(e,t){for(;--t&&Ci()&&!(vi<48||vi>102||vi>57&&vi<65||vi>70&&vi<97););return ki(e,Ri()+(t<6&&32==wi()&&32==Ci()))}function Ai(e){for(;Ci();)switch(vi){case e:return gi;case 34:case 39:34!==e&&39!==e&&Ai(vi);break;case 40:41===e&&Ai(e);break;case 92:Ci()}return gi}function Pi(e,t){for(;Ci()&&e+vi!==57&&(e+vi!==84||47!==wi()););return"/*"+ki(t,gi-1)+"*"+ti(47===e?e:Ci())}function Di(e){for(;!Li(wi());)Ci();return ki(e,gi)}function Ti(e){return function(e){return bi="",e}(Oi("",null,null,null,[""],e=function(e){return fi=mi=1,hi=ui(bi=e),gi=0,[]}(e),0,[0],e))}function Oi(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,v=1,b=0,y="",x=o,S=i,E=r,C=y;g;)switch(m=b,b=Ci()){case 40:if(108!=m&&58==li(C,d-1)){-1!=ai(C+=ii(Ii(b),"&","&\f"),"&\f",ei(u?l[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=Ii(b);break;case 9:case 10:case 13:case 32:C+=Mi(m);break;case 92:C+=_i(Ri()-1,7);continue;case 47:switch(wi()){case 42:case 47:di(qi(Pi(Ci(),Ri()),t,n,s),s);break;default:C+="/"}break;case 123*h:l[u++]=ui(C)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(C=ii(C,/\f/g,"")),f>0&&ui(C)-d&&di(f>32?Fi(C+";",r,n,d-1,s):Fi(ii(C," ","")+";",r,n,d-2,s),s);break;case 59:C+=";";default:if(di(E=Ni(C,t,n,u,c,o,l,y,x=[],S=[],d,i),i),123===b)if(0===c)Oi(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===li(C,3)?100:p){case 100:case 108:case 109:case 115:Oi(e,E,E,r&&di(Ni(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,r?x:S);break;default:Oi(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=v=1,y=C="",d=a;break;case 58:d=1+ui(C),f=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==Ei())continue;switch(C+=ti(b),b*h){case 38:v=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(ui(C)-1)*v,v=1;break;case 64:45===wi()&&(C+=Ii(Ci())),p=wi(),c=d=ui(y=C+=Di(Ri())),b++;break;case 45:45===m&&2==ui(C)&&(h=0)}}return i}function Ni(e,t,n,r,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=ci(f),h=0,g=0,v=0;h<r;++h)for(var b=0,y=si(e,p+1,p=ei(g=a[h])),x=e;b<m;++b)(x=ri(g>0?f[b]+" "+y:ii(y,/&\f/g,f[b])))&&(s[v++]=x);return yi(e,t,n,0===o?Qo:l,s,u,c,d)}function qi(e,t,n,r){return yi(e,t,n,Xo,ti(vi),si(e,2,-2),0,r)}function Fi(e,t,n,r,o){return yi(e,t,n,Jo,si(e,0,r),si(e,r+1,-1),r,o)}function zi(e,t,n){switch(function(e,t){return 45^li(e,0)?(((t<<2^li(e,0))<<2^li(e,1))<<2^li(e,2))<<2^li(e,3):0}(e,t)){case 5103:return Ko+"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 Ko+e+e;case 4789:return Yo+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ko+e+Yo+e+Uo+e+e;case 5936:switch(li(e,t+11)){case 114:return Ko+e+Uo+ii(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ko+e+Uo+ii(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ko+e+Uo+ii(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ko+e+Uo+e+e;case 6165:return Ko+e+Uo+"flex-"+e+e;case 5187:return Ko+e+ii(e,/(\w+).+(:[^]+)/,Ko+"box-$1$2"+Uo+"flex-$1$2")+e;case 5443:return Ko+e+Uo+"flex-item-"+ii(e,/flex-|-self/g,"")+(oi(e,/flex-|baseline/)?"":Uo+"grid-row-"+ii(e,/flex-|-self/g,""))+e;case 4675:return Ko+e+Uo+"flex-line-pack"+ii(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ko+e+Uo+ii(e,"shrink","negative")+e;case 5292:return Ko+e+Uo+ii(e,"basis","preferred-size")+e;case 6060:return Ko+"box-"+ii(e,"-grow","")+Ko+e+Uo+ii(e,"grow","positive")+e;case 4554:return Ko+ii(e,/([^-])(transform)/g,"$1"+Ko+"$2")+e;case 6187:return ii(ii(ii(e,/(zoom-|grab)/,Ko+"$1"),/(image-set)/,Ko+"$1"),e,"")+e;case 5495:case 3959:return ii(e,/(image-set\([^]*)/,Ko+"$1$`$1");case 4968:return ii(ii(e,/(.+:)(flex-)?(.*)/,Ko+"box-pack:$3"+Uo+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ko+e+e;case 4200:if(!oi(e,/flex-|baseline/))return Uo+"grid-column-align"+si(e,t)+e;break;case 2592:case 3360:return Uo+ii(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,oi(e.props,/grid-\w+-end/)}))?~ai(e+(n=n[t].value),"span",0)?e:Uo+ii(e,"-start","")+e+Uo+"grid-row-span:"+(~ai(n,"span",0)?oi(n,/\d+/):+oi(n,/\d+/)-+oi(e,/\d+/))+";":Uo+ii(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return oi(e.props,/grid-\w+-start/)}))?e:Uo+ii(ii(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return ii(e,/(.+)-inline(.+)/,Ko+"$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(ui(e)-1-t>6)switch(li(e,t+1)){case 109:if(45!==li(e,t+4))break;case 102:return ii(e,/(.+:)(.+)-([^]+)/,"$1"+Ko+"$2-$3$1"+Yo+(108==li(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ai(e,"stretch",0)?zi(ii(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return ii(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,l){return Uo+n+":"+r+l+(o?Uo+n+"-span:"+(i?a:+a-+r)+l:"")+e}));case 4949:if(121===li(e,t+6))return ii(e,":",":"+Ko)+e;break;case 6444:switch(li(e,45===li(e,14)?18:11)){case 120:return ii(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ko+(45===li(e,14)?"inline-":"")+"box$3$1"+Ko+"$2$3$1"+Uo+"$2box$3")+e;case 100:return ii(e,":",":"+Uo)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ii(e,"scroll-","scroll-snap-")+e}return e}function ji(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function $i(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Jo:return e.return=e.return||e.value;case Xo:return"";case Zo:return e.return=e.value+"{"+ji(e.children,r)+"}";case Qo:if(!ui(e.value=e.props.join(",")))return""}return ui(n=ji(e.children,r))?e.return=e.value+"{"+n+"}":""}function Wi(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Jo:return void(e.return=zi(e.value,e.length,n));case Zo:return ji([xi(e,{value:ii(e.value,"@","@"+Ko)})],r);case Qo:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(oi(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Si(xi(e,{props:[ii(t,/:(read-\w+)/,":-moz-$1")]})),Si(xi(e,{props:[t]})),ni(e,{props:pi(n,r)});break;case"::placeholder":Si(xi(e,{props:[ii(t,/:(plac\w+)/,":"+Ko+"input-$1")]})),Si(xi(e,{props:[ii(t,/:(plac\w+)/,":-moz-$1")]})),Si(xi(e,{props:[ii(t,/:(plac\w+)/,Uo+"input-$1")]})),Si(xi(e,{props:[t]})),ni(e,{props:pi(n,r)})}return""}))}}var Gi={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},Bi="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Hi="active",Vi="data-styled-version",Ui="6.1.13",Yi="/*!sc*/\n",Ki="undefined"!=typeof window&&"HTMLElement"in window,Xi=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)),Qi={},Ji=Object.freeze([]),Zi=Object.freeze({});function ea(e,t,n){return void 0===n&&(n=Zi),e.theme!==n.theme&&e.theme||t||n.theme}var ta=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"]),na=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ra=/(^-|-$)/g;function oa(e){return e.replace(na,"-").replace(ra,"")}var ia=/(a)(d)/gi,aa=function(e){return String.fromCharCode(e+(e>25?39:97))};function la(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=aa(t%52)+n;return(aa(t%52)+n).replace(ia,"$1-$2")}var sa,ua=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ca=function(e){return ua(5381,e)};function da(e){return la(ca(e)>>>0)}function pa(e){return"string"==typeof e&&!0}var fa="function"==typeof Symbol&&Symbol.for,ma=fa?Symbol.for("react.memo"):60115,ha=fa?Symbol.for("react.forward_ref"):60112,ga={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},va={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ba={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ya=((sa={})[ha]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},sa[ma]=ba,sa);function xa(e){return("type"in(t=e)&&t.type.$$typeof)===ma?ba:"$$typeof"in e?ya[e.$$typeof]:ga;var t}var Sa=Object.defineProperty,Ea=Object.getOwnPropertyNames,Ca=Object.getOwnPropertySymbols,wa=Object.getOwnPropertyDescriptor,Ra=Object.getPrototypeOf,ka=Object.prototype;function La(e,t,n){if("string"!=typeof t){if(ka){var r=Ra(t);r&&r!==ka&&La(e,r,n)}var o=Ea(t);Ca&&(o=o.concat(Ca(t)));for(var i=xa(e),a=xa(t),l=0;l<o.length;++l){var s=o[l];if(!(s in va||n&&n[s]||a&&s in a||i&&s in i)){var u=wa(t,s);try{Sa(e,s,u)}catch(e){}}}}return e}function Ia(e){return"function"==typeof e}function Ma(e){return"object"==typeof e&&"styledComponentId"in e}function _a(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Aa(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function Pa(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Da(e,t,n){if(void 0===n&&(n=!1),!n&&!Pa(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Da(e[r],t[r]);else if(Pa(t))for(var r in t)e[r]=Da(e[r],t[r]);return e}function Ta(e,t){Object.defineProperty(e,"toString",{value:t})}function Oa(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Na=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw Oa(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(Yi);return t},e}(),qa=new Map,Fa=new Map,za=1,ja=function(e){if(qa.has(e))return qa.get(e);for(;Fa.has(za);)za++;var t=za++;return qa.set(e,t),Fa.set(t,e),t},$a=function(e,t){za=t+1,qa.set(e,t),Fa.set(t,e)},Wa="style[".concat(Bi,"][").concat(Vi,'="').concat(Ui,'"]'),Ga=new RegExp("^".concat(Bi,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ba=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},Ha=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Yi),o=[],i=0,a=r.length;i<a;i++){var l=r[i].trim();if(l){var s=l.match(Ga);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&($a(c,u),Ba(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},Va=function(e){for(var t=document.querySelectorAll(Wa),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Bi)!==Hi&&(Ha(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Ua=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Bi,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Bi,Hi),r.setAttribute(Vi,Ui);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},Ya=function(){function e(e){this.element=Ua(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw Oa(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}(),Ka=function(){function e(e){this.element=Ua(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Xa=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}(),Qa=Ki,Ja={isServer:!Ki,useCSSOMInjection:!Xi},Za=function(){function e(e,t,n){void 0===e&&(e=Zi),void 0===t&&(t={});var r=this;this.options=Ho(Ho({},Ja),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Ki&&Qa&&(Qa=!1,Va(this)),Ta(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return Fa.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||!i.size||0===a.length)return"continue";var l="".concat(Bi,".g").concat(n,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),r+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(Yi)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return ja(e)},e.prototype.rehydrate=function(){!this.server&&Ki&&Va(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Ho(Ho({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Xa(n):t?new Ya(n):new Ka(n)}(this.options),new Na(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(ja(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(ja(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(ja(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),el=/&/g,tl=/^\s*\/\/.*$/gm;function nl(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=nl(e.children,t)),e}))}var rl=new Za,ol=function(e){var t,n,r,o=void 0===e?Zi:e,i=o.options,a=void 0===i?Zi:i,l=o.plugins,s=void 0===l?Ji:l,u=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===Qo&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(el,n).replace(r,u))})),a.prefix&&c.push(Wi),c.push($i);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var s=e.replace(tl,""),u=Ti(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=nl(u,a.namespace));var d,p=[];return ji(u,function(e){var t=ci(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||Oa(15),ua(e,t.name)}),5381).toString():"",d}(),il=oo.createContext({shouldForwardProp:void 0,styleSheet:rl,stylis:ol});function al(){return ro.useContext(il)}il.Consumer;var ll=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ol);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Ta(this,(function(){throw Oa(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=ol),this.name+e.hash},e}(),sl=function(e){return e>="A"&&e<="Z"};function ul(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;sl(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var cl=function(e){return null==e||!1===e||""===e},dl=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!cl(i)&&(Array.isArray(i)&&i.isCss||Ia(i)?r.push("".concat(ul(o),":"),i,";"):Pa(i)?r.push.apply(r,Vo(Vo(["".concat(o," {")],dl(i),!1),["}"],!1)):r.push("".concat(ul(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Gi||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function pl(e,t,n,r){return cl(e)?[]:Ma(e)?[".".concat(e.styledComponentId)]:Ia(e)?!Ia(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:pl(e(t),t,n,r):e instanceof ll?n?(e.inject(n,r),[e.getName(r)]):[e]:Pa(e)?dl(e):Array.isArray(e)?Array.prototype.concat.apply(Ji,e.map((function(e){return pl(e,t,n,r)}))):[e.toString()];var o}function fl(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ia(n)&&!Ma(n))return!1}return!0}var ml=ca(Ui),hl=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&fl(e),this.componentId=t,this.baseHash=ua(ml,t),this.baseStyle=n,Za.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=_a(r,this.staticRulesId);else{var o=Aa(pl(this.rules,e,t,n)),i=la(ua(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=_a(r,i),this.staticRulesId=i}else{for(var l=ua(this.baseHash,n.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=Aa(pl(c,e,t,n));l=ua(l,d+u),s+=d}}if(s){var p=la(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=_a(r,p)}}return r},e}(),gl=oo.createContext(void 0);gl.Consumer;var vl={};new Set;function bl(e,t,n){var r=Ma(e),o=e,i=!pa(e),a=t.attrs,l=void 0===a?Ji:a,s=t.componentId,u=void 0===s?function(e,t){var n="string"!=typeof e?"sc":oa(e);vl[n]=(vl[n]||0)+1;var r="".concat(n,"-").concat(da(Ui+n+vl[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return pa(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(oa(t.displayName),"-").concat(t.componentId):t.componentId||u,f=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(r&&o.shouldForwardProp){var h=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return h(e,t)&&g(e,t)}}else m=h}var v=new hl(n,p,r?o.componentStyle:void 0);function b(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=oo.useContext(gl),c=al(),d=e.shouldForwardProp||c.shouldForwardProp,p=ea(t,u,i)||Zi,f=function(e,t,n){for(var r,o=Ho(Ho({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=Ia(r=e[i])?r(o):r;for(var l in a)o[l]="className"===l?_a(o[l],a[l]):"style"===l?Ho(Ho({},o[l]),a[l]):a[l]}return t.className&&(o.className=_a(o.className,t.className)),o}(r,t,p),m=f.as||s,h={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?h.as=f.forwardedAs:d&&!d(g,m)||(h[g]=f[g]));var v=function(e,t){var n=al();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,f),b=_a(a,l);return v&&(b+=" "+v),f.className&&(b+=" "+f.className),h[pa(m)&&!ta.has(m)?"class":"className"]=b,h.ref=n,ro.createElement(m,h)}(y,e,t)}b.displayName=d;var y=oo.forwardRef(b);return y.attrs=f,y.componentStyle=v,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=r?_a(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=r?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Da(e,o[r],!0);return e}({},o.defaultProps,e):e}}),Ta(y,(function(){return".".concat(y.styledComponentId)})),i&&La(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function yl(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var xl=function(e){return Object.assign(e,{isCss:!0})};function Sl(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Ia(e)||Pa(e))return xl(pl(yl(Ji,Vo([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?pl(r):xl(pl(yl(r,t)))}function El(e,t,n){if(void 0===n&&(n=Zi),!t)throw Oa(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,Sl.apply(void 0,Vo([r],o,!1)))};return r.attrs=function(r){return El(e,t,Ho(Ho({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return El(e,t,Ho(Ho({},n),r))},r}var Cl=function(e){return El(bl,e)},wl=Cl;ta.forEach((function(e){wl[e]=Cl(e)}));var Rl=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=fl(e),Za.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(Aa(pl(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&Za.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function kl(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Aa(Sl.apply(void 0,Vo([e],t,!1))),o=da(r);return new ll(o,r)}function Ll(e){const{injectFirst:t,children:n}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return n}Ll.propTypes={children:br.node,injectFirst:br.bool};const Il=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Sl.apply(void 0,Vo([e],t,!1)),o="sc-global-".concat(da(JSON.stringify(r))),i=new Rl(r,o),a=function(e){var t=al(),n=oo.useContext(gl),r=oo.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,Qi,n,o);else{var l=Ho(Ho({},t),{theme:ea(t,r,a.defaultProps)});i.renderStyles(e,l,n,o)}}(r,e,t.styleSheet,n,t.stylis),null};return oo.memo(a)}((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r}));var Ml=Il;
12
12
  /**
13
13
  * @mui/styled-engine-sc v6.0.0-alpha.24
14
14
  *
@@ -16,7 +16,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.le
16
16
  * This source code is licensed under the MIT license found in the
17
17
  * LICENSE file in the root directory of this source tree.
18
18
  */
19
- function Xl(e,t){let n;return n=t?Wl(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Wl(e),n}Yl.propTypes={defaultTheme:Pr.object,styles:Pr.oneOfType([Pr.array,Pr.string,Pr.object,Pr.func])};const Ql=(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))};var Jl=Object.freeze({__proto__:null,GlobalStyles:Kl,StyledEngineProvider:Ul,ThemeContext:Nl,css:$l,default:Xl,internal_processStyles:Ql,keyframes:Vl});function Zl(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 es(e){if(!Zl(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=es(e[n])})),t}function ts(e,t,n={clone:!0}){const r=n.clone?Ir({},e):e;return Zl(e)&&Zl(t)&&Object.keys(t).forEach((o=>{Zl(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Zl(e[o])?r[o]=ts(e[o],t[o],n):n.clone?r[o]=Zl(t[o])?es(t[o]):t[o]:r[o]=t[o]})),r}var ns,rs=Object.freeze({__proto__:null,default:ts,isPlainObject:Zl}),os={exports:{}},is={},as=Symbol.for("react.element"),ls=Symbol.for("react.portal"),ss=Symbol.for("react.fragment"),us=Symbol.for("react.strict_mode"),cs=Symbol.for("react.profiler"),ds=Symbol.for("react.provider"),ps=Symbol.for("react.context"),fs=Symbol.for("react.server_context"),hs=Symbol.for("react.forward_ref"),ms=Symbol.for("react.suspense"),gs=Symbol.for("react.suspense_list"),bs=Symbol.for("react.memo"),vs=Symbol.for("react.lazy"),ys=Symbol.for("react.offscreen");function xs(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case as:switch(e=e.type){case ss:case cs:case us:case ms:case gs:return e;default:switch(e=e&&e.$$typeof){case fs:case ps:case hs:case vs:case bs:case ds:return e;default:return t}}case ls:return t}}}ns=Symbol.for("react.module.reference"),is.ContextConsumer=ps,is.ContextProvider=ds,is.Element=as,is.ForwardRef=hs,is.Fragment=ss,is.Lazy=vs,is.Memo=bs,is.Portal=ls,is.Profiler=cs,is.StrictMode=us,is.Suspense=ms,is.SuspenseList=gs,is.isAsyncMode=function(){return!1},is.isConcurrentMode=function(){return!1},is.isContextConsumer=function(e){return xs(e)===ps},is.isContextProvider=function(e){return xs(e)===ds},is.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===as},is.isForwardRef=function(e){return xs(e)===hs},is.isFragment=function(e){return xs(e)===ss},is.isLazy=function(e){return xs(e)===vs},is.isMemo=function(e){return xs(e)===bs},is.isPortal=function(e){return xs(e)===ls},is.isProfiler=function(e){return xs(e)===cs},is.isStrictMode=function(e){return xs(e)===us},is.isSuspense=function(e){return xs(e)===ms},is.isSuspenseList=function(e){return xs(e)===gs},is.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===ss||e===cs||e===us||e===ms||e===gs||e===ys||"object"==typeof e&&null!==e&&(e.$$typeof===vs||e.$$typeof===bs||e.$$typeof===ds||e.$$typeof===ps||e.$$typeof===hs||e.$$typeof===ns||void 0!==e.getModuleId)},is.typeOf=xs,os.exports=is;var Ss=os.exports;const Es=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Cs(e){const t=`${e}`.match(Es);return t&&t[1]||""}function ws(e,t=""){return e.displayName||e.name||Cs(e)||t}function Rs(e,t,n){const r=ws(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var ks=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return ws(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Ss.ForwardRef:return Rs(e,e.render,"ForwardRef");case Ss.Memo:return Rs(e,e.type,"memo");default:return}}},getFunctionName:Cs});function Ls(e){if("string"!=typeof e)throw new Error(ai(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Is=Object.freeze({__proto__:null,default:Ls});function Ms(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function _s(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function As(e){return e&&e.ownerDocument||document}function Ps(e){return As(e).defaultView||window}function Ds(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Ts="undefined"!=typeof window?So.useLayoutEffect:So.useEffect;function Os(e){const t=So.useRef(e);return Ts((()=>{t.current=e})),So.useRef(((...e)=>(0,t.current)(...e))).current}function Ns(...e){return So.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Ds(e,t)}))}),e)}const qs={};const Fs=[];let zs=class e{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new e}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}};function js(){const e=function(e,t){const n=So.useRef(qs);return n.current===qs&&(n.current=e(t)),n}(zs.create).current;var t;return t=e.disposeEffect,So.useEffect(t,Fs),e}let $s=!0,Bs=!1;const Hs=new zs,Ws={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 Gs(e){e.metaKey||e.altKey||e.ctrlKey||($s=!0)}function Vs(){$s=!1}function Us(){"hidden"===this.visibilityState&&Bs&&($s=!0)}function Ys(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return $s||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Ws[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Ks(){const e=So.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Gs,!0),t.addEventListener("mousedown",Vs,!0),t.addEventListener("pointerdown",Vs,!0),t.addEventListener("touchstart",Vs,!0),t.addEventListener("visibilitychange",Us,!0))}),[]),t=So.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Ys(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Bs=!0,Hs.start(100,(()=>{Bs=!1})),t.current=!1,!0)},ref:e}}function Xs(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Qs(e,t){const n=Ir({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Ir({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=Ir({},i),Object.keys(o).forEach((e=>{n[r][e]=Qs(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Js(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const Zs=e=>e;var eu=(()=>{let e=Zs;return{configure(t){e=t},generate:t=>e(t),reset(){e=Zs}}})();const tu={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 nu(e,t,n="Mui"){const r=tu[t];return r?`${n}-${r}`:`${eu.generate(e)}-${t}`}function ru(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=nu(e,t,n)})),r}function ou(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var iu=Object.freeze({__proto__:null,default:ou});function au(e){return"string"==typeof e}function lu(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=lu(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function su(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=lu(e))&&(r&&(r+=" "),r+=t);return r}function uu(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function cu(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const du=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function pu(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Or(e,du),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=su(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Ir({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Ir({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=uu(Ir({},o,r)),l=cu(r),s=cu(o),u=t(a),c=su(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=Ir({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Ir({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Ir({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||au(e)?t:Ir({},t,{ownerState:Ir({},t.ownerState,n)})}(n,Ir({},s,{ref:Ns(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}const fu=["values","unit","step"],hu=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)=>Ir({},e,{[t.key]:t.val})),{})};var mu={borderRadius:4};function gu(e,t){return t?ts(e,t,{clone:!1}):e}const bu={xs:0,sm:600,md:900,lg:1200,xl:1536},vu={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${bu[e]}px)`};function yu(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||vu;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||vu;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||bu).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function xu(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Su(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:xu(e,n)||r,t&&(o=t(o,r,e)),o}function Eu(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=xu(e.theme,r)||{};return yu(e,i,(e=>{let r=Su(a,o,e);return e===r&&"string"==typeof e&&(r=Su(a,o,`${t}${"default"===e?"":Ls(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Cu={m:"margin",p:"padding"},wu={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ru={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ku=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Ru[e])return[e];e=Ru[e]}const[t,n]=e.split(""),r=Cu[t],o=wu[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Lu=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Iu=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Mu(e,t,n,r){var o;const i=null!=(o=xu(e,t,!1))?o:n;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 _u(e){return Mu(e,"spacing",8)}function Au(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Pu(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Au(t,n),e)),{})}(ku(n),r);return yu(e,e[n],o)}function Du(e,t){const n=_u(e.theme);return Object.keys(e).map((r=>Pu(e,t,r,n))).reduce(gu,{})}function Tu(e){return Du(e,Lu)}function Ou(e){return Du(e,Iu)}function Nu(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?gu(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function qu(e){return"number"!=typeof e?e:`${e}px solid`}function Fu(e,t){return Eu({prop:e,themeKey:"borders",transform:t})}Tu.propTypes={},Tu.filterProps=Lu,Ou.propTypes={},Ou.filterProps=Iu;const zu=Fu("border",qu),ju=Fu("borderTop",qu),$u=Fu("borderRight",qu),Bu=Fu("borderBottom",qu),Hu=Fu("borderLeft",qu),Wu=Fu("borderColor"),Gu=Fu("borderTopColor"),Vu=Fu("borderRightColor"),Uu=Fu("borderBottomColor"),Yu=Fu("borderLeftColor"),Ku=Fu("outline",qu),Xu=Fu("outlineColor"),Qu=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Mu(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Au(t,e)});return yu(e,e.borderRadius,n)}return null};Qu.propTypes={},Qu.filterProps=["borderRadius"],Nu(zu,ju,$u,Bu,Hu,Wu,Gu,Vu,Uu,Yu,Qu,Ku,Xu);const Ju=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Mu(e.theme,"spacing",8),n=e=>({gap:Au(t,e)});return yu(e,e.gap,n)}return null};Ju.propTypes={},Ju.filterProps=["gap"];const Zu=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Mu(e.theme,"spacing",8),n=e=>({columnGap:Au(t,e)});return yu(e,e.columnGap,n)}return null};Zu.propTypes={},Zu.filterProps=["columnGap"];const ec=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Mu(e.theme,"spacing",8),n=e=>({rowGap:Au(t,e)});return yu(e,e.rowGap,n)}return null};ec.propTypes={},ec.filterProps=["rowGap"];function tc(e,t){return"grey"===t?t:e}Nu(Ju,Zu,ec,Eu({prop:"gridColumn"}),Eu({prop:"gridRow"}),Eu({prop:"gridAutoFlow"}),Eu({prop:"gridAutoColumns"}),Eu({prop:"gridAutoRows"}),Eu({prop:"gridTemplateColumns"}),Eu({prop:"gridTemplateRows"}),Eu({prop:"gridTemplateAreas"}),Eu({prop:"gridArea"}));function nc(e){return e<=1&&0!==e?100*e+"%":e}Nu(Eu({prop:"color",themeKey:"palette",transform:tc}),Eu({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:tc}),Eu({prop:"backgroundColor",themeKey:"palette",transform:tc}));const rc=Eu({prop:"width",transform:nc}),oc=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||bu[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:nc(t)}};return yu(e,e.maxWidth,t)}return null};oc.filterProps=["maxWidth"];const ic=Eu({prop:"minWidth",transform:nc}),ac=Eu({prop:"height",transform:nc}),lc=Eu({prop:"maxHeight",transform:nc}),sc=Eu({prop:"minHeight",transform:nc});Eu({prop:"size",cssProperty:"width",transform:nc}),Eu({prop:"size",cssProperty:"height",transform:nc});Nu(rc,oc,ic,ac,lc,sc,Eu({prop:"boxSizing"}));var uc={border:{themeKey:"borders",transform:qu},borderTop:{themeKey:"borders",transform:qu},borderRight:{themeKey:"borders",transform:qu},borderBottom:{themeKey:"borders",transform:qu},borderLeft:{themeKey:"borders",transform:qu},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:qu},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Qu},color:{themeKey:"palette",transform:tc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:tc},backgroundColor:{themeKey:"palette",transform:tc},p:{style:Ou},pt:{style:Ou},pr:{style:Ou},pb:{style:Ou},pl:{style:Ou},px:{style:Ou},py:{style:Ou},padding:{style:Ou},paddingTop:{style:Ou},paddingRight:{style:Ou},paddingBottom:{style:Ou},paddingLeft:{style:Ou},paddingX:{style:Ou},paddingY:{style:Ou},paddingInline:{style:Ou},paddingInlineStart:{style:Ou},paddingInlineEnd:{style:Ou},paddingBlock:{style:Ou},paddingBlockStart:{style:Ou},paddingBlockEnd:{style:Ou},m:{style:Tu},mt:{style:Tu},mr:{style:Tu},mb:{style:Tu},ml:{style:Tu},mx:{style:Tu},my:{style:Tu},margin:{style:Tu},marginTop:{style:Tu},marginRight:{style:Tu},marginBottom:{style:Tu},marginLeft:{style:Tu},marginX:{style:Tu},marginY:{style:Tu},marginInline:{style:Tu},marginInlineStart:{style:Tu},marginInlineEnd:{style:Tu},marginBlock:{style:Tu},marginBlockStart:{style:Tu},marginBlockEnd:{style:Tu},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:Ju},rowGap:{style:ec},columnGap:{style:Zu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:nc},maxWidth:{style:oc},minWidth:{transform:nc},height:{transform:nc},maxHeight:{transform:nc},minHeight:{transform:nc},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const cc=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[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=xu(n,l)||{};if(u)return u(o);return yu(o,t,(t=>{let n=Su(c,s,t);return t===n&&"string"==typeof t&&(n=Su(c,s,`${e}${"default"===t?"":Ls(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:uc;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=gu(s,e(n,o,i,a));else{const e=yu({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=gu(s,e):s[n]=t({sx:o,theme:i})}else s=gu(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();cc.filterProps=["sx"];var dc=cc;function pc(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}const fc=["breakpoints","palette","spacing","shape"];function hc(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Or(e,fc),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Or(e,fu),i=hu(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Ir({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:n},o)}(n),s=function(e=8){if(e.mui)return e;const t=_u({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=ts({breakpoints:l,direction:"ltr",components:{},palette:Ir({mode:"light"},r),spacing:s,shape:Ir({},mu,i)},a);return u.applyStyles=pc,u=t.reduce(((e,t)=>ts(e,t)),u),u.unstable_sxConfig=Ir({},uc,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return dc({sx:e,theme:this})},u}function mc(e=null){const t=So.useContext(Nl);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const gc=hc();function bc(e=gc){return mc(e)}var vc={exports:{}},yc={},xc=So,Sc=Symbol.for("react.element"),Ec=Symbol.for("react.fragment"),Cc=Object.prototype.hasOwnProperty,wc=xc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Rc={key:!0,ref:!0,__self:!0,__source:!0};function kc(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Cc.call(t,r)&&!Rc.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:Sc,type:e,key:i,ref:a,props:o,_owner:wc.current}}yc.Fragment=Ec,yc.jsx=kc,yc.jsxs=kc,vc.exports=yc;var Lc=vc.exports;function Ic({styles:e,themeId:t,defaultTheme:n={}}){const r=bc(n),o="function"==typeof e?e(t&&r[t]||r):e;return Lc.jsx(Kl,{styles:o})}const Mc=["sx"],_c=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:uc;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function Ac(e){const{sx:t}=e,n=Or(e,Mc),{systemProps:r,otherProps:o}=_c(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Zl(n)?Ir({},r,n):r}:Ir({},r,t),Ir({},o,{sx:i})}const Pc=["className","component"];const Dc=["ownerState"],Tc=["variants"],Oc=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Nc(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const qc=hc(),Fc=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function zc({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function jc(e){return e?(t,n)=>n[e]:null}function $c(e,t){let{ownerState:n}=t,r=Or(t,Dc);const o="function"==typeof e?e(Ir({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>$c(e,Ir({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=Or(o,Tc);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(Ir({ownerState:n},r)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(Ir({ownerState:n},r)):e.style))})),t}return o}function Bc({props:e,name:t,defaultTheme:n,themeId:r}){let o=bc(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Qs(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function Hc(e,t=0,n=1){return ou(e,t,n)}function Wc(e){if(e.type)return e;if("#"===e.charAt(0))return Wc(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(ai(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=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(r))throw new Error(ai(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function Gc(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Vc(e){let t="hsl"===(e=Wc(e)).type||"hsla"===e.type?Wc(function(e){e=Wc(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/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])),Gc({type:l,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Uc(e,t){return e=Wc(e),t=Hc(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Gc(e)}function Yc(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 Kc(e){if(!Yc(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Kc(e[n])})),t}function Xc(e,t,n={clone:!0}){const r=n.clone?Ir({},e):e;return Yc(e)&&Yc(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Yc(t[o])&&o in e&&Yc(e[o])?r[o]=Xc(e[o],t[o],n):n.clone?r[o]=Yc(t[o])?Kc(t[o]):t[o]:r[o]=t[o])})),r}function Qc(e){if("string"!=typeof e)throw new Error(ni(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Jc(e){return e&&e.ownerDocument||document}function Zc(e){return Jc(e).defaultView||window}var ed="undefined"!=typeof window?So.useLayoutEffect:So.useEffect;let td=0;const nd=Co["useId".toString()];function rd(e){if(void 0!==nd){const t=nd();return null!=e?e:t}return function(e){const[t,n]=So.useState(e),r=e||t;return So.useEffect((()=>{null==t&&(td+=1,n(`mui-${td}`))}),[t]),r}(e)}function od({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=So.useRef(void 0!==e),[i,a]=So.useState(t);return[o?e:i,So.useCallback((e=>{o||a(e)}),[])]}function id(e){const t=So.useRef(e);return ed((()=>{t.current=e})),So.useRef(((...e)=>(0,t.current)(...e))).current}function ad(...e){return So.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}class ld{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new ld}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let sd=!0,ud=!1;const cd=new ld,dd={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 pd(e){e.metaKey||e.altKey||e.ctrlKey||(sd=!0)}function fd(){sd=!1}function hd(){"hidden"===this.visibilityState&&ud&&(sd=!0)}function md(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return sd||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!dd[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function gd(){const e=So.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",pd,!0),t.addEventListener("mousedown",fd,!0),t.addEventListener("pointerdown",fd,!0),t.addEventListener("touchstart",fd,!0),t.addEventListener("visibilitychange",hd,!0))}),[]),t=So.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!md(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(ud=!0,cd.start(100,(()=>{ud=!1})),t.current=!1,!0)},ref:e}}function bd(e,t){const n=Ir({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Ir({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=Ir({},i),Object.keys(o).forEach((e=>{n[r][e]=bd(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}const vd=e=>e;var yd=(()=>{let e=vd;return{configure(t){e=t},generate:t=>e(t),reset(){e=vd}}})();const xd={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 Sd(e,t,n="Mui"){const r=xd[t];return r?`${n}-${r}`:`${yd.generate(e)}-${t}`}function Ed(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Sd(e,t,n)})),r}const Cd=["mode","contrastThreshold","tonalOffset"],wd={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:Yo.white,default:Yo.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}},Rd={text:{primary:Yo.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:Yo.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 kd(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=Wc(e),t=Hc(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Gc(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Wc(e),t=Hc(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 n=0;n<3;n+=1)e.values[n]*=1-t;return Gc(e)}(e.main,i)))}function Ld(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=ii(e,Cd),i=e.primary||function(e="light"){return"dark"===e?{main:Qo[200],light:Qo[50],dark:Qo[400]}:{main:Qo[700],light:Qo[400],dark:Qo[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Xo[200],light:Xo[50],dark:Xo[400]}:{main:Xo[500],light:Xo[300],dark:Xo[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Ko[500],light:Ko[300],dark:Ko[700]}:{main:Ko[700],light:Ko[400],dark:Ko[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Jo[400],light:Jo[300],dark:Jo[700]}:{main:Jo[700],light:Jo[500],dark:Jo[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Zo[400],light:Zo[300],dark:Zo[700]}:{main:Zo[800],light:Zo[500],dark:Zo[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:ei[400],light:ei[300],dark:ei[700]}:{main:"#ed6c02",light:ei[500],dark:ei[900]}}(t);function d(e){const t=function(e,t){const n=Vc(e),r=Vc(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Rd.text.primary)>=n?Rd.text.primary:wd.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=oi({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(ni(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(ni(12,t?` (${t})`:"",JSON.stringify(e.main)));return kd(e,"light",o,r),kd(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Rd,light:wd};return Xc(oi({common:oi({},Yo),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:ti,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Id=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Md={textTransform:"uppercase"},_d='"Roboto", "Helvetica", "Arial", sans-serif';function Ad(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=_d,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=ii(n,Id),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,n,o,i)=>{return oi({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===_d?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,Md),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Md),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Xc(oi({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Pd(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var Dd=["none",Pd(0,2,1,-1,0,1,1,0,0,1,3,0),Pd(0,3,1,-2,0,2,2,0,0,1,5,0),Pd(0,3,3,-2,0,3,4,0,0,1,8,0),Pd(0,2,4,-1,0,4,5,0,0,1,10,0),Pd(0,3,5,-1,0,5,8,0,0,1,14,0),Pd(0,3,5,-1,0,6,10,0,0,1,18,0),Pd(0,4,5,-2,0,7,10,1,0,2,16,1),Pd(0,5,5,-3,0,8,10,1,0,3,14,2),Pd(0,5,6,-3,0,9,12,1,0,3,16,2),Pd(0,6,6,-3,0,10,14,1,0,4,18,3),Pd(0,6,7,-4,0,11,15,1,0,4,20,3),Pd(0,7,8,-4,0,12,17,2,0,5,22,4),Pd(0,7,8,-4,0,13,19,2,0,5,24,4),Pd(0,7,9,-4,0,14,21,2,0,5,26,4),Pd(0,8,9,-5,0,15,22,2,0,6,28,5),Pd(0,8,10,-5,0,16,24,2,0,6,30,5),Pd(0,8,11,-5,0,17,26,2,0,6,32,5),Pd(0,9,11,-5,0,18,28,2,0,7,34,6),Pd(0,9,12,-6,0,19,29,2,0,7,36,6),Pd(0,10,13,-6,0,20,31,3,0,8,38,7),Pd(0,10,13,-6,0,21,33,3,0,8,40,7),Pd(0,10,14,-6,0,22,35,3,0,8,42,7),Pd(0,11,14,-7,0,23,36,3,0,9,44,8),Pd(0,11,15,-7,0,24,38,3,0,9,46,8)];const Td=["duration","easing","delay"],Od={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Nd={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function qd(e){return`${Math.round(e)}ms`}function Fd(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function zd(e){const t=oi({},Od,e.easing),n=oi({},Nd,e.duration);return oi({getAutoHeightDuration:Fd,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return ii(r,Td),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:qd(o)} ${i} ${"string"==typeof a?a:qd(a)}`)).join(",")}},e,{easing:t,duration:n})}var jd={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const $d=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Bd(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=ii(e,$d);if(e.vars)throw new Error(ni(18));const l=Ld(r),s=hc(e);let u=Xc(s,{mixins:(c=s.breakpoints,d=n,oi({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Dd.slice(),typography:Ad(l,i),transitions:zd(o),zIndex:oi({},jd),applyDarkStyles(e){if(this.vars){const t=this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)");return{[t]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=Xc(u,a),u=t.reduce(((e,t)=>Xc(e,t)),u),u.unstable_sxConfig=oi({},uc,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return dc({sx:e,theme:this})},u}var Hd=Bd();function Wd(){const e=bc(Hd);return e[ri]||e}function Gd({props:e,name:t}){return Bc({props:e,name:t,defaultTheme:Hd,themeId:ri})}const Vd=e=>Nc(e)&&"classes"!==e,Ud=Nc,Yd=function(e={}){const{themeId:t,defaultTheme:n=qc,rootShouldForwardProp:r=Nc,slotShouldForwardProp:o=Nc}=e,i=e=>dc(Ir({},e,{theme:zc(Ir({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{Ql(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=jc(Fc(s))}=a,p=Or(a,Oc),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=c||!1;let m=Nc;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=Xl(e,Ir({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||Zl(e)?r=>$c(e,Ir({},r,{theme:zc({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...o)=>{let a=b(r);const s=o?o.map(b):[];l&&d&&s.push((e=>{const r=zc(Ir({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=$c(n,Ir({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=zc(Ir({},e,{defaultTheme:n,themeId:t}));return $c({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},Ir({},e,{theme:o}))})),h||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:ri,defaultTheme:Hd,rootShouldForwardProp:Vd});var Kd=Yd;var Xd=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Qd(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Qd(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Jd(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Qd(e))&&(r&&(r+=" "),r+=t);return r}function Zd(e){return Sd("MuiSvgIcon",e)}Ed("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ep=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],tp=Kd("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Qc(n.color)}`],t[`fontSize${Qc(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,l,s,u,c,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),np=So.forwardRef((function(e,t){const n=Gd({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,p=ii(n,ep),f=So.isValidElement(r)&&"svg"===r.type,h=oi({},n,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),m={};u||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return Js({root:["root","inherit"!==t&&`color${Qc(t)}`,`fontSize${Qc(n)}`]},Zd,r)})(h);return Lc.jsxs(tp,oi({as:a,className:Jd(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},m,p,f&&r.props,{ownerState:h,children:[f?r.props.children:r,c?Lc.jsx("title",{children:c}):null]}))}));np.muiName="SvgIcon";var rp=np;var op,ip={},ap=Symbol.for("react.element"),lp=Symbol.for("react.portal"),sp=Symbol.for("react.fragment"),up=Symbol.for("react.strict_mode"),cp=Symbol.for("react.profiler"),dp=Symbol.for("react.provider"),pp=Symbol.for("react.context"),fp=Symbol.for("react.server_context"),hp=Symbol.for("react.forward_ref"),mp=Symbol.for("react.suspense"),gp=Symbol.for("react.suspense_list"),bp=Symbol.for("react.memo"),vp=Symbol.for("react.lazy"),yp=Symbol.for("react.offscreen");
19
+ function _l(e,t){let n;return n=t?wl(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):wl(e),n}Il.propTypes={defaultTheme:br.object,styles:br.oneOfType([br.array,br.string,br.object,br.func])};const Al=(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))};var Pl=Object.freeze({__proto__:null,GlobalStyles:Ml,StyledEngineProvider:Ll,ThemeContext:gl,css:Sl,default:_l,internal_processStyles:Al,keyframes:kl});function Dl(){return Dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dl.apply(null,arguments)}function Tl(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Ol(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 Nl(e){if(!Ol(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Nl(e[n])})),t}function ql(e,t,n={clone:!0}){const r=n.clone?Dl({},e):e;return Ol(e)&&Ol(t)&&Object.keys(t).forEach((o=>{Ol(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ol(e[o])?r[o]=ql(e[o],t[o],n):n.clone?r[o]=Ol(t[o])?Nl(t[o]):t[o]:r[o]=t[o]})),r}var Fl,zl=Object.freeze({__proto__:null,default:ql,isPlainObject:Ol}),jl={exports:{}},$l={},Wl=Symbol.for("react.element"),Gl=Symbol.for("react.portal"),Bl=Symbol.for("react.fragment"),Hl=Symbol.for("react.strict_mode"),Vl=Symbol.for("react.profiler"),Ul=Symbol.for("react.provider"),Yl=Symbol.for("react.context"),Kl=Symbol.for("react.server_context"),Xl=Symbol.for("react.forward_ref"),Ql=Symbol.for("react.suspense"),Jl=Symbol.for("react.suspense_list"),Zl=Symbol.for("react.memo"),es=Symbol.for("react.lazy"),ts=Symbol.for("react.offscreen");function ns(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Wl:switch(e=e.type){case Bl:case Vl:case Hl:case Ql:case Jl:return e;default:switch(e=e&&e.$$typeof){case Kl:case Yl:case Xl:case es:case Zl:case Ul:return e;default:return t}}case Gl:return t}}}Fl=Symbol.for("react.module.reference"),$l.ContextConsumer=Yl,$l.ContextProvider=Ul,$l.Element=Wl,$l.ForwardRef=Xl,$l.Fragment=Bl,$l.Lazy=es,$l.Memo=Zl,$l.Portal=Gl,$l.Profiler=Vl,$l.StrictMode=Hl,$l.Suspense=Ql,$l.SuspenseList=Jl,$l.isAsyncMode=function(){return!1},$l.isConcurrentMode=function(){return!1},$l.isContextConsumer=function(e){return ns(e)===Yl},$l.isContextProvider=function(e){return ns(e)===Ul},$l.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Wl},$l.isForwardRef=function(e){return ns(e)===Xl},$l.isFragment=function(e){return ns(e)===Bl},$l.isLazy=function(e){return ns(e)===es},$l.isMemo=function(e){return ns(e)===Zl},$l.isPortal=function(e){return ns(e)===Gl},$l.isProfiler=function(e){return ns(e)===Vl},$l.isStrictMode=function(e){return ns(e)===Hl},$l.isSuspense=function(e){return ns(e)===Ql},$l.isSuspenseList=function(e){return ns(e)===Jl},$l.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Bl||e===Vl||e===Hl||e===Ql||e===Jl||e===ts||"object"==typeof e&&null!==e&&(e.$$typeof===es||e.$$typeof===Zl||e.$$typeof===Ul||e.$$typeof===Yl||e.$$typeof===Xl||e.$$typeof===Fl||void 0!==e.getModuleId)},$l.typeOf=ns,jl.exports=$l;var rs=jl.exports;const os=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function is(e){const t=`${e}`.match(os);return t&&t[1]||""}function as(e,t=""){return e.displayName||e.name||is(e)||t}function ls(e,t,n){const r=as(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var ss=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return as(e,"Component");if("object"==typeof e)switch(e.$$typeof){case rs.ForwardRef:return ls(e,e.render,"ForwardRef");case rs.Memo:return ls(e,e.type,"memo");default:return}}},getFunctionName:is});function us(e){if("string"!=typeof e)throw new Error(Go(7));return e.charAt(0).toUpperCase()+e.slice(1)}var cs=Object.freeze({__proto__:null,default:us});function ds(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function ps(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function fs(e){return e&&e.ownerDocument||document}function ms(e){return fs(e).defaultView||window}function hs(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var gs="undefined"!=typeof window?ro.useLayoutEffect:ro.useEffect;function vs(e){const t=ro.useRef(e);return gs((()=>{t.current=e})),ro.useRef(((...e)=>(0,t.current)(...e))).current}function bs(...e){return ro.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{hs(e,t)}))}),e)}const ys={};const xs=[];let Ss=class e{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new e}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}};function Es(){const e=function(e,t){const n=ro.useRef(ys);return n.current===ys&&(n.current=e(t)),n}(Ss.create).current;return function(e){ro.useEffect(e,xs)}(e.disposeEffect),e}let Cs=!0,ws=!1;const Rs=new Ss,ks={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 Ls(e){e.metaKey||e.altKey||e.ctrlKey||(Cs=!0)}function Is(){Cs=!1}function Ms(){"hidden"===this.visibilityState&&ws&&(Cs=!0)}function _s(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Cs||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!ks[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function As(){const e=ro.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Ls,!0),t.addEventListener("mousedown",Is,!0),t.addEventListener("pointerdown",Is,!0),t.addEventListener("touchstart",Is,!0),t.addEventListener("visibilitychange",Ms,!0))}),[]),t=ro.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!_s(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(ws=!0,Rs.start(100,(()=>{ws=!1})),t.current=!1,!0)},ref:e}}function Ps(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Ds(e,t){const n=Dl({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Dl({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=Dl({},i),Object.keys(o).forEach((e=>{n[r][e]=Ds(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Ts(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const Os=e=>e;var Ns=(()=>{let e=Os;return{configure(t){e=t},generate:t=>e(t),reset(){e=Os}}})();const qs={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 Fs(e,t,n="Mui"){const r=qs[t];return r?`${n}-${r}`:`${Ns.generate(e)}-${t}`}function zs(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Fs(e,t,n)})),r}function js(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var $s=Object.freeze({__proto__:null,default:js});function Ws(e){return"string"==typeof e}function Gs(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Gs(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Bs(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Gs(e))&&(r&&(r+=" "),r+=t);return r}function Hs(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function Vs(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const Us=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ys(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Tl(e,Us),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=Bs(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Dl({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Dl({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Hs(Dl({},o,r)),l=Vs(r),s=Vs(o),u=t(a),c=Bs(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=Dl({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Dl({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Dl({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||Ws(e)?t:Dl({},t,{ownerState:Dl({},t.ownerState,n)})}(n,Dl({},s,{ref:bs(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}const Ks=["values","unit","step"];function Xs(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Tl(e,Ks),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)=>Dl({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Dl({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:n},o)}var Qs={borderRadius:4};function Js(e,t){return t?ql(e,t,{clone:!1}):e}const Zs={xs:0,sm:600,md:900,lg:1200,xl:1536},eu={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Zs[e]}px)`};function tu(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||eu;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||eu;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Zs).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function nu(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function ru(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:nu(e,n)||r,t&&(o=t(o,r,e)),o}function ou(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=nu(e.theme,r)||{};return tu(e,i,(e=>{let r=ru(a,o,e);return e===r&&"string"==typeof e&&(r=ru(a,o,`${t}${"default"===e?"":us(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const iu={m:"margin",p:"padding"},au={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},lu={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},su=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!lu[e])return[e];e=lu[e]}const[t,n]=e.split(""),r=iu[t],o=au[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),uu=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],cu=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function du(e,t,n,r){var o;const i=null!=(o=nu(e,t,!1))?o:n;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 pu(e){return du(e,"spacing",8)}function fu(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function mu(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=fu(t,n),e)),{})}(su(n),r);return tu(e,e[n],o)}function hu(e,t){const n=pu(e.theme);return Object.keys(e).map((r=>mu(e,t,r,n))).reduce(Js,{})}function gu(e){return hu(e,uu)}function vu(e){return hu(e,cu)}function bu(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?Js(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function yu(e){return"number"!=typeof e?e:`${e}px solid`}function xu(e,t){return ou({prop:e,themeKey:"borders",transform:t})}gu.propTypes={},gu.filterProps=uu,vu.propTypes={},vu.filterProps=cu;const Su=xu("border",yu),Eu=xu("borderTop",yu),Cu=xu("borderRight",yu),wu=xu("borderBottom",yu),Ru=xu("borderLeft",yu),ku=xu("borderColor"),Lu=xu("borderTopColor"),Iu=xu("borderRightColor"),Mu=xu("borderBottomColor"),_u=xu("borderLeftColor"),Au=xu("outline",yu),Pu=xu("outlineColor"),Du=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=du(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:fu(t,e)});return tu(e,e.borderRadius,n)}return null};Du.propTypes={},Du.filterProps=["borderRadius"],bu(Su,Eu,Cu,wu,Ru,ku,Lu,Iu,Mu,_u,Du,Au,Pu);const Tu=e=>{if(void 0!==e.gap&&null!==e.gap){const t=du(e.theme,"spacing",8),n=e=>({gap:fu(t,e)});return tu(e,e.gap,n)}return null};Tu.propTypes={},Tu.filterProps=["gap"];const Ou=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=du(e.theme,"spacing",8),n=e=>({columnGap:fu(t,e)});return tu(e,e.columnGap,n)}return null};Ou.propTypes={},Ou.filterProps=["columnGap"];const Nu=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=du(e.theme,"spacing",8),n=e=>({rowGap:fu(t,e)});return tu(e,e.rowGap,n)}return null};Nu.propTypes={},Nu.filterProps=["rowGap"];function qu(e,t){return"grey"===t?t:e}bu(Tu,Ou,Nu,ou({prop:"gridColumn"}),ou({prop:"gridRow"}),ou({prop:"gridAutoFlow"}),ou({prop:"gridAutoColumns"}),ou({prop:"gridAutoRows"}),ou({prop:"gridTemplateColumns"}),ou({prop:"gridTemplateRows"}),ou({prop:"gridTemplateAreas"}),ou({prop:"gridArea"}));function Fu(e){return e<=1&&0!==e?100*e+"%":e}bu(ou({prop:"color",themeKey:"palette",transform:qu}),ou({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:qu}),ou({prop:"backgroundColor",themeKey:"palette",transform:qu}));const zu=ou({prop:"width",transform:Fu}),ju=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||Zs[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Fu(t)}};return tu(e,e.maxWidth,t)}return null};ju.filterProps=["maxWidth"];const $u=ou({prop:"minWidth",transform:Fu}),Wu=ou({prop:"height",transform:Fu}),Gu=ou({prop:"maxHeight",transform:Fu}),Bu=ou({prop:"minHeight",transform:Fu});ou({prop:"size",cssProperty:"width",transform:Fu}),ou({prop:"size",cssProperty:"height",transform:Fu});bu(zu,ju,$u,Wu,Gu,Bu,ou({prop:"boxSizing"}));var Hu={border:{themeKey:"borders",transform:yu},borderTop:{themeKey:"borders",transform:yu},borderRight:{themeKey:"borders",transform:yu},borderBottom:{themeKey:"borders",transform:yu},borderLeft:{themeKey:"borders",transform:yu},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:yu},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Du},color:{themeKey:"palette",transform:qu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:qu},backgroundColor:{themeKey:"palette",transform:qu},p:{style:vu},pt:{style:vu},pr:{style:vu},pb:{style:vu},pl:{style:vu},px:{style:vu},py:{style:vu},padding:{style:vu},paddingTop:{style:vu},paddingRight:{style:vu},paddingBottom:{style:vu},paddingLeft:{style:vu},paddingX:{style:vu},paddingY:{style:vu},paddingInline:{style:vu},paddingInlineStart:{style:vu},paddingInlineEnd:{style:vu},paddingBlock:{style:vu},paddingBlockStart:{style:vu},paddingBlockEnd:{style:vu},m:{style:gu},mt:{style:gu},mr:{style:gu},mb:{style:gu},ml:{style:gu},mx:{style:gu},my:{style:gu},margin:{style:gu},marginTop:{style:gu},marginRight:{style:gu},marginBottom:{style:gu},marginLeft:{style:gu},marginX:{style:gu},marginY:{style:gu},marginInline:{style:gu},marginInlineStart:{style:gu},marginInlineEnd:{style:gu},marginBlock:{style:gu},marginBlockStart:{style:gu},marginBlockEnd:{style:gu},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:Tu},rowGap:{style:Nu},columnGap:{style:Ou},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Fu},maxWidth:{style:ju},minWidth:{transform:Fu},height:{transform:Fu},maxHeight:{transform:Fu},minHeight:{transform:Fu},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Vu=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[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=nu(n,l)||{};if(u)return u(o);return tu(o,t,(t=>{let n=ru(c,s,t);return t===n&&"string"==typeof t&&(n=ru(c,s,`${e}${"default"===t?"":us(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:Hu;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=Js(s,e(n,o,i,a));else{const e=tu({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=Js(s,e):s[n]=t({sx:o,theme:i})}else s=Js(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();Vu.filterProps=["sx"];var Uu=Vu;function Yu(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}const Ku=["breakpoints","palette","spacing","shape"];function Xu(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Tl(e,Ku),l=Xs(n),s=function(e=8){if(e.mui)return e;const t=pu({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=ql({breakpoints:l,direction:"ltr",components:{},palette:Dl({mode:"light"},r),spacing:s,shape:Dl({},Qs,i)},a);return u.applyStyles=Yu,u=t.reduce(((e,t)=>ql(e,t)),u),u.unstable_sxConfig=Dl({},Hu,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Uu({sx:e,theme:this})},u}function Qu(e=null){const t=ro.useContext(gl);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Ju=Xu();function Zu(e=Ju){return Qu(e)}var ec={exports:{}},tc={},nc=ro,rc=Symbol.for("react.element"),oc=Symbol.for("react.fragment"),ic=Object.prototype.hasOwnProperty,ac=nc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,lc={key:!0,ref:!0,__self:!0,__source:!0};function sc(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)ic.call(t,r)&&!lc.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:rc,type:e,key:i,ref:a,props:o,_owner:ac.current}}tc.Fragment=oc,tc.jsx=sc,tc.jsxs=sc,ec.exports=tc;var uc=ec.exports;function cc({styles:e,themeId:t,defaultTheme:n={}}){const r=Zu(n),o="function"==typeof e?e(t&&r[t]||r):e;return uc.jsx(Ml,{styles:o})}const dc=["sx"];function pc(e){const{sx:t}=e,n=Tl(e,dc),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Hu;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Ol(n)?Dl({},r,n):r}:Dl({},r,t),Dl({},o,{sx:i})}const fc=["className","component"];const mc=["ownerState"],hc=["variants"],gc=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function vc(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const bc=Xu(),yc=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function xc({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Sc(e){return e?(t,n)=>n[e]:null}function Ec(e,t){let{ownerState:n}=t,r=Tl(t,mc);const o="function"==typeof e?e(Dl({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>Ec(e,Dl({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=Tl(o,hc);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(Dl({ownerState:n},r)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(Dl({ownerState:n},r)):e.style))})),t}return o}function Cc({props:e,name:t,defaultTheme:n,themeId:r}){let o=Zu(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Ds(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function wc(e,t=0,n=1){return js(e,t,n)}function Rc(e){if(e.type)return e;if("#"===e.charAt(0))return Rc(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Go(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=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(r))throw new Error(Go(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function kc(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Lc(e){let t="hsl"===(e=Rc(e)).type||"hsla"===e.type?Rc(function(e){e=Rc(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/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])),kc({type:l,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ic(e,t){return e=Rc(e),t=wc(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,kc(e)}function Mc(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 _c(e){if(!Mc(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=_c(e[n])})),t}function Ac(e,t,n={clone:!0}){const r=n.clone?Dl({},e):e;return Mc(e)&&Mc(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Mc(t[o])&&o in e&&Mc(e[o])?r[o]=Ac(e[o],t[o],n):n.clone?r[o]=Mc(t[o])?_c(t[o]):t[o]:r[o]=t[o])})),r}function Pc(e){if("string"!=typeof e)throw new Error(zo(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Dc(e){return e&&e.ownerDocument||document}function Tc(e){return Dc(e).defaultView||window}var Oc="undefined"!=typeof window?ro.useLayoutEffect:ro.useEffect;let Nc=0;const qc=io["useId".toString()];function Fc(e){if(void 0!==qc){const t=qc();return null!=e?e:t}return function(e){const[t,n]=ro.useState(e),r=e||t;return ro.useEffect((()=>{null==t&&(Nc+=1,n(`mui-${Nc}`))}),[t]),r}(e)}function zc({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=ro.useRef(void 0!==e),[i,a]=ro.useState(t);return[o?e:i,ro.useCallback((e=>{o||a(e)}),[])]}function jc(e){const t=ro.useRef(e);return Oc((()=>{t.current=e})),ro.useRef(((...e)=>(0,t.current)(...e))).current}function $c(...e){return ro.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}class Wc{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new Wc}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let Gc=!0,Bc=!1;const Hc=new Wc,Vc={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 Uc(e){e.metaKey||e.altKey||e.ctrlKey||(Gc=!0)}function Yc(){Gc=!1}function Kc(){"hidden"===this.visibilityState&&Bc&&(Gc=!0)}function Xc(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Gc||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Vc[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Qc(){const e=ro.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Uc,!0),t.addEventListener("mousedown",Yc,!0),t.addEventListener("pointerdown",Yc,!0),t.addEventListener("touchstart",Yc,!0),t.addEventListener("visibilitychange",Kc,!0))}),[]),t=ro.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Xc(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Bc=!0,Hc.start(100,(()=>{Bc=!1})),t.current=!1,!0)},ref:e}}function Jc(e,t){const n=Dl({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Dl({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=Dl({},i),Object.keys(o).forEach((e=>{n[r][e]=Jc(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}const Zc=e=>e;var ed=(()=>{let e=Zc;return{configure(t){e=t},generate:t=>e(t),reset(){e=Zc}}})();const td={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 nd(e,t,n="Mui"){const r=td[t];return r?`${n}-${r}`:`${ed.generate(e)}-${t}`}function rd(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=nd(e,t,n)})),r}const od=["mode","contrastThreshold","tonalOffset"],id={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:Ao.white,default:Ao.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}},ad={text:{primary:Ao.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:Ao.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 ld(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=Rc(e),t=wc(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return kc(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Rc(e),t=wc(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 n=0;n<3;n+=1)e.values[n]*=1-t;return kc(e)}(e.main,i)))}function sd(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Wo(e,od),i=e.primary||function(e="light"){return"dark"===e?{main:To[200],light:To[50],dark:To[400]}:{main:To[700],light:To[400],dark:To[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Do[200],light:Do[50],dark:Do[400]}:{main:Do[500],light:Do[300],dark:Do[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Po[500],light:Po[300],dark:Po[700]}:{main:Po[700],light:Po[400],dark:Po[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Oo[400],light:Oo[300],dark:Oo[700]}:{main:Oo[700],light:Oo[500],dark:Oo[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:No[400],light:No[300],dark:No[700]}:{main:No[800],light:No[500],dark:No[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:qo[400],light:qo[300],dark:qo[700]}:{main:"#ed6c02",light:qo[500],dark:qo[900]}}(t);function d(e){const t=function(e,t){const n=Lc(e),r=Lc(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,ad.text.primary)>=n?ad.text.primary:id.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=$o({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(zo(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(zo(12,t?` (${t})`:"",JSON.stringify(e.main)));return ld(e,"light",o,r),ld(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:ad,light:id};return Ac($o({common:$o({},Ao),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:Fo,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const ud=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const cd={textTransform:"uppercase"},dd='"Roboto", "Helvetica", "Arial", sans-serif';function pd(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=dd,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Wo(n,ud),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return $o({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===dd?{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,cd),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,cd),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ac($o({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function fd(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var md=["none",fd(0,2,1,-1,0,1,1,0,0,1,3,0),fd(0,3,1,-2,0,2,2,0,0,1,5,0),fd(0,3,3,-2,0,3,4,0,0,1,8,0),fd(0,2,4,-1,0,4,5,0,0,1,10,0),fd(0,3,5,-1,0,5,8,0,0,1,14,0),fd(0,3,5,-1,0,6,10,0,0,1,18,0),fd(0,4,5,-2,0,7,10,1,0,2,16,1),fd(0,5,5,-3,0,8,10,1,0,3,14,2),fd(0,5,6,-3,0,9,12,1,0,3,16,2),fd(0,6,6,-3,0,10,14,1,0,4,18,3),fd(0,6,7,-4,0,11,15,1,0,4,20,3),fd(0,7,8,-4,0,12,17,2,0,5,22,4),fd(0,7,8,-4,0,13,19,2,0,5,24,4),fd(0,7,9,-4,0,14,21,2,0,5,26,4),fd(0,8,9,-5,0,15,22,2,0,6,28,5),fd(0,8,10,-5,0,16,24,2,0,6,30,5),fd(0,8,11,-5,0,17,26,2,0,6,32,5),fd(0,9,11,-5,0,18,28,2,0,7,34,6),fd(0,9,12,-6,0,19,29,2,0,7,36,6),fd(0,10,13,-6,0,20,31,3,0,8,38,7),fd(0,10,13,-6,0,21,33,3,0,8,40,7),fd(0,10,14,-6,0,22,35,3,0,8,42,7),fd(0,11,14,-7,0,23,36,3,0,9,44,8),fd(0,11,15,-7,0,24,38,3,0,9,46,8)];const hd=["duration","easing","delay"],gd={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)"},vd={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function bd(e){return`${Math.round(e)}ms`}function yd(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function xd(e){const t=$o({},gd,e.easing),n=$o({},vd,e.duration);return $o({getAutoHeightDuration:yd,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Wo(r,hd),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:bd(o)} ${i} ${"string"==typeof a?a:bd(a)}`)).join(",")}},e,{easing:t,duration:n})}var Sd={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Ed=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Cd(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Wo(e,Ed);if(e.vars)throw new Error(zo(18));const l=sd(r),s=Xu(e);let u=Ac(s,{mixins:(c=s.breakpoints,d=n,$o({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:md.slice(),typography:pd(l,i),transitions:xd(o),zIndex:$o({},Sd),applyDarkStyles(e){if(this.vars){const t=this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)");return{[t]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=Ac(u,a),u=t.reduce(((e,t)=>Ac(e,t)),u),u.unstable_sxConfig=$o({},Hu,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Uu({sx:e,theme:this})},u}var wd=Cd();function Rd(){const e=Zu(wd);return e[jo]||e}function kd({props:e,name:t}){return Cc({props:e,name:t,defaultTheme:wd,themeId:jo})}const Ld=e=>vc(e)&&"classes"!==e,Id=vc,Md=function(e={}){const{themeId:t,defaultTheme:n=bc,rootShouldForwardProp:r=vc,slotShouldForwardProp:o=vc}=e,i=e=>Uu(Dl({},e,{theme:xc(Dl({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{Al(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Sc(yc(s))}=a,p=Tl(a,gc),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=vc;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=_l(e,Dl({shouldForwardProp:h,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||Ol(e)?r=>Ec(e,Dl({},r,{theme:xc({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let a=v(r);const s=o?o.map(v):[];l&&d&&s.push((e=>{const r=xc(Dl({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=Ec(n,Dl({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=xc(Dl({},e,{defaultTheme:n,themeId:t}));return Ec({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},Dl({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(b.withConfig=g.withConfig),b}}({themeId:jo,defaultTheme:wd,rootShouldForwardProp:Ld});var _d=Md;var Ad=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Pd(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Pd(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Dd(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Pd(e))&&(r&&(r+=" "),r+=t);return r}function Td(e){return nd("MuiSvgIcon",e)}rd("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Od=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Nd=_d("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Pc(n.color)}`],t[`fontSize${Pc(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,l,s,u,c,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),qd=ro.forwardRef((function(e,t){const n=kd({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,p=Wo(n,Od),f=ro.isValidElement(r)&&"svg"===r.type,m=$o({},n,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return Ts({root:["root","inherit"!==t&&`color${Pc(t)}`,`fontSize${Pc(n)}`]},Td,r)})(m);return uc.jsxs(Nd,$o({as:a,className:Dd(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&r.props,{ownerState:m,children:[f?r.props.children:r,c?uc.jsx("title",{children:c}):null]}))}));qd.muiName="SvgIcon";var Fd=qd;var zd,jd={},$d=Symbol.for("react.element"),Wd=Symbol.for("react.portal"),Gd=Symbol.for("react.fragment"),Bd=Symbol.for("react.strict_mode"),Hd=Symbol.for("react.profiler"),Vd=Symbol.for("react.provider"),Ud=Symbol.for("react.context"),Yd=Symbol.for("react.server_context"),Kd=Symbol.for("react.forward_ref"),Xd=Symbol.for("react.suspense"),Qd=Symbol.for("react.suspense_list"),Jd=Symbol.for("react.memo"),Zd=Symbol.for("react.lazy"),ep=Symbol.for("react.offscreen");
20
20
  /**
21
21
  * @license React
22
22
  * react-is.production.min.js
@@ -25,7 +25,7 @@ function Xl(e,t){let n;return n=t?Wl(e).withConfig({displayName:t.label,shouldFo
25
25
  *
26
26
  * This source code is licensed under the MIT license found in the
27
27
  * LICENSE file in the root directory of this source tree.
28
- */function xp(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ap:switch(e=e.type){case sp:case cp:case up:case mp:case gp:return e;default:switch(e=e&&e.$$typeof){case fp:case pp:case hp:case vp:case bp:case dp:return e;default:return t}}case lp:return t}}}op=Symbol.for("react.module.reference"),ip.ContextConsumer=pp,ip.ContextProvider=dp,ip.Element=ap,ip.ForwardRef=hp,ip.Fragment=sp,ip.Lazy=vp,ip.Memo=bp,ip.Portal=lp,ip.Profiler=cp,ip.StrictMode=up,ip.Suspense=mp,ip.SuspenseList=gp,ip.isAsyncMode=function(){return!1},ip.isConcurrentMode=function(){return!1},ip.isContextConsumer=function(e){return xp(e)===pp},ip.isContextProvider=function(e){return xp(e)===dp},ip.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ap},ip.isForwardRef=function(e){return xp(e)===hp},ip.isFragment=function(e){return xp(e)===sp},ip.isLazy=function(e){return xp(e)===vp},ip.isMemo=function(e){return xp(e)===bp},ip.isPortal=function(e){return xp(e)===lp},ip.isProfiler=function(e){return xp(e)===cp},ip.isStrictMode=function(e){return xp(e)===up},ip.isSuspense=function(e){return xp(e)===mp},ip.isSuspenseList=function(e){return xp(e)===gp},ip.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===sp||e===cp||e===up||e===mp||e===gp||e===yp||"object"==typeof e&&null!==e&&(e.$$typeof===vp||e.$$typeof===bp||e.$$typeof===dp||e.$$typeof===pp||e.$$typeof===hp||e.$$typeof===op||void 0!==e.getModuleId)},ip.typeOf=xp;var Sp={exports:{}},Ep={},Cp={exports:{}},wp={};
28
+ */function tp(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case $d:switch(e=e.type){case Gd:case Hd:case Bd:case Xd:case Qd:return e;default:switch(e=e&&e.$$typeof){case Yd:case Ud:case Kd:case Zd:case Jd:case Vd:return e;default:return t}}case Wd:return t}}}function np(e,t){return np=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},np(e,t)}function rp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,np(e,t)}zd=Symbol.for("react.module.reference"),jd.ContextConsumer=Ud,jd.ContextProvider=Vd,jd.Element=$d,jd.ForwardRef=Kd,jd.Fragment=Gd,jd.Lazy=Zd,jd.Memo=Jd,jd.Portal=Wd,jd.Profiler=Hd,jd.StrictMode=Bd,jd.Suspense=Xd,jd.SuspenseList=Qd,jd.isAsyncMode=function(){return!1},jd.isConcurrentMode=function(){return!1},jd.isContextConsumer=function(e){return tp(e)===Ud},jd.isContextProvider=function(e){return tp(e)===Vd},jd.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===$d},jd.isForwardRef=function(e){return tp(e)===Kd},jd.isFragment=function(e){return tp(e)===Gd},jd.isLazy=function(e){return tp(e)===Zd},jd.isMemo=function(e){return tp(e)===Jd},jd.isPortal=function(e){return tp(e)===Wd},jd.isProfiler=function(e){return tp(e)===Hd},jd.isStrictMode=function(e){return tp(e)===Bd},jd.isSuspense=function(e){return tp(e)===Xd},jd.isSuspenseList=function(e){return tp(e)===Qd},jd.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Gd||e===Hd||e===Bd||e===Xd||e===Qd||e===ep||"object"==typeof e&&null!==e&&(e.$$typeof===Zd||e.$$typeof===Jd||e.$$typeof===Vd||e.$$typeof===Ud||e.$$typeof===Kd||e.$$typeof===zd||void 0!==e.getModuleId)},jd.typeOf=tp;var op={exports:{}},ip={},ap={exports:{}},lp={};
29
29
  /**
30
30
  * @license React
31
31
  * scheduler.production.min.js
@@ -35,7 +35,7 @@ function Xl(e,t){let n;return n=t?Wl(e).withConfig({displayName:t.label,shouldFo
35
35
  * This source code is licensed under the MIT license found in the
36
36
  * LICENSE file in the root directory of this source tree.
37
37
  */
38
- !function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>o(s,n))u<i&&0>o(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],c=1,d=null,p=3,f=!1,h=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(s,o)}o=n(u)}}function x(e){if(m=!1,y(e),!h)if(null!==n(s))h=!0,P(S);else{var t=n(u);null!==t&&D(x,t.startTime-e)}}function S(t,o){h=!1,m&&(m=!1,b(R),R=-1),f=!0;var i=p;try{for(y(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!I());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var l=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?d.callback=l:d===n(s)&&r(s),y(o)}else r(s);d=n(s)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&D(x,g.startTime-o),c=!1}return c}finally{d=null,p=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,C=!1,w=null,R=-1,k=5,L=-1;function I(){return!(e.unstable_now()-L<k)}function M(){if(null!==w){var t=e.unstable_now();L=t;var n=!0;try{n=w(!0,t)}finally{n?E():(C=!1,w=null)}}else C=!1}if("function"==typeof v)E=function(){v(M)};else if("undefined"!=typeof MessageChannel){var _=new MessageChannel,A=_.port2;_.port1.onmessage=M,E=function(){A.postMessage(null)}}else E=function(){g(M,0)};function P(e){w=e,C||(C=!0,E())}function D(t,n){R=g((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||f||(h=!0,P(S))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(r.sortIndex=i,t(u,r),null===n(s)&&r===n(u)&&(m?(b(R),R=-1):m=!0,D(x,i-a))):(r.sortIndex=l,t(s,r),h||f||(h=!0,P(S))),r},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(wp),Cp.exports=wp;var Rp=Cp.exports,kp=So,Lp=Rp;
38
+ !function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>o(s,n))u<i&&0>o(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],c=1,d=null,p=3,f=!1,m=!1,h=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(s,o)}o=n(u)}}function x(e){if(h=!1,y(e),!m)if(null!==n(s))m=!0,P(S);else{var t=n(u);null!==t&&D(x,t.startTime-e)}}function S(t,o){m=!1,h&&(h=!1,v(R),R=-1),f=!0;var i=p;try{for(y(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!I());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var l=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?d.callback=l:d===n(s)&&r(s),y(o)}else r(s);d=n(s)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&D(x,g.startTime-o),c=!1}return c}finally{d=null,p=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,C=!1,w=null,R=-1,k=5,L=-1;function I(){return!(e.unstable_now()-L<k)}function M(){if(null!==w){var t=e.unstable_now();L=t;var n=!0;try{n=w(!0,t)}finally{n?E():(C=!1,w=null)}}else C=!1}if("function"==typeof b)E=function(){b(M)};else if("undefined"!=typeof MessageChannel){var _=new MessageChannel,A=_.port2;_.port1.onmessage=M,E=function(){A.postMessage(null)}}else E=function(){g(M,0)};function P(e){w=e,C||(C=!0,E())}function D(t,n){R=g((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||f||(m=!0,P(S))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(r.sortIndex=i,t(u,r),null===n(s)&&r===n(u)&&(h?(v(R),R=-1):h=!0,D(x,i-a))):(r.sortIndex=l,t(s,r),m||f||(m=!0,P(S))),r},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(lp),ap.exports=lp;var sp=ap.exports,up=ro,cp=sp;
39
39
  /**
40
40
  * @license React
41
41
  * react-dom.production.min.js
@@ -44,7 +44,7 @@ function Xl(e,t){let n;return n=t?Wl(e).withConfig({displayName:t.label,shouldFo
44
44
  *
45
45
  * This source code is licensed under the MIT license found in the
46
46
  * LICENSE file in the root directory of this source tree.
47
- */function Ip(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Mp=new Set,_p={};function Ap(e,t){Pp(e,t),Pp(e+"Capture",t)}function Pp(e,t){for(_p[e]=t,e=0;e<t.length;e++)Mp.add(t[e])}var Dp=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Tp=Object.prototype.hasOwnProperty,Op=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Np={},qp={};function Fp(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var zp={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){zp[e]=new Fp(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];zp[t]=new Fp(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){zp[e]=new Fp(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){zp[e]=new Fp(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){zp[e]=new Fp(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){zp[e]=new Fp(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){zp[e]=new Fp(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){zp[e]=new Fp(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){zp[e]=new Fp(e,5,!1,e.toLowerCase(),null,!1,!1)}));var jp=/[\-:]([a-z])/g;function $p(e){return e[1].toUpperCase()}function Bp(e,t,n,r){var o=zp.hasOwnProperty(t)?zp[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!Tp.call(qp,e)||!Tp.call(Np,e)&&(Op.test(e)?qp[e]=!0:(Np[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(jp,$p);zp[t]=new Fp(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(jp,$p);zp[t]=new Fp(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(jp,$p);zp[t]=new Fp(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){zp[e]=new Fp(e,1,!1,e.toLowerCase(),null,!1,!1)})),zp.xlinkHref=new Fp("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){zp[e]=new Fp(e,1,!1,e.toLowerCase(),null,!0,!0)}));var Hp=kp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Wp=Symbol.for("react.element"),Gp=Symbol.for("react.portal"),Vp=Symbol.for("react.fragment"),Up=Symbol.for("react.strict_mode"),Yp=Symbol.for("react.profiler"),Kp=Symbol.for("react.provider"),Xp=Symbol.for("react.context"),Qp=Symbol.for("react.forward_ref"),Jp=Symbol.for("react.suspense"),Zp=Symbol.for("react.suspense_list"),ef=Symbol.for("react.memo"),tf=Symbol.for("react.lazy"),nf=Symbol.for("react.offscreen"),rf=Symbol.iterator;function of(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=rf&&e[rf]||e["@@iterator"])?e:null}var af,lf=Object.assign;function sf(e){if(void 0===af)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);af=t&&t[1]||""}return"\n"+af+e}var uf=!1;function cf(e,t){if(!e||uf)return"";uf=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{uf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?sf(e):""}function df(e){switch(e.tag){case 5:return sf(e.type);case 16:return sf("Lazy");case 13:return sf("Suspense");case 19:return sf("SuspenseList");case 0:case 2:case 15:return e=cf(e.type,!1);case 11:return e=cf(e.type.render,!1);case 1:return e=cf(e.type,!0);default:return""}}function pf(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Vp:return"Fragment";case Gp:return"Portal";case Yp:return"Profiler";case Up:return"StrictMode";case Jp:return"Suspense";case Zp:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Xp:return(e.displayName||"Context")+".Consumer";case Kp:return(e._context.displayName||"Context")+".Provider";case Qp:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case ef:return null!==(t=e.displayName||null)?t:pf(e.type)||"Memo";case tf:t=e._payload,e=e._init;try{return pf(e(t))}catch(e){}}return null}function ff(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return pf(t);case 8:return t===Up?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function hf(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function mf(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function gf(e){e._valueTracker||(e._valueTracker=function(e){var t=mf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function bf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=mf(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function vf(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function yf(e,t){var n=t.checked;return lf({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function xf(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=hf(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Sf(e,t){null!=(t=t.checked)&&Bp(e,"checked",t,!1)}function Ef(e,t){Sf(e,t);var n=hf(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?wf(e,t.type,n):t.hasOwnProperty("defaultValue")&&wf(e,t.type,hf(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Cf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function wf(e,t,n){"number"===t&&vf(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rf=Array.isArray;function kf(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+hf(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Lf(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(Ip(91));return lf({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function If(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(Ip(92));if(Rf(n)){if(1<n.length)throw Error(Ip(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:hf(n)}}function Mf(e,t){var n=hf(t.value),r=hf(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function _f(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Af(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Pf(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Af(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Df,Tf=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Df=Df||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Df.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function Of(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Nf={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qf=["Webkit","ms","Moz","O"];function Ff(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Nf.hasOwnProperty(e)&&Nf[e]?(""+t).trim():t+"px"}function zf(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=Ff(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(Nf).forEach((function(e){qf.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Nf[t]=Nf[e]}))}));var jf=lf({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function $f(e,t){if(t){if(jf[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(Ip(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(Ip(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ip(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(Ip(62))}}function Bf(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Hf=null;function Wf(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Gf=null,Vf=null,Uf=null;function Yf(e){if(e=$b(e)){if("function"!=typeof Gf)throw Error(Ip(280));var t=e.stateNode;t&&(t=Hb(t),Gf(e.stateNode,e.type,t))}}function Kf(e){Vf?Uf?Uf.push(e):Uf=[e]:Vf=e}function Xf(){if(Vf){var e=Vf,t=Uf;if(Uf=Vf=null,Yf(e),t)for(e=0;e<t.length;e++)Yf(t[e])}}function Qf(e,t){return e(t)}function Jf(){}var Zf=!1;function eh(e,t,n){if(Zf)return e(t,n);Zf=!0;try{return Qf(e,t,n)}finally{Zf=!1,(null!==Vf||null!==Uf)&&(Jf(),Xf())}}function th(e,t){var n=e.stateNode;if(null===n)return null;var r=Hb(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(Ip(231,t,typeof n));return n}var nh=!1;if(Dp)try{var rh={};Object.defineProperty(rh,"passive",{get:function(){nh=!0}}),window.addEventListener("test",rh,rh),window.removeEventListener("test",rh,rh)}catch(St){nh=!1}function oh(e,t,n,r,o,i,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var ih=!1,ah=null,lh=!1,sh=null,uh={onError:function(e){ih=!0,ah=e}};function ch(e,t,n,r,o,i,a,l,s){ih=!1,ah=null,oh.apply(uh,arguments)}function dh(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function ph(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function fh(e){if(dh(e)!==e)throw Error(Ip(188))}function hh(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=dh(e)))throw Error(Ip(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return fh(o),e;if(i===r)return fh(o),t;i=i.sibling}throw Error(Ip(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a)throw Error(Ip(189))}}if(n.alternate!==r)throw Error(Ip(190))}if(3!==n.tag)throw Error(Ip(188));return n.stateNode.current===n?e:t}(e),null!==e?mh(e):null}function mh(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=mh(e);if(null!==t)return t;e=e.sibling}return null}var gh=Lp.unstable_scheduleCallback,bh=Lp.unstable_cancelCallback,vh=Lp.unstable_shouldYield,yh=Lp.unstable_requestPaint,xh=Lp.unstable_now,Sh=Lp.unstable_getCurrentPriorityLevel,Eh=Lp.unstable_ImmediatePriority,Ch=Lp.unstable_UserBlockingPriority,wh=Lp.unstable_NormalPriority,Rh=Lp.unstable_LowPriority,kh=Lp.unstable_IdlePriority,Lh=null,Ih=null;var Mh=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(_h(e)/Ah|0)|0},_h=Math.log,Ah=Math.LN2;var Ph=64,Dh=4194304;function Th(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Oh(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=Th(l):0!==(i&=a)&&(r=Th(i))}else 0!==(a=n&~o)?r=Th(a):0!==i&&(r=Th(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Mh(t)),r|=e[n],t&=~o;return r}function Nh(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function qh(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Fh(){var e=Ph;return!(4194240&(Ph<<=1))&&(Ph=64),e}function zh(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function jh(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-Mh(t)]=n}function $h(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Mh(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Bh=0;function Hh(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var Wh,Gh,Vh,Uh,Yh,Kh=!1,Xh=[],Qh=null,Jh=null,Zh=null,em=new Map,tm=new Map,nm=[],rm="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function om(e,t){switch(e){case"focusin":case"focusout":Qh=null;break;case"dragenter":case"dragleave":Jh=null;break;case"mouseover":case"mouseout":Zh=null;break;case"pointerover":case"pointerout":em.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":tm.delete(t.pointerId)}}function im(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=$b(t))&&Gh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function am(e){var t=jb(e.target);if(null!==t){var n=dh(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=ph(n)))return e.blockedOn=t,void Yh(e.priority,(function(){Vh(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function lm(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=vm(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=$b(n))&&Gh(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Hf=r,n.target.dispatchEvent(r),Hf=null,t.shift()}return!0}function sm(e,t,n){lm(e)&&n.delete(t)}function um(){Kh=!1,null!==Qh&&lm(Qh)&&(Qh=null),null!==Jh&&lm(Jh)&&(Jh=null),null!==Zh&&lm(Zh)&&(Zh=null),em.forEach(sm),tm.forEach(sm)}function cm(e,t){e.blockedOn===t&&(e.blockedOn=null,Kh||(Kh=!0,Lp.unstable_scheduleCallback(Lp.unstable_NormalPriority,um)))}function dm(e){function t(t){return cm(t,e)}if(0<Xh.length){cm(Xh[0],e);for(var n=1;n<Xh.length;n++){var r=Xh[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Qh&&cm(Qh,e),null!==Jh&&cm(Jh,e),null!==Zh&&cm(Zh,e),em.forEach(t),tm.forEach(t),n=0;n<nm.length;n++)(r=nm[n]).blockedOn===e&&(r.blockedOn=null);for(;0<nm.length&&null===(n=nm[0]).blockedOn;)am(n),null===n.blockedOn&&nm.shift()}var pm=Hp.ReactCurrentBatchConfig,fm=!0;function hm(e,t,n,r){var o=Bh,i=pm.transition;pm.transition=null;try{Bh=1,gm(e,t,n,r)}finally{Bh=o,pm.transition=i}}function mm(e,t,n,r){var o=Bh,i=pm.transition;pm.transition=null;try{Bh=4,gm(e,t,n,r)}finally{Bh=o,pm.transition=i}}function gm(e,t,n,r){if(fm){var o=vm(e,t,n,r);if(null===o)pb(e,t,r,bm,n),om(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Qh=im(Qh,e,t,n,r,o),!0;case"dragenter":return Jh=im(Jh,e,t,n,r,o),!0;case"mouseover":return Zh=im(Zh,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return em.set(i,im(em.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,tm.set(i,im(tm.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(om(e,r),4&t&&-1<rm.indexOf(e)){for(;null!==o;){var i=$b(o);if(null!==i&&Wh(i),null===(i=vm(e,t,n,r))&&pb(e,t,r,bm,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else pb(e,t,r,null,n)}}var bm=null;function vm(e,t,n,r){if(bm=null,null!==(e=jb(e=Wf(r))))if(null===(t=dh(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=ph(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return bm=e,null}function ym(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Sh()){case Eh:return 1;case Ch:return 4;case wh:case Rh:return 16;case kh:return 536870912;default:return 16}default:return 16}}var xm=null,Sm=null,Em=null;function Cm(){if(Em)return Em;var e,t,n=Sm,r=n.length,o="value"in xm?xm.value:xm.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Em=o.slice(e,1<t?1-t:void 0)}function wm(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Rm(){return!0}function km(){return!1}function Lm(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Rm:km,this.isPropagationStopped=km,this}return lf(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Rm)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Rm)},persist:function(){},isPersistent:Rm}),t}var Im,Mm,_m,Am={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pm=Lm(Am),Dm=lf({},Am,{view:0,detail:0}),Tm=Lm(Dm),Om=lf({},Dm,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Um,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==_m&&(_m&&"mousemove"===e.type?(Im=e.screenX-_m.screenX,Mm=e.screenY-_m.screenY):Mm=Im=0,_m=e),Im)},movementY:function(e){return"movementY"in e?e.movementY:Mm}}),Nm=Lm(Om),qm=Lm(lf({},Om,{dataTransfer:0})),Fm=Lm(lf({},Dm,{relatedTarget:0})),zm=Lm(lf({},Am,{animationName:0,elapsedTime:0,pseudoElement:0})),jm=lf({},Am,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),$m=Lm(jm),Bm=Lm(lf({},Am,{data:0})),Hm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wm={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Gm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Gm[e])&&!!t[e]}function Um(){return Vm}var Ym=lf({},Dm,{key:function(e){if(e.key){var t=Hm[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=wm(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Wm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Um,charCode:function(e){return"keypress"===e.type?wm(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?wm(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Km=Lm(Ym),Xm=Lm(lf({},Om,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Qm=Lm(lf({},Dm,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Um})),Jm=Lm(lf({},Am,{propertyName:0,elapsedTime:0,pseudoElement:0})),Zm=lf({},Om,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),eg=Lm(Zm),tg=[9,13,27,32],ng=Dp&&"CompositionEvent"in window,rg=null;Dp&&"documentMode"in document&&(rg=document.documentMode);var og=Dp&&"TextEvent"in window&&!rg,ig=Dp&&(!ng||rg&&8<rg&&11>=rg),ag=String.fromCharCode(32),lg=!1;function sg(e,t){switch(e){case"keyup":return-1!==tg.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ug(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var cg=!1;var dg={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function pg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!dg[e.type]:"textarea"===t}function fg(e,t,n,r){Kf(r),0<(t=hb(t,"onChange")).length&&(n=new Pm("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var hg=null,mg=null;function gg(e){ab(e,0)}function bg(e){if(bf(Bb(e)))return e}function vg(e,t){if("change"===e)return t}var yg=!1;if(Dp){var xg;if(Dp){var Sg="oninput"in document;if(!Sg){var Eg=document.createElement("div");Eg.setAttribute("oninput","return;"),Sg="function"==typeof Eg.oninput}xg=Sg}else xg=!1;yg=xg&&(!document.documentMode||9<document.documentMode)}function Cg(){hg&&(hg.detachEvent("onpropertychange",wg),mg=hg=null)}function wg(e){if("value"===e.propertyName&&bg(mg)){var t=[];fg(t,mg,e,Wf(e)),eh(gg,t)}}function Rg(e,t,n){"focusin"===e?(Cg(),mg=n,(hg=t).attachEvent("onpropertychange",wg)):"focusout"===e&&Cg()}function kg(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return bg(mg)}function Lg(e,t){if("click"===e)return bg(t)}function Ig(e,t){if("input"===e||"change"===e)return bg(t)}var Mg="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function _g(e,t){if(Mg(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Tp.call(t,o)||!Mg(e[o],t[o]))return!1}return!0}function Ag(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Pg(e,t){var n,r=Ag(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Ag(r)}}function Dg(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Dg(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Tg(){for(var e=window,t=vf();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=vf((e=t.contentWindow).document)}return t}function Og(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Ng(e){var t=Tg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Dg(n.ownerDocument.documentElement,n)){if(null!==r&&Og(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Pg(n,i);var a=Pg(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var qg=Dp&&"documentMode"in document&&11>=document.documentMode,Fg=null,zg=null,jg=null,$g=!1;function Bg(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;$g||null==Fg||Fg!==vf(r)||("selectionStart"in(r=Fg)&&Og(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},jg&&_g(jg,r)||(jg=r,0<(r=hb(zg,"onSelect")).length&&(t=new Pm("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Fg)))}function Hg(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Wg={animationend:Hg("Animation","AnimationEnd"),animationiteration:Hg("Animation","AnimationIteration"),animationstart:Hg("Animation","AnimationStart"),transitionend:Hg("Transition","TransitionEnd")},Gg={},Vg={};function Ug(e){if(Gg[e])return Gg[e];if(!Wg[e])return e;var t,n=Wg[e];for(t in n)if(n.hasOwnProperty(t)&&t in Vg)return Gg[e]=n[t];return e}Dp&&(Vg=document.createElement("div").style,"AnimationEvent"in window||(delete Wg.animationend.animation,delete Wg.animationiteration.animation,delete Wg.animationstart.animation),"TransitionEvent"in window||delete Wg.transitionend.transition);var Yg=Ug("animationend"),Kg=Ug("animationiteration"),Xg=Ug("animationstart"),Qg=Ug("transitionend"),Jg=new Map,Zg="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function eb(e,t){Jg.set(e,t),Ap(t,[e])}for(var tb=0;tb<Zg.length;tb++){var nb=Zg[tb];eb(nb.toLowerCase(),"on"+(nb[0].toUpperCase()+nb.slice(1)))}eb(Yg,"onAnimationEnd"),eb(Kg,"onAnimationIteration"),eb(Xg,"onAnimationStart"),eb("dblclick","onDoubleClick"),eb("focusin","onFocus"),eb("focusout","onBlur"),eb(Qg,"onTransitionEnd"),Pp("onMouseEnter",["mouseout","mouseover"]),Pp("onMouseLeave",["mouseout","mouseover"]),Pp("onPointerEnter",["pointerout","pointerover"]),Pp("onPointerLeave",["pointerout","pointerover"]),Ap("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ap("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ap("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ap("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ap("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ap("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var rb="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ob=new Set("cancel close invalid load scroll toggle".split(" ").concat(rb));function ib(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,l,s){if(ch.apply(this,arguments),ih){if(!ih)throw Error(Ip(198));var u=ah;ih=!1,ah=null,lh||(lh=!0,sh=u)}}(r,t,void 0,e),e.currentTarget=null}function ab(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;ib(o,l,u),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,u=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;ib(o,l,u),i=s}}}if(lh)throw e=sh,lh=!1,sh=null,e}function lb(e,t){var n=t[qb];void 0===n&&(n=t[qb]=new Set);var r=e+"__bubble";n.has(r)||(db(t,e,2,!1),n.add(r))}function sb(e,t,n){var r=0;t&&(r|=4),db(n,e,r,t)}var ub="_reactListening"+Math.random().toString(36).slice(2);function cb(e){if(!e[ub]){e[ub]=!0,Mp.forEach((function(t){"selectionchange"!==t&&(ob.has(t)||sb(t,!1,e),sb(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[ub]||(t[ub]=!0,sb("selectionchange",!1,t))}}function db(e,t,n,r){switch(ym(t)){case 1:var o=hm;break;case 4:o=mm;break;default:o=gm}n=o.bind(null,t,n,e),o=void 0,!nh||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function pb(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=jb(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}eh((function(){var r=i,o=Wf(n),a=[];e:{var l=Jg.get(e);if(void 0!==l){var s=Pm,u=e;switch(e){case"keypress":if(0===wm(n))break e;case"keydown":case"keyup":s=Km;break;case"focusin":u="focus",s=Fm;break;case"focusout":u="blur",s=Fm;break;case"beforeblur":case"afterblur":s=Fm;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=Nm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=qm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Qm;break;case Yg:case Kg:case Xg:s=zm;break;case Qg:s=Jm;break;case"scroll":s=Tm;break;case"wheel":s=eg;break;case"copy":case"cut":case"paste":s=$m;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Xm}var c=!!(4&t),d=!c&&"scroll"===e,p=c?null!==l?l+"Capture":null:l;c=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=th(h,p))&&c.push(fb(h,m,f)))),d)break;h=h.return}0<c.length&&(l=new s(l,u,null,n,o),a.push({event:l,listeners:c}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===Hf||!(u=n.relatedTarget||n.fromElement)||!jb(u)&&!u[Nb])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?jb(u):null)&&(u!==(d=dh(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=Nm,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Xm,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==s?l:Bb(s),f=null==u?l:Bb(u),(l=new c(m,h+"leave",s,n,o)).target=d,l.relatedTarget=f,m=null,jb(o)===r&&((c=new c(p,h+"enter",u,n,o)).target=f,c.relatedTarget=d,m=c),d=m,s&&u)e:{for(p=u,h=0,f=c=s;f;f=mb(f))h++;for(f=0,m=p;m;m=mb(m))f++;for(;0<h-f;)c=mb(c),h--;for(;0<f-h;)p=mb(p),f--;for(;h--;){if(c===p||null!==p&&c===p.alternate)break e;c=mb(c),p=mb(p)}c=null}else c=null;null!==s&&gb(a,l,s,c,!1),null!==u&&null!==d&&gb(a,d,u,c,!0)}if("select"===(s=(l=r?Bb(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=vg;else if(pg(l))if(yg)g=Ig;else{g=kg;var b=Rg}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=Lg);switch(g&&(g=g(e,r))?fg(a,g,n,o):(b&&b(e,l,r),"focusout"===e&&(b=l._wrapperState)&&b.controlled&&"number"===l.type&&wf(l,"number",l.value)),b=r?Bb(r):window,e){case"focusin":(pg(b)||"true"===b.contentEditable)&&(Fg=b,zg=r,jg=null);break;case"focusout":jg=zg=Fg=null;break;case"mousedown":$g=!0;break;case"contextmenu":case"mouseup":case"dragend":$g=!1,Bg(a,n,o);break;case"selectionchange":if(qg)break;case"keydown":case"keyup":Bg(a,n,o)}var v;if(ng)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else cg?sg(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(ig&&"ko"!==n.locale&&(cg||"onCompositionStart"!==y?"onCompositionEnd"===y&&cg&&(v=Cm()):(Sm="value"in(xm=o)?xm.value:xm.textContent,cg=!0)),0<(b=hb(r,y)).length&&(y=new Bm(y,e,null,n,o),a.push({event:y,listeners:b}),v?y.data=v:null!==(v=ug(n))&&(y.data=v))),(v=og?function(e,t){switch(e){case"compositionend":return ug(t);case"keypress":return 32!==t.which?null:(lg=!0,ag);case"textInput":return(e=t.data)===ag&&lg?null:e;default:return null}}(e,n):function(e,t){if(cg)return"compositionend"===e||!ng&&sg(e,t)?(e=Cm(),Em=Sm=xm=null,cg=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ig&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=hb(r,"onBeforeInput")).length&&(o=new Bm("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=v))}ab(a,t)}))}function fb(e,t,n){return{instance:e,listener:t,currentTarget:n}}function hb(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=th(e,n))&&r.unshift(fb(e,i,o)),null!=(i=th(e,t))&&r.push(fb(e,i,o))),e=e.return}return r}function mb(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function gb(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=th(n,i))&&a.unshift(fb(n,s,l)):o||null!=(s=th(n,i))&&a.push(fb(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var bb=/\r\n?/g,vb=/\u0000|\uFFFD/g;function yb(e){return("string"==typeof e?e:""+e).replace(bb,"\n").replace(vb,"")}function xb(e,t,n){if(t=yb(t),yb(e)!==t&&n)throw Error(Ip(425))}function Sb(){}var Eb=null,Cb=null;function wb(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Rb="function"==typeof setTimeout?setTimeout:void 0,kb="function"==typeof clearTimeout?clearTimeout:void 0,Lb="function"==typeof Promise?Promise:void 0,Ib="function"==typeof queueMicrotask?queueMicrotask:void 0!==Lb?function(e){return Lb.resolve(null).then(e).catch(Mb)}:Rb;function Mb(e){setTimeout((function(){throw e}))}function _b(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void dm(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);dm(t)}function Ab(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function Pb(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Db=Math.random().toString(36).slice(2),Tb="__reactFiber$"+Db,Ob="__reactProps$"+Db,Nb="__reactContainer$"+Db,qb="__reactEvents$"+Db,Fb="__reactListeners$"+Db,zb="__reactHandles$"+Db;function jb(e){var t=e[Tb];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Nb]||n[Tb]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Pb(e);null!==e;){if(n=e[Tb])return n;e=Pb(e)}return t}n=(e=n).parentNode}return null}function $b(e){return!(e=e[Tb]||e[Nb])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Bb(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(Ip(33))}function Hb(e){return e[Ob]||null}var Wb=[],Gb=-1;function Vb(e){return{current:e}}function Ub(e){0>Gb||(e.current=Wb[Gb],Wb[Gb]=null,Gb--)}function Yb(e,t){Gb++,Wb[Gb]=e.current,e.current=t}var Kb={},Xb=Vb(Kb),Qb=Vb(!1),Jb=Kb;function Zb(e,t){var n=e.type.contextTypes;if(!n)return Kb;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ev(e){return null!=(e=e.childContextTypes)}function tv(){Ub(Qb),Ub(Xb)}function nv(e,t,n){if(Xb.current!==Kb)throw Error(Ip(168));Yb(Xb,t),Yb(Qb,n)}function rv(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(Ip(108,ff(e)||"Unknown",o));return lf({},n,r)}function ov(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Kb,Jb=Xb.current,Yb(Xb,e),Yb(Qb,Qb.current),!0}function iv(e,t,n){var r=e.stateNode;if(!r)throw Error(Ip(169));n?(e=rv(e,t,Jb),r.__reactInternalMemoizedMergedChildContext=e,Ub(Qb),Ub(Xb),Yb(Xb,e)):Ub(Qb),Yb(Qb,n)}var av=null,lv=!1,sv=!1;function uv(e){null===av?av=[e]:av.push(e)}function cv(){if(!sv&&null!==av){sv=!0;var e=0,t=Bh;try{var n=av;for(Bh=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}av=null,lv=!1}catch(t){throw null!==av&&(av=av.slice(e+1)),gh(Eh,cv),t}finally{Bh=t,sv=!1}}return null}var dv=[],pv=0,fv=null,hv=0,mv=[],gv=0,bv=null,vv=1,yv="";function xv(e,t){dv[pv++]=hv,dv[pv++]=fv,fv=e,hv=t}function Sv(e,t,n){mv[gv++]=vv,mv[gv++]=yv,mv[gv++]=bv,bv=e;var r=vv;e=yv;var o=32-Mh(r)-1;r&=~(1<<o),n+=1;var i=32-Mh(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,vv=1<<32-Mh(t)+o|n<<o|r,yv=i+e}else vv=1<<i|n<<o|r,yv=e}function Ev(e){null!==e.return&&(xv(e,1),Sv(e,1,0))}function Cv(e){for(;e===fv;)fv=dv[--pv],dv[pv]=null,hv=dv[--pv],dv[pv]=null;for(;e===bv;)bv=mv[--gv],mv[gv]=null,yv=mv[--gv],mv[gv]=null,vv=mv[--gv],mv[gv]=null}var wv=null,Rv=null,kv=!1,Lv=null;function Iv(e,t){var n=JE(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function Mv(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,wv=e,Rv=Ab(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,wv=e,Rv=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==bv?{id:vv,overflow:yv}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=JE(18,null,null,0)).stateNode=t,n.return=e,e.child=n,wv=e,Rv=null,!0);default:return!1}}function _v(e){return!(!(1&e.mode)||128&e.flags)}function Av(e){if(kv){var t=Rv;if(t){var n=t;if(!Mv(e,t)){if(_v(e))throw Error(Ip(418));t=Ab(n.nextSibling);var r=wv;t&&Mv(e,t)?Iv(r,n):(e.flags=-4097&e.flags|2,kv=!1,wv=e)}}else{if(_v(e))throw Error(Ip(418));e.flags=-4097&e.flags|2,kv=!1,wv=e}}}function Pv(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;wv=e}function Dv(e){if(e!==wv)return!1;if(!kv)return Pv(e),kv=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!wb(e.type,e.memoizedProps)),t&&(t=Rv)){if(_v(e))throw Tv(),Error(Ip(418));for(;t;)Iv(e,t),t=Ab(t.nextSibling)}if(Pv(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(Ip(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Rv=Ab(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Rv=null}}else Rv=wv?Ab(e.stateNode.nextSibling):null;return!0}function Tv(){for(var e=Rv;e;)e=Ab(e.nextSibling)}function Ov(){Rv=wv=null,kv=!1}function Nv(e){null===Lv?Lv=[e]:Lv.push(e)}var qv=Hp.ReactCurrentBatchConfig;function Fv(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(Ip(309));var r=n.stateNode}if(!r)throw Error(Ip(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(Ip(284));if(!n._owner)throw Error(Ip(290,e))}return e}function zv(e,t){throw e=Object.prototype.toString.call(t),Error(Ip(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function jv(e){return(0,e._init)(e._payload)}function $v(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=eC(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=oC(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var i=n.type;return i===Vp?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===tf&&jv(i)===t.type)?((r=o(t,n.props)).ref=Fv(e,t,n),r.return=e,r):((r=tC(n.type,n.key,n.props,null,e.mode,r)).ref=Fv(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=iC(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function c(e,t,n,r,i){return null===t||7!==t.tag?((t=nC(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=oC(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Wp:return(n=tC(t.type,t.key,t.props,null,e.mode,n)).ref=Fv(e,null,t),n.return=e,n;case Gp:return(t=iC(t,e.mode,n)).return=e,t;case tf:return d(e,(0,t._init)(t._payload),n)}if(Rf(t)||of(t))return(t=nC(t,e.mode,n,null)).return=e,t;zv(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Wp:return n.key===o?s(e,t,n,r):null;case Gp:return n.key===o?u(e,t,n,r):null;case tf:return p(e,t,(o=n._init)(n._payload),r)}if(Rf(n)||of(n))return null!==o?null:c(e,t,n,r,null);zv(e,n)}return null}function f(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Wp:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Gp:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case tf:return f(e,t,n,(0,r._init)(r._payload),o)}if(Rf(r)||of(r))return c(t,e=e.get(n)||null,r,o,null);zv(t,r)}return null}function h(o,a,l,s){for(var u=null,c=null,h=a,m=a=0,g=null;null!==h&&m<l.length;m++){h.index>m?(g=h,h=null):g=h.sibling;var b=p(o,h,l[m],s);if(null===b){null===h&&(h=g);break}e&&h&&null===b.alternate&&t(o,h),a=i(b,a,m),null===c?u=b:c.sibling=b,c=b,h=g}if(m===l.length)return n(o,h),kv&&xv(o,m),u;if(null===h){for(;m<l.length;m++)null!==(h=d(o,l[m],s))&&(a=i(h,a,m),null===c?u=h:c.sibling=h,c=h);return kv&&xv(o,m),u}for(h=r(o,h);m<l.length;m++)null!==(g=f(h,o,m,l[m],s))&&(e&&null!==g.alternate&&h.delete(null===g.key?m:g.key),a=i(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&h.forEach((function(e){return t(o,e)})),kv&&xv(o,m),u}function m(o,a,l,s){var u=of(l);if("function"!=typeof u)throw Error(Ip(150));if(null==(l=u.call(l)))throw Error(Ip(151));for(var c=u=null,h=a,m=a=0,g=null,b=l.next();null!==h&&!b.done;m++,b=l.next()){h.index>m?(g=h,h=null):g=h.sibling;var v=p(o,h,b.value,s);if(null===v){null===h&&(h=g);break}e&&h&&null===v.alternate&&t(o,h),a=i(v,a,m),null===c?u=v:c.sibling=v,c=v,h=g}if(b.done)return n(o,h),kv&&xv(o,m),u;if(null===h){for(;!b.done;m++,b=l.next())null!==(b=d(o,b.value,s))&&(a=i(b,a,m),null===c?u=b:c.sibling=b,c=b);return kv&&xv(o,m),u}for(h=r(o,h);!b.done;m++,b=l.next())null!==(b=f(h,o,m,b.value,s))&&(e&&null!==b.alternate&&h.delete(null===b.key?m:b.key),a=i(b,a,m),null===c?u=b:c.sibling=b,c=b);return e&&h.forEach((function(e){return t(o,e)})),kv&&xv(o,m),u}return function e(r,i,l,s){if("object"==typeof l&&null!==l&&l.type===Vp&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case Wp:e:{for(var u=l.key,c=i;null!==c;){if(c.key===u){if((u=l.type)===Vp){if(7===c.tag){n(r,c.sibling),(i=o(c,l.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===tf&&jv(u)===c.type){n(r,c.sibling),(i=o(c,l.props)).ref=Fv(r,c,l),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}l.type===Vp?((i=nC(l.props.children,r.mode,s,l.key)).return=r,r=i):((s=tC(l.type,l.key,l.props,null,r.mode,s)).ref=Fv(r,i,l),s.return=r,r=s)}return a(r);case Gp:e:{for(c=l.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===l.containerInfo&&i.stateNode.implementation===l.implementation){n(r,i.sibling),(i=o(i,l.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=iC(l,r.mode,s)).return=r,r=i}return a(r);case tf:return e(r,i,(c=l._init)(l._payload),s)}if(Rf(l))return h(r,i,l,s);if(of(l))return m(r,i,l,s);zv(r,l)}return"string"==typeof l&&""!==l||"number"==typeof l?(l=""+l,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,l)).return=r,r=i):(n(r,i),(i=oC(l,r.mode,s)).return=r,r=i),a(r)):n(r,i)}}var Bv=$v(!0),Hv=$v(!1),Wv=Vb(null),Gv=null,Vv=null,Uv=null;function Yv(){Uv=Vv=Gv=null}function Kv(e){var t=Wv.current;Ub(Wv),e._currentValue=t}function Xv(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Qv(e,t){Gv=e,Uv=Vv=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(jx=!0),e.firstContext=null)}function Jv(e){var t=e._currentValue;if(Uv!==e)if(e={context:e,memoizedValue:t,next:null},null===Vv){if(null===Gv)throw Error(Ip(308));Vv=e,Gv.dependencies={lanes:0,firstContext:e}}else Vv=Vv.next=e;return t}var Zv=null;function ey(e){null===Zv?Zv=[e]:Zv.push(e)}function ty(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,ey(t)):(n.next=o.next,o.next=n),t.interleaved=n,ny(e,r)}function ny(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var ry=!1;function oy(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function iy(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ay(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ly(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&KS){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ny(e,n)}return null===(o=r.interleaved)?(t.next=t,ey(r)):(t.next=o.next,o.next=t),r.interleaved=t,ny(e,n)}function sy(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,$h(e,n)}}function uy(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function cy(e,t,n,r){var o=e.updateQueue;ry=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,u=s.next;s.next=null,null===a?i=u:a.next=u,a=s;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(null!==i){var d=o.baseState;for(a=0,c=u=s=null,l=i;;){var p=l.lane,f=l.eventTime;if((r&p)===p){null!==c&&(c=c.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=lf({},d,p);break e;case 2:ry=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[l]:p.push(l))}else f={eventTime:f,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=f,s=d):c=c.next=f,a|=p;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(p=l).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===c&&(s=d),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);rE|=a,e.lanes=a,e.memoizedState=d}}function dy(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(Ip(191,o));o.call(r)}}}var py={},fy=Vb(py),hy=Vb(py),my=Vb(py);function gy(e){if(e===py)throw Error(Ip(174));return e}function by(e,t){switch(Yb(my,t),Yb(hy,e),Yb(fy,py),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Pf(null,"");break;default:t=Pf(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ub(fy),Yb(fy,t)}function vy(){Ub(fy),Ub(hy),Ub(my)}function yy(e){gy(my.current);var t=gy(fy.current),n=Pf(t,e.type);t!==n&&(Yb(hy,e),Yb(fy,n))}function xy(e){hy.current===e&&(Ub(fy),Ub(hy))}var Sy=Vb(0);function Ey(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Cy=[];function wy(){for(var e=0;e<Cy.length;e++)Cy[e]._workInProgressVersionPrimary=null;Cy.length=0}var Ry=Hp.ReactCurrentDispatcher,ky=Hp.ReactCurrentBatchConfig,Ly=0,Iy=null,My=null,_y=null,Ay=!1,Py=!1,Dy=0,Ty=0;function Oy(){throw Error(Ip(321))}function Ny(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Mg(e[n],t[n]))return!1;return!0}function qy(e,t,n,r,o,i){if(Ly=i,Iy=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ry.current=null===e||null===e.memoizedState?xx:Sx,e=n(r,o),Py){i=0;do{if(Py=!1,Dy=0,25<=i)throw Error(Ip(301));i+=1,_y=My=null,t.updateQueue=null,Ry.current=Ex,e=n(r,o)}while(Py)}if(Ry.current=yx,t=null!==My&&null!==My.next,Ly=0,_y=My=Iy=null,Ay=!1,t)throw Error(Ip(300));return e}function Fy(){var e=0!==Dy;return Dy=0,e}function zy(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===_y?Iy.memoizedState=_y=e:_y=_y.next=e,_y}function jy(){if(null===My){var e=Iy.alternate;e=null!==e?e.memoizedState:null}else e=My.next;var t=null===_y?Iy.memoizedState:_y.next;if(null!==t)_y=t,My=e;else{if(null===e)throw Error(Ip(310));e={memoizedState:(My=e).memoizedState,baseState:My.baseState,baseQueue:My.baseQueue,queue:My.queue,next:null},null===_y?Iy.memoizedState=_y=e:_y=_y.next=e}return _y}function $y(e,t){return"function"==typeof t?t(e):t}function By(e){var t=jy(),n=t.queue;if(null===n)throw Error(Ip(311));n.lastRenderedReducer=e;var r=My,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var l=a=null,s=null,u=i;do{var c=u.lane;if((Ly&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===s?(l=s=d,a=r):s=s.next=d,Iy.lanes|=c,rE|=c}u=u.next}while(null!==u&&u!==i);null===s?a=r:s.next=l,Mg(r,t.memoizedState)||(jx=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,Iy.lanes|=i,rE|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Hy(e){var t=jy(),n=t.queue;if(null===n)throw Error(Ip(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);Mg(i,t.memoizedState)||(jx=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Wy(){}function Gy(e,t){var n=Iy,r=jy(),o=t(),i=!Mg(r.memoizedState,o);if(i&&(r.memoizedState=o,jx=!0),r=r.queue,rx(Yy.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==_y&&1&_y.memoizedState.tag){if(n.flags|=2048,Jy(9,Uy.bind(null,n,r,o,t),void 0,null),null===XS)throw Error(Ip(349));30&Ly||Vy(n,t,o)}return o}function Vy(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Iy.updateQueue)?(t={lastEffect:null,stores:null},Iy.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Uy(e,t,n,r){t.value=n,t.getSnapshot=r,Ky(t)&&Xy(e)}function Yy(e,t,n){return n((function(){Ky(t)&&Xy(e)}))}function Ky(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Mg(e,n)}catch(e){return!0}}function Xy(e){var t=ny(e,1);null!==t&&CE(t,e,1,-1)}function Qy(e){var t=zy();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$y,lastRenderedState:e},t.queue=e,e=e.dispatch=mx.bind(null,Iy,e),[t.memoizedState,e]}function Jy(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Iy.updateQueue)?(t={lastEffect:null,stores:null},Iy.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Zy(){return jy().memoizedState}function ex(e,t,n,r){var o=zy();Iy.flags|=e,o.memoizedState=Jy(1|t,n,void 0,void 0===r?null:r)}function tx(e,t,n,r){var o=jy();r=void 0===r?null:r;var i=void 0;if(null!==My){var a=My.memoizedState;if(i=a.destroy,null!==r&&Ny(r,a.deps))return void(o.memoizedState=Jy(t,n,i,r))}Iy.flags|=e,o.memoizedState=Jy(1|t,n,i,r)}function nx(e,t){return ex(8390656,8,e,t)}function rx(e,t){return tx(2048,8,e,t)}function ox(e,t){return tx(4,2,e,t)}function ix(e,t){return tx(4,4,e,t)}function ax(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function lx(e,t,n){return n=null!=n?n.concat([e]):null,tx(4,4,ax.bind(null,t,e),n)}function sx(){}function ux(e,t){var n=jy();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ny(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function cx(e,t){var n=jy();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ny(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function dx(e,t,n){return 21&Ly?(Mg(n,t)||(n=Fh(),Iy.lanes|=n,rE|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,jx=!0),e.memoizedState=n)}function px(e,t){var n=Bh;Bh=0!==n&&4>n?n:4,e(!0);var r=ky.transition;ky.transition={};try{e(!1),t()}finally{Bh=n,ky.transition=r}}function fx(){return jy().memoizedState}function hx(e,t,n){var r=EE(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gx(e))bx(t,n);else if(null!==(n=ty(e,t,n,r))){CE(n,e,r,SE()),vx(n,t,r)}}function mx(e,t,n){var r=EE(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gx(e))bx(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,Mg(l,a)){var s=t.interleaved;return null===s?(o.next=o,ey(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=ty(e,t,o,r))&&(CE(n,e,r,o=SE()),vx(n,t,r))}}function gx(e){var t=e.alternate;return e===Iy||null!==t&&t===Iy}function bx(e,t){Py=Ay=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vx(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,$h(e,n)}}var yx={readContext:Jv,useCallback:Oy,useContext:Oy,useEffect:Oy,useImperativeHandle:Oy,useInsertionEffect:Oy,useLayoutEffect:Oy,useMemo:Oy,useReducer:Oy,useRef:Oy,useState:Oy,useDebugValue:Oy,useDeferredValue:Oy,useTransition:Oy,useMutableSource:Oy,useSyncExternalStore:Oy,useId:Oy,unstable_isNewReconciler:!1},xx={readContext:Jv,useCallback:function(e,t){return zy().memoizedState=[e,void 0===t?null:t],e},useContext:Jv,useEffect:nx,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ex(4194308,4,ax.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ex(4194308,4,e,t)},useInsertionEffect:function(e,t){return ex(4,2,e,t)},useMemo:function(e,t){var n=zy();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=zy();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=hx.bind(null,Iy,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},zy().memoizedState=e},useState:Qy,useDebugValue:sx,useDeferredValue:function(e){return zy().memoizedState=e},useTransition:function(){var e=Qy(!1),t=e[0];return e=px.bind(null,e[1]),zy().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Iy,o=zy();if(kv){if(void 0===n)throw Error(Ip(407));n=n()}else{if(n=t(),null===XS)throw Error(Ip(349));30&Ly||Vy(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,nx(Yy.bind(null,r,i,e),[e]),r.flags|=2048,Jy(9,Uy.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=zy(),t=XS.identifierPrefix;if(kv){var n=yv;t=":"+t+"R"+(n=(vv&~(1<<32-Mh(vv)-1)).toString(32)+n),0<(n=Dy++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Ty++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Sx={readContext:Jv,useCallback:ux,useContext:Jv,useEffect:rx,useImperativeHandle:lx,useInsertionEffect:ox,useLayoutEffect:ix,useMemo:cx,useReducer:By,useRef:Zy,useState:function(){return By($y)},useDebugValue:sx,useDeferredValue:function(e){return dx(jy(),My.memoizedState,e)},useTransition:function(){return[By($y)[0],jy().memoizedState]},useMutableSource:Wy,useSyncExternalStore:Gy,useId:fx,unstable_isNewReconciler:!1},Ex={readContext:Jv,useCallback:ux,useContext:Jv,useEffect:rx,useImperativeHandle:lx,useInsertionEffect:ox,useLayoutEffect:ix,useMemo:cx,useReducer:Hy,useRef:Zy,useState:function(){return Hy($y)},useDebugValue:sx,useDeferredValue:function(e){var t=jy();return null===My?t.memoizedState=e:dx(t,My.memoizedState,e)},useTransition:function(){return[Hy($y)[0],jy().memoizedState]},useMutableSource:Wy,useSyncExternalStore:Gy,useId:fx,unstable_isNewReconciler:!1};function Cx(e,t){if(e&&e.defaultProps){for(var n in t=lf({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function wx(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:lf({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Rx={isMounted:function(e){return!!(e=e._reactInternals)&&dh(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=SE(),o=EE(e),i=ay(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=ly(e,i,o))&&(CE(t,e,o,r),sy(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=SE(),o=EE(e),i=ay(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=ly(e,i,o))&&(CE(t,e,o,r),sy(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=SE(),r=EE(e),o=ay(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=ly(e,o,r))&&(CE(t,e,r,n),sy(t,e,r))}};function kx(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!_g(n,r)||!_g(o,i))}function Lx(e,t,n){var r=!1,o=Kb,i=t.contextType;return"object"==typeof i&&null!==i?i=Jv(i):(o=ev(t)?Jb:Xb.current,i=(r=null!=(r=t.contextTypes))?Zb(e,o):Kb),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Rx,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ix(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Rx.enqueueReplaceState(t,t.state,null)}function Mx(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},oy(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Jv(i):(i=ev(t)?Jb:Xb.current,o.context=Zb(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(wx(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Rx.enqueueReplaceState(o,o.state,null),cy(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function _x(e,t){try{var n="",r=t;do{n+=df(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function Ax(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Px(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Dx="function"==typeof WeakMap?WeakMap:Map;function Tx(e,t,n){(n=ay(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){dE||(dE=!0,pE=r),Px(0,t)},n}function Ox(e,t,n){(n=ay(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Px(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){Px(0,t),"function"!=typeof r&&(null===fE?fE=new Set([this]):fE.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Nx(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Dx;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=VE.bind(null,e,t,n),t.then(e,e))}function qx(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Fx(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=ay(-1,1)).tag=2,ly(n,t,1))),n.lanes|=1),e)}var zx=Hp.ReactCurrentOwner,jx=!1;function $x(e,t,n,r){t.child=null===e?Hv(t,null,n,r):Bv(t,e.child,n,r)}function Bx(e,t,n,r,o){n=n.render;var i=t.ref;return Qv(t,o),r=qy(e,t,n,r,i,o),n=Fy(),null===e||jx?(kv&&n&&Ev(t),t.flags|=1,$x(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,dS(e,t,o))}function Hx(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||ZE(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=tC(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Wx(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:_g)(a,r)&&e.ref===t.ref)return dS(e,t,o)}return t.flags|=1,(e=eC(i,r)).ref=t.ref,e.return=t,t.child=e}function Wx(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(_g(i,r)&&e.ref===t.ref){if(jx=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,dS(e,t,o);131072&e.flags&&(jx=!0)}}return Ux(e,t,n,r,o)}function Gx(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Yb(eE,ZS),ZS|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Yb(eE,ZS),ZS|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Yb(eE,ZS),ZS|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Yb(eE,ZS),ZS|=r;return $x(e,t,o,n),t.child}function Vx(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ux(e,t,n,r,o){var i=ev(n)?Jb:Xb.current;return i=Zb(t,i),Qv(t,o),n=qy(e,t,n,r,i,o),r=Fy(),null===e||jx?(kv&&r&&Ev(t),t.flags|=1,$x(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,dS(e,t,o))}function Yx(e,t,n,r,o){if(ev(n)){var i=!0;ov(t)}else i=!1;if(Qv(t,o),null===t.stateNode)cS(e,t),Lx(t,n,r),Mx(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Jv(u):u=Zb(t,u=ev(n)?Jb:Xb.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==u)&&Ix(t,a,r,u),ry=!1;var p=t.memoizedState;a.state=p,cy(t,r,a,o),s=t.memoizedState,l!==r||p!==s||Qb.current||ry?("function"==typeof c&&(wx(t,n,c,r),s=t.memoizedState),(l=ry||kx(t,n,l,r,p,s,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,iy(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Cx(t.type,l),a.props=u,d=t.pendingProps,p=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=Jv(s):s=Zb(t,s=ev(n)?Jb:Xb.current);var f=n.getDerivedStateFromProps;(c="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||p!==s)&&Ix(t,a,r,s),ry=!1,p=t.memoizedState,a.state=p,cy(t,r,a,o);var h=t.memoizedState;l!==d||p!==h||Qb.current||ry?("function"==typeof f&&(wx(t,n,f,r),h=t.memoizedState),(u=ry||kx(t,n,u,r,p,h,s)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=u):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Kx(e,t,n,r,i,o)}function Kx(e,t,n,r,o,i){Vx(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&iv(t,n,!1),dS(e,t,i);r=t.stateNode,zx.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Bv(t,e.child,null,i),t.child=Bv(t,null,l,i)):$x(e,t,l,i),t.memoizedState=r.state,o&&iv(t,n,!0),t.child}function Xx(e){var t=e.stateNode;t.pendingContext?nv(0,t.pendingContext,t.pendingContext!==t.context):t.context&&nv(0,t.context,!1),by(e,t.containerInfo)}function Qx(e,t,n,r,o){return Ov(),Nv(o),t.flags|=256,$x(e,t,n,r),t.child}var Jx,Zx,eS,tS,nS={dehydrated:null,treeContext:null,retryLane:0};function rS(e){return{baseLanes:e,cachePool:null,transitions:null}}function oS(e,t,n){var r,o=t.pendingProps,i=Sy.current,a=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&i)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Yb(Sy,1&i),null===e)return Av(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,a?(o=t.mode,a=t.child,l={mode:"hidden",children:l},1&o||null===a?a=rC(l,o,0,null):(a.childLanes=0,a.pendingProps=l),e=nC(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=rS(n),t.memoizedState=nS,e):iS(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,aS(e,t,a,r=Ax(Error(Ip(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=rC({mode:"visible",children:r.children},o,0,null),(i=nC(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,1&t.mode&&Bv(t,e.child,null,a),t.child.memoizedState=rS(a),t.memoizedState=nS,i);if(!(1&t.mode))return aS(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,aS(e,t,a,r=Ax(i=Error(Ip(419)),r,void 0))}if(l=!!(a&e.childLanes),jx||l){if(null!==(r=XS)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|a)?0:o)&&o!==i.retryLane&&(i.retryLane=o,ny(e,o),CE(r,e,o,-1))}return NE(),aS(e,t,a,r=Ax(Error(Ip(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=YE.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Rv=Ab(o.nextSibling),wv=t,kv=!0,Lv=null,null!==e&&(mv[gv++]=vv,mv[gv++]=yv,mv[gv++]=bv,vv=e.id,yv=e.overflow,bv=t),t=iS(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,i,n);if(a){a=o.fallback,l=t.mode,r=(i=e.child).sibling;var s={mode:"hidden",children:o.children};return 1&l||t.child===i?(o=eC(i,s)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null),null!==r?a=eC(r,a):(a=nC(a,l,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,l=null===(l=e.child.memoizedState)?rS(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=nS,o}return e=(a=e.child).sibling,o=eC(a,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function iS(e,t){return(t=rC({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function aS(e,t,n,r){return null!==r&&Nv(r),Bv(t,e.child,null,n),(e=iS(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function lS(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Xv(e.return,t,n)}function sS(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function uS(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if($x(e,t,r.children,n),2&(r=Sy.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&lS(e,n,t);else if(19===e.tag)lS(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Yb(Sy,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Ey(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),sS(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Ey(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}sS(t,!0,n,null,i);break;case"together":sS(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function cS(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function dS(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),rE|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(Ip(153));if(null!==t.child){for(n=eC(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=eC(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function pS(e,t){if(!kv)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function fS(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function hS(e,t,n){var r=t.pendingProps;switch(Cv(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return fS(t),null;case 1:case 17:return ev(t.type)&&tv(),fS(t),null;case 3:return r=t.stateNode,vy(),Ub(Qb),Ub(Xb),wy(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Dv(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==Lv&&(LE(Lv),Lv=null))),Zx(e,t),fS(t),null;case 5:xy(t);var o=gy(my.current);if(n=t.type,null!==e&&null!=t.stateNode)eS(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(Ip(166));return fS(t),null}if(e=gy(fy.current),Dv(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Tb]=t,r[Ob]=i,e=!!(1&t.mode),n){case"dialog":lb("cancel",r),lb("close",r);break;case"iframe":case"object":case"embed":lb("load",r);break;case"video":case"audio":for(o=0;o<rb.length;o++)lb(rb[o],r);break;case"source":lb("error",r);break;case"img":case"image":case"link":lb("error",r),lb("load",r);break;case"details":lb("toggle",r);break;case"input":xf(r,i),lb("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},lb("invalid",r);break;case"textarea":If(r,i),lb("invalid",r)}for(var a in $f(n,i),o=null,i)if(i.hasOwnProperty(a)){var l=i[a];"children"===a?"string"==typeof l?r.textContent!==l&&(!0!==i.suppressHydrationWarning&&xb(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==i.suppressHydrationWarning&&xb(r.textContent,l,e),o=["children",""+l]):_p.hasOwnProperty(a)&&null!=l&&"onScroll"===a&&lb("scroll",r)}switch(n){case"input":gf(r),Cf(r,i,!0);break;case"textarea":gf(r),_f(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Sb)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=Af(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Tb]=t,e[Ob]=r,Jx(e,t,!1,!1),t.stateNode=e;e:{switch(a=Bf(n,r),n){case"dialog":lb("cancel",e),lb("close",e),o=r;break;case"iframe":case"object":case"embed":lb("load",e),o=r;break;case"video":case"audio":for(o=0;o<rb.length;o++)lb(rb[o],e);o=r;break;case"source":lb("error",e),o=r;break;case"img":case"image":case"link":lb("error",e),lb("load",e),o=r;break;case"details":lb("toggle",e),o=r;break;case"input":xf(e,r),o=yf(e,r),lb("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=lf({},r,{value:void 0}),lb("invalid",e);break;case"textarea":If(e,r),o=Lf(e,r),lb("invalid",e)}for(i in $f(n,o),l=o)if(l.hasOwnProperty(i)){var s=l[i];"style"===i?zf(e,s):"dangerouslySetInnerHTML"===i?null!=(s=s?s.__html:void 0)&&Tf(e,s):"children"===i?"string"==typeof s?("textarea"!==n||""!==s)&&Of(e,s):"number"==typeof s&&Of(e,""+s):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(_p.hasOwnProperty(i)?null!=s&&"onScroll"===i&&lb("scroll",e):null!=s&&Bp(e,i,s,a))}switch(n){case"input":gf(e),Cf(e,r,!1);break;case"textarea":gf(e),_f(e);break;case"option":null!=r.value&&e.setAttribute("value",""+hf(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?kf(e,!!r.multiple,i,!1):null!=r.defaultValue&&kf(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Sb)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return fS(t),null;case 6:if(e&&null!=t.stateNode)tS(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(Ip(166));if(n=gy(my.current),gy(fy.current),Dv(t)){if(r=t.stateNode,n=t.memoizedProps,r[Tb]=t,(i=r.nodeValue!==n)&&null!==(e=wv))switch(e.tag){case 3:xb(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&xb(r.nodeValue,n,!!(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Tb]=t,t.stateNode=r}return fS(t),null;case 13:if(Ub(Sy),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(kv&&null!==Rv&&1&t.mode&&!(128&t.flags))Tv(),Ov(),t.flags|=98560,i=!1;else if(i=Dv(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(Ip(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(Ip(317));i[Tb]=t}else Ov(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;fS(t),i=!1}else null!==Lv&&(LE(Lv),Lv=null),i=!0;if(!i)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&Sy.current?0===tE&&(tE=3):NE())),null!==t.updateQueue&&(t.flags|=4),fS(t),null);case 4:return vy(),Zx(e,t),null===e&&cb(t.stateNode.containerInfo),fS(t),null;case 10:return Kv(t.type._context),fS(t),null;case 19:if(Ub(Sy),null===(i=t.memoizedState))return fS(t),null;if(r=!!(128&t.flags),null===(a=i.rendering))if(r)pS(i,!1);else{if(0!==tE||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=Ey(e))){for(t.flags|=128,pS(i,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(a=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Yb(Sy,1&Sy.current|2),t.child}e=e.sibling}null!==i.tail&&xh()>uE&&(t.flags|=128,r=!0,pS(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Ey(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),pS(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!kv)return fS(t),null}else 2*xh()-i.renderingStartTime>uE&&1073741824!==n&&(t.flags|=128,r=!0,pS(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=i.last)?n.sibling=a:t.child=a,i.last=a)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=xh(),t.sibling=null,n=Sy.current,Yb(Sy,r?1&n|2:1&n),t):(fS(t),null);case 22:case 23:return PE(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&ZS)&&(fS(t),6&t.subtreeFlags&&(t.flags|=8192)):fS(t),null;case 24:case 25:return null}throw Error(Ip(156,t.tag))}function mS(e,t){switch(Cv(t),t.tag){case 1:return ev(t.type)&&tv(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return vy(),Ub(Qb),Ub(Xb),wy(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return xy(t),null;case 13:if(Ub(Sy),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(Ip(340));Ov()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ub(Sy),null;case 4:return vy(),null;case 10:return Kv(t.type._context),null;case 22:case 23:return PE(),null;default:return null}}Jx=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Zx=function(){},eS=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,gy(fy.current);var i,a=null;switch(n){case"input":o=yf(e,o),r=yf(e,r),a=[];break;case"select":o=lf({},o,{value:void 0}),r=lf({},r,{value:void 0}),a=[];break;case"textarea":o=Lf(e,o),r=Lf(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Sb)}for(u in $f(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(_p.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var s=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&s!==l&&(null!=s||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&l[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(u,n)),n=s;else"dangerouslySetInnerHTML"===u?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(a=a||[]).push(u,s)):"children"===u?"string"!=typeof s&&"number"!=typeof s||(a=a||[]).push(u,""+s):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(_p.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&lb("scroll",e),a||l===s||(a=[])):(a=a||[]).push(u,s))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},tS=function(e,t,n,r){n!==r&&(t.flags|=4)};var gS=!1,bS=!1,vS="function"==typeof WeakSet?WeakSet:Set,yS=null;function xS(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){GE(e,t,n)}else n.current=null}function SS(e,t,n){try{n()}catch(n){GE(e,t,n)}}var ES=!1;function CS(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&SS(t,n,i)}o=o.next}while(o!==r)}}function wS(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function RS(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function kS(e){var t=e.alternate;null!==t&&(e.alternate=null,kS(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[Tb],delete t[Ob],delete t[qb],delete t[Fb],delete t[zb])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function LS(e){return 5===e.tag||3===e.tag||4===e.tag}function IS(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||LS(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function MS(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Sb));else if(4!==r&&null!==(e=e.child))for(MS(e,t,n),e=e.sibling;null!==e;)MS(e,t,n),e=e.sibling}function _S(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(_S(e,t,n),e=e.sibling;null!==e;)_S(e,t,n),e=e.sibling}var AS=null,PS=!1;function DS(e,t,n){for(n=n.child;null!==n;)TS(e,t,n),n=n.sibling}function TS(e,t,n){if(Ih&&"function"==typeof Ih.onCommitFiberUnmount)try{Ih.onCommitFiberUnmount(Lh,n)}catch(e){}switch(n.tag){case 5:bS||xS(n,t);case 6:var r=AS,o=PS;AS=null,DS(e,t,n),PS=o,null!==(AS=r)&&(PS?(e=AS,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):AS.removeChild(n.stateNode));break;case 18:null!==AS&&(PS?(e=AS,n=n.stateNode,8===e.nodeType?_b(e.parentNode,n):1===e.nodeType&&_b(e,n),dm(e)):_b(AS,n.stateNode));break;case 4:r=AS,o=PS,AS=n.stateNode.containerInfo,PS=!0,DS(e,t,n),AS=r,PS=o;break;case 0:case 11:case 14:case 15:if(!bS&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&SS(n,t,a),o=o.next}while(o!==r)}DS(e,t,n);break;case 1:if(!bS&&(xS(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){GE(n,t,e)}DS(e,t,n);break;case 21:DS(e,t,n);break;case 22:1&n.mode?(bS=(r=bS)||null!==n.memoizedState,DS(e,t,n),bS=r):DS(e,t,n);break;default:DS(e,t,n)}}function OS(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new vS),t.forEach((function(t){var r=KE.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function NS(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:AS=l.stateNode,PS=!1;break e;case 3:case 4:AS=l.stateNode.containerInfo,PS=!0;break e}l=l.return}if(null===AS)throw Error(Ip(160));TS(i,a,o),AS=null,PS=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){GE(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)qS(t,e),t=t.sibling}function qS(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(NS(t,e),FS(e),4&r){try{CS(3,e,e.return),wS(3,e)}catch(t){GE(e,e.return,t)}try{CS(5,e,e.return)}catch(t){GE(e,e.return,t)}}break;case 1:NS(t,e),FS(e),512&r&&null!==n&&xS(n,n.return);break;case 5:if(NS(t,e),FS(e),512&r&&null!==n&&xS(n,n.return),32&e.flags){var o=e.stateNode;try{Of(o,"")}catch(t){GE(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,a=null!==n?n.memoizedProps:i,l=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===l&&"radio"===i.type&&null!=i.name&&Sf(o,i),Bf(l,a);var u=Bf(l,i);for(a=0;a<s.length;a+=2){var c=s[a],d=s[a+1];"style"===c?zf(o,d):"dangerouslySetInnerHTML"===c?Tf(o,d):"children"===c?Of(o,d):Bp(o,c,d,u)}switch(l){case"input":Ef(o,i);break;case"textarea":Mf(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var f=i.value;null!=f?kf(o,!!i.multiple,f,!1):p!==!!i.multiple&&(null!=i.defaultValue?kf(o,!!i.multiple,i.defaultValue,!0):kf(o,!!i.multiple,i.multiple?[]:"",!1))}o[Ob]=i}catch(t){GE(e,e.return,t)}}break;case 6:if(NS(t,e),FS(e),4&r){if(null===e.stateNode)throw Error(Ip(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){GE(e,e.return,t)}}break;case 3:if(NS(t,e),FS(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{dm(t.containerInfo)}catch(t){GE(e,e.return,t)}break;case 4:default:NS(t,e),FS(e);break;case 13:NS(t,e),FS(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(sE=xh())),4&r&&OS(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(bS=(u=bS)||c,NS(t,e),bS=u):NS(t,e),FS(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&1&e.mode)for(yS=e,c=e.child;null!==c;){for(d=yS=c;null!==yS;){switch(f=(p=yS).child,p.tag){case 0:case 11:case 14:case 15:CS(4,p,p.return);break;case 1:xS(p,p.return);var h=p.stateNode;if("function"==typeof h.componentWillUnmount){r=p,n=p.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){GE(r,n,e)}}break;case 5:xS(p,p.return);break;case 22:if(null!==p.memoizedState){BS(d);continue}}null!==f?(f.return=p,yS=f):BS(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{o=d.stateNode,u?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=d.stateNode,a=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,l.style.display=Ff("display",a))}catch(t){GE(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){GE(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:NS(t,e),FS(e),4&r&&OS(e);case 21:}}function FS(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(LS(n)){var r=n;break e}n=n.return}throw Error(Ip(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(Of(o,""),r.flags&=-33),_S(e,IS(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;MS(e,IS(e),i);break;default:throw Error(Ip(161))}}catch(t){GE(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function zS(e,t,n){yS=e,jS(e)}function jS(e,t,n){for(var r=!!(1&e.mode);null!==yS;){var o=yS,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||gS;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||bS;l=gS;var u=bS;if(gS=a,(bS=s)&&!u)for(yS=o;null!==yS;)s=(a=yS).child,22===a.tag&&null!==a.memoizedState?HS(o):null!==s?(s.return=a,yS=s):HS(o);for(;null!==i;)yS=i,jS(i),i=i.sibling;yS=o,gS=l,bS=u}$S(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,yS=i):$S(e)}}function $S(e){for(;null!==yS;){var t=yS;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:bS||wS(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!bS)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Cx(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&dy(t,i,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}dy(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&dm(d)}}}break;default:throw Error(Ip(163))}bS||512&t.flags&&RS(t)}catch(e){GE(t,t.return,e)}}if(t===e){yS=null;break}if(null!==(n=t.sibling)){n.return=t.return,yS=n;break}yS=t.return}}function BS(e){for(;null!==yS;){var t=yS;if(t===e){yS=null;break}var n=t.sibling;if(null!==n){n.return=t.return,yS=n;break}yS=t.return}}function HS(e){for(;null!==yS;){var t=yS;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{wS(4,t)}catch(e){GE(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){GE(t,o,e)}}var i=t.return;try{RS(t)}catch(e){GE(t,i,e)}break;case 5:var a=t.return;try{RS(t)}catch(e){GE(t,a,e)}}}catch(e){GE(t,t.return,e)}if(t===e){yS=null;break}var l=t.sibling;if(null!==l){l.return=t.return,yS=l;break}yS=t.return}}var WS,GS=Math.ceil,VS=Hp.ReactCurrentDispatcher,US=Hp.ReactCurrentOwner,YS=Hp.ReactCurrentBatchConfig,KS=0,XS=null,QS=null,JS=0,ZS=0,eE=Vb(0),tE=0,nE=null,rE=0,oE=0,iE=0,aE=null,lE=null,sE=0,uE=1/0,cE=null,dE=!1,pE=null,fE=null,hE=!1,mE=null,gE=0,bE=0,vE=null,yE=-1,xE=0;function SE(){return 6&KS?xh():-1!==yE?yE:yE=xh()}function EE(e){return 1&e.mode?2&KS&&0!==JS?JS&-JS:null!==qv.transition?(0===xE&&(xE=Fh()),xE):0!==(e=Bh)?e:e=void 0===(e=window.event)?16:ym(e.type):1}function CE(e,t,n,r){if(50<bE)throw bE=0,vE=null,Error(Ip(185));jh(e,n,r),2&KS&&e===XS||(e===XS&&(!(2&KS)&&(oE|=n),4===tE&&IE(e,JS)),wE(e,r),1===n&&0===KS&&!(1&t.mode)&&(uE=xh()+500,lv&&cv()))}function wE(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-Mh(i),l=1<<a,s=o[a];-1===s?l&n&&!(l&r)||(o[a]=Nh(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=Oh(e,e===XS?JS:0);if(0===r)null!==n&&bh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&bh(n),1===t)0===e.tag?function(e){lv=!0,uv(e)}(ME.bind(null,e)):uv(ME.bind(null,e)),Ib((function(){!(6&KS)&&cv()})),n=null;else{switch(Hh(r)){case 1:n=Eh;break;case 4:n=Ch;break;case 16:default:n=wh;break;case 536870912:n=kh}n=XE(n,RE.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function RE(e,t){if(yE=-1,xE=0,6&KS)throw Error(Ip(327));var n=e.callbackNode;if(HE()&&e.callbackNode!==n)return null;var r=Oh(e,e===XS?JS:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=qE(e,r);else{t=r;var o=KS;KS|=2;var i=OE();for(XS===e&&JS===t||(cE=null,uE=xh()+500,DE(e,t));;)try{zE();break}catch(t){TE(e,t)}Yv(),VS.current=i,KS=o,null!==QS?t=0:(XS=null,JS=0,t=tE)}if(0!==t){if(2===t&&(0!==(o=qh(e))&&(r=o,t=kE(e,o))),1===t)throw n=nE,DE(e,0),IE(e,r),wE(e,xh()),n;if(6===t)IE(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Mg(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=qE(e,r),2===t&&(i=qh(e),0!==i&&(r=i,t=kE(e,i))),1!==t)))throw n=nE,DE(e,0),IE(e,r),wE(e,xh()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(Ip(345));case 2:case 5:BE(e,lE,cE);break;case 3:if(IE(e,r),(130023424&r)===r&&10<(t=sE+500-xh())){if(0!==Oh(e,0))break;if(((o=e.suspendedLanes)&r)!==r){SE(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Rb(BE.bind(null,e,lE,cE),t);break}BE(e,lE,cE);break;case 4:if(IE(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-Mh(r);i=1<<a,(a=t[a])>o&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=xh()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*GS(r/1960))-r)){e.timeoutHandle=Rb(BE.bind(null,e,lE,cE),r);break}BE(e,lE,cE);break;default:throw Error(Ip(329))}}}return wE(e,xh()),e.callbackNode===n?RE.bind(null,e):null}function kE(e,t){var n=aE;return e.current.memoizedState.isDehydrated&&(DE(e,t).flags|=256),2!==(e=qE(e,t))&&(t=lE,lE=n,null!==t&&LE(t)),e}function LE(e){null===lE?lE=e:lE.push.apply(lE,e)}function IE(e,t){for(t&=~iE,t&=~oE,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Mh(t),r=1<<n;e[n]=-1,t&=~r}}function ME(e){if(6&KS)throw Error(Ip(327));HE();var t=Oh(e,0);if(!(1&t))return wE(e,xh()),null;var n=qE(e,t);if(0!==e.tag&&2===n){var r=qh(e);0!==r&&(t=r,n=kE(e,r))}if(1===n)throw n=nE,DE(e,0),IE(e,t),wE(e,xh()),n;if(6===n)throw Error(Ip(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,BE(e,lE,cE),wE(e,xh()),null}function _E(e,t){var n=KS;KS|=1;try{return e(t)}finally{0===(KS=n)&&(uE=xh()+500,lv&&cv())}}function AE(e){null!==mE&&0===mE.tag&&!(6&KS)&&HE();var t=KS;KS|=1;var n=YS.transition,r=Bh;try{if(YS.transition=null,Bh=1,e)return e()}finally{Bh=r,YS.transition=n,!(6&(KS=t))&&cv()}}function PE(){ZS=eE.current,Ub(eE)}function DE(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,kb(n)),null!==QS)for(n=QS.return;null!==n;){var r=n;switch(Cv(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&tv();break;case 3:vy(),Ub(Qb),Ub(Xb),wy();break;case 5:xy(r);break;case 4:vy();break;case 13:case 19:Ub(Sy);break;case 10:Kv(r.type._context);break;case 22:case 23:PE()}n=n.return}if(XS=e,QS=e=eC(e.current,null),JS=ZS=t,tE=0,nE=null,iE=oE=rE=0,lE=aE=null,null!==Zv){for(t=0;t<Zv.length;t++)if(null!==(r=(n=Zv[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Zv=null}return e}function TE(e,t){for(;;){var n=QS;try{if(Yv(),Ry.current=yx,Ay){for(var r=Iy.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}Ay=!1}if(Ly=0,_y=My=Iy=null,Py=!1,Dy=0,US.current=null,null===n||null===n.return){tE=1,nE=t,QS=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=JS,l.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s,c=l,d=c.tag;if(!(1&c.mode||0!==d&&11!==d&&15!==d)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var f=qx(a);if(null!==f){f.flags&=-257,Fx(f,a,l,0,t),1&f.mode&&Nx(i,u,t),s=u;var h=(t=f).updateQueue;if(null===h){var m=new Set;m.add(s),t.updateQueue=m}else h.add(s);break e}if(!(1&t)){Nx(i,u,t),NE();break e}s=Error(Ip(426))}else if(kv&&1&l.mode){var g=qx(a);if(null!==g){!(65536&g.flags)&&(g.flags|=256),Fx(g,a,l,0,t),Nv(_x(s,l));break e}}i=s=_x(s,l),4!==tE&&(tE=2),null===aE?aE=[i]:aE.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,uy(i,Tx(0,s,t));break e;case 1:l=s;var b=i.type,v=i.stateNode;if(!(128&i.flags||"function"!=typeof b.getDerivedStateFromError&&(null===v||"function"!=typeof v.componentDidCatch||null!==fE&&fE.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t,uy(i,Ox(i,l,t));break e}}i=i.return}while(null!==i)}$E(n)}catch(e){t=e,QS===n&&null!==n&&(QS=n=n.return);continue}break}}function OE(){var e=VS.current;return VS.current=yx,null===e?yx:e}function NE(){0!==tE&&3!==tE&&2!==tE||(tE=4),null===XS||!(268435455&rE)&&!(268435455&oE)||IE(XS,JS)}function qE(e,t){var n=KS;KS|=2;var r=OE();for(XS===e&&JS===t||(cE=null,DE(e,t));;)try{FE();break}catch(t){TE(e,t)}if(Yv(),KS=n,VS.current=r,null!==QS)throw Error(Ip(261));return XS=null,JS=0,tE}function FE(){for(;null!==QS;)jE(QS)}function zE(){for(;null!==QS&&!vh();)jE(QS)}function jE(e){var t=WS(e.alternate,e,ZS);e.memoizedProps=e.pendingProps,null===t?$E(e):QS=t,US.current=null}function $E(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=mS(n,t)))return n.flags&=32767,void(QS=n);if(null===e)return tE=6,void(QS=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=hS(n,t,ZS)))return void(QS=n);if(null!==(t=t.sibling))return void(QS=t);QS=t=e}while(null!==t);0===tE&&(tE=5)}function BE(e,t,n){var r=Bh,o=YS.transition;try{YS.transition=null,Bh=1,function(e,t,n,r){do{HE()}while(null!==mE);if(6&KS)throw Error(Ip(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Ip(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Mh(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===XS&&(QS=XS=null,JS=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||hE||(hE=!0,XE(wh,(function(){return HE(),null}))),i=!!(15990&n.flags),!!(15990&n.subtreeFlags)||i){i=YS.transition,YS.transition=null;var a=Bh;Bh=1;var l=KS;KS|=4,US.current=null,function(e,t){if(Eb=fm,Og(e=Tg())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var a=0,l=-1,s=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var f;d!==n||0!==o&&3!==d.nodeType||(l=a+o),d!==i||0!==r&&3!==d.nodeType||(s=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(f=d.firstChild);)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++u===o&&(l=a),p===i&&++c===r&&(s=a),null!==(f=d.nextSibling))break;p=(d=p).parentNode}d=f}n=-1===l||-1===s?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Cb={focusedElem:e,selectionRange:n},fm=!1,yS=t;null!==yS;)if(e=(t=yS).child,1028&t.subtreeFlags&&null!==e)e.return=t,yS=e;else for(;null!==yS;){t=yS;try{var h=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var m=h.memoizedProps,g=h.memoizedState,b=t.stateNode,v=b.getSnapshotBeforeUpdate(t.elementType===t.type?m:Cx(t.type,m),g);b.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var y=t.stateNode.containerInfo;1===y.nodeType?y.textContent="":9===y.nodeType&&y.documentElement&&y.removeChild(y.documentElement);break;default:throw Error(Ip(163))}}catch(e){GE(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,yS=e;break}yS=t.return}h=ES,ES=!1}(e,n),qS(n,e),Ng(Cb),fm=!!Eb,Cb=Eb=null,e.current=n,zS(n),yh(),KS=l,Bh=a,YS.transition=i}else e.current=n;if(hE&&(hE=!1,mE=e,gE=o),i=e.pendingLanes,0===i&&(fE=null),function(e){if(Ih&&"function"==typeof Ih.onCommitFiberRoot)try{Ih.onCommitFiberRoot(Lh,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),wE(e,xh()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(dE)throw dE=!1,e=pE,pE=null,e;!!(1&gE)&&0!==e.tag&&HE(),i=e.pendingLanes,1&i?e===vE?bE++:(bE=0,vE=e):bE=0,cv()}(e,t,n,r)}finally{YS.transition=o,Bh=r}return null}function HE(){if(null!==mE){var e=Hh(gE),t=YS.transition,n=Bh;try{if(YS.transition=null,Bh=16>e?16:e,null===mE)var r=!1;else{if(e=mE,mE=null,gE=0,6&KS)throw Error(Ip(331));var o=KS;for(KS|=4,yS=e.current;null!==yS;){var i=yS,a=i.child;if(16&yS.flags){var l=i.deletions;if(null!==l){for(var s=0;s<l.length;s++){var u=l[s];for(yS=u;null!==yS;){var c=yS;switch(c.tag){case 0:case 11:case 15:CS(8,c,i)}var d=c.child;if(null!==d)d.return=c,yS=d;else for(;null!==yS;){var p=(c=yS).sibling,f=c.return;if(kS(c),c===u){yS=null;break}if(null!==p){p.return=f,yS=p;break}yS=f}}}var h=i.alternate;if(null!==h){var m=h.child;if(null!==m){h.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}yS=i}}if(2064&i.subtreeFlags&&null!==a)a.return=i,yS=a;else e:for(;null!==yS;){if(2048&(i=yS).flags)switch(i.tag){case 0:case 11:case 15:CS(9,i,i.return)}var b=i.sibling;if(null!==b){b.return=i.return,yS=b;break e}yS=i.return}}var v=e.current;for(yS=v;null!==yS;){var y=(a=yS).child;if(2064&a.subtreeFlags&&null!==y)y.return=a,yS=y;else e:for(a=v;null!==yS;){if(2048&(l=yS).flags)try{switch(l.tag){case 0:case 11:case 15:wS(9,l)}}catch(e){GE(l,l.return,e)}if(l===a){yS=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,yS=x;break e}yS=l.return}}if(KS=o,cv(),Ih&&"function"==typeof Ih.onPostCommitFiberRoot)try{Ih.onPostCommitFiberRoot(Lh,e)}catch(e){}r=!0}return r}finally{Bh=n,YS.transition=t}}return!1}function WE(e,t,n){e=ly(e,t=Tx(0,t=_x(n,t),1),1),t=SE(),null!==e&&(jh(e,1,t),wE(e,t))}function GE(e,t,n){if(3===e.tag)WE(e,e,n);else for(;null!==t;){if(3===t.tag){WE(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===fE||!fE.has(r))){t=ly(t,e=Ox(t,e=_x(n,e),1),1),e=SE(),null!==t&&(jh(t,1,e),wE(t,e));break}}t=t.return}}function VE(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=SE(),e.pingedLanes|=e.suspendedLanes&n,XS===e&&(JS&n)===n&&(4===tE||3===tE&&(130023424&JS)===JS&&500>xh()-sE?DE(e,0):iE|=n),wE(e,t)}function UE(e,t){0===t&&(1&e.mode?(t=Dh,!(130023424&(Dh<<=1))&&(Dh=4194304)):t=1);var n=SE();null!==(e=ny(e,t))&&(jh(e,t,n),wE(e,n))}function YE(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),UE(e,n)}function KE(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Ip(314))}null!==r&&r.delete(t),UE(e,n)}function XE(e,t){return gh(e,t)}function QE(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function JE(e,t,n,r){return new QE(e,t,n,r)}function ZE(e){return!(!(e=e.prototype)||!e.isReactComponent)}function eC(e,t){var n=e.alternate;return null===n?((n=JE(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function tC(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)ZE(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case Vp:return nC(n.children,o,i,t);case Up:a=8,o|=8;break;case Yp:return(e=JE(12,n,t,2|o)).elementType=Yp,e.lanes=i,e;case Jp:return(e=JE(13,n,t,o)).elementType=Jp,e.lanes=i,e;case Zp:return(e=JE(19,n,t,o)).elementType=Zp,e.lanes=i,e;case nf:return rC(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Kp:a=10;break e;case Xp:a=9;break e;case Qp:a=11;break e;case ef:a=14;break e;case tf:a=16,r=null;break e}throw Error(Ip(130,null==e?e:typeof e,""))}return(t=JE(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function nC(e,t,n,r){return(e=JE(7,e,r,t)).lanes=n,e}function rC(e,t,n,r){return(e=JE(22,e,r,t)).elementType=nf,e.lanes=n,e.stateNode={isHidden:!1},e}function oC(e,t,n){return(e=JE(6,e,null,t)).lanes=n,e}function iC(e,t,n){return(t=JE(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function aC(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zh(0),this.expirationTimes=zh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zh(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function lC(e,t,n,r,o,i,a,l,s){return e=new aC(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=JE(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},oy(i),e}function sC(e){if(!e)return Kb;e:{if(dh(e=e._reactInternals)!==e||1!==e.tag)throw Error(Ip(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ev(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(Ip(171))}if(1===e.tag){var n=e.type;if(ev(n))return rv(e,n,t)}return t}function uC(e,t,n,r,o,i,a,l,s){return(e=lC(n,r,!0,e,0,i,0,l,s)).context=sC(null),n=e.current,(i=ay(r=SE(),o=EE(n))).callback=null!=t?t:null,ly(n,i,o),e.current.lanes=o,jh(e,o,r),wE(e,r),e}function cC(e,t,n,r){var o=t.current,i=SE(),a=EE(o);return n=sC(n),null===t.context?t.context=n:t.pendingContext=n,(t=ay(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=ly(o,t,a))&&(CE(e,o,a,i),sy(e,o,a)),a}function dC(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function pC(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function fC(e,t){pC(e,t),(e=e.alternate)&&pC(e,t)}WS=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Qb.current)jx=!0;else{if(!(e.lanes&n||128&t.flags))return jx=!1,function(e,t,n){switch(t.tag){case 3:Xx(t),Ov();break;case 5:yy(t);break;case 1:ev(t.type)&&ov(t);break;case 4:by(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Yb(Wv,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Yb(Sy,1&Sy.current),t.flags|=128,null):n&t.child.childLanes?oS(e,t,n):(Yb(Sy,1&Sy.current),null!==(e=dS(e,t,n))?e.sibling:null);Yb(Sy,1&Sy.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return uS(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Yb(Sy,Sy.current),r)break;return null;case 22:case 23:return t.lanes=0,Gx(e,t,n)}return dS(e,t,n)}(e,t,n);jx=!!(131072&e.flags)}else jx=!1,kv&&1048576&t.flags&&Sv(t,hv,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;cS(e,t),e=t.pendingProps;var o=Zb(t,Xb.current);Qv(t,n),o=qy(null,t,r,e,o,n);var i=Fy();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ev(r)?(i=!0,ov(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,oy(t),o.updater=Rx,t.stateNode=o,o._reactInternals=t,Mx(t,r,e,n),t=Kx(null,t,r,!0,i,n)):(t.tag=0,kv&&i&&Ev(t),$x(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(cS(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return ZE(e)?1:0;if(null!=e){if((e=e.$$typeof)===Qp)return 11;if(e===ef)return 14}return 2}(r),e=Cx(r,e),o){case 0:t=Ux(null,t,r,e,n);break e;case 1:t=Yx(null,t,r,e,n);break e;case 11:t=Bx(null,t,r,e,n);break e;case 14:t=Hx(null,t,r,Cx(r.type,e),n);break e}throw Error(Ip(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ux(e,t,r,o=t.elementType===r?o:Cx(r,o),n);case 1:return r=t.type,o=t.pendingProps,Yx(e,t,r,o=t.elementType===r?o:Cx(r,o),n);case 3:e:{if(Xx(t),null===e)throw Error(Ip(387));r=t.pendingProps,o=(i=t.memoizedState).element,iy(e,t),cy(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Qx(e,t,r,n,o=_x(Error(Ip(423)),t));break e}if(r!==o){t=Qx(e,t,r,n,o=_x(Error(Ip(424)),t));break e}for(Rv=Ab(t.stateNode.containerInfo.firstChild),wv=t,kv=!0,Lv=null,n=Hv(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Ov(),r===o){t=dS(e,t,n);break e}$x(e,t,r,n)}t=t.child}return t;case 5:return yy(t),null===e&&Av(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,wb(r,o)?a=null:null!==i&&wb(r,i)&&(t.flags|=32),Vx(e,t),$x(e,t,a,n),t.child;case 6:return null===e&&Av(t),null;case 13:return oS(e,t,n);case 4:return by(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Bv(t,null,r,n):$x(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Bx(e,t,r,o=t.elementType===r?o:Cx(r,o),n);case 7:return $x(e,t,t.pendingProps,n),t.child;case 8:case 12:return $x(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Yb(Wv,r._currentValue),r._currentValue=a,null!==i)if(Mg(i.value,a)){if(i.children===o.children&&!Qb.current){t=dS(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){a=i.child;for(var s=l.firstContext;null!==s;){if(s.context===r){if(1===i.tag){(s=ay(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),Xv(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(10===i.tag)a=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(a=i.return))throw Error(Ip(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Xv(a,n,t),a=i.sibling}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===t){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}$x(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Qv(t,n),r=r(o=Jv(o)),t.flags|=1,$x(e,t,r,n),t.child;case 14:return o=Cx(r=t.type,t.pendingProps),Hx(e,t,r,o=Cx(r.type,o),n);case 15:return Wx(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Cx(r,o),cS(e,t),t.tag=1,ev(r)?(e=!0,ov(t)):e=!1,Qv(t,n),Lx(t,r,o),Mx(t,r,o,n),Kx(null,t,r,!0,e,n);case 19:return uS(e,t,n);case 22:return Gx(e,t,n)}throw Error(Ip(156,t.tag))};var hC="function"==typeof reportError?reportError:function(e){console.error(e)};function mC(e){this._internalRoot=e}function gC(e){this._internalRoot=e}function bC(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function vC(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function yC(){}function xC(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=dC(a);l.call(e)}}cC(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=dC(a);i.call(e)}}var a=uC(t,r,e,0,null,!1,0,"",yC);return e._reactRootContainer=a,e[Nb]=a.current,cb(8===e.nodeType?e.parentNode:e),AE(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=dC(s);l.call(e)}}var s=lC(e,0,!1,null,0,!1,0,"",yC);return e._reactRootContainer=s,e[Nb]=s.current,cb(8===e.nodeType?e.parentNode:e),AE((function(){cC(t,s,n,r)})),s}(n,t,e,o,r);return dC(a)}gC.prototype.render=mC.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(Ip(409));cC(e,t,null,null)},gC.prototype.unmount=mC.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;AE((function(){cC(null,e,null,null)})),t[Nb]=null}},gC.prototype.unstable_scheduleHydration=function(e){if(e){var t=Uh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<nm.length&&0!==t&&t<nm[n].priority;n++);nm.splice(n,0,e),0===n&&am(e)}},Wh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Th(t.pendingLanes);0!==n&&($h(t,1|n),wE(t,xh()),!(6&KS)&&(uE=xh()+500,cv()))}break;case 13:AE((function(){var t=ny(e,1);if(null!==t){var n=SE();CE(t,e,1,n)}})),fC(e,1)}},Gh=function(e){if(13===e.tag){var t=ny(e,134217728);if(null!==t)CE(t,e,134217728,SE());fC(e,134217728)}},Vh=function(e){if(13===e.tag){var t=EE(e),n=ny(e,t);if(null!==n)CE(n,e,t,SE());fC(e,t)}},Uh=function(){return Bh},Yh=function(e,t){var n=Bh;try{return Bh=e,t()}finally{Bh=n}},Gf=function(e,t,n){switch(t){case"input":if(Ef(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Hb(r);if(!o)throw Error(Ip(90));bf(r),Ef(r,o)}}}break;case"textarea":Mf(e,n);break;case"select":null!=(t=n.value)&&kf(e,!!n.multiple,t,!1)}},Qf=_E,Jf=AE;var SC={usingClientEntryPoint:!1,Events:[$b,Bb,Hb,Kf,Xf,_E]},EC={findFiberByHostInstance:jb,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},CC={bundleType:EC.bundleType,version:EC.version,rendererPackageName:EC.rendererPackageName,rendererConfig:EC.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Hp.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=hh(e))?null:e.stateNode},findFiberByHostInstance:EC.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var wC=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wC.isDisabled&&wC.supportsFiber)try{Lh=wC.inject(CC),Ih=wC}catch(St){}}Ep.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=SC,Ep.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!bC(t))throw Error(Ip(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Gp,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},Ep.createRoot=function(e,t){if(!bC(e))throw Error(Ip(299));var n=!1,r="",o=hC;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=lC(e,1,!1,null,0,n,0,r,o),e[Nb]=t.current,cb(8===e.nodeType?e.parentNode:e),new mC(t)},Ep.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(Ip(188));throw e=Object.keys(e).join(","),Error(Ip(268,e))}return e=null===(e=hh(t))?null:e.stateNode},Ep.flushSync=function(e){return AE(e)},Ep.hydrate=function(e,t,n){if(!vC(t))throw Error(Ip(200));return xC(null,e,t,!0,n)},Ep.hydrateRoot=function(e,t,n){if(!bC(e))throw Error(Ip(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",a=hC;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=uC(t,null,e,1,null!=n?n:null,o,0,i,a),e[Nb]=t.current,cb(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new gC(t)},Ep.render=function(e,t,n){if(!vC(t))throw Error(Ip(200));return xC(null,e,t,!1,n)},Ep.unmountComponentAtNode=function(e){if(!vC(e))throw Error(Ip(40));return!!e._reactRootContainer&&(AE((function(){xC(null,null,e,!1,(function(){e._reactRootContainer=null,e[Nb]=null}))})),!0)},Ep.unstable_batchedUpdates=_E,Ep.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!vC(n))throw Error(Ip(200));if(null==e||void 0===e._reactInternals)throw Error(Ip(38));return xC(e,t,n,!1,r)},Ep.version="18.3.1-next-f1338f8080-20240426",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),Sp.exports=Ep;var RC=Sp.exports,kC=n(RC),LC=!1,IC=Eo.createContext(null),MC="unmounted",_C="exited",AC="entering",PC="entered",DC="exiting",TC=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=_C,r.appearStatus=AC):o=PC:o=t.unmountOnExit||t.mountOnEnter?MC:_C,r.state={status:o},r.nextCallback=null,r}qr(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===MC?{status:_C}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==AC&&n!==PC&&(t=AC):n!==AC&&n!==PC||(t=DC)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===AC){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:kC.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===_C&&this.setState({status:MC})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[kC.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||LC?this.safeSetState({status:PC},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:AC},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:PC},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:kC.findDOMNode(this);t&&!LC?(this.props.onExit(r),this.safeSetState({status:DC},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:_C},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:_C},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:kC.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===MC)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Or(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Eo.createElement(IC.Provider,{value:null},"function"==typeof n?n(e,r):Eo.cloneElement(Eo.Children.only(n),r))},t}(Eo.Component);function OC(){}TC.contextType=IC,TC.propTypes={},TC.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:OC,onEntering:OC,onEntered:OC,onExit:OC,onExiting:OC,onExited:OC},TC.UNMOUNTED=MC,TC.EXITED=_C,TC.ENTERING=AC,TC.ENTERED=PC,TC.EXITING=DC;var NC=TC;function qC(e,t){var n=Object.create(null);return e&&So.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&So.isValidElement(e)?t(e):e}(e)})),n}function FC(e,t,n){return null!=n[t]?n[t]:e.props[t]}function zC(e,t,n){var r=qC(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(So.isValidElement(a)){var l=i in t,s=i in r,u=t[i],c=So.isValidElement(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&So.isValidElement(u)&&(o[i]=So.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:FC(a,"exit",e),enter:FC(a,"enter",e)})):o[i]=So.cloneElement(a,{in:!1}):o[i]=So.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:FC(a,"exit",e),enter:FC(a,"enter",e)})}})),o}var jC=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},$C=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}qr(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,qC(n.children,(function(e){return So.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:FC(e,"appear",n),enter:FC(e,"enter",n),exit:FC(e,"exit",n)})}))):zC(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=qC(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Ir({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Or(e,["component","childFactory"]),o=this.state.contextValue,i=jC(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?Eo.createElement(IC.Provider,{value:o},i):Eo.createElement(IC.Provider,{value:o},Eo.createElement(t,r,i))},t}(Eo.Component);$C.propTypes={},$C.defaultProps={component:"div",childFactory:function(e){return e}};var BC=$C;const HC=e=>e.scrollTop;function WC(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function GC(e){return Sd("MuiPaper",e)}Ed("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 VC=["className","component","elevation","square","variant"],UC=Kd("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return oi({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&&oi({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Uc("#fff",Xd(t.elevation))}, ${Uc("#fff",Xd(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var YC=So.forwardRef((function(e,t){const n=Gd({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=ii(n,VC),u=oi({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Js({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},GC,o)})(u);return Lc.jsx(UC,oi({as:o,ownerState:u,className:Jd(c.root,r),ref:t},s))}));function KC(e){return"string"==typeof e}function XC(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function QC(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const JC=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ZC(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Or(e,JC),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=su(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Ir({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Ir({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=XC(Ir({},o,r)),l=QC(r),s=QC(o),u=t(a),c=su(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=Ir({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Ir({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Ir({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||KC(e)?t:Ir({},t,{ownerState:Ir({},t.ownerState,n)})}(n,Ir({},s,{ref:Ns(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var ew=Ed("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const tw=["center","classes","className"];let nw,rw,ow,iw,aw=e=>e;const lw=Vl(nw||(nw=aw`
47
+ */function dp(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var pp=new Set,fp={};function mp(e,t){hp(e,t),hp(e+"Capture",t)}function hp(e,t){for(fp[e]=t,e=0;e<t.length;e++)pp.add(t[e])}var gp=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),vp=Object.prototype.hasOwnProperty,bp=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,yp={},xp={};function Sp(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Ep={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Ep[e]=new Sp(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Ep[t]=new Sp(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Ep[e]=new Sp(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Ep[e]=new Sp(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){Ep[e]=new Sp(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Ep[e]=new Sp(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){Ep[e]=new Sp(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){Ep[e]=new Sp(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){Ep[e]=new Sp(e,5,!1,e.toLowerCase(),null,!1,!1)}));var Cp=/[\-:]([a-z])/g;function wp(e){return e[1].toUpperCase()}function Rp(e,t,n,r){var o=Ep.hasOwnProperty(t)?Ep[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!vp.call(xp,e)||!vp.call(yp,e)&&(bp.test(e)?xp[e]=!0:(yp[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Cp,wp);Ep[t]=new Sp(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Cp,wp);Ep[t]=new Sp(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Cp,wp);Ep[t]=new Sp(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){Ep[e]=new Sp(e,1,!1,e.toLowerCase(),null,!1,!1)})),Ep.xlinkHref=new Sp("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){Ep[e]=new Sp(e,1,!1,e.toLowerCase(),null,!0,!0)}));var kp=up.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Lp=Symbol.for("react.element"),Ip=Symbol.for("react.portal"),Mp=Symbol.for("react.fragment"),_p=Symbol.for("react.strict_mode"),Ap=Symbol.for("react.profiler"),Pp=Symbol.for("react.provider"),Dp=Symbol.for("react.context"),Tp=Symbol.for("react.forward_ref"),Op=Symbol.for("react.suspense"),Np=Symbol.for("react.suspense_list"),qp=Symbol.for("react.memo"),Fp=Symbol.for("react.lazy"),zp=Symbol.for("react.offscreen"),jp=Symbol.iterator;function $p(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=jp&&e[jp]||e["@@iterator"])?e:null}var Wp,Gp=Object.assign;function Bp(e){if(void 0===Wp)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Wp=t&&t[1]||""}return"\n"+Wp+e}var Hp=!1;function Vp(e,t){if(!e||Hp)return"";Hp=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{Hp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Bp(e):""}function Up(e){switch(e.tag){case 5:return Bp(e.type);case 16:return Bp("Lazy");case 13:return Bp("Suspense");case 19:return Bp("SuspenseList");case 0:case 2:case 15:return e=Vp(e.type,!1);case 11:return e=Vp(e.type.render,!1);case 1:return e=Vp(e.type,!0);default:return""}}function Yp(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Mp:return"Fragment";case Ip:return"Portal";case Ap:return"Profiler";case _p:return"StrictMode";case Op:return"Suspense";case Np:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Dp:return(e.displayName||"Context")+".Consumer";case Pp:return(e._context.displayName||"Context")+".Provider";case Tp:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case qp:return null!==(t=e.displayName||null)?t:Yp(e.type)||"Memo";case Fp:t=e._payload,e=e._init;try{return Yp(e(t))}catch(e){}}return null}function Kp(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Yp(t);case 8:return t===_p?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Xp(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Qp(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Jp(e){e._valueTracker||(e._valueTracker=function(e){var t=Qp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Zp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Qp(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ef(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function tf(e,t){var n=t.checked;return Gp({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function nf(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Xp(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function rf(e,t){null!=(t=t.checked)&&Rp(e,"checked",t,!1)}function of(e,t){rf(e,t);var n=Xp(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?lf(e,t.type,n):t.hasOwnProperty("defaultValue")&&lf(e,t.type,Xp(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function af(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function lf(e,t,n){"number"===t&&ef(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var sf=Array.isArray;function uf(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Xp(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function cf(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(dp(91));return Gp({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function df(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(dp(92));if(sf(n)){if(1<n.length)throw Error(dp(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Xp(n)}}function pf(e,t){var n=Xp(t.value),r=Xp(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ff(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function mf(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function hf(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?mf(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var gf,vf=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((gf=gf||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=gf.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function bf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var yf={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xf=["Webkit","ms","Moz","O"];function Sf(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||yf.hasOwnProperty(e)&&yf[e]?(""+t).trim():t+"px"}function Ef(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=Sf(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(yf).forEach((function(e){xf.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),yf[t]=yf[e]}))}));var Cf=Gp({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function wf(e,t){if(t){if(Cf[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(dp(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(dp(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(dp(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(dp(62))}}function Rf(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var kf=null;function Lf(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var If=null,Mf=null,_f=null;function Af(e){if(e=wv(e)){if("function"!=typeof If)throw Error(dp(280));var t=e.stateNode;t&&(t=kv(t),If(e.stateNode,e.type,t))}}function Pf(e){Mf?_f?_f.push(e):_f=[e]:Mf=e}function Df(){if(Mf){var e=Mf,t=_f;if(_f=Mf=null,Af(e),t)for(e=0;e<t.length;e++)Af(t[e])}}function Tf(e,t){return e(t)}function Of(){}var Nf=!1;function qf(e,t,n){if(Nf)return e(t,n);Nf=!0;try{return Tf(e,t,n)}finally{Nf=!1,(null!==Mf||null!==_f)&&(Of(),Df())}}function Ff(e,t){var n=e.stateNode;if(null===n)return null;var r=kv(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(dp(231,t,typeof n));return n}var zf=!1;if(gp)try{var jf={};Object.defineProperty(jf,"passive",{get:function(){zf=!0}}),window.addEventListener("test",jf,jf),window.removeEventListener("test",jf,jf)}catch(mt){zf=!1}function $f(e,t,n,r,o,i,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Wf=!1,Gf=null,Bf=!1,Hf=null,Vf={onError:function(e){Wf=!0,Gf=e}};function Uf(e,t,n,r,o,i,a,l,s){Wf=!1,Gf=null,$f.apply(Vf,arguments)}function Yf(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Kf(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Xf(e){if(Yf(e)!==e)throw Error(dp(188))}function Qf(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=Yf(e)))throw Error(dp(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Xf(o),e;if(i===r)return Xf(o),t;i=i.sibling}throw Error(dp(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a)throw Error(dp(189))}}if(n.alternate!==r)throw Error(dp(190))}if(3!==n.tag)throw Error(dp(188));return n.stateNode.current===n?e:t}(e),null!==e?Jf(e):null}function Jf(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Jf(e);if(null!==t)return t;e=e.sibling}return null}var Zf=cp.unstable_scheduleCallback,em=cp.unstable_cancelCallback,tm=cp.unstable_shouldYield,nm=cp.unstable_requestPaint,rm=cp.unstable_now,om=cp.unstable_getCurrentPriorityLevel,im=cp.unstable_ImmediatePriority,am=cp.unstable_UserBlockingPriority,lm=cp.unstable_NormalPriority,sm=cp.unstable_LowPriority,um=cp.unstable_IdlePriority,cm=null,dm=null;var pm=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(fm(e)/mm|0)|0},fm=Math.log,mm=Math.LN2;var hm=64,gm=4194304;function vm(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function bm(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=vm(l):0!==(i&=a)&&(r=vm(i))}else 0!==(a=n&~o)?r=vm(a):0!==i&&(r=vm(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-pm(t)),r|=e[n],t&=~o;return r}function ym(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function xm(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Sm(){var e=hm;return!(4194240&(hm<<=1))&&(hm=64),e}function Em(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Cm(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-pm(t)]=n}function wm(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-pm(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Rm=0;function km(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var Lm,Im,Mm,_m,Am,Pm=!1,Dm=[],Tm=null,Om=null,Nm=null,qm=new Map,Fm=new Map,zm=[],jm="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function $m(e,t){switch(e){case"focusin":case"focusout":Tm=null;break;case"dragenter":case"dragleave":Om=null;break;case"mouseover":case"mouseout":Nm=null;break;case"pointerover":case"pointerout":qm.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fm.delete(t.pointerId)}}function Wm(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=wv(t))&&Im(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Gm(e){var t=Cv(e.target);if(null!==t){var n=Yf(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Kf(n)))return e.blockedOn=t,void Am(e.priority,(function(){Mm(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Bm(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=th(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wv(n))&&Im(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);kf=r,n.target.dispatchEvent(r),kf=null,t.shift()}return!0}function Hm(e,t,n){Bm(e)&&n.delete(t)}function Vm(){Pm=!1,null!==Tm&&Bm(Tm)&&(Tm=null),null!==Om&&Bm(Om)&&(Om=null),null!==Nm&&Bm(Nm)&&(Nm=null),qm.forEach(Hm),Fm.forEach(Hm)}function Um(e,t){e.blockedOn===t&&(e.blockedOn=null,Pm||(Pm=!0,cp.unstable_scheduleCallback(cp.unstable_NormalPriority,Vm)))}function Ym(e){function t(t){return Um(t,e)}if(0<Dm.length){Um(Dm[0],e);for(var n=1;n<Dm.length;n++){var r=Dm[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tm&&Um(Tm,e),null!==Om&&Um(Om,e),null!==Nm&&Um(Nm,e),qm.forEach(t),Fm.forEach(t),n=0;n<zm.length;n++)(r=zm[n]).blockedOn===e&&(r.blockedOn=null);for(;0<zm.length&&null===(n=zm[0]).blockedOn;)Gm(n),null===n.blockedOn&&zm.shift()}var Km=kp.ReactCurrentBatchConfig,Xm=!0;function Qm(e,t,n,r){var o=Rm,i=Km.transition;Km.transition=null;try{Rm=1,Zm(e,t,n,r)}finally{Rm=o,Km.transition=i}}function Jm(e,t,n,r){var o=Rm,i=Km.transition;Km.transition=null;try{Rm=4,Zm(e,t,n,r)}finally{Rm=o,Km.transition=i}}function Zm(e,t,n,r){if(Xm){var o=th(e,t,n,r);if(null===o)Kg(e,t,r,eh,n),$m(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Tm=Wm(Tm,e,t,n,r,o),!0;case"dragenter":return Om=Wm(Om,e,t,n,r,o),!0;case"mouseover":return Nm=Wm(Nm,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return qm.set(i,Wm(qm.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Fm.set(i,Wm(Fm.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if($m(e,r),4&t&&-1<jm.indexOf(e)){for(;null!==o;){var i=wv(o);if(null!==i&&Lm(i),null===(i=th(e,t,n,r))&&Kg(e,t,r,eh,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Kg(e,t,r,null,n)}}var eh=null;function th(e,t,n,r){if(eh=null,null!==(e=Cv(e=Lf(r))))if(null===(t=Yf(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Kf(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return eh=e,null}function nh(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(om()){case im:return 1;case am:return 4;case lm:case sm:return 16;case um:return 536870912;default:return 16}default:return 16}}var rh=null,oh=null,ih=null;function ah(){if(ih)return ih;var e,t,n=oh,r=n.length,o="value"in rh?rh.value:rh.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return ih=o.slice(e,1<t?1-t:void 0)}function lh(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function sh(){return!0}function uh(){return!1}function ch(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?sh:uh,this.isPropagationStopped=uh,this}return Gp(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=sh)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=sh)},persist:function(){},isPersistent:sh}),t}var dh,ph,fh,mh={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hh=ch(mh),gh=Gp({},mh,{view:0,detail:0}),vh=ch(gh),bh=Gp({},gh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_h,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==fh&&(fh&&"mousemove"===e.type?(dh=e.screenX-fh.screenX,ph=e.screenY-fh.screenY):ph=dh=0,fh=e),dh)},movementY:function(e){return"movementY"in e?e.movementY:ph}}),yh=ch(bh),xh=ch(Gp({},bh,{dataTransfer:0})),Sh=ch(Gp({},gh,{relatedTarget:0})),Eh=ch(Gp({},mh,{animationName:0,elapsedTime:0,pseudoElement:0})),Ch=Gp({},mh,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wh=ch(Ch),Rh=ch(Gp({},mh,{data:0})),kh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Lh={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Ih={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Mh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Ih[e])&&!!t[e]}function _h(){return Mh}var Ah=Gp({},gh,{key:function(e){if(e.key){var t=kh[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=lh(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Lh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_h,charCode:function(e){return"keypress"===e.type?lh(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?lh(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Ph=ch(Ah),Dh=ch(Gp({},bh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Th=ch(Gp({},gh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_h})),Oh=ch(Gp({},mh,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nh=Gp({},bh,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),qh=ch(Nh),Fh=[9,13,27,32],zh=gp&&"CompositionEvent"in window,jh=null;gp&&"documentMode"in document&&(jh=document.documentMode);var $h=gp&&"TextEvent"in window&&!jh,Wh=gp&&(!zh||jh&&8<jh&&11>=jh),Gh=String.fromCharCode(32),Bh=!1;function Hh(e,t){switch(e){case"keyup":return-1!==Fh.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vh(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Uh=!1;var Yh={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Kh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Yh[e.type]:"textarea"===t}function Xh(e,t,n,r){Pf(r),0<(t=Qg(t,"onChange")).length&&(n=new hh("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Qh=null,Jh=null;function Zh(e){Gg(e,0)}function eg(e){if(Zp(Rv(e)))return e}function tg(e,t){if("change"===e)return t}var ng=!1;if(gp){var rg;if(gp){var og="oninput"in document;if(!og){var ig=document.createElement("div");ig.setAttribute("oninput","return;"),og="function"==typeof ig.oninput}rg=og}else rg=!1;ng=rg&&(!document.documentMode||9<document.documentMode)}function ag(){Qh&&(Qh.detachEvent("onpropertychange",lg),Jh=Qh=null)}function lg(e){if("value"===e.propertyName&&eg(Jh)){var t=[];Xh(t,Jh,e,Lf(e)),qf(Zh,t)}}function sg(e,t,n){"focusin"===e?(ag(),Jh=n,(Qh=t).attachEvent("onpropertychange",lg)):"focusout"===e&&ag()}function ug(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return eg(Jh)}function cg(e,t){if("click"===e)return eg(t)}function dg(e,t){if("input"===e||"change"===e)return eg(t)}var pg="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function fg(e,t){if(pg(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!vp.call(t,o)||!pg(e[o],t[o]))return!1}return!0}function mg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hg(e,t){var n,r=mg(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=mg(r)}}function gg(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?gg(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function vg(){for(var e=window,t=ef();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=ef((e=t.contentWindow).document)}return t}function bg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function yg(e){var t=vg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&gg(n.ownerDocument.documentElement,n)){if(null!==r&&bg(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=hg(n,i);var a=hg(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var xg=gp&&"documentMode"in document&&11>=document.documentMode,Sg=null,Eg=null,Cg=null,wg=!1;function Rg(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;wg||null==Sg||Sg!==ef(r)||("selectionStart"in(r=Sg)&&bg(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Cg&&fg(Cg,r)||(Cg=r,0<(r=Qg(Eg,"onSelect")).length&&(t=new hh("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Sg)))}function kg(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Lg={animationend:kg("Animation","AnimationEnd"),animationiteration:kg("Animation","AnimationIteration"),animationstart:kg("Animation","AnimationStart"),transitionend:kg("Transition","TransitionEnd")},Ig={},Mg={};function _g(e){if(Ig[e])return Ig[e];if(!Lg[e])return e;var t,n=Lg[e];for(t in n)if(n.hasOwnProperty(t)&&t in Mg)return Ig[e]=n[t];return e}gp&&(Mg=document.createElement("div").style,"AnimationEvent"in window||(delete Lg.animationend.animation,delete Lg.animationiteration.animation,delete Lg.animationstart.animation),"TransitionEvent"in window||delete Lg.transitionend.transition);var Ag=_g("animationend"),Pg=_g("animationiteration"),Dg=_g("animationstart"),Tg=_g("transitionend"),Og=new Map,Ng="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function qg(e,t){Og.set(e,t),mp(t,[e])}for(var Fg=0;Fg<Ng.length;Fg++){var zg=Ng[Fg];qg(zg.toLowerCase(),"on"+(zg[0].toUpperCase()+zg.slice(1)))}qg(Ag,"onAnimationEnd"),qg(Pg,"onAnimationIteration"),qg(Dg,"onAnimationStart"),qg("dblclick","onDoubleClick"),qg("focusin","onFocus"),qg("focusout","onBlur"),qg(Tg,"onTransitionEnd"),hp("onMouseEnter",["mouseout","mouseover"]),hp("onMouseLeave",["mouseout","mouseover"]),hp("onPointerEnter",["pointerout","pointerover"]),hp("onPointerLeave",["pointerout","pointerover"]),mp("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),mp("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),mp("onBeforeInput",["compositionend","keypress","textInput","paste"]),mp("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),mp("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),mp("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jg="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),$g=new Set("cancel close invalid load scroll toggle".split(" ").concat(jg));function Wg(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,l,s){if(Uf.apply(this,arguments),Wf){if(!Wf)throw Error(dp(198));var u=Gf;Wf=!1,Gf=null,Bf||(Bf=!0,Hf=u)}}(r,t,void 0,e),e.currentTarget=null}function Gg(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;Wg(o,l,u),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,u=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;Wg(o,l,u),i=s}}}if(Bf)throw e=Hf,Bf=!1,Hf=null,e}function Bg(e,t){var n=t[xv];void 0===n&&(n=t[xv]=new Set);var r=e+"__bubble";n.has(r)||(Yg(t,e,2,!1),n.add(r))}function Hg(e,t,n){var r=0;t&&(r|=4),Yg(n,e,r,t)}var Vg="_reactListening"+Math.random().toString(36).slice(2);function Ug(e){if(!e[Vg]){e[Vg]=!0,pp.forEach((function(t){"selectionchange"!==t&&($g.has(t)||Hg(t,!1,e),Hg(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Vg]||(t[Vg]=!0,Hg("selectionchange",!1,t))}}function Yg(e,t,n,r){switch(nh(t)){case 1:var o=Qm;break;case 4:o=Jm;break;default:o=Zm}n=o.bind(null,t,n,e),o=void 0,!zf||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Kg(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=Cv(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}qf((function(){var r=i,o=Lf(n),a=[];e:{var l=Og.get(e);if(void 0!==l){var s=hh,u=e;switch(e){case"keypress":if(0===lh(n))break e;case"keydown":case"keyup":s=Ph;break;case"focusin":u="focus",s=Sh;break;case"focusout":u="blur",s=Sh;break;case"beforeblur":case"afterblur":s=Sh;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=yh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=xh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Th;break;case Ag:case Pg:case Dg:s=Eh;break;case Tg:s=Oh;break;case"scroll":s=vh;break;case"wheel":s=qh;break;case"copy":case"cut":case"paste":s=wh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Dh}var c=!!(4&t),d=!c&&"scroll"===e,p=c?null!==l?l+"Capture":null:l;c=[];for(var f,m=r;null!==m;){var h=(f=m).stateNode;if(5===f.tag&&null!==h&&(f=h,null!==p&&(null!=(h=Ff(m,p))&&c.push(Xg(m,h,f)))),d)break;m=m.return}0<c.length&&(l=new s(l,u,null,n,o),a.push({event:l,listeners:c}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===kf||!(u=n.relatedTarget||n.fromElement)||!Cv(u)&&!u[yv])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?Cv(u):null)&&(u!==(d=Yf(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=yh,h="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=Dh,h="onPointerLeave",p="onPointerEnter",m="pointer"),d=null==s?l:Rv(s),f=null==u?l:Rv(u),(l=new c(h,m+"leave",s,n,o)).target=d,l.relatedTarget=f,h=null,Cv(o)===r&&((c=new c(p,m+"enter",u,n,o)).target=f,c.relatedTarget=d,h=c),d=h,s&&u)e:{for(p=u,m=0,f=c=s;f;f=Jg(f))m++;for(f=0,h=p;h;h=Jg(h))f++;for(;0<m-f;)c=Jg(c),m--;for(;0<f-m;)p=Jg(p),f--;for(;m--;){if(c===p||null!==p&&c===p.alternate)break e;c=Jg(c),p=Jg(p)}c=null}else c=null;null!==s&&Zg(a,l,s,c,!1),null!==u&&null!==d&&Zg(a,d,u,c,!0)}if("select"===(s=(l=r?Rv(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=tg;else if(Kh(l))if(ng)g=dg;else{g=ug;var v=sg}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=cg);switch(g&&(g=g(e,r))?Xh(a,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&lf(l,"number",l.value)),v=r?Rv(r):window,e){case"focusin":(Kh(v)||"true"===v.contentEditable)&&(Sg=v,Eg=r,Cg=null);break;case"focusout":Cg=Eg=Sg=null;break;case"mousedown":wg=!0;break;case"contextmenu":case"mouseup":case"dragend":wg=!1,Rg(a,n,o);break;case"selectionchange":if(xg)break;case"keydown":case"keyup":Rg(a,n,o)}var b;if(zh)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Uh?Hh(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Wh&&"ko"!==n.locale&&(Uh||"onCompositionStart"!==y?"onCompositionEnd"===y&&Uh&&(b=ah()):(oh="value"in(rh=o)?rh.value:rh.textContent,Uh=!0)),0<(v=Qg(r,y)).length&&(y=new Rh(y,e,null,n,o),a.push({event:y,listeners:v}),b?y.data=b:null!==(b=Vh(n))&&(y.data=b))),(b=$h?function(e,t){switch(e){case"compositionend":return Vh(t);case"keypress":return 32!==t.which?null:(Bh=!0,Gh);case"textInput":return(e=t.data)===Gh&&Bh?null:e;default:return null}}(e,n):function(e,t){if(Uh)return"compositionend"===e||!zh&&Hh(e,t)?(e=ah(),ih=oh=rh=null,Uh=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Wh&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Qg(r,"onBeforeInput")).length&&(o=new Rh("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b))}Gg(a,t)}))}function Xg(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Qg(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Ff(e,n))&&r.unshift(Xg(e,i,o)),null!=(i=Ff(e,t))&&r.push(Xg(e,i,o))),e=e.return}return r}function Jg(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Zg(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=Ff(n,i))&&a.unshift(Xg(n,s,l)):o||null!=(s=Ff(n,i))&&a.push(Xg(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var ev=/\r\n?/g,tv=/\u0000|\uFFFD/g;function nv(e){return("string"==typeof e?e:""+e).replace(ev,"\n").replace(tv,"")}function rv(e,t,n){if(t=nv(t),nv(e)!==t&&n)throw Error(dp(425))}function ov(){}var iv=null,av=null;function lv(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var sv="function"==typeof setTimeout?setTimeout:void 0,uv="function"==typeof clearTimeout?clearTimeout:void 0,cv="function"==typeof Promise?Promise:void 0,dv="function"==typeof queueMicrotask?queueMicrotask:void 0!==cv?function(e){return cv.resolve(null).then(e).catch(pv)}:sv;function pv(e){setTimeout((function(){throw e}))}function fv(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Ym(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Ym(t)}function mv(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function hv(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var gv=Math.random().toString(36).slice(2),vv="__reactFiber$"+gv,bv="__reactProps$"+gv,yv="__reactContainer$"+gv,xv="__reactEvents$"+gv,Sv="__reactListeners$"+gv,Ev="__reactHandles$"+gv;function Cv(e){var t=e[vv];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yv]||n[vv]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=hv(e);null!==e;){if(n=e[vv])return n;e=hv(e)}return t}n=(e=n).parentNode}return null}function wv(e){return!(e=e[vv]||e[yv])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Rv(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(dp(33))}function kv(e){return e[bv]||null}var Lv=[],Iv=-1;function Mv(e){return{current:e}}function _v(e){0>Iv||(e.current=Lv[Iv],Lv[Iv]=null,Iv--)}function Av(e,t){Iv++,Lv[Iv]=e.current,e.current=t}var Pv={},Dv=Mv(Pv),Tv=Mv(!1),Ov=Pv;function Nv(e,t){var n=e.type.contextTypes;if(!n)return Pv;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function qv(e){return null!=(e=e.childContextTypes)}function Fv(){_v(Tv),_v(Dv)}function zv(e,t,n){if(Dv.current!==Pv)throw Error(dp(168));Av(Dv,t),Av(Tv,n)}function jv(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(dp(108,Kp(e)||"Unknown",o));return Gp({},n,r)}function $v(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pv,Ov=Dv.current,Av(Dv,e),Av(Tv,Tv.current),!0}function Wv(e,t,n){var r=e.stateNode;if(!r)throw Error(dp(169));n?(e=jv(e,t,Ov),r.__reactInternalMemoizedMergedChildContext=e,_v(Tv),_v(Dv),Av(Dv,e)):_v(Tv),Av(Tv,n)}var Gv=null,Bv=!1,Hv=!1;function Vv(e){null===Gv?Gv=[e]:Gv.push(e)}function Uv(){if(!Hv&&null!==Gv){Hv=!0;var e=0,t=Rm;try{var n=Gv;for(Rm=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Gv=null,Bv=!1}catch(t){throw null!==Gv&&(Gv=Gv.slice(e+1)),Zf(im,Uv),t}finally{Rm=t,Hv=!1}}return null}var Yv=[],Kv=0,Xv=null,Qv=0,Jv=[],Zv=0,eb=null,tb=1,nb="";function rb(e,t){Yv[Kv++]=Qv,Yv[Kv++]=Xv,Xv=e,Qv=t}function ob(e,t,n){Jv[Zv++]=tb,Jv[Zv++]=nb,Jv[Zv++]=eb,eb=e;var r=tb;e=nb;var o=32-pm(r)-1;r&=~(1<<o),n+=1;var i=32-pm(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,tb=1<<32-pm(t)+o|n<<o|r,nb=i+e}else tb=1<<i|n<<o|r,nb=e}function ib(e){null!==e.return&&(rb(e,1),ob(e,1,0))}function ab(e){for(;e===Xv;)Xv=Yv[--Kv],Yv[Kv]=null,Qv=Yv[--Kv],Yv[Kv]=null;for(;e===eb;)eb=Jv[--Zv],Jv[Zv]=null,nb=Jv[--Zv],Jv[Zv]=null,tb=Jv[--Zv],Jv[Zv]=null}var lb=null,sb=null,ub=!1,cb=null;function db(e,t){var n=OE(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function pb(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,lb=e,sb=mv(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,lb=e,sb=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==eb?{id:tb,overflow:nb}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=OE(18,null,null,0)).stateNode=t,n.return=e,e.child=n,lb=e,sb=null,!0);default:return!1}}function fb(e){return!(!(1&e.mode)||128&e.flags)}function mb(e){if(ub){var t=sb;if(t){var n=t;if(!pb(e,t)){if(fb(e))throw Error(dp(418));t=mv(n.nextSibling);var r=lb;t&&pb(e,t)?db(r,n):(e.flags=-4097&e.flags|2,ub=!1,lb=e)}}else{if(fb(e))throw Error(dp(418));e.flags=-4097&e.flags|2,ub=!1,lb=e}}}function hb(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;lb=e}function gb(e){if(e!==lb)return!1;if(!ub)return hb(e),ub=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!lv(e.type,e.memoizedProps)),t&&(t=sb)){if(fb(e))throw vb(),Error(dp(418));for(;t;)db(e,t),t=mv(t.nextSibling)}if(hb(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(dp(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){sb=mv(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}sb=null}}else sb=lb?mv(e.stateNode.nextSibling):null;return!0}function vb(){for(var e=sb;e;)e=mv(e.nextSibling)}function bb(){sb=lb=null,ub=!1}function yb(e){null===cb?cb=[e]:cb.push(e)}var xb=kp.ReactCurrentBatchConfig;function Sb(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(dp(309));var r=n.stateNode}if(!r)throw Error(dp(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(dp(284));if(!n._owner)throw Error(dp(290,e))}return e}function Eb(e,t){throw e=Object.prototype.toString.call(t),Error(dp(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Cb(e){return(0,e._init)(e._payload)}function wb(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=qE(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=$E(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var i=n.type;return i===Mp?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===Fp&&Cb(i)===t.type)?((r=o(t,n.props)).ref=Sb(e,t,n),r.return=e,r):((r=FE(n.type,n.key,n.props,null,e.mode,r)).ref=Sb(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=WE(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function c(e,t,n,r,i){return null===t||7!==t.tag?((t=zE(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=$E(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Lp:return(n=FE(t.type,t.key,t.props,null,e.mode,n)).ref=Sb(e,null,t),n.return=e,n;case Ip:return(t=WE(t,e.mode,n)).return=e,t;case Fp:return d(e,(0,t._init)(t._payload),n)}if(sf(t)||$p(t))return(t=zE(t,e.mode,n,null)).return=e,t;Eb(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Lp:return n.key===o?s(e,t,n,r):null;case Ip:return n.key===o?u(e,t,n,r):null;case Fp:return p(e,t,(o=n._init)(n._payload),r)}if(sf(n)||$p(n))return null!==o?null:c(e,t,n,r,null);Eb(e,n)}return null}function f(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Lp:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Ip:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Fp:return f(e,t,n,(0,r._init)(r._payload),o)}if(sf(r)||$p(r))return c(t,e=e.get(n)||null,r,o,null);Eb(t,r)}return null}function m(o,a,l,s){for(var u=null,c=null,m=a,h=a=0,g=null;null!==m&&h<l.length;h++){m.index>h?(g=m,m=null):g=m.sibling;var v=p(o,m,l[h],s);if(null===v){null===m&&(m=g);break}e&&m&&null===v.alternate&&t(o,m),a=i(v,a,h),null===c?u=v:c.sibling=v,c=v,m=g}if(h===l.length)return n(o,m),ub&&rb(o,h),u;if(null===m){for(;h<l.length;h++)null!==(m=d(o,l[h],s))&&(a=i(m,a,h),null===c?u=m:c.sibling=m,c=m);return ub&&rb(o,h),u}for(m=r(o,m);h<l.length;h++)null!==(g=f(m,o,h,l[h],s))&&(e&&null!==g.alternate&&m.delete(null===g.key?h:g.key),a=i(g,a,h),null===c?u=g:c.sibling=g,c=g);return e&&m.forEach((function(e){return t(o,e)})),ub&&rb(o,h),u}function h(o,a,l,s){var u=$p(l);if("function"!=typeof u)throw Error(dp(150));if(null==(l=u.call(l)))throw Error(dp(151));for(var c=u=null,m=a,h=a=0,g=null,v=l.next();null!==m&&!v.done;h++,v=l.next()){m.index>h?(g=m,m=null):g=m.sibling;var b=p(o,m,v.value,s);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(o,m),a=i(b,a,h),null===c?u=b:c.sibling=b,c=b,m=g}if(v.done)return n(o,m),ub&&rb(o,h),u;if(null===m){for(;!v.done;h++,v=l.next())null!==(v=d(o,v.value,s))&&(a=i(v,a,h),null===c?u=v:c.sibling=v,c=v);return ub&&rb(o,h),u}for(m=r(o,m);!v.done;h++,v=l.next())null!==(v=f(m,o,h,v.value,s))&&(e&&null!==v.alternate&&m.delete(null===v.key?h:v.key),a=i(v,a,h),null===c?u=v:c.sibling=v,c=v);return e&&m.forEach((function(e){return t(o,e)})),ub&&rb(o,h),u}return function e(r,i,l,s){if("object"==typeof l&&null!==l&&l.type===Mp&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case Lp:e:{for(var u=l.key,c=i;null!==c;){if(c.key===u){if((u=l.type)===Mp){if(7===c.tag){n(r,c.sibling),(i=o(c,l.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===Fp&&Cb(u)===c.type){n(r,c.sibling),(i=o(c,l.props)).ref=Sb(r,c,l),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}l.type===Mp?((i=zE(l.props.children,r.mode,s,l.key)).return=r,r=i):((s=FE(l.type,l.key,l.props,null,r.mode,s)).ref=Sb(r,i,l),s.return=r,r=s)}return a(r);case Ip:e:{for(c=l.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===l.containerInfo&&i.stateNode.implementation===l.implementation){n(r,i.sibling),(i=o(i,l.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=WE(l,r.mode,s)).return=r,r=i}return a(r);case Fp:return e(r,i,(c=l._init)(l._payload),s)}if(sf(l))return m(r,i,l,s);if($p(l))return h(r,i,l,s);Eb(r,l)}return"string"==typeof l&&""!==l||"number"==typeof l?(l=""+l,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,l)).return=r,r=i):(n(r,i),(i=$E(l,r.mode,s)).return=r,r=i),a(r)):n(r,i)}}var Rb=wb(!0),kb=wb(!1),Lb=Mv(null),Ib=null,Mb=null,_b=null;function Ab(){_b=Mb=Ib=null}function Pb(e){var t=Lb.current;_v(Lb),e._currentValue=t}function Db(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Tb(e,t){Ib=e,_b=Mb=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(Cx=!0),e.firstContext=null)}function Ob(e){var t=e._currentValue;if(_b!==e)if(e={context:e,memoizedValue:t,next:null},null===Mb){if(null===Ib)throw Error(dp(308));Mb=e,Ib.dependencies={lanes:0,firstContext:e}}else Mb=Mb.next=e;return t}var Nb=null;function qb(e){null===Nb?Nb=[e]:Nb.push(e)}function Fb(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,qb(t)):(n.next=o.next,o.next=n),t.interleaved=n,zb(e,r)}function zb(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var jb=!1;function $b(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Wb(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Gb(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bb(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&PS){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,zb(e,n)}return null===(o=r.interleaved)?(t.next=t,qb(r)):(t.next=o.next,o.next=t),r.interleaved=t,zb(e,n)}function Hb(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,wm(e,n)}}function Vb(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ub(e,t,n,r){var o=e.updateQueue;jb=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,u=s.next;s.next=null,null===a?i=u:a.next=u,a=s;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(null!==i){var d=o.baseState;for(a=0,c=u=s=null,l=i;;){var p=l.lane,f=l.eventTime;if((r&p)===p){null!==c&&(c=c.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,h=l;switch(p=t,f=n,h.tag){case 1:if("function"==typeof(m=h.payload)){d=m.call(f,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=h.payload)?m.call(f,d,p):m))break e;d=Gp({},d,p);break e;case 2:jb=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[l]:p.push(l))}else f={eventTime:f,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=f,s=d):c=c.next=f,a|=p;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(p=l).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===c&&(s=d),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);jS|=a,e.lanes=a,e.memoizedState=d}}function Yb(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(dp(191,o));o.call(r)}}}var Kb={},Xb=Mv(Kb),Qb=Mv(Kb),Jb=Mv(Kb);function Zb(e){if(e===Kb)throw Error(dp(174));return e}function ey(e,t){switch(Av(Jb,t),Av(Qb,e),Av(Xb,Kb),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:hf(null,"");break;default:t=hf(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}_v(Xb),Av(Xb,t)}function ty(){_v(Xb),_v(Qb),_v(Jb)}function ny(e){Zb(Jb.current);var t=Zb(Xb.current),n=hf(t,e.type);t!==n&&(Av(Qb,e),Av(Xb,n))}function ry(e){Qb.current===e&&(_v(Xb),_v(Qb))}var oy=Mv(0);function iy(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ay=[];function ly(){for(var e=0;e<ay.length;e++)ay[e]._workInProgressVersionPrimary=null;ay.length=0}var sy=kp.ReactCurrentDispatcher,uy=kp.ReactCurrentBatchConfig,cy=0,dy=null,py=null,fy=null,my=!1,hy=!1,gy=0,vy=0;function by(){throw Error(dp(321))}function yy(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!pg(e[n],t[n]))return!1;return!0}function xy(e,t,n,r,o,i){if(cy=i,dy=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,sy.current=null===e||null===e.memoizedState?rx:ox,e=n(r,o),hy){i=0;do{if(hy=!1,gy=0,25<=i)throw Error(dp(301));i+=1,fy=py=null,t.updateQueue=null,sy.current=ix,e=n(r,o)}while(hy)}if(sy.current=nx,t=null!==py&&null!==py.next,cy=0,fy=py=dy=null,my=!1,t)throw Error(dp(300));return e}function Sy(){var e=0!==gy;return gy=0,e}function Ey(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===fy?dy.memoizedState=fy=e:fy=fy.next=e,fy}function Cy(){if(null===py){var e=dy.alternate;e=null!==e?e.memoizedState:null}else e=py.next;var t=null===fy?dy.memoizedState:fy.next;if(null!==t)fy=t,py=e;else{if(null===e)throw Error(dp(310));e={memoizedState:(py=e).memoizedState,baseState:py.baseState,baseQueue:py.baseQueue,queue:py.queue,next:null},null===fy?dy.memoizedState=fy=e:fy=fy.next=e}return fy}function wy(e,t){return"function"==typeof t?t(e):t}function Ry(e){var t=Cy(),n=t.queue;if(null===n)throw Error(dp(311));n.lastRenderedReducer=e;var r=py,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var l=a=null,s=null,u=i;do{var c=u.lane;if((cy&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===s?(l=s=d,a=r):s=s.next=d,dy.lanes|=c,jS|=c}u=u.next}while(null!==u&&u!==i);null===s?a=r:s.next=l,pg(r,t.memoizedState)||(Cx=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,dy.lanes|=i,jS|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ky(e){var t=Cy(),n=t.queue;if(null===n)throw Error(dp(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);pg(i,t.memoizedState)||(Cx=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Ly(){}function Iy(e,t){var n=dy,r=Cy(),o=t(),i=!pg(r.memoizedState,o);if(i&&(r.memoizedState=o,Cx=!0),r=r.queue,jy(Ay.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==fy&&1&fy.memoizedState.tag){if(n.flags|=2048,Oy(9,_y.bind(null,n,r,o,t),void 0,null),null===DS)throw Error(dp(349));30&cy||My(n,t,o)}return o}function My(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=dy.updateQueue)?(t={lastEffect:null,stores:null},dy.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function _y(e,t,n,r){t.value=n,t.getSnapshot=r,Py(t)&&Dy(e)}function Ay(e,t,n){return n((function(){Py(t)&&Dy(e)}))}function Py(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!pg(e,n)}catch(e){return!0}}function Dy(e){var t=zb(e,1);null!==t&&aE(t,e,1,-1)}function Ty(e){var t=Ey();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wy,lastRenderedState:e},t.queue=e,e=e.dispatch=Jy.bind(null,dy,e),[t.memoizedState,e]}function Oy(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=dy.updateQueue)?(t={lastEffect:null,stores:null},dy.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ny(){return Cy().memoizedState}function qy(e,t,n,r){var o=Ey();dy.flags|=e,o.memoizedState=Oy(1|t,n,void 0,void 0===r?null:r)}function Fy(e,t,n,r){var o=Cy();r=void 0===r?null:r;var i=void 0;if(null!==py){var a=py.memoizedState;if(i=a.destroy,null!==r&&yy(r,a.deps))return void(o.memoizedState=Oy(t,n,i,r))}dy.flags|=e,o.memoizedState=Oy(1|t,n,i,r)}function zy(e,t){return qy(8390656,8,e,t)}function jy(e,t){return Fy(2048,8,e,t)}function $y(e,t){return Fy(4,2,e,t)}function Wy(e,t){return Fy(4,4,e,t)}function Gy(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function By(e,t,n){return n=null!=n?n.concat([e]):null,Fy(4,4,Gy.bind(null,t,e),n)}function Hy(){}function Vy(e,t){var n=Cy();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&yy(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Uy(e,t){var n=Cy();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&yy(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Yy(e,t,n){return 21&cy?(pg(n,t)||(n=Sm(),dy.lanes|=n,jS|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Cx=!0),e.memoizedState=n)}function Ky(e,t){var n=Rm;Rm=0!==n&&4>n?n:4,e(!0);var r=uy.transition;uy.transition={};try{e(!1),t()}finally{Rm=n,uy.transition=r}}function Xy(){return Cy().memoizedState}function Qy(e,t,n){var r=iE(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zy(e))ex(t,n);else if(null!==(n=Fb(e,t,n,r))){aE(n,e,r,oE()),tx(n,t,r)}}function Jy(e,t,n){var r=iE(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zy(e))ex(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,pg(l,a)){var s=t.interleaved;return null===s?(o.next=o,qb(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Fb(e,t,o,r))&&(aE(n,e,r,o=oE()),tx(n,t,r))}}function Zy(e){var t=e.alternate;return e===dy||null!==t&&t===dy}function ex(e,t){hy=my=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function tx(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,wm(e,n)}}var nx={readContext:Ob,useCallback:by,useContext:by,useEffect:by,useImperativeHandle:by,useInsertionEffect:by,useLayoutEffect:by,useMemo:by,useReducer:by,useRef:by,useState:by,useDebugValue:by,useDeferredValue:by,useTransition:by,useMutableSource:by,useSyncExternalStore:by,useId:by,unstable_isNewReconciler:!1},rx={readContext:Ob,useCallback:function(e,t){return Ey().memoizedState=[e,void 0===t?null:t],e},useContext:Ob,useEffect:zy,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,qy(4194308,4,Gy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return qy(4194308,4,e,t)},useInsertionEffect:function(e,t){return qy(4,2,e,t)},useMemo:function(e,t){var n=Ey();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ey();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Qy.bind(null,dy,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ey().memoizedState=e},useState:Ty,useDebugValue:Hy,useDeferredValue:function(e){return Ey().memoizedState=e},useTransition:function(){var e=Ty(!1),t=e[0];return e=Ky.bind(null,e[1]),Ey().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=dy,o=Ey();if(ub){if(void 0===n)throw Error(dp(407));n=n()}else{if(n=t(),null===DS)throw Error(dp(349));30&cy||My(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,zy(Ay.bind(null,r,i,e),[e]),r.flags|=2048,Oy(9,_y.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ey(),t=DS.identifierPrefix;if(ub){var n=nb;t=":"+t+"R"+(n=(tb&~(1<<32-pm(tb)-1)).toString(32)+n),0<(n=gy++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=vy++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ox={readContext:Ob,useCallback:Vy,useContext:Ob,useEffect:jy,useImperativeHandle:By,useInsertionEffect:$y,useLayoutEffect:Wy,useMemo:Uy,useReducer:Ry,useRef:Ny,useState:function(){return Ry(wy)},useDebugValue:Hy,useDeferredValue:function(e){return Yy(Cy(),py.memoizedState,e)},useTransition:function(){return[Ry(wy)[0],Cy().memoizedState]},useMutableSource:Ly,useSyncExternalStore:Iy,useId:Xy,unstable_isNewReconciler:!1},ix={readContext:Ob,useCallback:Vy,useContext:Ob,useEffect:jy,useImperativeHandle:By,useInsertionEffect:$y,useLayoutEffect:Wy,useMemo:Uy,useReducer:ky,useRef:Ny,useState:function(){return ky(wy)},useDebugValue:Hy,useDeferredValue:function(e){var t=Cy();return null===py?t.memoizedState=e:Yy(t,py.memoizedState,e)},useTransition:function(){return[ky(wy)[0],Cy().memoizedState]},useMutableSource:Ly,useSyncExternalStore:Iy,useId:Xy,unstable_isNewReconciler:!1};function ax(e,t){if(e&&e.defaultProps){for(var n in t=Gp({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function lx(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Gp({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var sx={isMounted:function(e){return!!(e=e._reactInternals)&&Yf(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=oE(),o=iE(e),i=Gb(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Bb(e,i,o))&&(aE(t,e,o,r),Hb(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=oE(),o=iE(e),i=Gb(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Bb(e,i,o))&&(aE(t,e,o,r),Hb(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=oE(),r=iE(e),o=Gb(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Bb(e,o,r))&&(aE(t,e,r,n),Hb(t,e,r))}};function ux(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!fg(n,r)||!fg(o,i))}function cx(e,t,n){var r=!1,o=Pv,i=t.contextType;return"object"==typeof i&&null!==i?i=Ob(i):(o=qv(t)?Ov:Dv.current,i=(r=null!=(r=t.contextTypes))?Nv(e,o):Pv),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=sx,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function dx(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&sx.enqueueReplaceState(t,t.state,null)}function px(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},$b(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ob(i):(i=qv(t)?Ov:Dv.current,o.context=Nv(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(lx(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&sx.enqueueReplaceState(o,o.state,null),Ub(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function fx(e,t){try{var n="",r=t;do{n+=Up(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function mx(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function hx(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var gx="function"==typeof WeakMap?WeakMap:Map;function vx(e,t,n){(n=Gb(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){YS||(YS=!0,KS=r),hx(0,t)},n}function bx(e,t,n){(n=Gb(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){hx(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){hx(0,t),"function"!=typeof r&&(null===XS?XS=new Set([this]):XS.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function yx(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new gx;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=ME.bind(null,e,t,n),t.then(e,e))}function xx(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Sx(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Gb(-1,1)).tag=2,Bb(n,t,1))),n.lanes|=1),e)}var Ex=kp.ReactCurrentOwner,Cx=!1;function wx(e,t,n,r){t.child=null===e?kb(t,null,n,r):Rb(t,e.child,n,r)}function Rx(e,t,n,r,o){n=n.render;var i=t.ref;return Tb(t,o),r=xy(e,t,n,r,i,o),n=Sy(),null===e||Cx?(ub&&n&&ib(t),t.flags|=1,wx(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Yx(e,t,o))}function kx(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||NE(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=FE(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Lx(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:fg)(a,r)&&e.ref===t.ref)return Yx(e,t,o)}return t.flags|=1,(e=qE(i,r)).ref=t.ref,e.return=t,t.child=e}function Lx(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(fg(i,r)&&e.ref===t.ref){if(Cx=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Yx(e,t,o);131072&e.flags&&(Cx=!0)}}return _x(e,t,n,r,o)}function Ix(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Av(qS,NS),NS|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Av(qS,NS),NS|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Av(qS,NS),NS|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Av(qS,NS),NS|=r;return wx(e,t,o,n),t.child}function Mx(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _x(e,t,n,r,o){var i=qv(n)?Ov:Dv.current;return i=Nv(t,i),Tb(t,o),n=xy(e,t,n,r,i,o),r=Sy(),null===e||Cx?(ub&&r&&ib(t),t.flags|=1,wx(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Yx(e,t,o))}function Ax(e,t,n,r,o){if(qv(n)){var i=!0;$v(t)}else i=!1;if(Tb(t,o),null===t.stateNode)Ux(e,t),cx(t,n,r),px(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Ob(u):u=Nv(t,u=qv(n)?Ov:Dv.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==u)&&dx(t,a,r,u),jb=!1;var p=t.memoizedState;a.state=p,Ub(t,r,a,o),s=t.memoizedState,l!==r||p!==s||Tv.current||jb?("function"==typeof c&&(lx(t,n,c,r),s=t.memoizedState),(l=jb||ux(t,n,l,r,p,s,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Wb(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:ax(t.type,l),a.props=u,d=t.pendingProps,p=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=Ob(s):s=Nv(t,s=qv(n)?Ov:Dv.current);var f=n.getDerivedStateFromProps;(c="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||p!==s)&&dx(t,a,r,s),jb=!1,p=t.memoizedState,a.state=p,Ub(t,r,a,o);var m=t.memoizedState;l!==d||p!==m||Tv.current||jb?("function"==typeof f&&(lx(t,n,f,r),m=t.memoizedState),(u=jb||ux(t,n,u,r,p,m,s)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,m,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,m,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=s,r=u):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Px(e,t,n,r,i,o)}function Px(e,t,n,r,o,i){Mx(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Wv(t,n,!1),Yx(e,t,i);r=t.stateNode,Ex.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Rb(t,e.child,null,i),t.child=Rb(t,null,l,i)):wx(e,t,l,i),t.memoizedState=r.state,o&&Wv(t,n,!0),t.child}function Dx(e){var t=e.stateNode;t.pendingContext?zv(0,t.pendingContext,t.pendingContext!==t.context):t.context&&zv(0,t.context,!1),ey(e,t.containerInfo)}function Tx(e,t,n,r,o){return bb(),yb(o),t.flags|=256,wx(e,t,n,r),t.child}var Ox,Nx,qx,Fx,zx={dehydrated:null,treeContext:null,retryLane:0};function jx(e){return{baseLanes:e,cachePool:null,transitions:null}}function $x(e,t,n){var r,o=t.pendingProps,i=oy.current,a=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&i)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Av(oy,1&i),null===e)return mb(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,a?(o=t.mode,a=t.child,l={mode:"hidden",children:l},1&o||null===a?a=jE(l,o,0,null):(a.childLanes=0,a.pendingProps=l),e=zE(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=jx(n),t.memoizedState=zx,e):Wx(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,Gx(e,t,a,r=mx(Error(dp(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=jE({mode:"visible",children:r.children},o,0,null),(i=zE(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,1&t.mode&&Rb(t,e.child,null,a),t.child.memoizedState=jx(a),t.memoizedState=zx,i);if(!(1&t.mode))return Gx(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Gx(e,t,a,r=mx(i=Error(dp(419)),r,void 0))}if(l=!!(a&e.childLanes),Cx||l){if(null!==(r=DS)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|a)?0:o)&&o!==i.retryLane&&(i.retryLane=o,zb(e,o),aE(r,e,o,-1))}return yE(),Gx(e,t,a,r=mx(Error(dp(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=AE.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,sb=mv(o.nextSibling),lb=t,ub=!0,cb=null,null!==e&&(Jv[Zv++]=tb,Jv[Zv++]=nb,Jv[Zv++]=eb,tb=e.id,nb=e.overflow,eb=t),t=Wx(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,i,n);if(a){a=o.fallback,l=t.mode,r=(i=e.child).sibling;var s={mode:"hidden",children:o.children};return 1&l||t.child===i?(o=qE(i,s)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null),null!==r?a=qE(r,a):(a=zE(a,l,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,l=null===(l=e.child.memoizedState)?jx(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=zx,o}return e=(a=e.child).sibling,o=qE(a,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Wx(e,t){return(t=jE({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Gx(e,t,n,r){return null!==r&&yb(r),Rb(t,e.child,null,n),(e=Wx(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bx(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Db(e.return,t,n)}function Hx(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Vx(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(wx(e,t,r.children,n),2&(r=oy.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bx(e,n,t);else if(19===e.tag)Bx(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Av(oy,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===iy(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Hx(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===iy(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Hx(t,!0,n,null,i);break;case"together":Hx(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ux(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Yx(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),jS|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(dp(153));if(null!==t.child){for(n=qE(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=qE(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Kx(e,t){if(!ub)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Xx(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Qx(e,t,n){var r=t.pendingProps;switch(ab(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xx(t),null;case 1:case 17:return qv(t.type)&&Fv(),Xx(t),null;case 3:return r=t.stateNode,ty(),_v(Tv),_v(Dv),ly(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(gb(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==cb&&(cE(cb),cb=null))),Nx(e,t),Xx(t),null;case 5:ry(t);var o=Zb(Jb.current);if(n=t.type,null!==e&&null!=t.stateNode)qx(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(dp(166));return Xx(t),null}if(e=Zb(Xb.current),gb(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[vv]=t,r[bv]=i,e=!!(1&t.mode),n){case"dialog":Bg("cancel",r),Bg("close",r);break;case"iframe":case"object":case"embed":Bg("load",r);break;case"video":case"audio":for(o=0;o<jg.length;o++)Bg(jg[o],r);break;case"source":Bg("error",r);break;case"img":case"image":case"link":Bg("error",r),Bg("load",r);break;case"details":Bg("toggle",r);break;case"input":nf(r,i),Bg("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Bg("invalid",r);break;case"textarea":df(r,i),Bg("invalid",r)}for(var a in wf(n,i),o=null,i)if(i.hasOwnProperty(a)){var l=i[a];"children"===a?"string"==typeof l?r.textContent!==l&&(!0!==i.suppressHydrationWarning&&rv(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==i.suppressHydrationWarning&&rv(r.textContent,l,e),o=["children",""+l]):fp.hasOwnProperty(a)&&null!=l&&"onScroll"===a&&Bg("scroll",r)}switch(n){case"input":Jp(r),af(r,i,!0);break;case"textarea":Jp(r),ff(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=ov)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=mf(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[vv]=t,e[bv]=r,Ox(e,t,!1,!1),t.stateNode=e;e:{switch(a=Rf(n,r),n){case"dialog":Bg("cancel",e),Bg("close",e),o=r;break;case"iframe":case"object":case"embed":Bg("load",e),o=r;break;case"video":case"audio":for(o=0;o<jg.length;o++)Bg(jg[o],e);o=r;break;case"source":Bg("error",e),o=r;break;case"img":case"image":case"link":Bg("error",e),Bg("load",e),o=r;break;case"details":Bg("toggle",e),o=r;break;case"input":nf(e,r),o=tf(e,r),Bg("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Gp({},r,{value:void 0}),Bg("invalid",e);break;case"textarea":df(e,r),o=cf(e,r),Bg("invalid",e)}for(i in wf(n,o),l=o)if(l.hasOwnProperty(i)){var s=l[i];"style"===i?Ef(e,s):"dangerouslySetInnerHTML"===i?null!=(s=s?s.__html:void 0)&&vf(e,s):"children"===i?"string"==typeof s?("textarea"!==n||""!==s)&&bf(e,s):"number"==typeof s&&bf(e,""+s):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(fp.hasOwnProperty(i)?null!=s&&"onScroll"===i&&Bg("scroll",e):null!=s&&Rp(e,i,s,a))}switch(n){case"input":Jp(e),af(e,r,!1);break;case"textarea":Jp(e),ff(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Xp(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?uf(e,!!r.multiple,i,!1):null!=r.defaultValue&&uf(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=ov)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Xx(t),null;case 6:if(e&&null!=t.stateNode)Fx(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(dp(166));if(n=Zb(Jb.current),Zb(Xb.current),gb(t)){if(r=t.stateNode,n=t.memoizedProps,r[vv]=t,(i=r.nodeValue!==n)&&null!==(e=lb))switch(e.tag){case 3:rv(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&rv(r.nodeValue,n,!!(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[vv]=t,t.stateNode=r}return Xx(t),null;case 13:if(_v(oy),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ub&&null!==sb&&1&t.mode&&!(128&t.flags))vb(),bb(),t.flags|=98560,i=!1;else if(i=gb(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(dp(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(dp(317));i[vv]=t}else bb(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Xx(t),i=!1}else null!==cb&&(cE(cb),cb=null),i=!0;if(!i)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&oy.current?0===FS&&(FS=3):yE())),null!==t.updateQueue&&(t.flags|=4),Xx(t),null);case 4:return ty(),Nx(e,t),null===e&&Ug(t.stateNode.containerInfo),Xx(t),null;case 10:return Pb(t.type._context),Xx(t),null;case 19:if(_v(oy),null===(i=t.memoizedState))return Xx(t),null;if(r=!!(128&t.flags),null===(a=i.rendering))if(r)Kx(i,!1);else{if(0!==FS||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=iy(e))){for(t.flags|=128,Kx(i,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(a=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Av(oy,1&oy.current|2),t.child}e=e.sibling}null!==i.tail&&rm()>VS&&(t.flags|=128,r=!0,Kx(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=iy(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Kx(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!ub)return Xx(t),null}else 2*rm()-i.renderingStartTime>VS&&1073741824!==n&&(t.flags|=128,r=!0,Kx(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=i.last)?n.sibling=a:t.child=a,i.last=a)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=rm(),t.sibling=null,n=oy.current,Av(oy,r?1&n|2:1&n),t):(Xx(t),null);case 22:case 23:return hE(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&NS)&&(Xx(t),6&t.subtreeFlags&&(t.flags|=8192)):Xx(t),null;case 24:case 25:return null}throw Error(dp(156,t.tag))}function Jx(e,t){switch(ab(t),t.tag){case 1:return qv(t.type)&&Fv(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ty(),_v(Tv),_v(Dv),ly(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ry(t),null;case 13:if(_v(oy),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(dp(340));bb()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return _v(oy),null;case 4:return ty(),null;case 10:return Pb(t.type._context),null;case 22:case 23:return hE(),null;default:return null}}Ox=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Nx=function(){},qx=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Zb(Xb.current);var i,a=null;switch(n){case"input":o=tf(e,o),r=tf(e,r),a=[];break;case"select":o=Gp({},o,{value:void 0}),r=Gp({},r,{value:void 0}),a=[];break;case"textarea":o=cf(e,o),r=cf(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=ov)}for(u in wf(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(fp.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var s=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&s!==l&&(null!=s||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&l[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(u,n)),n=s;else"dangerouslySetInnerHTML"===u?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(a=a||[]).push(u,s)):"children"===u?"string"!=typeof s&&"number"!=typeof s||(a=a||[]).push(u,""+s):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(fp.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&Bg("scroll",e),a||l===s||(a=[])):(a=a||[]).push(u,s))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Fx=function(e,t,n,r){n!==r&&(t.flags|=4)};var Zx=!1,eS=!1,tS="function"==typeof WeakSet?WeakSet:Set,nS=null;function rS(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){IE(e,t,n)}else n.current=null}function oS(e,t,n){try{n()}catch(n){IE(e,t,n)}}var iS=!1;function aS(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&oS(t,n,i)}o=o.next}while(o!==r)}}function lS(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function sS(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function uS(e){var t=e.alternate;null!==t&&(e.alternate=null,uS(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[vv],delete t[bv],delete t[xv],delete t[Sv],delete t[Ev])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function cS(e){return 5===e.tag||3===e.tag||4===e.tag}function dS(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||cS(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function pS(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=ov));else if(4!==r&&null!==(e=e.child))for(pS(e,t,n),e=e.sibling;null!==e;)pS(e,t,n),e=e.sibling}function fS(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(fS(e,t,n),e=e.sibling;null!==e;)fS(e,t,n),e=e.sibling}var mS=null,hS=!1;function gS(e,t,n){for(n=n.child;null!==n;)vS(e,t,n),n=n.sibling}function vS(e,t,n){if(dm&&"function"==typeof dm.onCommitFiberUnmount)try{dm.onCommitFiberUnmount(cm,n)}catch(e){}switch(n.tag){case 5:eS||rS(n,t);case 6:var r=mS,o=hS;mS=null,gS(e,t,n),hS=o,null!==(mS=r)&&(hS?(e=mS,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):mS.removeChild(n.stateNode));break;case 18:null!==mS&&(hS?(e=mS,n=n.stateNode,8===e.nodeType?fv(e.parentNode,n):1===e.nodeType&&fv(e,n),Ym(e)):fv(mS,n.stateNode));break;case 4:r=mS,o=hS,mS=n.stateNode.containerInfo,hS=!0,gS(e,t,n),mS=r,hS=o;break;case 0:case 11:case 14:case 15:if(!eS&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&oS(n,t,a),o=o.next}while(o!==r)}gS(e,t,n);break;case 1:if(!eS&&(rS(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){IE(n,t,e)}gS(e,t,n);break;case 21:gS(e,t,n);break;case 22:1&n.mode?(eS=(r=eS)||null!==n.memoizedState,gS(e,t,n),eS=r):gS(e,t,n);break;default:gS(e,t,n)}}function bS(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new tS),t.forEach((function(t){var r=PE.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function yS(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:mS=l.stateNode,hS=!1;break e;case 3:case 4:mS=l.stateNode.containerInfo,hS=!0;break e}l=l.return}if(null===mS)throw Error(dp(160));vS(i,a,o),mS=null,hS=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){IE(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)xS(t,e),t=t.sibling}function xS(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(yS(t,e),SS(e),4&r){try{aS(3,e,e.return),lS(3,e)}catch(t){IE(e,e.return,t)}try{aS(5,e,e.return)}catch(t){IE(e,e.return,t)}}break;case 1:yS(t,e),SS(e),512&r&&null!==n&&rS(n,n.return);break;case 5:if(yS(t,e),SS(e),512&r&&null!==n&&rS(n,n.return),32&e.flags){var o=e.stateNode;try{bf(o,"")}catch(t){IE(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,a=null!==n?n.memoizedProps:i,l=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===l&&"radio"===i.type&&null!=i.name&&rf(o,i),Rf(l,a);var u=Rf(l,i);for(a=0;a<s.length;a+=2){var c=s[a],d=s[a+1];"style"===c?Ef(o,d):"dangerouslySetInnerHTML"===c?vf(o,d):"children"===c?bf(o,d):Rp(o,c,d,u)}switch(l){case"input":of(o,i);break;case"textarea":pf(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var f=i.value;null!=f?uf(o,!!i.multiple,f,!1):p!==!!i.multiple&&(null!=i.defaultValue?uf(o,!!i.multiple,i.defaultValue,!0):uf(o,!!i.multiple,i.multiple?[]:"",!1))}o[bv]=i}catch(t){IE(e,e.return,t)}}break;case 6:if(yS(t,e),SS(e),4&r){if(null===e.stateNode)throw Error(dp(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){IE(e,e.return,t)}}break;case 3:if(yS(t,e),SS(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ym(t.containerInfo)}catch(t){IE(e,e.return,t)}break;case 4:default:yS(t,e),SS(e);break;case 13:yS(t,e),SS(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(HS=rm())),4&r&&bS(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(eS=(u=eS)||c,yS(t,e),eS=u):yS(t,e),SS(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&1&e.mode)for(nS=e,c=e.child;null!==c;){for(d=nS=c;null!==nS;){switch(f=(p=nS).child,p.tag){case 0:case 11:case 14:case 15:aS(4,p,p.return);break;case 1:rS(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){IE(r,n,e)}}break;case 5:rS(p,p.return);break;case 22:if(null!==p.memoizedState){RS(d);continue}}null!==f?(f.return=p,nS=f):RS(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{o=d.stateNode,u?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=d.stateNode,a=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,l.style.display=Sf("display",a))}catch(t){IE(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){IE(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:yS(t,e),SS(e),4&r&&bS(e);case 21:}}function SS(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(cS(n)){var r=n;break e}n=n.return}throw Error(dp(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(bf(o,""),r.flags&=-33),fS(e,dS(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;pS(e,dS(e),i);break;default:throw Error(dp(161))}}catch(t){IE(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function ES(e,t,n){nS=e,CS(e)}function CS(e,t,n){for(var r=!!(1&e.mode);null!==nS;){var o=nS,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Zx;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||eS;l=Zx;var u=eS;if(Zx=a,(eS=s)&&!u)for(nS=o;null!==nS;)s=(a=nS).child,22===a.tag&&null!==a.memoizedState?kS(o):null!==s?(s.return=a,nS=s):kS(o);for(;null!==i;)nS=i,CS(i),i=i.sibling;nS=o,Zx=l,eS=u}wS(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,nS=i):wS(e)}}function wS(e){for(;null!==nS;){var t=nS;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:eS||lS(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!eS)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ax(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Yb(t,i,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Yb(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&Ym(d)}}}break;default:throw Error(dp(163))}eS||512&t.flags&&sS(t)}catch(e){IE(t,t.return,e)}}if(t===e){nS=null;break}if(null!==(n=t.sibling)){n.return=t.return,nS=n;break}nS=t.return}}function RS(e){for(;null!==nS;){var t=nS;if(t===e){nS=null;break}var n=t.sibling;if(null!==n){n.return=t.return,nS=n;break}nS=t.return}}function kS(e){for(;null!==nS;){var t=nS;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{lS(4,t)}catch(e){IE(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){IE(t,o,e)}}var i=t.return;try{sS(t)}catch(e){IE(t,i,e)}break;case 5:var a=t.return;try{sS(t)}catch(e){IE(t,a,e)}}}catch(e){IE(t,t.return,e)}if(t===e){nS=null;break}var l=t.sibling;if(null!==l){l.return=t.return,nS=l;break}nS=t.return}}var LS,IS=Math.ceil,MS=kp.ReactCurrentDispatcher,_S=kp.ReactCurrentOwner,AS=kp.ReactCurrentBatchConfig,PS=0,DS=null,TS=null,OS=0,NS=0,qS=Mv(0),FS=0,zS=null,jS=0,$S=0,WS=0,GS=null,BS=null,HS=0,VS=1/0,US=null,YS=!1,KS=null,XS=null,QS=!1,JS=null,ZS=0,eE=0,tE=null,nE=-1,rE=0;function oE(){return 6&PS?rm():-1!==nE?nE:nE=rm()}function iE(e){return 1&e.mode?2&PS&&0!==OS?OS&-OS:null!==xb.transition?(0===rE&&(rE=Sm()),rE):0!==(e=Rm)?e:e=void 0===(e=window.event)?16:nh(e.type):1}function aE(e,t,n,r){if(50<eE)throw eE=0,tE=null,Error(dp(185));Cm(e,n,r),2&PS&&e===DS||(e===DS&&(!(2&PS)&&($S|=n),4===FS&&dE(e,OS)),lE(e,r),1===n&&0===PS&&!(1&t.mode)&&(VS=rm()+500,Bv&&Uv()))}function lE(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-pm(i),l=1<<a,s=o[a];-1===s?l&n&&!(l&r)||(o[a]=ym(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=bm(e,e===DS?OS:0);if(0===r)null!==n&&em(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&em(n),1===t)0===e.tag?function(e){Bv=!0,Vv(e)}(pE.bind(null,e)):Vv(pE.bind(null,e)),dv((function(){!(6&PS)&&Uv()})),n=null;else{switch(km(r)){case 1:n=im;break;case 4:n=am;break;case 16:default:n=lm;break;case 536870912:n=um}n=DE(n,sE.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function sE(e,t){if(nE=-1,rE=0,6&PS)throw Error(dp(327));var n=e.callbackNode;if(kE()&&e.callbackNode!==n)return null;var r=bm(e,e===DS?OS:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=xE(e,r);else{t=r;var o=PS;PS|=2;var i=bE();for(DS===e&&OS===t||(US=null,VS=rm()+500,gE(e,t));;)try{EE();break}catch(t){vE(e,t)}Ab(),MS.current=i,PS=o,null!==TS?t=0:(DS=null,OS=0,t=FS)}if(0!==t){if(2===t&&(0!==(o=xm(e))&&(r=o,t=uE(e,o))),1===t)throw n=zS,gE(e,0),dE(e,r),lE(e,rm()),n;if(6===t)dE(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!pg(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=xE(e,r),2===t&&(i=xm(e),0!==i&&(r=i,t=uE(e,i))),1!==t)))throw n=zS,gE(e,0),dE(e,r),lE(e,rm()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(dp(345));case 2:case 5:RE(e,BS,US);break;case 3:if(dE(e,r),(130023424&r)===r&&10<(t=HS+500-rm())){if(0!==bm(e,0))break;if(((o=e.suspendedLanes)&r)!==r){oE(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=sv(RE.bind(null,e,BS,US),t);break}RE(e,BS,US);break;case 4:if(dE(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-pm(r);i=1<<a,(a=t[a])>o&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=rm()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*IS(r/1960))-r)){e.timeoutHandle=sv(RE.bind(null,e,BS,US),r);break}RE(e,BS,US);break;default:throw Error(dp(329))}}}return lE(e,rm()),e.callbackNode===n?sE.bind(null,e):null}function uE(e,t){var n=GS;return e.current.memoizedState.isDehydrated&&(gE(e,t).flags|=256),2!==(e=xE(e,t))&&(t=BS,BS=n,null!==t&&cE(t)),e}function cE(e){null===BS?BS=e:BS.push.apply(BS,e)}function dE(e,t){for(t&=~WS,t&=~$S,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-pm(t),r=1<<n;e[n]=-1,t&=~r}}function pE(e){if(6&PS)throw Error(dp(327));kE();var t=bm(e,0);if(!(1&t))return lE(e,rm()),null;var n=xE(e,t);if(0!==e.tag&&2===n){var r=xm(e);0!==r&&(t=r,n=uE(e,r))}if(1===n)throw n=zS,gE(e,0),dE(e,t),lE(e,rm()),n;if(6===n)throw Error(dp(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,RE(e,BS,US),lE(e,rm()),null}function fE(e,t){var n=PS;PS|=1;try{return e(t)}finally{0===(PS=n)&&(VS=rm()+500,Bv&&Uv())}}function mE(e){null!==JS&&0===JS.tag&&!(6&PS)&&kE();var t=PS;PS|=1;var n=AS.transition,r=Rm;try{if(AS.transition=null,Rm=1,e)return e()}finally{Rm=r,AS.transition=n,!(6&(PS=t))&&Uv()}}function hE(){NS=qS.current,_v(qS)}function gE(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,uv(n)),null!==TS)for(n=TS.return;null!==n;){var r=n;switch(ab(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Fv();break;case 3:ty(),_v(Tv),_v(Dv),ly();break;case 5:ry(r);break;case 4:ty();break;case 13:case 19:_v(oy);break;case 10:Pb(r.type._context);break;case 22:case 23:hE()}n=n.return}if(DS=e,TS=e=qE(e.current,null),OS=NS=t,FS=0,zS=null,WS=$S=jS=0,BS=GS=null,null!==Nb){for(t=0;t<Nb.length;t++)if(null!==(r=(n=Nb[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Nb=null}return e}function vE(e,t){for(;;){var n=TS;try{if(Ab(),sy.current=nx,my){for(var r=dy.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}my=!1}if(cy=0,fy=py=dy=null,hy=!1,gy=0,_S.current=null,null===n||null===n.return){FS=1,zS=t,TS=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=OS,l.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s,c=l,d=c.tag;if(!(1&c.mode||0!==d&&11!==d&&15!==d)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var f=xx(a);if(null!==f){f.flags&=-257,Sx(f,a,l,0,t),1&f.mode&&yx(i,u,t),s=u;var m=(t=f).updateQueue;if(null===m){var h=new Set;h.add(s),t.updateQueue=h}else m.add(s);break e}if(!(1&t)){yx(i,u,t),yE();break e}s=Error(dp(426))}else if(ub&&1&l.mode){var g=xx(a);if(null!==g){!(65536&g.flags)&&(g.flags|=256),Sx(g,a,l,0,t),yb(fx(s,l));break e}}i=s=fx(s,l),4!==FS&&(FS=2),null===GS?GS=[i]:GS.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Vb(i,vx(0,s,t));break e;case 1:l=s;var v=i.type,b=i.stateNode;if(!(128&i.flags||"function"!=typeof v.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==XS&&XS.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Vb(i,bx(i,l,t));break e}}i=i.return}while(null!==i)}wE(n)}catch(e){t=e,TS===n&&null!==n&&(TS=n=n.return);continue}break}}function bE(){var e=MS.current;return MS.current=nx,null===e?nx:e}function yE(){0!==FS&&3!==FS&&2!==FS||(FS=4),null===DS||!(268435455&jS)&&!(268435455&$S)||dE(DS,OS)}function xE(e,t){var n=PS;PS|=2;var r=bE();for(DS===e&&OS===t||(US=null,gE(e,t));;)try{SE();break}catch(t){vE(e,t)}if(Ab(),PS=n,MS.current=r,null!==TS)throw Error(dp(261));return DS=null,OS=0,FS}function SE(){for(;null!==TS;)CE(TS)}function EE(){for(;null!==TS&&!tm();)CE(TS)}function CE(e){var t=LS(e.alternate,e,NS);e.memoizedProps=e.pendingProps,null===t?wE(e):TS=t,_S.current=null}function wE(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Jx(n,t)))return n.flags&=32767,void(TS=n);if(null===e)return FS=6,void(TS=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Qx(n,t,NS)))return void(TS=n);if(null!==(t=t.sibling))return void(TS=t);TS=t=e}while(null!==t);0===FS&&(FS=5)}function RE(e,t,n){var r=Rm,o=AS.transition;try{AS.transition=null,Rm=1,function(e,t,n,r){do{kE()}while(null!==JS);if(6&PS)throw Error(dp(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(dp(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-pm(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===DS&&(TS=DS=null,OS=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||QS||(QS=!0,DE(lm,(function(){return kE(),null}))),i=!!(15990&n.flags),!!(15990&n.subtreeFlags)||i){i=AS.transition,AS.transition=null;var a=Rm;Rm=1;var l=PS;PS|=4,_S.current=null,function(e,t){if(iv=Xm,bg(e=vg())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var a=0,l=-1,s=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var f;d!==n||0!==o&&3!==d.nodeType||(l=a+o),d!==i||0!==r&&3!==d.nodeType||(s=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(f=d.firstChild);)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++u===o&&(l=a),p===i&&++c===r&&(s=a),null!==(f=d.nextSibling))break;p=(d=p).parentNode}d=f}n=-1===l||-1===s?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(av={focusedElem:e,selectionRange:n},Xm=!1,nS=t;null!==nS;)if(e=(t=nS).child,1028&t.subtreeFlags&&null!==e)e.return=t,nS=e;else for(;null!==nS;){t=nS;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var h=m.memoizedProps,g=m.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?h:ax(t.type,h),g);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var y=t.stateNode.containerInfo;1===y.nodeType?y.textContent="":9===y.nodeType&&y.documentElement&&y.removeChild(y.documentElement);break;default:throw Error(dp(163))}}catch(e){IE(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,nS=e;break}nS=t.return}m=iS,iS=!1}(e,n),xS(n,e),yg(av),Xm=!!iv,av=iv=null,e.current=n,ES(n),nm(),PS=l,Rm=a,AS.transition=i}else e.current=n;if(QS&&(QS=!1,JS=e,ZS=o),i=e.pendingLanes,0===i&&(XS=null),function(e){if(dm&&"function"==typeof dm.onCommitFiberRoot)try{dm.onCommitFiberRoot(cm,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),lE(e,rm()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(YS)throw YS=!1,e=KS,KS=null,e;!!(1&ZS)&&0!==e.tag&&kE(),i=e.pendingLanes,1&i?e===tE?eE++:(eE=0,tE=e):eE=0,Uv()}(e,t,n,r)}finally{AS.transition=o,Rm=r}return null}function kE(){if(null!==JS){var e=km(ZS),t=AS.transition,n=Rm;try{if(AS.transition=null,Rm=16>e?16:e,null===JS)var r=!1;else{if(e=JS,JS=null,ZS=0,6&PS)throw Error(dp(331));var o=PS;for(PS|=4,nS=e.current;null!==nS;){var i=nS,a=i.child;if(16&nS.flags){var l=i.deletions;if(null!==l){for(var s=0;s<l.length;s++){var u=l[s];for(nS=u;null!==nS;){var c=nS;switch(c.tag){case 0:case 11:case 15:aS(8,c,i)}var d=c.child;if(null!==d)d.return=c,nS=d;else for(;null!==nS;){var p=(c=nS).sibling,f=c.return;if(uS(c),c===u){nS=null;break}if(null!==p){p.return=f,nS=p;break}nS=f}}}var m=i.alternate;if(null!==m){var h=m.child;if(null!==h){m.child=null;do{var g=h.sibling;h.sibling=null,h=g}while(null!==h)}}nS=i}}if(2064&i.subtreeFlags&&null!==a)a.return=i,nS=a;else e:for(;null!==nS;){if(2048&(i=nS).flags)switch(i.tag){case 0:case 11:case 15:aS(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,nS=v;break e}nS=i.return}}var b=e.current;for(nS=b;null!==nS;){var y=(a=nS).child;if(2064&a.subtreeFlags&&null!==y)y.return=a,nS=y;else e:for(a=b;null!==nS;){if(2048&(l=nS).flags)try{switch(l.tag){case 0:case 11:case 15:lS(9,l)}}catch(e){IE(l,l.return,e)}if(l===a){nS=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,nS=x;break e}nS=l.return}}if(PS=o,Uv(),dm&&"function"==typeof dm.onPostCommitFiberRoot)try{dm.onPostCommitFiberRoot(cm,e)}catch(e){}r=!0}return r}finally{Rm=n,AS.transition=t}}return!1}function LE(e,t,n){e=Bb(e,t=vx(0,t=fx(n,t),1),1),t=oE(),null!==e&&(Cm(e,1,t),lE(e,t))}function IE(e,t,n){if(3===e.tag)LE(e,e,n);else for(;null!==t;){if(3===t.tag){LE(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===XS||!XS.has(r))){t=Bb(t,e=bx(t,e=fx(n,e),1),1),e=oE(),null!==t&&(Cm(t,1,e),lE(t,e));break}}t=t.return}}function ME(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=oE(),e.pingedLanes|=e.suspendedLanes&n,DS===e&&(OS&n)===n&&(4===FS||3===FS&&(130023424&OS)===OS&&500>rm()-HS?gE(e,0):WS|=n),lE(e,t)}function _E(e,t){0===t&&(1&e.mode?(t=gm,!(130023424&(gm<<=1))&&(gm=4194304)):t=1);var n=oE();null!==(e=zb(e,t))&&(Cm(e,t,n),lE(e,n))}function AE(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),_E(e,n)}function PE(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(dp(314))}null!==r&&r.delete(t),_E(e,n)}function DE(e,t){return Zf(e,t)}function TE(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function OE(e,t,n,r){return new TE(e,t,n,r)}function NE(e){return!(!(e=e.prototype)||!e.isReactComponent)}function qE(e,t){var n=e.alternate;return null===n?((n=OE(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function FE(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)NE(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case Mp:return zE(n.children,o,i,t);case _p:a=8,o|=8;break;case Ap:return(e=OE(12,n,t,2|o)).elementType=Ap,e.lanes=i,e;case Op:return(e=OE(13,n,t,o)).elementType=Op,e.lanes=i,e;case Np:return(e=OE(19,n,t,o)).elementType=Np,e.lanes=i,e;case zp:return jE(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Pp:a=10;break e;case Dp:a=9;break e;case Tp:a=11;break e;case qp:a=14;break e;case Fp:a=16,r=null;break e}throw Error(dp(130,null==e?e:typeof e,""))}return(t=OE(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function zE(e,t,n,r){return(e=OE(7,e,r,t)).lanes=n,e}function jE(e,t,n,r){return(e=OE(22,e,r,t)).elementType=zp,e.lanes=n,e.stateNode={isHidden:!1},e}function $E(e,t,n){return(e=OE(6,e,null,t)).lanes=n,e}function WE(e,t,n){return(t=OE(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function GE(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Em(0),this.expirationTimes=Em(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Em(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function BE(e,t,n,r,o,i,a,l,s){return e=new GE(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=OE(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},$b(i),e}function HE(e){if(!e)return Pv;e:{if(Yf(e=e._reactInternals)!==e||1!==e.tag)throw Error(dp(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(qv(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(dp(171))}if(1===e.tag){var n=e.type;if(qv(n))return jv(e,n,t)}return t}function VE(e,t,n,r,o,i,a,l,s){return(e=BE(n,r,!0,e,0,i,0,l,s)).context=HE(null),n=e.current,(i=Gb(r=oE(),o=iE(n))).callback=null!=t?t:null,Bb(n,i,o),e.current.lanes=o,Cm(e,o,r),lE(e,r),e}function UE(e,t,n,r){var o=t.current,i=oE(),a=iE(o);return n=HE(n),null===t.context?t.context=n:t.pendingContext=n,(t=Gb(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Bb(o,t,a))&&(aE(e,o,a,i),Hb(e,o,a)),a}function YE(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function KE(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function XE(e,t){KE(e,t),(e=e.alternate)&&KE(e,t)}LS=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Tv.current)Cx=!0;else{if(!(e.lanes&n||128&t.flags))return Cx=!1,function(e,t,n){switch(t.tag){case 3:Dx(t),bb();break;case 5:ny(t);break;case 1:qv(t.type)&&$v(t);break;case 4:ey(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Av(Lb,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Av(oy,1&oy.current),t.flags|=128,null):n&t.child.childLanes?$x(e,t,n):(Av(oy,1&oy.current),null!==(e=Yx(e,t,n))?e.sibling:null);Av(oy,1&oy.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Vx(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Av(oy,oy.current),r)break;return null;case 22:case 23:return t.lanes=0,Ix(e,t,n)}return Yx(e,t,n)}(e,t,n);Cx=!!(131072&e.flags)}else Cx=!1,ub&&1048576&t.flags&&ob(t,Qv,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ux(e,t),e=t.pendingProps;var o=Nv(t,Dv.current);Tb(t,n),o=xy(null,t,r,e,o,n);var i=Sy();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,qv(r)?(i=!0,$v(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,$b(t),o.updater=sx,t.stateNode=o,o._reactInternals=t,px(t,r,e,n),t=Px(null,t,r,!0,i,n)):(t.tag=0,ub&&i&&ib(t),wx(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ux(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return NE(e)?1:0;if(null!=e){if((e=e.$$typeof)===Tp)return 11;if(e===qp)return 14}return 2}(r),e=ax(r,e),o){case 0:t=_x(null,t,r,e,n);break e;case 1:t=Ax(null,t,r,e,n);break e;case 11:t=Rx(null,t,r,e,n);break e;case 14:t=kx(null,t,r,ax(r.type,e),n);break e}throw Error(dp(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,_x(e,t,r,o=t.elementType===r?o:ax(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ax(e,t,r,o=t.elementType===r?o:ax(r,o),n);case 3:e:{if(Dx(t),null===e)throw Error(dp(387));r=t.pendingProps,o=(i=t.memoizedState).element,Wb(e,t),Ub(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Tx(e,t,r,n,o=fx(Error(dp(423)),t));break e}if(r!==o){t=Tx(e,t,r,n,o=fx(Error(dp(424)),t));break e}for(sb=mv(t.stateNode.containerInfo.firstChild),lb=t,ub=!0,cb=null,n=kb(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(bb(),r===o){t=Yx(e,t,n);break e}wx(e,t,r,n)}t=t.child}return t;case 5:return ny(t),null===e&&mb(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,lv(r,o)?a=null:null!==i&&lv(r,i)&&(t.flags|=32),Mx(e,t),wx(e,t,a,n),t.child;case 6:return null===e&&mb(t),null;case 13:return $x(e,t,n);case 4:return ey(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Rb(t,null,r,n):wx(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Rx(e,t,r,o=t.elementType===r?o:ax(r,o),n);case 7:return wx(e,t,t.pendingProps,n),t.child;case 8:case 12:return wx(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Av(Lb,r._currentValue),r._currentValue=a,null!==i)if(pg(i.value,a)){if(i.children===o.children&&!Tv.current){t=Yx(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){a=i.child;for(var s=l.firstContext;null!==s;){if(s.context===r){if(1===i.tag){(s=Gb(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),Db(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(10===i.tag)a=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(a=i.return))throw Error(dp(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Db(a,n,t),a=i.sibling}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===t){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}wx(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Tb(t,n),r=r(o=Ob(o)),t.flags|=1,wx(e,t,r,n),t.child;case 14:return o=ax(r=t.type,t.pendingProps),kx(e,t,r,o=ax(r.type,o),n);case 15:return Lx(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ax(r,o),Ux(e,t),t.tag=1,qv(r)?(e=!0,$v(t)):e=!1,Tb(t,n),cx(t,r,o),px(t,r,o,n),Px(null,t,r,!0,e,n);case 19:return Vx(e,t,n);case 22:return Ix(e,t,n)}throw Error(dp(156,t.tag))};var QE="function"==typeof reportError?reportError:function(e){console.error(e)};function JE(e){this._internalRoot=e}function ZE(e){this._internalRoot=e}function eC(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function tC(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function nC(){}function rC(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=YE(a);l.call(e)}}UE(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=YE(a);i.call(e)}}var a=VE(t,r,e,0,null,!1,0,"",nC);return e._reactRootContainer=a,e[yv]=a.current,Ug(8===e.nodeType?e.parentNode:e),mE(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=YE(s);l.call(e)}}var s=BE(e,0,!1,null,0,!1,0,"",nC);return e._reactRootContainer=s,e[yv]=s.current,Ug(8===e.nodeType?e.parentNode:e),mE((function(){UE(t,s,n,r)})),s}(n,t,e,o,r);return YE(a)}ZE.prototype.render=JE.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(dp(409));UE(e,t,null,null)},ZE.prototype.unmount=JE.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;mE((function(){UE(null,e,null,null)})),t[yv]=null}},ZE.prototype.unstable_scheduleHydration=function(e){if(e){var t=_m();e={blockedOn:null,target:e,priority:t};for(var n=0;n<zm.length&&0!==t&&t<zm[n].priority;n++);zm.splice(n,0,e),0===n&&Gm(e)}},Lm=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=vm(t.pendingLanes);0!==n&&(wm(t,1|n),lE(t,rm()),!(6&PS)&&(VS=rm()+500,Uv()))}break;case 13:mE((function(){var t=zb(e,1);if(null!==t){var n=oE();aE(t,e,1,n)}})),XE(e,1)}},Im=function(e){if(13===e.tag){var t=zb(e,134217728);if(null!==t)aE(t,e,134217728,oE());XE(e,134217728)}},Mm=function(e){if(13===e.tag){var t=iE(e),n=zb(e,t);if(null!==n)aE(n,e,t,oE());XE(e,t)}},_m=function(){return Rm},Am=function(e,t){var n=Rm;try{return Rm=e,t()}finally{Rm=n}},If=function(e,t,n){switch(t){case"input":if(of(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=kv(r);if(!o)throw Error(dp(90));Zp(r),of(r,o)}}}break;case"textarea":pf(e,n);break;case"select":null!=(t=n.value)&&uf(e,!!n.multiple,t,!1)}},Tf=fE,Of=mE;var oC={usingClientEntryPoint:!1,Events:[wv,Rv,kv,Pf,Df,fE]},iC={findFiberByHostInstance:Cv,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},aC={bundleType:iC.bundleType,version:iC.version,rendererPackageName:iC.rendererPackageName,rendererConfig:iC.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:kp.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Qf(e))?null:e.stateNode},findFiberByHostInstance:iC.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var lC=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lC.isDisabled&&lC.supportsFiber)try{cm=lC.inject(aC),dm=lC}catch(mt){}}ip.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oC,ip.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!eC(t))throw Error(dp(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Ip,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},ip.createRoot=function(e,t){if(!eC(e))throw Error(dp(299));var n=!1,r="",o=QE;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=BE(e,1,!1,null,0,n,0,r,o),e[yv]=t.current,Ug(8===e.nodeType?e.parentNode:e),new JE(t)},ip.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(dp(188));throw e=Object.keys(e).join(","),Error(dp(268,e))}return e=null===(e=Qf(t))?null:e.stateNode},ip.flushSync=function(e){return mE(e)},ip.hydrate=function(e,t,n){if(!tC(t))throw Error(dp(200));return rC(null,e,t,!0,n)},ip.hydrateRoot=function(e,t,n){if(!eC(e))throw Error(dp(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",a=QE;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=VE(t,null,e,1,null!=n?n:null,o,0,i,a),e[yv]=t.current,Ug(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new ZE(t)},ip.render=function(e,t,n){if(!tC(t))throw Error(dp(200));return rC(null,e,t,!1,n)},ip.unmountComponentAtNode=function(e){if(!tC(e))throw Error(dp(40));return!!e._reactRootContainer&&(mE((function(){rC(null,null,e,!1,(function(){e._reactRootContainer=null,e[yv]=null}))})),!0)},ip.unstable_batchedUpdates=fE,ip.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!tC(n))throw Error(dp(200));if(null==e||void 0===e._reactInternals)throw Error(dp(38));return rC(e,t,n,!1,r)},ip.version="18.3.1-next-f1338f8080-20240426",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),op.exports=ip;var sC=op.exports,uC=n(sC),cC=!1,dC=oo.createContext(null),pC="unmounted",fC="exited",mC="entering",hC="entered",gC="exiting",vC=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=fC,r.appearStatus=mC):o=hC:o=t.unmountOnExit||t.mountOnEnter?pC:fC,r.state={status:o},r.nextCallback=null,r}rp(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===pC?{status:fC}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==mC&&n!==hC&&(t=mC):n!==mC&&n!==hC||(t=gC)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===mC){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:uC.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===fC&&this.setState({status:pC})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[uC.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||cC?this.safeSetState({status:hC},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:mC},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:hC},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:uC.findDOMNode(this);t&&!cC?(this.props.onExit(r),this.safeSetState({status:gC},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:fC},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:fC},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:uC.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===pC)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Tl(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return oo.createElement(dC.Provider,{value:null},"function"==typeof n?n(e,r):oo.cloneElement(oo.Children.only(n),r))},t}(oo.Component);function bC(){}vC.contextType=dC,vC.propTypes={},vC.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:bC,onEntering:bC,onEntered:bC,onExit:bC,onExiting:bC,onExited:bC},vC.UNMOUNTED=pC,vC.EXITED=fC,vC.ENTERING=mC,vC.ENTERED=hC,vC.EXITING=gC;var yC=vC;function xC(e,t){var n=Object.create(null);return e&&ro.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&ro.isValidElement(e)?t(e):e}(e)})),n}function SC(e,t,n){return null!=n[t]?n[t]:e.props[t]}function EC(e,t,n){var r=xC(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(ro.isValidElement(a)){var l=i in t,s=i in r,u=t[i],c=ro.isValidElement(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&ro.isValidElement(u)&&(o[i]=ro.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:SC(a,"exit",e),enter:SC(a,"enter",e)})):o[i]=ro.cloneElement(a,{in:!1}):o[i]=ro.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:SC(a,"exit",e),enter:SC(a,"enter",e)})}})),o}var CC=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},wC=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}rp(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,xC(n.children,(function(e){return ro.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:SC(e,"appear",n),enter:SC(e,"enter",n),exit:SC(e,"exit",n)})}))):EC(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=xC(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Dl({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Tl(e,["component","childFactory"]),o=this.state.contextValue,i=CC(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?oo.createElement(dC.Provider,{value:o},i):oo.createElement(dC.Provider,{value:o},oo.createElement(t,r,i))},t}(oo.Component);wC.propTypes={},wC.defaultProps={component:"div",childFactory:function(e){return e}};var RC=wC;const kC=e=>e.scrollTop;function LC(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function IC(e){return nd("MuiPaper",e)}rd("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 MC=["className","component","elevation","square","variant"],_C=_d("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return $o({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&&$o({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Ic("#fff",Ad(t.elevation))}, ${Ic("#fff",Ad(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var AC=ro.forwardRef((function(e,t){const n=kd({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=Wo(n,MC),u=$o({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Ts({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},IC,o)})(u);return uc.jsx(_C,$o({as:o,ownerState:u,className:Dd(c.root,r),ref:t},s))}));function PC(e){return"string"==typeof e}function DC(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function TC(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const OC=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function NC(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Tl(e,OC),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=Bs(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Dl({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Dl({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=DC(Dl({},o,r)),l=TC(r),s=TC(o),u=t(a),c=Bs(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=Dl({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Dl({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Dl({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||PC(e)?t:Dl({},t,{ownerState:Dl({},t.ownerState,n)})}(n,Dl({},s,{ref:bs(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var qC=rd("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const FC=["center","classes","className"];let zC,jC,$C,WC,GC=e=>e;const BC=kl(zC||(zC=GC`
48
48
  0% {
49
49
  transform: scale(0);
50
50
  opacity: 0.1;
@@ -54,7 +54,7 @@ function Xl(e,t){let n;return n=t?Wl(e).withConfig({displayName:t.label,shouldFo
54
54
  transform: scale(1);
55
55
  opacity: 0.3;
56
56
  }
57
- `)),sw=Vl(rw||(rw=aw`
57
+ `)),HC=kl(jC||(jC=GC`
58
58
  0% {
59
59
  opacity: 1;
60
60
  }
@@ -62,7 +62,7 @@ function Xl(e,t){let n;return n=t?Wl(e).withConfig({displayName:t.label,shouldFo
62
62
  100% {
63
63
  opacity: 0;
64
64
  }
65
- `)),uw=Vl(ow||(ow=aw`
65
+ `)),VC=kl($C||($C=GC`
66
66
  0% {
67
67
  transform: scale(1);
68
68
  }
@@ -74,7 +74,7 @@ function Xl(e,t){let n;return n=t?Wl(e).withConfig({displayName:t.label,shouldFo
74
74
  100% {
75
75
  transform: scale(1);
76
76
  }
77
- `)),cw=Kd("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),dw=Kd((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=So.useState(!1),p=Jd(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=Jd(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),So.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),Lc.jsx("span",{className:p,style:f,children:Lc.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(iw||(iw=aw`
77
+ `)),UC=_d("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),YC=_d((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=ro.useState(!1),p=Dd(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Dd(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),ro.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),uc.jsx("span",{className:p,style:f,children:uc.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(WC||(WC=GC`
78
78
  opacity: 0;
79
79
  position: absolute;
80
80
 
@@ -117,7 +117,7 @@ function Xl(e,t){let n;return n=t?Wl(e).withConfig({displayName:t.label,shouldFo
117
117
  animation-iteration-count: infinite;
118
118
  animation-delay: 200ms;
119
119
  }
120
- `),ew.rippleVisible,lw,550,(({theme:e})=>e.transitions.easing.easeInOut),ew.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),ew.child,ew.childLeaving,sw,550,(({theme:e})=>e.transitions.easing.easeInOut),ew.childPulsate,uw,(({theme:e})=>e.transitions.easing.easeInOut)),pw=So.forwardRef((function(e,t){const n=Gd({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=ii(n,tw),[l,s]=So.useState([]),u=So.useRef(0),c=So.useRef(null);So.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=So.useRef(!1),p=So.useRef(0),f=So.useRef(null),h=So.useRef(null);So.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const m=So.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Lc.jsx(dw,{classes:{ripple:Jd(o.ripple,ew.ripple),rippleVisible:Jd(o.rippleVisible,ew.rippleVisible),ripplePulsate:Jd(o.ripplePulsate,ew.ripplePulsate),child:Jd(o.child,ew.child),childLeaving:Jd(o.childLeaving,ew.childLeaving),childPulsate:Jd(o.childPulsate,ew.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=So.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,m]),b=So.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=So.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{v(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return So.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Lc.jsx(cw,oi({className:Jd(ew.root,o.root,i),ref:h},a,{children:Lc.jsx(BC,{component:null,exit:!0,children:l})}))}));var fw=pw;function hw(e){return Sd("MuiButtonBase",e)}var mw=Ed("MuiButtonBase",["root","disabled","focusVisible"]);const gw=["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"],bw=Kd("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"},[`&.${mw.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),vw=So.forwardRef((function(e,t){const n=Gd({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:C,onTouchEnd:w,onTouchMove:R,onTouchStart:k,tabIndex:L=0,TouchRippleProps:I,touchRippleRef:M,type:_}=n,A=ii(n,gw),P=So.useRef(null),D=So.useRef(null),T=ad(D,M),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:F}=gd(),[z,j]=So.useState(!1);s&&z&&j(!1),So.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),P.current.focus()}})),[]);const[$,B]=So.useState(!1);So.useEffect((()=>{B(!0)}),[]);const H=$&&!u&&!s;function W(e,t,n=c){return id((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}So.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const G=W("start",S),V=W("stop",m),U=W("stop",g),Y=W("stop",C),K=W("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=W("start",k),Q=W("stop",w),J=W("stop",R),Z=W("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),ee=id((e=>{P.current||(P.current=e.currentTarget),N(e),!0===O.current&&(j(!0),v&&v(e)),b&&b(e)})),te=()=>{const e=P.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=So.useRef(!1),re=id((e=>{d&&!ne.current&&z&&D.current&&" "===e.key&&(ne.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),oe=id((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ie=l;"button"===ie&&(A.href||A.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===_?"button":_,ae.disabled=s):(A.href||A.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=ad(t,F,P),se=oi({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:L,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Js({root:["root",t&&"disabled",n&&"focusVisible"]},hw,o);return n&&r&&(i.root+=` ${r}`),i})(se);return Lc.jsxs(bw,oi({as:ie,className:Jd(ue.root,a),ownerState:se,onBlur:Z,onClick:h,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:G,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:L,type:_},ae,A,{children:[i,H?Lc.jsx(fw,oi({ref:T,center:o},I)):null]}))}));var yw=vw;function xw(e){return Sd("MuiTypography",e)}Ed("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Sw=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Ew=Kd("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${Qc(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>oi({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}))),Cw={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ww={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Rw=So.forwardRef((function(e,t){const n=Gd({props:e,name:"MuiTypography"}),r=(e=>ww[e]||e)(n.color),o=Ac(oi({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Cw}=o,f=ii(o,Sw),h=oi({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=l||(c?"p":p[d]||Cw[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Js({root:["root",i,"inherit"!==e.align&&`align${Qc(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},xw,a)})(h);return Lc.jsx(Ew,oi({as:m,ref:t,ownerState:h,className:Jd(g.root,a)},f))}));var kw=Rw;const Lw=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Iw(e){const t=[],n=[];return Array.from(e.querySelectorAll(Lw)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Mw(){return!0}function _w(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Iw,isEnabled:a=Mw,open:l}=e,s=So.useRef(!1),u=So.useRef(null),c=So.useRef(null),d=So.useRef(null),p=So.useRef(null),f=So.useRef(!1),h=So.useRef(null),m=Ns(t.ref,h),g=So.useRef(null);So.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),So.useEffect((()=>{if(!l||!h.current)return;const e=As(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),So.useEffect((()=>{if(!l||!h.current)return;const e=As(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Lc.jsxs(So.Fragment,{children:[Lc.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),So.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Lc.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const Aw=So.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=So.useState(null),l=Ns(So.isValidElement(n)?n.ref:null,t);if(Ts((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Ts((()=>{if(i&&!o)return Ds(t,i),()=>{Ds(t,null)}}),[t,i,o]),o){if(So.isValidElement(n)){const e={ref:l};return So.cloneElement(n,e)}return Lc.jsx(So.Fragment,{children:n})}return Lc.jsx(So.Fragment,{children:i?RC.createPortal(n,i):i})}));function Pw(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Dw(e){return parseInt(Ps(e).getComputedStyle(e).paddingRight,10)||0}function Tw(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Pw(e,o)}))}function Ow(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Nw(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=As(e);return t.body===e?Ps(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Xs(As(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Dw(r)+e}px`;const t=As(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Dw(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=As(r).body;else{const t=r.parentElement,n=Ps(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const qw=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Pw(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Tw(t,e.mount,e.modalRef,r,!0);const o=Ow(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=Ow(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Nw(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Ow(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Pw(e.modalRef,t),Tw(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Pw(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Fw(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=qw,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=So.useRef({}),f=So.useRef(null),h=So.useRef(null),m=Ns(h,d),[g,b]=So.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},E=Os((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||As(f.current).body;o.add(x(),e),h.current&&S()})),C=So.useCallback((()=>o.isTopModal(x())),[o]),w=Os((e=>{f.current=e,e&&(c&&C()?S():h.current&&Pw(h.current,y))})),R=So.useCallback((()=>{o.remove(x(),y)}),[y,o]);So.useEffect((()=>()=>{R()}),[R]),So.useEffect((()=>{c?E():v&&i||R()}),[c,R,v,i,E]);const k=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},L=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=XC(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Ir({},n,t);return Ir({role:"presentation"},r,{onKeyDown:k(r),ref:m})},getBackdropProps:(e={})=>Ir({"aria-hidden":!0},e,{onClick:L(e),open:c}),getTransitionProps:()=>({onEnter:Ms((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Ms((()=>{b(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:w,isTopModal:C,exited:g,hasTransition:v}}const zw=["onChange","maxRows","minRows","style","value"];function jw(e){return parseInt(e,10)||0}const $w={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Bw(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Hw=So.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=Or(e,zw),{current:s}=So.useRef(null!=a),u=So.useRef(null),c=Ns(t,u),d=So.useRef(null),p=So.useRef(0),[f,h]=So.useState({outerHeightStyle:0}),m=So.useCallback((()=>{const t=u.current,n=Ps(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n.boxSizing,l=jw(n.paddingBottom)+jw(n.paddingTop),s=jw(n.borderBottomWidth)+jw(n.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},b=So.useCallback((()=>{const e=m();Bw(e)||h((t=>g(t,e)))}),[m]);Ts((()=>{const e=()=>{p.current=0,(()=>{const e=m();Bw(e)||RC.flushSync((()=>{h((t=>g(t,e)))}))})()};const t=_s(e),n=u.current,r=Ps(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[m]),Ts((()=>{b()})),So.useEffect((()=>{p.current=0}),[a]);return Lc.jsxs(So.Fragment,{children:[Lc.jsx("textarea",Ir({value:a,onChange:e=>{p.current=0,s||b(),n&&n(e)},ref:c,rows:o,style:Ir({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),Lc.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Ir({},$w,i,{paddingTop:0,paddingBottom:0})})]})}));function Ww({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var Gw=So.createContext(void 0);function Vw(){return So.useContext(Gw)}function Uw(e){return Lc.jsx(Ic,oi({},e,{defaultTheme:Hd,themeId:ri}))}function Yw(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Kw(e,t=!1){return e&&(Yw(e.value)&&""!==e.value||t&&Yw(e.defaultValue)&&""!==e.defaultValue)}function Xw(e){return Sd("MuiInputBase",e)}var Qw=Ed("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const Jw=["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"],Zw=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Qc(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},eR=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},tR=Kd("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Zw})((({theme:e,ownerState:t})=>oi({},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",[`&.${Qw.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&oi({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),nR=Kd("input",{name:"MuiInputBase",slot:"Input",overridesResolver:eR})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=oi({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return oi({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Qw.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},[`&.${Qw.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"})})),rR=Lc.jsx(Uw,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),oR=So.forwardRef((function(e,t){var n;const r=Gd({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:y,minRows:x,multiline:S=!1,name:E,onBlur:C,onChange:w,onClick:R,onFocus:k,onKeyDown:L,onKeyUp:I,placeholder:M,readOnly:_,renderSuffix:A,rows:P,slotProps:D={},slots:T={},startAdornment:O,type:N="text",value:q}=r,F=ii(r,Jw),z=null!=b.value?b.value:q,{current:j}=So.useRef(null!=z),$=So.useRef(),B=So.useCallback((e=>{}),[]),H=ad($,v,b.ref,B),[W,G]=So.useState(!1),V=Vw(),U=Ww({props:r,muiFormControl:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=V?V.focused:W,So.useEffect((()=>{!V&&d&&W&&(G(!1),C&&C())}),[V,d,W,C]);const Y=V&&V.onFilled,K=V&&V.onEmpty,X=So.useCallback((e=>{Kw(e)?Y&&Y():K&&K()}),[Y,K]);ed((()=>{j&&X({value:z})}),[z,X,j]);So.useEffect((()=>{X($.current)}),[]);let Q=g,J=b;S&&"input"===Q&&(J=oi(P?{type:void 0,minRows:P,maxRows:P}:{type:void 0,maxRows:y,minRows:x},J),Q=Hw);So.useEffect((()=>{V&&V.setAdornedStart(Boolean(O))}),[V,O]);const Z=oi({},r,{color:U.color||"primary",disabled:U.disabled,endAdornment:f,error:U.error,focused:U.focused,formControl:V,fullWidth:h,hiddenLabel:U.hiddenLabel,multiline:S,size:U.size,startAdornment:O,type:N}),ee=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return Js({root:["root",`color${Qc(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${Qc(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Xw,t)})(Z),te=T.root||s.Root||tR,ne=D.root||u.root||{},re=T.input||s.Input||nR;return J=oi({},J,null!=(n=D.input)?n:u.input),Lc.jsxs(So.Fragment,{children:[!p&&rR,Lc.jsxs(te,oi({},ne,!KC(te)&&{ownerState:oi({},Z,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),R&&R(e)}},F,{className:Jd(ee.root,ne.className,l,_&&"MuiInputBase-readOnly"),children:[O,Lc.jsx(Gw.Provider,{value:null,children:Lc.jsx(re,oi({ownerState:Z,"aria-invalid":U.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:U.disabled,id:m,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:E,placeholder:M,readOnly:_,required:U.required,rows:P,value:z,onKeyDown:L,onKeyUp:I,type:N},J,!KC(re)&&{as:Q,ownerState:oi({},Z,J.ownerState)},{ref:H,className:Jd(ee.input,J.className,_&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),b.onBlur&&b.onBlur(e),V&&V.onBlur?V.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||$.current;if(null==t)throw new Error(ni(1));X({value:t.value})}b.onChange&&b.onChange(e,...t),w&&w(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(k&&k(e),b.onFocus&&b.onFocus(e),V&&V.onFocus?V.onFocus(e):G(!0))}}))}),f,A?A(oi({},U,{startAdornment:O})):null]}))]})}));var iR=oR;function aR(e){return Sd("MuiInput",e)}var lR=oi({},Qw,Ed("MuiInput",["root","underline","input"]));function sR(e){return Sd("MuiOutlinedInput",e)}var uR=oi({},Qw,Ed("MuiOutlinedInput",["root","notchedOutline","input"]));function cR(e){return Sd("MuiFilledInput",e)}var dR=oi({},Qw,Ed("MuiFilledInput",["root","underline","input"])),pR=function(e,t){function n(n,r){return Lc.jsx(rp,oi({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=rp.muiName,So.memo(So.forwardRef(n))}(Lc.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const fR=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],hR={entering:{opacity:1},entered:{opacity:1}},mR=So.forwardRef((function(e,t){const n=Wd(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:b=NC}=e,v=ii(e,fR),y=So.useRef(null),x=ad(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),C=S(((e,t)=>{HC(e);const r=WC({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),w=S(c),R=S(h),k=S((e=>{const t=WC({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),L=S(f);return Lc.jsx(b,oi({appear:i,in:s,nodeRef:y,onEnter:C,onEntered:w,onEntering:E,onExit:k,onExited:L,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>So.cloneElement(a,oi({style:oi({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},hR[e],m,a.props.style),ref:x},t))}))}));var gR=mR;function bR(e){return Sd("MuiBackdrop",e)}Ed("MuiBackdrop",["root","invisible"]);const vR=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],yR=Kd("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>oi({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"}))),xR=So.forwardRef((function(e,t){var n,r,o;const i=Gd({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=gR,transitionDuration:g}=i,b=ii(i,vR),v=oi({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Js({root:["root",n&&"invisible"]},bR,t)})(v),x=null!=(n=f.root)?n:c.root;return Lc.jsx(m,oi({in:p,timeout:g},b,{children:Lc.jsx(yR,oi({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:u.Root)?r:s,className:Jd(y.root,l,null==x?void 0:x.className),ownerState:oi({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var SR=xR;var ER=Ed("MuiBox",["root"]);const CR=Bd(),wR=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Xl("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(dc);return So.forwardRef((function(e,a){const l=bc(n),s=Ac(e),{className:u,component:c="div"}=s,d=Or(s,Pc);return Lc.jsx(i,Ir({as:c,ref:a,className:su(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:ri,defaultTheme:CR,defaultClassName:ER.root,generateClassName:yd.generate});var RR=wR;function kR(e){return Sd("MuiButton",e)}var LR=Ed("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var IR=So.createContext({});var MR=So.createContext(void 0);const _R=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],AR=e=>oi({},"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}}),PR=Kd(yw,{shouldForwardProp:e=>Vd(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Qc(n.color)}`],t[`size${Qc(n.size)}`],t[`${n.variant}Size${Qc(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return oi({},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":oi({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Uc(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})`:Uc(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})`:Uc(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":oi({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${LR.focusVisible}`]:oi({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${LR.disabled}`]:oi({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 ${Uc(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${LR.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${LR.disabled}`]:{boxShadow:"none"}})),DR=Kd("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Qc(n.size)}`]]}})((({ownerState:e})=>oi({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},AR(e)))),TR=Kd("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Qc(n.size)}`]]}})((({ownerState:e})=>oi({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},AR(e)))),OR=So.forwardRef((function(e,t){const n=So.useContext(IR),r=So.useContext(MR),o=Gd({props:bd(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,y=ii(o,_R),x=oi({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return oi({},a,Js({root:["root",i,`${i}${Qc(t)}`,`size${Qc(o)}`,`${i}Size${Qc(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Qc(o)}`],endIcon:["endIcon",`iconSize${Qc(o)}`]},kR,a))})(x),E=g&&Lc.jsx(DR,{className:S.startIcon,ownerState:x,children:g}),C=p&&Lc.jsx(TR,{className:S.endIcon,ownerState:x,children:p}),w=r||"";return Lc.jsxs(PR,oi({ownerState:x,className:Jd(n.className,S.root,s,w),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:Jd(S.focusVisible,f),ref:t,type:b},y,{classes:S,children:[E,i,C]}))}));var NR=OR;function qR(e){return Sd("MuiModal",e)}Ed("MuiModal",["root","hidden","backdrop"]);const FR=["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"],zR=Kd("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>oi({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),jR=Kd(SR,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),$R=So.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Gd({name:"MuiModal",props:e}),{BackdropComponent:u=jR,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:w=!1,keepMounted:R=!1,onBackdropClick:k,open:L,slotProps:I,slots:M}=s,_=ii(s,FR),A=oi({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:w,keepMounted:R}),{getRootProps:P,getBackdropProps:D,getTransitionProps:T,portalRef:O,isTopModal:N,exited:q,hasTransition:F}=Fw(oi({},A,{rootRef:t})),z=oi({},A,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return Js({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},qR,r)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(r=null==M?void 0:M.root)?r:g.Root)?n:zR,H=null!=(o=null!=(i=null==M?void 0:M.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==I?void 0:I.root)?a:b.root,G=null!=(l=null==I?void 0:I.backdrop)?l:b.backdrop,V=ZC({elementType:B,externalSlotProps:W,externalForwardedProps:_,getSlotProps:P,additionalProps:{ref:t,as:m},ownerState:z,className:Jd(d,null==W?void 0:W.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=ZC({elementType:H,externalSlotProps:G,additionalProps:c,getSlotProps:e=>D(oi({},e,{onClick:t=>{k&&k(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Jd(null==G?void 0:G.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||L||F&&!q?Lc.jsx(Aw,{ref:O,container:h,disablePortal:S,children:Lc.jsxs(B,oi({},V,{children:[!w&&u?Lc.jsx(H,oi({},U)):null,Lc.jsx(_w,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:E,isEnabled:N,open:L,children:So.cloneElement(f,$)})]}))}):null}));var BR=$R;function HR(e){return Sd("MuiDivider",e)}var WR=Ed("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const GR=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],VR=Kd("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>oi({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)`:Uc(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})=>oi({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>oi({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>oi({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>oi({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),UR=Kd("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>oi({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)`}))),YR=So.forwardRef((function(e,t){const n=Gd({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=ii(n,GR),h=oi({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return Js({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},HR,r)})(h);return Lc.jsx(VR,oi({as:a,className:Jd(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?Lc.jsx(UR,{className:m.wrapper,ownerState:h,children:o}):null}))}));YR.muiSkipListHighlight=!0;var KR=YR;const XR=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],QR=Kd(tR,{shouldForwardProp:e=>Vd(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Zw(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return oi({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}},[`&.${dR.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${dR.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${dR.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${dR.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(.${dR.disabled}, .${dR.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${dR.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&oi({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}))})),JR=Kd(nR,{name:"MuiFilledInput",slot:"Input",overridesResolver:eR})((({theme:e,ownerState:t})=>oi({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}))),ZR=So.forwardRef((function(e,t){var n,r,o,i;const a=Gd({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=ii(a,XR),g=oi({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:n}=e;return oi({},t,Js({root:["root",!n&&"underline"],input:["input"]},cR,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Xc(v,null!=p?p:s):v,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:QR,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:JR;return Lc.jsx(iR,oi({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))}));ZR.muiName="Input";var ek=ZR;const tk=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function nk(e){return`scale(${e}, ${e**2})`}const rk={entering:{opacity:1,transform:nk(1)},entered:{opacity:1,transform:"none"}},ok="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ik=So.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=NC}=e,g=ii(e,tk),b=So.useRef(),v=So.useRef(),y=Wd(),x=So.useRef(null),S=ad(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(u),w=E(((e,t)=>{HC(e);const{duration:n,delay:r,easing:o}=WC({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:ok?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),k=E(p),L=E((e=>{const{duration:t,delay:n,easing:r}=WC({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:ok?o:.666*o,delay:ok?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=nk(.75),c&&c(e)})),I=E(d);return So.useEffect((()=>()=>{clearTimeout(b.current)}),[]),Lc.jsx(m,oi({appear:r,in:a,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:L,onExited:I,onExiting:k,addEndListener:e=>{"auto"===h&&(b.current=setTimeout(e,v.current||0)),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>So.cloneElement(o,oi({style:oi({opacity:0,transform:nk(.75),visibility:"exited"!==e||a?void 0:"hidden"},rk[e],f,o.props.style),ref:S},t))}))}));ik.muiSupportAuto=!0;var ak=ik;const lk=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],sk=Kd(tR,{shouldForwardProp:e=>Vd(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Zw(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),oi({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"},[`&.${lR.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${lR.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${lR.disabled}, .${lR.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${lR.disabled}:before`]:{borderBottomStyle:"dotted"}})})),uk=Kd(nR,{name:"MuiInput",slot:"Input",overridesResolver:eR})({}),ck=So.forwardRef((function(e,t){var n,r,o,i;const a=Gd({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=ii(a,lk),b=(e=>{const{classes:t,disableUnderline:n}=e;return oi({},t,Js({root:["root",!n&&"underline"],input:["input"]},aR,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Xc(null!=f?f:u,v):v,x=null!=(n=null!=(r=h.root)?r:s.Root)?n:sk,S=null!=(o=null!=(i=h.input)?i:s.Input)?o:uk;return Lc.jsx(iR,oi({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));ck.muiName="Input";var dk=ck;function pk(e){return Sd("MuiLink",e)}var fk=Ed("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const hk={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var mk=({theme:e,ownerState:t})=>{const n=(e=>hk[e]||e)(t.color),r=xu(e,`palette.${n}`,!1)||t.color,o=xu(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Uc(r,.4)};const gk=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],bk=Kd(kw,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Qc(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>oi({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&oi({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:mk({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"},[`&.${fk.focusVisible}`]:{outline:"auto"}}))),vk=So.forwardRef((function(e,t){const n=Gd({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=n,p=ii(n,gk),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=gd(),[b,v]=So.useState(!1),y=ad(t,g),x=oi({},n,{color:o,component:i,focusVisible:b,underline:u,variant:c}),S=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return Js({root:["root",`underline${Qc(o)}`,"button"===n&&"button",r&&"focusVisible"]},pk,t)})(x);return Lc.jsx(bk,oi({color:o,className:Jd(S.root,r),classes:s,component:i,onBlur:e=>{h(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&v(!0),l&&l(e)},ref:y,ownerState:x,variant:c,sx:[...Object.keys(hk).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var yk=vk;var xk=So.createContext({});function Sk(e){return Sd("MuiList",e)}Ed("MuiList",["root","padding","dense","subheader"]);const Ek=["children","className","component","dense","disablePadding","subheader"],Ck=Kd("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>oi({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var wk=So.forwardRef((function(e,t){const n=Gd({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=ii(n,Ek),c=So.useMemo((()=>({dense:a})),[a]),d=oi({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Js({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Sk,t)})(d);return Lc.jsx(xk.Provider,{value:c,children:Lc.jsxs(Ck,oi({as:i,className:Jd(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function Rk(e){return Sd("MuiListItemIcon",e)}var kk=Ed("MuiListItemIcon",["root","alignItemsFlexStart"]);const Lk=["className"],Ik=Kd("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>oi({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var Mk=So.forwardRef((function(e,t){const n=Gd({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=ii(n,Lk),i=oi({},n,{alignItems:So.useContext(xk).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Js({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Rk,n)})(i);return Lc.jsx(Ik,oi({className:Jd(a.root,r),ownerState:i,ref:t},o))}));var _k=Ed("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const Ak=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Pk(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Dk(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Tk(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Ok(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Tk(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var Nk=So.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=ii(e,Ak),p=So.useRef(null),f=So.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ed((()=>{r&&p.current.focus()}),[r]),So.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(Jc(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=ad(p,t);let m=-1;So.Children.forEach(i,((e,t)=>{So.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=So.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),So.cloneElement(e,t)}return e}));return Lc.jsx(wk,oi({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Jc(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Ok(t,r,s,l,Pk);else if("ArrowUp"===n)e.preventDefault(),Ok(t,r,s,l,Dk);else if("Home"===n)e.preventDefault(),Ok(t,null,s,l,Pk);else if("End"===n)e.preventDefault(),Ok(t,null,s,l,Dk);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&Tk(r,o);o.previousKeyMatched&&(s||Ok(t,r,!1,l,Pk,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function qk(e){return Sd("MuiPopover",e)}Ed("MuiPopover",["root","paper"]);const Fk=["onEntering"],zk=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],jk=["slotProps"];function $k(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Bk(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Hk(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Wk(e){return"function"==typeof e?e():e}const Gk=Kd(BR,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Vk=Kd(YC,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var Uk=So.forwardRef((function(e,t){var n,r,o;const i=Gd({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=ak,transitionDuration:E="auto",TransitionProps:{onEntering:C}={},disableScrollLock:w=!1}=i,R=ii(i.TransitionProps,Fk),k=ii(i,zk),L=null!=(n=null==y?void 0:y.paper)?n:b,I=So.useRef(),M=ad(I,L.ref),_=oi({},i,{anchorOrigin:s,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:L,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),A=(e=>{const{classes:t}=e;return Js({root:["root"],paper:["paper"]},qk,t)})(_),P=So.useCallback((()=>{if("anchorPosition"===c)return u;const e=Wk(l),t=(e&&1===e.nodeType?e:Jc(I.current).body).getBoundingClientRect();return{top:t.top+$k(t,s.vertical),left:t.left+Bk(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=So.useCallback((e=>({vertical:$k(e,x.vertical),horizontal:Bk(e,x.horizontal)})),[x.horizontal,x.vertical]),T=So.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:Hk(n)};const r=P();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=Zc(Wk(l)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Hk(n)}}),[l,c,P,D,m]),[O,N]=So.useState(g),q=So.useCallback((()=>{const e=I.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);So.useEffect((()=>(w&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,w,q]);So.useEffect((()=>{g&&q()})),So.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),So.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{q()})),t=Zc(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,q]);let F=E;"auto"!==E||S.muiSupportAuto||(F=void 0);const z=f||(l?Jc(Wk(l)).body:void 0),j=null!=(r=null==v?void 0:v.root)?r:Gk,$=null!=(o=null==v?void 0:v.paper)?o:Vk,B=ZC({elementType:$,externalSlotProps:oi({},L,{style:O?L.style:oi({},L.style,{opacity:0})}),additionalProps:{elevation:h,ref:M},ownerState:_,className:Jd(A.paper,null==L?void 0:L.className)}),H=ZC({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:k,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:_,className:Jd(A.root,p)}),{slotProps:W}=H,G=ii(H,jk);return Lc.jsx(j,oi({},G,!KC(j)&&{slotProps:W,disableScrollLock:w},{children:Lc.jsx(S,oi({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:Lc.jsx($,oi({},B,{children:d}))}))}))}));function Yk(e){return Sd("MuiMenu",e)}Ed("MuiMenu",["root","paper","list"]);const Kk=["onEntering"],Xk=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Qk={vertical:"top",horizontal:"right"},Jk={vertical:"top",horizontal:"left"},Zk=Kd(Uk,{shouldForwardProp:e=>Vd(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),eL=Kd(Vk,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),tL=Kd(Nk,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var nL=So.forwardRef((function(e,t){var n,r;const o=Gd({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=ii(o.TransitionProps,Kk),x=ii(o,Xk),S=Wd(),E="rtl"===S.direction,C=oi({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),w=(e=>{const{classes:t}=e;return Js({root:["root"],paper:["paper"],list:["list"]},Yk,t)})(C),R=i&&!s&&d,k=So.useRef(null);let L=-1;So.Children.map(a,((e,t)=>{So.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===L)&&(L=t))}));const I=null!=(n=b.paper)?n:eL,M=null!=(r=v.paper)?r:p,_=ZC({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[w.root,l]}),A=ZC({elementType:I,externalSlotProps:M,ownerState:C,className:w.paper});return Lc.jsx(Zk,oi({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?Qk:Jk,slots:{paper:I,root:b.root},slotProps:{root:_,paper:A},open:d,ref:t,transitionDuration:h,TransitionProps:oi({onEntering:(e,t)=>{k.current&&k.current.adjustStyleForScrollbar(e,S),m&&m(e,t)}},y),ownerState:C},x,{classes:f,children:Lc.jsx(tL,oi({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:k,autoFocus:i&&(-1===L||s),autoFocusItem:R,variant:g},u,{className:Jd(w.list,u.className),children:a}))}))}));function rL(e){return Sd("MuiMenuItem",e)}var oL=Ed("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const iL=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],aL=Kd(yw,{shouldForwardProp:e=>Vd(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>oi({},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"}},[`&.${oL.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Uc(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${oL.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Uc(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${oL.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Uc(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})`:Uc(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${oL.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${oL.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${WR.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${WR.inset}`]:{marginLeft:52},[`& .${_k.root}`]:{marginTop:0,marginBottom:0},[`& .${_k.inset}`]:{paddingLeft:36},[`& .${kk.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&oi({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${kk.root} svg`]:{fontSize:"1.25rem"}}))));var lL=So.forwardRef((function(e,t){const n=Gd({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=ii(n,iL),f=So.useContext(xk),h=So.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=So.useRef(null);ed((()=>{r&&m.current&&m.current.focus()}),[r]);const g=oi({},n,{dense:h.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return oi({},a,Js({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},rL,a))})(n),v=ad(m,t);let y;return n.disabled||(y=void 0!==c?c:-1),Lc.jsx(xk.Provider,{value:h,children:Lc.jsx(aL,oi({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:Jd(b.focusVisible,s),className:Jd(b.root,d)},p,{ownerState:g,classes:b}))})}));function sL(e){return Sd("MuiNativeSelect",e)}var uL=Ed("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const cL=["className","disabled","error","IconComponent","inputRef","variant"],dL=({ownerState:e,theme:t})=>oi({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":oi({},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"},[`&.${uL.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}}),pL=Kd("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Vd,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${uL.multiple}`]:t.multiple}]}})(dL),fL=({ownerState:e,theme:t})=>oi({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${uL.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),hL=Kd("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Qc(n.variant)}`],n.open&&t.iconOpen]}})(fL),mL=So.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=ii(e,cL),u=oi({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Js({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Qc(n)}`,i&&"iconOpen",r&&"disabled"]},sL,t)})(u);return Lc.jsxs(So.Fragment,{children:[Lc.jsx(pL,oi({ownerState:u,className:Jd(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:Lc.jsx(hL,{as:i,ownerState:u,className:c.icon})]})}));var gL,bL=mL;const vL=["children","classes","className","label","notched"],yL=Kd("fieldset",{shouldForwardProp:Vd})({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%"}),xL=Kd("legend",{shouldForwardProp:Vd})((({ownerState:e,theme:t})=>oi({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&&oi({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 SL=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],EL=Kd(tR,{shouldForwardProp:e=>Vd(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Zw})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return oi({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${uR.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${uR.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${uR.focused} .${uR.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${uR.error} .${uR.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${uR.disabled} .${uR.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&oi({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),CL=Kd((function(e){const{className:t,label:n,notched:r}=e,o=ii(e,vL),i=null!=n&&""!==n,a=oi({},e,{notched:r,withLabel:i});return Lc.jsx(yL,oi({"aria-hidden":!0,className:t,ownerState:a},o,{children:Lc.jsx(xL,{ownerState:a,children:i?Lc.jsx("span",{children:n}):gL||(gL=Lc.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}})),wL=Kd(nR,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:eR})((({theme:e,ownerState:t})=>oi({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}))),RL=So.forwardRef((function(e,t){var n,r,o,i,a;const l=Gd({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=l,g=ii(l,SL),b=(e=>{const{classes:t}=e;return oi({},t,Js({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},sR,t))})(l),v=Vw(),y=Ww({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=oi({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),S=null!=(n=null!=(r=h.root)?r:s.Root)?n:EL,E=null!=(o=null!=(i=h.input)?i:s.Input)?o:wL;return Lc.jsx(iR,oi({slots:{root:S,input:E},renderSuffix:e=>Lc.jsx(CL,{ownerState:x,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=Lc.jsxs(So.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:m},g,{classes:oi({},b,{notchedOutline:null})}))}));RL.muiName="Input";var kL=RL;function LL(e){return Sd("MuiSelect",e)}var IL,ML=Ed("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const _L=["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"],AL=Kd("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ML.select}`]:t.select},{[`&.${ML.select}`]:t[n.variant]},{[`&.${ML.error}`]:t.error},{[`&.${ML.multiple}`]:t.multiple}]}})(dL,{[`&.${ML.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),PL=Kd("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Qc(n.variant)}`],n.open&&t.iconOpen]}})(fL),DL=Kd("input",{shouldForwardProp:e=>Ud(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 TL(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function OL(e){return null==e||"string"==typeof e&&!e.trim()}const NL=So.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:x,onChange:S,onClose:E,onFocus:C,onOpen:w,open:R,readOnly:k,renderValue:L,SelectDisplayProps:I={},tabIndex:M,value:_,variant:A="standard"}=e,P=ii(e,_L),[D,T]=od({controlled:_,default:c,name:"Select"}),[O,N]=od({controlled:R,default:u,name:"Select"}),q=So.useRef(null),F=So.useRef(null),[z,j]=So.useState(null),{current:$}=So.useRef(null!=R),[B,H]=So.useState(),W=ad(t,m),G=So.useCallback((e=>{F.current=e,e&&j(e)}),[]),V=null==z?void 0:z.parentNode;So.useImperativeHandle(W,(()=>({focus:()=>{F.current.focus()},node:q.current,value:D})),[D]),So.useEffect((()=>{u&&O&&z&&!$&&(H(a?null:V.clientWidth),F.current.focus())}),[z,a]),So.useEffect((()=>{i&&F.current.focus()}),[i]),So.useEffect((()=>{if(!g)return;const e=Jc(F.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const U=(e,t)=>{e?w&&w(t):E&&E(t),$||(H(a?null:V.clientWidth),N(e))},Y=So.Children.toArray(l),K=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(D)?D.slice():[];const t=D.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),D!==n&&(T(n),S)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),S(o,e)}v||U(!1,t)}},X=null!==z&&O;let Q,J;delete P["aria-invalid"];const Z=[];let ee=!1;(Kw({value:D})||p)&&(L?Q=L(D):ee=!0);const te=Y.map((e=>{if(!So.isValidElement(e))return null;let t;if(v){if(!Array.isArray(D))throw new Error(ni(2));t=D.some((t=>TL(t,e.props.value))),t&&ee&&Z.push(e.props.children)}else t=TL(D,e.props.value),t&&ee&&(J=e.props.children);return So.cloneElement(e,{"aria-selected":t?"true":"false",onClick:K(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ee&&(Q=v?0===Z.length?null:Z.reduce(((e,t,n)=>(e.push(t),n<Z.length-1&&e.push(", "),e)),[]):J);let ne,re=B;!a&&$&&z&&(re=V.clientWidth),ne=void 0!==M?M:d?null:0;const oe=I.id||(y?`mui-component-select-${y}`:void 0),ie=oi({},e,{variant:A,value:D,open:X,error:f}),ae=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Js({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Qc(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},LL,t)})(ie),le=oi({},b.PaperProps,null==(n=b.slotProps)?void 0:n.paper),se=rd();return Lc.jsxs(So.Fragment,{children:[Lc.jsx(AL,oi({ref:G,tabIndex:ne,role:"combobox","aria-controls":se,"aria-disabled":d?"true":void 0,"aria-expanded":X?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,oe].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!k){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:d||k?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),U(!0,e))},onBlur:e=>{!X&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:D,name:y}}),x(e))},onFocus:C},I,{ownerState:ie,className:Jd(I.className,ae.select,s),id:oe,children:OL(Q)?IL||(IL=Lc.jsx("span",{className:"notranslate",children:"​"})):Q})),Lc.jsx(DL,oi({"aria-invalid":f,value:Array.isArray(D)?D.join(","):D,name:y,ref:q,"aria-hidden":!0,onChange:e=>{const t=Y.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:ae.nativeInput,autoFocus:i,ownerState:ie},P)),Lc.jsx(PL,{as:h,className:ae.icon,ownerState:ie}),Lc.jsx(nL,oi({id:`menu-${y||""}`,anchorEl:V,open:X,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:oi({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:se},b.MenuListProps),slotProps:oi({},b.slotProps,{paper:oi({},le,{style:oi({minWidth:re},null!=le?le.style:null)})}),children:te}))]})}));var qL=NL;const FL=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],zL=["root"],jL={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Vd(e)&&"variant"!==e,slot:"Root"},$L=Kd(dk,jL)(""),BL=Kd(kL,jL)(""),HL=Kd(ek,jL)(""),WL=So.forwardRef((function(e,t){const n=Gd({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=pR,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:E,variant:C="outlined"}=n,w=ii(n,FL),R=b?bL:qL,k=Ww({props:n,muiFormControl:Vw(),states:["variant","error"]}),L=k.variant||C,I=oi({},n,{variant:L,classes:i}),M=(e=>{const{classes:t}=e;return t})(I),_=ii(M,zL),A=d||{standard:Lc.jsx($L,{ownerState:I}),outlined:Lc.jsx(BL,{label:f,ownerState:I}),filled:Lc.jsx(HL,{ownerState:I})}[L],P=ad(t,A.ref);return Lc.jsx(So.Fragment,{children:So.cloneElement(A,oi({inputComponent:R,inputProps:oi({children:o,error:k.error,IconComponent:u,variant:L,type:void 0,multiple:g},b?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:h,MenuProps:m,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:oi({id:c},E)},p,{classes:p?Xc(_,p.classes):_},d?d.props.inputProps:{})},g&&b&&"outlined"===L?{notched:!0}:{},{ref:P,className:Jd(A.props.className,a,M.root)},!d&&{variant:L},w))})}));WL.muiName="Select";var GL=WL,VL=(e={})=>Eo.createElement(Bo,{...e},Eo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Eo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Eo.createElement("rect",{stroke:Ro.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const UL={MuiAccordion:{styleOverrides:{root:{backgroundColor:Ro.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Ro.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Eo.createElement(zo,{"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 ${Ro.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Ro.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Ro.MISC_FOCUS_BORDER}`,borderRadius:_o,backgroundColor:Ro.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 ${Ro.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Ro.WHITE,color:Ro.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:_o},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Ro.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Ro.GREYSCALE_0_15,backgroundColor:Ro.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Ro.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Ro.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Ro.GREEN_PALE},"&:active":{backgroundColor:Ro.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Ro.GREEN_PALE,boxShadow:`0 0 0 3px ${Uc(Ro.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Ro.BLUE_PALE},"&:active":{backgroundColor:Ro.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Ro.BLUE_PALE,boxShadow:`0 0 0 3px ${Uc(Ro.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:_o,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Ro.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Ro.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Ro.GREYSCALE_0_15,backgroundColor:Ro.GREYSCALE_100_60,"&:active":{backgroundColor:Ro.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Ro.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Ro.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Ro.PURPLE,"&.Mui-focusVisible":{borderColor:Ro.PURPLE,boxShadow:`0 0 0 3px ${Uc(Ro.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Ro.GREEN,"&.Mui-focusVisible":{borderColor:Ro.GREEN,boxShadow:`0 0 0 3px ${Uc(Ro.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Ro.BLUE,"&.Mui-focusVisible":{borderColor:Ro.BLUE,boxShadow:`0 0 0 3px ${Uc(Ro.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Ro.ORANGE,"&.Mui-focusVisible":{borderColor:Ro.ORANGE,boxShadow:`0 0 0 3px ${Uc(Ro.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Ro.RED,"&.Mui-focusVisible":{borderColor:Ro.RED,boxShadow:`0 0 0 3px ${Uc(Ro.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Ro.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Ro.PURPLE_PALE},"&:active":{backgroundColor:Ro.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Ro.PURPLE_PALE,boxShadow:`0 0 0 3px ${Uc(Ro.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Ro.GREEN_PALE},"&:active":{backgroundColor:Ro.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Ro.GREEN_PALE,boxShadow:`0 0 0 3px ${Uc(Ro.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Ro.BLUE_PALE},"&:active":{backgroundColor:Ro.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Ro.BLUE_PALE,boxShadow:`0 0 0 3px ${Uc(Ro.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Ro.ORANGE_PALE},"&:active":{backgroundColor:Ro.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Ro.ORANGE_PALE,boxShadow:`0 0 0 3px ${Uc(Ro.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Ro.RED_PALE},"&:active":{backgroundColor:Ro.RED_DARK},"&.Mui-focusVisible":{borderColor:Ro.RED_PALE,boxShadow:`0 0 0 3px ${Uc(Ro.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:Ro.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Ro.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:_o,boxShadow:`inset 0 0 0 2px ${Ro.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Eo.createElement($o,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:ko,borderRadius:_o,color:Ro.TEXT_PRIMARY,backgroundColor:Ro.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Ro.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Ro.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Ro.GREYSCALE_0_05,color:Ro.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Ro.GREEN,borderColor:Ro.GREEN},"&.MuiChip-outlinedInfo":{color:Ro.BLUE,borderColor:Ro.BLUE},"&.MuiChip-outlinedWarning":{color:Ro.ORANGE,borderColor:Ro.ORANGE},"&.MuiChip-outlinedError":{color:Ro.RED,borderColor:Ro.RED}},outlined:{border:`solid 1px ${Ro.GREYSCALE_0_15}`,backgroundColor:Ro.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:_o,boxShadow:"none",backgroundColor:Ro.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Ro.GREEN,borderColor:Ro.GREEN},outlinedSecondary:{color:Ro.BLUE,borderColor:Ro.BLUE},label:{fontFamily:Oo.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Eo.createElement($o,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Eo.createElement(zo,{"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:_o},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:_o,fontSize:Lo,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Ro.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Ro.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Ro.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Ro.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Ro.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:_o,border:`solid 1px ${Ro.GREYSCALE_0_15}`,color:Ro.GREYSCALE_0_60,marginRight:0,width:Mo,height:Mo},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Ro.GREYSCALE_0_15}`},clearIndicator:{borderRadius:_o,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Ro.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Lo}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:ko,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Ro.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Ro.GREYSCALE_25,fontSize:ko,fontFamily:Oo.FONT_FAMILY,fontWeight:Do,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Ro.TEXT_PRIMARY},"&.Mui-error":{color:Ro.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Ro.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Po,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Ro.TEXT_SECONDARY,content:"'(required)'",fontWeight:Po,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Lo,lineHeight:"16px",backgroundColor:Ro.WHITE,borderRadius:_o,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ro.GREYSCALE_0_05}`,borderColor:Ro.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ro.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Ro.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Ro.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ro.RED}`,boxShadow:`0px 0px 0px 1px ${Ro.RED}, inset 0 2px 0 0 ${Ro.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ro.GREYSCALE_0_10}`,borderColor:Ro.GREYSCALE_0_10,backgroundColor:Ro.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Ro.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Ro.GREYSCALE_0_15,borderRadius:_o,boxShadow:`inset 0 2px 0 0 ${Ro.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Eo.createElement(zo,{...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:Ro.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Ro.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Ro.GREYSCALE_0_03},"&:active":{backgroundColor:Ro.GREYSCALE_0_10},"&:focus":{backgroundColor:Ro.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Ro.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Ro.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Ro.GREYSCALE_0_30,"&:hover":{backgroundColor:Ro.GREYSCALE_0_0,borderColor:Ro.GREYSCALE_0_15},"& ~svg":{color:Ro.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Ro.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:_o}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Ro.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Ro.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Ro.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:Lo,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:ko,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:ko,fontWeight:Do,color:Ro.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Do}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Ro.GREYSCALE_0_15}, 0px 0px 0px 1px ${Ro.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Eo.createElement(Go,null),checkedIcon:Eo.createElement(Vo,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Ro.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Ro.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Ro.GREEN_PALE,boxShadow:`0 0 0 3px ${Uc(Ro.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Ro.BLUE_PALE,boxShadow:`0 0 0 3px ${Uc(Ro.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Ro.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Ro.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Eo.createElement(VL,null),checkedIcon:Eo.createElement(Ho,null),indeterminateIcon:Eo.createElement(Wo,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:_o,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Ro.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Ro.GREYSCALE_0_55,color:Ro.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:Ro.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Ro.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Ro.GREYSCALE_0_55,"&:hover":{color:Ro.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:Ro.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Ro.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Lo,color:Ro.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Do},secondary:{fontSize:ko,color:Ro.GREYSCALE_45,fontWeight:Po,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Lo,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Ro.GREYSCALE_0_03},"&:active":{backgroundColor:Ro.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Lo,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Ro.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:ko,borderBottom:`solid 1px ${Ro.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Lo,color:Ro.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Ro.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Ro.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Ro.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:Ro.RED}}},"&.Mui-focusVisible":{backgroundColor:Ro.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:Ro.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:Ro.GREEN,height:"24px","&.Mui-disabled":{color:Ro.GREYSCALE_0_15}},rail:{backgroundColor:Ro.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Ro.GREYSCALE_0_05}`,borderRadius:_o,boxShadow:`inset 0px 0px 0px 1px ${Ro.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Ro.GREYSCALE_0_05}`,borderRadius:_o},thumb:{height:"16px",width:"16px",borderRadius:_o,backgroundColor:Ro.WHITE,boxShadow:`0px 1px 2px 0px ${Ro.GREYSCALE_0_15}, 0px 0px 0px 1px ${Ro.GREYSCALE_0_05}`,"&:hover":{borderRadius:_o,boxShadow:`0 2px 4px 0 ${Ro.GREYSCALE_0_30}, 0 0 0 1px ${Ro.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Ro.GREYSCALE_0_15}, 0 0 0 1px ${Ro.GREYSCALE_0_06}, 0 0 0 2px ${Ro.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Ro.GREYSCALE_0_15}, 0 0 0 1px ${Ro.GREYSCALE_0_06}, 0 0 0 2px ${Ro.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Ro.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Ro.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Ro.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Ro.GREYSCALE_0_15},markLabel:{color:Ro.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Ro.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Ro.WHITE,color:Ro.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:Ro.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:Ro.GREEN_PALE,boxShadow:`0 0 0 3px ${Uc(Ro.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Ro.BLUE_PALE,boxShadow:`0 0 0 3px ${Uc(Ro.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Ro.GREYSCALE_0_15,borderRadius:_o},thumb:{height:"16px",width:"16px",borderRadius:_o,backgroundColor:Ro.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:Lo,fontWeight:Do,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Ro.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Ro.MISC_FOCUS_BORDER}`,backgroundColor:Ro.GREYSCALE_0_03,borderRadius:_o},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Ro.GREYSCALE_25,"&.Mui-selected":{color:Ro.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Lo,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${Ro.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${Ro.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Ro.GREYSCALE_85}`,borderRight:`1px solid ${Ro.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Do,backgroundColor:Ro.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:Ro.GREYSCALE_98,borderBottom:`1px solid ${Ro.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Ro.GREYSCALE_85}`,borderTop:`1px solid ${Ro.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Ro.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Ro.GREYSCALE_0_05,"&:hover":{backgroundColor:Ro.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Ro.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Eo.createElement(Uo,{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 ${Ro.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Lo,borderRadius:_o,padding:"7px 16px",border:`1px solid ${Ro.GREYSCALE_0_15}`,backgroundColor:Ro.GREYSCALE_100_60,color:Ro.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Ro.GREYSCALE_0_10,border:`1px solid ${Ro.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Ro.GREYSCALE_0_03,border:`1px solid ${Ro.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Ro.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Ro.MISC_FOCUS_BORDER}`,border:`1px solid ${Ro.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Ro.GREYSCALE_25,backgroundColor:Ro.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Ro.GREYSCALE_0_10,border:`1px solid ${Ro.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:ko,height:24,width:24,padding:7},sizeLarge:{fontSize:Io,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Lo,borderRadius:_o}}},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:Ro.GREYSCALE_20},tooltip:{backgroundColor:Ro.GREYSCALE_20,fontSize:ko,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const YL={mode:"light",primary:{light:Ro.GREEN_PALE,main:Ro.GREEN,dark:Ro.GREEN_DARK,contrastText:Ro.WHITE},secondary:{light:Ro.BLUE_PALE,main:Ro.BLUE,dark:Ro.BLUE_DARK,contrastText:Ro.WHITE},error:{light:Ro.RED_PALE,main:Ro.RED,dark:Ro.RED_DARK,contrastText:Ro.WHITE},warning:{light:Ro.ORANGE_PALE,main:Ro.ORANGE,dark:Ro.ORANGE_DARK,contrastText:Ro.WHITE},success:{light:Ro.GREEN_PALE,main:Ro.GREEN,dark:Ro.GREEN_DARK,contrastText:Ro.WHITE},info:{light:Ro.BLUE_PALE,main:Ro.BLUE,dark:Ro.BLUE_DARK,contrastText:Ro.WHITE},text:{primary:Ro.TEXT_PRIMARY,secondary:Ro.TEXT_SECONDARY,disabled:Ro.GREYSCALE_0_30},action:{hover:Ro.GREYSCALE_0_03,hoverOpacity:.05,selected:Ro.GREYSCALE_0_05,focus:Ro.MISC_FOCUS_BORDER},amethyst:{main:Ro.PURPLE,light:Ro.PURPLE_PALE,dark:Ro.PURPLE_DARK,contrastText:Ro.WHITE},background:{paper:Ro.WHITE,default:Ro.GREYSCALE_95},divider:Ro.GREYSCALE_0_15},KL=e=>({components:UL,palette:YL,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:Lo,fontWeightLight:Ao,fontWeightRegular:Po,fontWeightMedium:Do,fontWeightBold:To,htmlFontSize:Lo,fontFamily:Oo.FONT_FAMILY,button:{fontWeight:Do,fontSize:Lo,textTransform:"none"},body1:{fontSize:Io,lineHeight:"24px"},body2:{fontSize:Lo,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Mo,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Io,fontWeight:Do,lineHeight:"16px"},h6:{fontSize:Lo,fontWeight:Do,lineHeight:"16px"},caption:{color:Ro.TEXT_SECONDARY},subtitle1:{fontSize:Lo,color:Ro.TEXT_SECONDARY},subtitle2:{fontSize:ko,color:Ro.TEXT_SECONDARY}},shape:{borderRadius:_o}}),XL={...wo,MISC_FOCUS_BORDER:Ro.MISC_FOCUS_BORDER},QL=KL().palette,JL={TEXT:QL.text.primary,DISABLED:QL.text.disabled,HOVER:QL.action.hover,WHITE:XL.GREYSCALE_100,BORDER_LIGHT:XL.GREYSCALE_90,BORDER_MEDIUM:XL.GREYSCALE_85,BORDER_HEAVY:XL.GREYSCALE_50,DARK_MODE_TEXT:XL.GREYSCALE_95,DARK_MODE_BORDER:XL.GREYSCALE_95,DARK_MODE_DISABLED:XL.GREYSCALE_70,DARK_MODE_BACKGROUND:XL.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:XL.GREYSCALE_95,SELECTED:QL.primary.main};function ZL(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function eI(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function tI(){}var nI=.7,rI=1/nI,oI="\\s*([+-]?\\d+)\\s*",iI="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",aI="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",lI=/^#([0-9a-f]{3,8})$/,sI=new RegExp(`^rgb\\(${oI},${oI},${oI}\\)$`),uI=new RegExp(`^rgb\\(${aI},${aI},${aI}\\)$`),cI=new RegExp(`^rgba\\(${oI},${oI},${oI},${iI}\\)$`),dI=new RegExp(`^rgba\\(${aI},${aI},${aI},${iI}\\)$`),pI=new RegExp(`^hsl\\(${iI},${aI},${aI}\\)$`),fI=new RegExp(`^hsla\\(${iI},${aI},${aI},${iI}\\)$`),hI={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 mI(){return this.rgb().formatHex()}function gI(){return this.rgb().formatRgb()}function bI(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=lI.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?vI(t):3===n?new EI(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?yI(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?yI(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=sI.exec(e))?new EI(t[1],t[2],t[3],1):(t=uI.exec(e))?new EI(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=cI.exec(e))?yI(t[1],t[2],t[3],t[4]):(t=dI.exec(e))?yI(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=pI.exec(e))?II(t[1],t[2]/100,t[3]/100,1):(t=fI.exec(e))?II(t[1],t[2]/100,t[3]/100,t[4]):hI.hasOwnProperty(e)?vI(hI[e]):"transparent"===e?new EI(NaN,NaN,NaN,0):null}function vI(e){return new EI(e>>16&255,e>>8&255,255&e,1)}function yI(e,t,n,r){return r<=0&&(e=t=n=NaN),new EI(e,t,n,r)}function xI(e){return e instanceof tI||(e=bI(e)),e?new EI((e=e.rgb()).r,e.g,e.b,e.opacity):new EI}function SI(e,t,n,r){return 1===arguments.length?xI(e):new EI(e,t,n,null==r?1:r)}function EI(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function CI(){return`#${LI(this.r)}${LI(this.g)}${LI(this.b)}`}function wI(){const e=RI(this.opacity);return`${1===e?"rgb(":"rgba("}${kI(this.r)}, ${kI(this.g)}, ${kI(this.b)}${1===e?")":`, ${e})`}`}function RI(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function kI(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function LI(e){return((e=kI(e))<16?"0":"")+e.toString(16)}function II(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new _I(e,t,n,r)}function MI(e){if(e instanceof _I)return new _I(e.h,e.s,e.l,e.opacity);if(e instanceof tI||(e=bI(e)),!e)return new _I;if(e instanceof _I)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new _I(a,l,s,e.opacity)}function _I(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function AI(e){return(e=(e||0)%360)<0?e+360:e}function PI(e){return Math.max(0,Math.min(1,e||0))}function DI(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ZL(tI,bI,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:mI,formatHex:mI,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return MI(this).formatHsl()},formatRgb:gI,toString:gI}),ZL(EI,SI,eI(tI,{brighter(e){return e=null==e?rI:Math.pow(rI,e),new EI(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?nI:Math.pow(nI,e),new EI(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new EI(kI(this.r),kI(this.g),kI(this.b),RI(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:CI,formatHex:CI,formatHex8:function(){return`#${LI(this.r)}${LI(this.g)}${LI(this.b)}${LI(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:wI,toString:wI})),ZL(_I,(function(e,t,n,r){return 1===arguments.length?MI(e):new _I(e,t,n,null==r?1:r)}),eI(tI,{brighter(e){return e=null==e?rI:Math.pow(rI,e),new _I(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?nI:Math.pow(nI,e),new _I(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new EI(DI(e>=240?e-240:e+120,o,r),DI(e,o,r),DI(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new _I(AI(this.h),PI(this.s),PI(this.l),RI(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=RI(this.opacity);return`${1===e?"hsl(":"hsla("}${AI(this.h)}, ${100*PI(this.s)}%, ${100*PI(this.l)}%${1===e?")":`, ${e})`}`}}));const TI=Math.PI/180,OI=180/Math.PI,NI=.96422,qI=1,FI=.82521,zI=4/29,jI=6/29,$I=3*jI*jI,BI=jI*jI*jI;function HI(e){if(e instanceof WI)return new WI(e.l,e.a,e.b,e.opacity);if(e instanceof XI)return QI(e);e instanceof EI||(e=xI(e));var t,n,r=YI(e.r),o=YI(e.g),i=YI(e.b),a=GI((.2225045*r+.7168786*o+.0606169*i)/qI);return r===o&&o===i?t=n=a:(t=GI((.4360747*r+.3850649*o+.1430804*i)/NI),n=GI((.0139322*r+.0971045*o+.7141733*i)/FI)),new WI(116*a-16,500*(t-a),200*(a-n),e.opacity)}function WI(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function GI(e){return e>BI?Math.pow(e,1/3):e/$I+zI}function VI(e){return e>jI?e*e*e:$I*(e-zI)}function UI(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function YI(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function KI(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof XI)return new XI(e.h,e.c,e.l,e.opacity);if(e instanceof WI||(e=HI(e)),0===e.a&&0===e.b)return new XI(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*OI;return new XI(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new XI(e,t,n,null==r?1:r)}function XI(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function QI(e){if(isNaN(e.h))return new WI(e.l,0,0,e.opacity);var t=e.h*TI;return new WI(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ZL(WI,(function(e,t,n,r){return 1===arguments.length?HI(e):new WI(e,t,n,null==r?1:r)}),eI(tI,{brighter(e){return new WI(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new WI(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new EI(UI(3.1338561*(t=NI*VI(t))-1.6168667*(e=qI*VI(e))-.4906146*(n=FI*VI(n))),UI(-.9787684*t+1.9161415*e+.033454*n),UI(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),ZL(XI,KI,eI(tI,{brighter(e){return new XI(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new XI(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return QI(this).rgb()}}));const JI=(e,t)=>{const n=KI(e),r=n.l<70;return 0===n.opacity?(n.opacity=t.opacity,n.toString()):r?n.brighter(t.brighter).toString():n.darker(t.darker).toString()},ZI={background:JL.SELECTED,color:JL.WHITE},eM=({theme:e,flags:t})=>{if(!t.isEnabled("PS_22149_THEME_SELECTION_COLORS"))return ZI;const n=e.getStyle("","","dataColors.selected")||ZI.background,r=function(e,t){var n=Mt("#FFFFFF"),r=Mt(e),o=Mt(t);if(r.isInvalid()||o.isInvalid()||r.getAlpha()<1||o.getAlpha()<1)return t;var i=_t(n,r),a=_t(o,r),l=i>a||i>4.5;return!l&&a>3?t:l?"#FFFFFF":"#000000"}(n,JL.TEXT);return{background:n,color:r}},tM=e=>{if(e){const t=SI(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},nM=e=>!!e&&0===SI(e).opacity,rM=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,oM=e=>{const t=rM.exec(e);if(t){const[,e,n,r,o]=t;return SI(+n,+r,+o,+e/255)}return SI(e)},iM=e=>{const t=oM(e);return Number.isNaN(t.r)?null:t.toString()},aM=e=>{e.stopPropagation(),e.preventDefault()},lM="#grid",sM=(e,t)=>{const n=null==t?void 0:t.closest(e);return n&&window.getComputedStyle(n).backgroundColor},uM=(e,t,n,r,o)=>{const i=sM(".qv-object .qv-inner-object",n),a=sM(".qv-panel-sheet",n),l=sM(lM,n),s=null!=l?l:a,u=(e=>{var t,n,r,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(n=l.bgColor)||void 0===n?void 0:n.colorExpression,u=null==l||null===(r=l.bgColor)||void 0===r||null===(r=r.color)||void 0===r?void 0:r.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return iM(s);if("none"===u)return"transparent";if(void 0===u)return;const c=oM(u);return c.opacity=null!==(i=null==l||null===(a=l.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.opacity,c.toString()})(e),c=null==r?void 0:r(t),d=null==o?void 0:o(t),p=c||i||d,f=nM(p),h=tM(f?s:p),m=((e,t,n)=>e&&!nM(e)?e:nM(t)?n&&!nM(n)?n:JL.WHITE:t)(u,p,s);return{color:p,headerColor:m,isDark:h}},cM=(t,n,r,o)=>{const i=e.useTheme(),a=((t,n={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,o]=e.useState([]);return e.useEffect((()=>{let e;return t&&(e=new MutationObserver((e=>{o(e)})),e.observe(t,n)),()=>{var t;null===(t=e)||void 0===t||t.disconnect()}}),[t,n]),r})(null==n?void 0:n.closest(lM),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return e.useMemo((()=>({...i,background:uM(t,i,n,r,o)})),[i.name(),n,r,o,t,a])};function dM(t,n){const r=e.useMemo((()=>({isLoading:!0})),n),[o,i]=e.usePromise((async()=>{try{return await t()}finally{r.isLoading=!1}}),n);return[o,r.isLoading,i]}const pM=3,fM="N";function hM(e,t,n){let r=0,o=e.length;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=o;){const i=Math.floor((r+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=n(a),u=n(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?r=i+1:o=i}return null}function mM({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=pM}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=So.useMemo((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const a=$n(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=$n((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,o=e;do{r+=1,o=hM(o,t,l)}while(null!==o&&r<i);return r}),(({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a(fM).width*e,estimateLineCount:s}}),[n,r,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var gM,bM=RC;gM=bM.createRoot,bM.hydrateRoot;function vM(e,t){const[n,r]=So.useState(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}var yM={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_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const xM=({translator:e})=>(So.useMemo((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(yM).forEach((t=>{e.add(yM[t])}))}}(e)),[e]),e),SM=document.createElement("textarea");function EM(e){SM.value=e,document.body.appendChild(SM),SM.select(),SM.setSelectionRange(0,SM.value.length),document.execCommand("copy"),document.body.removeChild(SM)}SM.style.position="absolute",SM.style.left="-9999px",SM.setAttribute("readonly","");function CM(){null===e.onContextMenu||void 0===e.onContextMenu||e.onContextMenu(((e,t)=>{const n=t.target,r=null==n?void 0:n.closest(`.${Je}`);null!=r&&r.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{(e=>{var t;const n=e.title;n&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(n).catch((()=>EM(n))):EM(n))})(r)}})}))}var wM="$$material";const RM=["values","unit","step"],kM=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)=>Ir({},e,{[t.key]:t.val})),{})};function LM(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Or(e,RM),i=kM(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Ir({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:n},o)}var IM={borderRadius:4};function MM(e,t){return t?ts(e,t,{clone:!1}):e}const _M={xs:0,sm:600,md:900,lg:1200,xl:1536},AM={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${_M[e]}px)`};function PM(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||AM;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||AM;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||_M).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function DM(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function TM(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:DM(e,n)||r,t&&(o=t(o,r,e)),o}function OM(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=DM(e.theme,r)||{};return PM(e,i,(e=>{let r=TM(a,o,e);return e===r&&"string"==typeof e&&(r=TM(a,o,`${t}${"default"===e?"":Ls(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const NM={m:"margin",p:"padding"},qM={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},FM={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},zM=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!FM[e])return[e];e=FM[e]}const[t,n]=e.split(""),r=NM[t],o=qM[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),jM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],$M=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function BM(e,t,n,r){var o;const i=null!=(o=DM(e,t,!1))?o:n;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 HM(e){return BM(e,"spacing",8)}function WM(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function GM(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=WM(t,n),e)),{})}(zM(n),r);return PM(e,e[n],o)}function VM(e,t){const n=HM(e.theme);return Object.keys(e).map((r=>GM(e,t,r,n))).reduce(MM,{})}function UM(e){return VM(e,jM)}function YM(e){return VM(e,$M)}function KM(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?MM(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function XM(e){return"number"!=typeof e?e:`${e}px solid`}function QM(e,t){return OM({prop:e,themeKey:"borders",transform:t})}UM.propTypes={},UM.filterProps=jM,YM.propTypes={},YM.filterProps=$M;const JM=QM("border",XM),ZM=QM("borderTop",XM),e_=QM("borderRight",XM),t_=QM("borderBottom",XM),n_=QM("borderLeft",XM),r_=QM("borderColor"),o_=QM("borderTopColor"),i_=QM("borderRightColor"),a_=QM("borderBottomColor"),l_=QM("borderLeftColor"),s_=QM("outline",XM),u_=QM("outlineColor"),c_=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=BM(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:WM(t,e)});return PM(e,e.borderRadius,n)}return null};c_.propTypes={},c_.filterProps=["borderRadius"],KM(JM,ZM,e_,t_,n_,r_,o_,i_,a_,l_,c_,s_,u_);const d_=e=>{if(void 0!==e.gap&&null!==e.gap){const t=BM(e.theme,"spacing",8),n=e=>({gap:WM(t,e)});return PM(e,e.gap,n)}return null};d_.propTypes={},d_.filterProps=["gap"];const p_=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=BM(e.theme,"spacing",8),n=e=>({columnGap:WM(t,e)});return PM(e,e.columnGap,n)}return null};p_.propTypes={},p_.filterProps=["columnGap"];const f_=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=BM(e.theme,"spacing",8),n=e=>({rowGap:WM(t,e)});return PM(e,e.rowGap,n)}return null};f_.propTypes={},f_.filterProps=["rowGap"];function h_(e,t){return"grey"===t?t:e}KM(d_,p_,f_,OM({prop:"gridColumn"}),OM({prop:"gridRow"}),OM({prop:"gridAutoFlow"}),OM({prop:"gridAutoColumns"}),OM({prop:"gridAutoRows"}),OM({prop:"gridTemplateColumns"}),OM({prop:"gridTemplateRows"}),OM({prop:"gridTemplateAreas"}),OM({prop:"gridArea"}));function m_(e){return e<=1&&0!==e?100*e+"%":e}KM(OM({prop:"color",themeKey:"palette",transform:h_}),OM({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:h_}),OM({prop:"backgroundColor",themeKey:"palette",transform:h_}));const g_=OM({prop:"width",transform:m_}),b_=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||_M[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:m_(t)}};return PM(e,e.maxWidth,t)}return null};b_.filterProps=["maxWidth"];const v_=OM({prop:"minWidth",transform:m_}),y_=OM({prop:"height",transform:m_}),x_=OM({prop:"maxHeight",transform:m_}),S_=OM({prop:"minHeight",transform:m_});OM({prop:"size",cssProperty:"width",transform:m_}),OM({prop:"size",cssProperty:"height",transform:m_});KM(g_,b_,v_,y_,x_,S_,OM({prop:"boxSizing"}));var E_={border:{themeKey:"borders",transform:XM},borderTop:{themeKey:"borders",transform:XM},borderRight:{themeKey:"borders",transform:XM},borderBottom:{themeKey:"borders",transform:XM},borderLeft:{themeKey:"borders",transform:XM},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:XM},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:c_},color:{themeKey:"palette",transform:h_},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:h_},backgroundColor:{themeKey:"palette",transform:h_},p:{style:YM},pt:{style:YM},pr:{style:YM},pb:{style:YM},pl:{style:YM},px:{style:YM},py:{style:YM},padding:{style:YM},paddingTop:{style:YM},paddingRight:{style:YM},paddingBottom:{style:YM},paddingLeft:{style:YM},paddingX:{style:YM},paddingY:{style:YM},paddingInline:{style:YM},paddingInlineStart:{style:YM},paddingInlineEnd:{style:YM},paddingBlock:{style:YM},paddingBlockStart:{style:YM},paddingBlockEnd:{style:YM},m:{style:UM},mt:{style:UM},mr:{style:UM},mb:{style:UM},ml:{style:UM},mx:{style:UM},my:{style:UM},margin:{style:UM},marginTop:{style:UM},marginRight:{style:UM},marginBottom:{style:UM},marginLeft:{style:UM},marginX:{style:UM},marginY:{style:UM},marginInline:{style:UM},marginInlineStart:{style:UM},marginInlineEnd:{style:UM},marginBlock:{style:UM},marginBlockStart:{style:UM},marginBlockEnd:{style:UM},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:d_},rowGap:{style:f_},columnGap:{style:p_},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:m_},maxWidth:{style:b_},minWidth:{transform:m_},height:{transform:m_},maxHeight:{transform:m_},minHeight:{transform:m_},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function C_(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[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=DM(n,l)||{};if(u)return u(o);return PM(o,t,(t=>{let n=TM(c,s,t);return t===n&&"string"==typeof t&&(n=TM(c,s,`${e}${"default"===t?"":Ls(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:E_;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=MM(s,e(n,o,i,a));else{const e=PM({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=MM(s,e):s[n]=t({sx:o,theme:i})}else s=MM(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const w_=C_();w_.filterProps=["sx"];var R_=w_;function k_(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}const L_=["breakpoints","palette","spacing","shape"];function I_(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Or(e,L_),l=LM(n),s=function(e=8){if(e.mui)return e;const t=HM({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=ts({breakpoints:l,direction:"ltr",components:{},palette:Ir({mode:"light"},r),spacing:s,shape:Ir({},IM,i)},a);return u.applyStyles=k_,u=t.reduce(((e,t)=>ts(e,t)),u),u.unstable_sxConfig=Ir({},E_,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return R_({sx:e,theme:this})},u}var M_=Object.freeze({__proto__:null,default:I_,private_createBreakpoints:LM,unstable_applyStyles:k_});function __(e=null){const t=So.useContext(Nl);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const A_=I_();function P_(e=A_){return __(e)}const D_=["sx"],T_=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:E_;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function O_(e){const{sx:t}=e,n=Or(e,D_),{systemProps:r,otherProps:o}=T_(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Zl(n)?Ir({},r,n):r}:Ir({},r,t),Ir({},o,{sx:i})}var N_=Object.freeze({__proto__:null,default:R_,extendSxProp:O_,unstable_createStyleFunctionSx:C_,unstable_defaultSxConfig:E_});const q_=["className","component"];function F_(e){if(e.type)return e;if("#"===e.charAt(0))return F_(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(ai(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=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(r))throw new Error(ai(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function z_(e,t){return e=F_(e),t=function(e,t=0,n=1){return ou(e,t,n)}(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:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}var j_=So.createContext(null);function $_(){return So.useContext(j_)}var B_="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function H_(e){const{children:t,theme:n}=e,r=$_(),o=So.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Ir({},e,t)}(r,n);return null!=e&&(e[B_]=null!==r),e}),[n,r]);return Lc.jsx(j_.Provider,{value:o,children:t})}const W_=["value"],G_=So.createContext();function V_(e){let{value:t}=e,n=Or(e,W_);return Lc.jsx(G_.Provider,Ir({value:null==t||t},n))}const U_=So.createContext(void 0);function Y_({value:e,children:t}){return Lc.jsx(U_.Provider,{value:e,children:t})}function K_({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Qs(o.defaultProps,r):o.styleOverrides||o.variants?r:Qs(o,r)}({props:e,name:t,theme:{components:So.useContext(U_)}})}const X_={};function Q_(e,t,n,r=!1){return So.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Ir({},t,{[e]:i}):i;return r?()=>a:a}return Ir({},t,e?{[e]:n}:n)}),[e,t,n,r])}function J_(e){const{children:t,theme:n,themeId:r}=e,o=__(X_),i=$_()||X_,a=Q_(r,o,n),l=Q_(r,i,n,!0),s="rtl"===a.direction;return Lc.jsx(H_,{theme:l,children:Lc.jsx(Nl.Provider,{value:a,children:Lc.jsx(V_,{value:s,children:Lc.jsx(Y_,{value:null==a?void 0:a.components,children:t})})})})}var Z_={},eA={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(eA);var tA=eA.exports,nA=r(li),rA=r(iu),oA=tA;Object.defineProperty(Z_,"__esModule",{value:!0});var iA=Z_.alpha=vA;Z_.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=fA(e),a=fA(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return mA({type:"rgb",values:l})},Z_.colorChannel=void 0;var aA=Z_.darken=yA;Z_.decomposeColor=fA,Z_.emphasize=SA;var lA=Z_.getContrastRatio=function(e,t){const n=bA(e),r=bA(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};Z_.getLuminance=bA,Z_.hexToRgb=pA,Z_.hslToRgb=gA;var sA=Z_.lighten=xA;Z_.private_safeAlpha=function(e,t,n){try{return vA(e,t)}catch(t){return e}},Z_.private_safeColorChannel=void 0,Z_.private_safeDarken=function(e,t,n){try{return yA(e,t)}catch(t){return e}},Z_.private_safeEmphasize=function(e,t,n){try{return SA(e,t)}catch(t){return e}},Z_.private_safeLighten=function(e,t,n){try{return xA(e,t)}catch(t){return e}},Z_.recomposeColor=mA,Z_.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=fA(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 uA=oA(nA),cA=oA(rA);function dA(e,t=0,n=1){return(0,cA.default)(e,t,n)}function pA(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function fA(e){if(e.type)return e;if("#"===e.charAt(0))return fA(pA(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,uA.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=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(r))throw new Error((0,uA.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const hA=e=>{const t=fA(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};Z_.colorChannel=hA;function mA(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function gA(e){e=fA(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/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])),mA({type:l,values:s})}function bA(e){let t="hsl"===(e=fA(e)).type||"hsla"===e.type?fA(gA(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 vA(e,t){return e=fA(e),t=dA(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,mA(e)}function yA(e,t){if(e=fA(e),t=dA(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 n=0;n<3;n+=1)e.values[n]*=1-t;return mA(e)}function xA(e,t){if(e=fA(e),t=dA(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return mA(e)}function SA(e,t=.15){return bA(e)>.5?yA(e,t):xA(e,t)}Z_.private_safeColorChannel=(e,t)=>{try{return hA(e)}catch(t){return e}};var EA={black:"#000",white:"#fff"};var CA={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var wA={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var RA={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var kA={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var LA={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var IA={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var MA={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const _A=["mode","contrastThreshold","tonalOffset"],AA={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:EA.white,default:EA.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}},PA={text:{primary:EA.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:EA.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 DA(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=sA(e.main,o):"dark"===t&&(e.dark=aA(e.main,i)))}function TA(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Or(e,_A),i=e.primary||function(e="light"){return"dark"===e?{main:LA[200],light:LA[50],dark:LA[400]}:{main:LA[700],light:LA[400],dark:LA[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:wA[200],light:wA[50],dark:wA[400]}:{main:wA[500],light:wA[300],dark:wA[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:RA[500],light:RA[300],dark:RA[700]}:{main:RA[700],light:RA[400],dark:RA[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:IA[400],light:IA[300],dark:IA[700]}:{main:IA[700],light:IA[500],dark:IA[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:MA[400],light:MA[300],dark:MA[700]}:{main:MA[800],light:MA[500],dark:MA[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:kA[400],light:kA[300],dark:kA[700]}:{main:"#ed6c02",light:kA[500],dark:kA[900]}}(t);function d(e){return lA(e,PA.text.primary)>=n?PA.text.primary:AA.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Ir({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(ai(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(ai(12,t?` (${t})`:"",JSON.stringify(e.main)));return DA(e,"light",o,r),DA(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:PA,light:AA};return ts(Ir({common:Ir({},EA),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:CA,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const OA=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const NA={textTransform:"uppercase"},qA='"Roboto", "Helvetica", "Arial", sans-serif';function FA(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=qA,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Or(n,OA),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,n,o,i)=>{return Ir({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===qA?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,NA),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,NA),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ts(Ir({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function zA(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var jA=["none",zA(0,2,1,-1,0,1,1,0,0,1,3,0),zA(0,3,1,-2,0,2,2,0,0,1,5,0),zA(0,3,3,-2,0,3,4,0,0,1,8,0),zA(0,2,4,-1,0,4,5,0,0,1,10,0),zA(0,3,5,-1,0,5,8,0,0,1,14,0),zA(0,3,5,-1,0,6,10,0,0,1,18,0),zA(0,4,5,-2,0,7,10,1,0,2,16,1),zA(0,5,5,-3,0,8,10,1,0,3,14,2),zA(0,5,6,-3,0,9,12,1,0,3,16,2),zA(0,6,6,-3,0,10,14,1,0,4,18,3),zA(0,6,7,-4,0,11,15,1,0,4,20,3),zA(0,7,8,-4,0,12,17,2,0,5,22,4),zA(0,7,8,-4,0,13,19,2,0,5,24,4),zA(0,7,9,-4,0,14,21,2,0,5,26,4),zA(0,8,9,-5,0,15,22,2,0,6,28,5),zA(0,8,10,-5,0,16,24,2,0,6,30,5),zA(0,8,11,-5,0,17,26,2,0,6,32,5),zA(0,9,11,-5,0,18,28,2,0,7,34,6),zA(0,9,12,-6,0,19,29,2,0,7,36,6),zA(0,10,13,-6,0,20,31,3,0,8,38,7),zA(0,10,13,-6,0,21,33,3,0,8,40,7),zA(0,10,14,-6,0,22,35,3,0,8,42,7),zA(0,11,14,-7,0,23,36,3,0,9,44,8),zA(0,11,15,-7,0,24,38,3,0,9,46,8)];const $A=["duration","easing","delay"],BA={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)"},HA={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function WA(e){return`${Math.round(e)}ms`}function GA(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function VA(e){const t=Ir({},BA,e.easing),n=Ir({},HA,e.duration);return Ir({getAutoHeightDuration:GA,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Or(r,$A),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:WA(o)} ${i} ${"string"==typeof a?a:WA(a)}`)).join(",")}},e,{easing:t,duration:n})}var UA={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const YA=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function KA(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Or(e,YA);if(e.vars)throw new Error(ai(18));const l=TA(r),s=I_(e);let u=ts(s,{mixins:(c=s.breakpoints,d=n,Ir({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:jA.slice(),typography:FA(l,i),transitions:VA(o),zIndex:Ir({},UA)});var c,d;return u=ts(u,a),u=t.reduce(((e,t)=>ts(e,t)),u),u.unstable_sxConfig=Ir({},E_,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return R_({sx:e,theme:this})},u}var XA=KA();function QA(){const e=P_(XA);return e[wM]||e}var JA,ZA={},eP={exports:{}};var tP,nP={exports:{}};var rP=r(Jl),oP=r(rs),iP=r(Is),aP=r(ks),lP=r(M_),sP=r(N_),uP=tA;Object.defineProperty(ZA,"__esModule",{value:!0});var cP=ZA.default=function(e={}){const{themeId:t,defaultTheme:n=EP,rootShouldForwardProp:r=SP,slotShouldForwardProp:o=SP}=e,i=e=>(0,gP.default)((0,dP.default)({},e,{theme:wP((0,dP.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,fP.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=RP(CP(s))}=a,p=(0,pP.default)(a,yP),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=c||!1;let m=SP;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,fP.default)(e,(0,dP.default)({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,hP.isPlainObject)(e)?r=>kP(e,(0,dP.default)({},r,{theme:wP({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...o)=>{let a=b(r);const s=o?o.map(b):[];l&&d&&s.push((e=>{const r=wP((0,dP.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=kP(n,(0,dP.default)({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=wP((0,dP.default)({},e,{defaultTheme:n,themeId:t}));return kP({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,dP.default)({},e,{theme:o}))})),h||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};ZA.shouldForwardProp=SP,ZA.systemDefaultTheme=void 0;var dP=uP((JA||(JA=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 n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}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}(eP)),eP.exports)),pP=uP((tP||(tP=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(nP)),nP.exports)),fP=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=xP(t);if(n&&n.has(e))return n.get(e);var r={__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(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(rP),hP=oP;uP(iP),uP(aP);var mP=uP(lP),gP=uP(sP);const bP=["ownerState"],vP=["variants"],yP=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function xP(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(xP=function(e){return e?n:t})(e)}function SP(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const EP=ZA.systemDefaultTheme=(0,mP.default)(),CP=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function wP({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function RP(e){return e?(t,n)=>n[e]:null}function kP(e,t){let{ownerState:n}=t,r=(0,pP.default)(t,bP);const o="function"==typeof e?e((0,dP.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>kP(e,(0,dP.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,pP.default)(o,vP);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,dP.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,dP.default)({ownerState:n},r,n)):e.style))})),t}return o}var LP=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var IP=cP({themeId:wM,defaultTheme:XA,rootShouldForwardProp:LP});const MP=["theme"];function _P(e){let{theme:t}=e,n=Or(e,MP);const r=t[wM];return Lc.jsx(J_,Ir({},n,{themeId:r?wM:void 0,theme:r||t}))}var AP=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};const PP={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},DP={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},TP=Kd("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...PP},"&::-moz-range-track":{...PP},"&::-ms-track":{...PP},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...DP},"&::-moz-range-thumb":{...DP},"&::-ms-thumb":{...DP},"&: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"}}))),OP=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u,accessibilityRelatedArgs:c})=>{const d=xM({translator:c.translator}),p=So.useRef({initWidth:e,columnWidth:e,initX:0}),f=n?0:1,h=r&&!u,m={left:h?p.current.columnWidth-f:"100%"},g=t=>{p.current={initWidth:e,columnWidth:e,initX:null!=t?t:p.current.initX}};vM((()=>h&&g()),[e]);const b=e=>{const t=Math.max(e,tt.PixelsMin);p.current.columnWidth=t,i(t)},v=()=>{if(p.current.columnWidth!==p.current.initWidth){const e={type:nt.Pixels,pixels:p.current.columnWidth};a(e)}else null==s||s(!1)},y=e=>{const t=p.current.initWidth+e.clientX-p.current.initX;b(t)},x=e=>{aM(e),document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",x),v()},S=e=>{const t=p.current.initWidth+e.touches[0].clientX-p.current.initX;b(t)},E=e=>{aM(e),document.removeEventListener("touchmove",S),document.removeEventListener("touchend",E),v()},C=!r&&l?e=>{if(e.key===Ze.LEFT||e.key===Ze.RIGHT){aM(e);const t=5,n=e.key===Ze.LEFT?-t:t;b(p.current.columnWidth+n)}else e.key===Ze.SPACE||e.key===Ze.ENTER?(aM(e),l(e),v()):e.key===Ze.ESC&&(aM(e),l(e),b(p.current.initWidth))}:void 0,w=d.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return Eo.createElement(TP,{style:m,key:t,hoverColor:o,isLastColumn:n,className:et,"data-testid":et,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",y),document.addEventListener("mouseup",x),null==s||s(!0),g(e.clientX)},onDoubleClick:()=>a({type:nt.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",S),document.addEventListener("touchend",E),null==s||s(!0),g(e.touches[0].clientX))},onKeyDown:C,onBlur:l,onFocus:()=>g(),type:"range",tabIndex:"-1",max:tt.PixelsMax,"aria-label":w,"aria-valuemin":tt.PixelsMin,"aria-valuemax":tt.PixelsMax,"aria-valuenow":Number(e.toFixed(1))})};function NP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qP=(e,t)=>Eo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){NP(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Eo.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),FP=So.forwardRef(qP);function zP(){return zP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zP.apply(null,arguments)}const jP=Kd(RR,{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"}))),$P=Kd(FP,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),BP=Kd(nL)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),HP=Kd(KR)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),WP=Kd(lL)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),GP=Kd(lL,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:n})=>({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:""+(n?"rgba(0, 0, 0, 0.05)":"transparent")}))),VP=Kd("div")((({theme:e})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),UP=Kd("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),YP=Kd(kw)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),KP=Kd(Mk)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function XP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const QP=(e,t)=>Eo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){XP(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Eo.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),JP=So.forwardRef(QP);let ZP={};const eD=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=So.useState(!1),p=So.useRef(null),f=So.useCallback((e=>{e.stopPropagation(),d(!1)}),[d]);return Eo.createElement(Eo.Fragment,null,Eo.createElement(GP,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),ZP={}),null!=a&&a.length&&(d(!0),ZP[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&Eo.createElement(VP,null),Eo.createElement(UP,null,Eo.createElement(KP,null,Eo.createElement(o,null)),Eo.createElement(YP,{variant:"body2"},r)),null!=a&&a.length?Eo.createElement(JP,null):null),(null==a?void 0:a.length)&&Eo.createElement(rD,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(h=a,m=ZP,h.map((e=>e.map((e=>{var t;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(t=e.items)||void 0===t?void 0:t.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(m).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var h,m},tD=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&Eo.createElement(WP,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>Eo.createElement(eD,zP({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),nD={appear:200,enter:200,exit:100},rD=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>r.length?Eo.createElement(BP,zP({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,transitionDuration:nD,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[tD({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?Eo.createElement(HP,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:r,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,oD={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},iD=(e,t)=>e.some((e=>t[e]>0));function aD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const lD=(e,t)=>Eo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){aD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Eo.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"})),sD=So.forwardRef(lD);function uD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const cD=(e,t)=>Eo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){uD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Eo.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"})),dD=So.forwardRef(cD);function pD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fD=(e,t)=>Eo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){pD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Eo.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"})),hD=So.forwardRef(fD);function mD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gD=(e,t)=>Eo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){mD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Eo.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"})),bD=So.forwardRef(gD);function vD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const yD=(e,t)=>Eo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){vD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Eo.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"})),xD=So.forwardRef(yD);function SD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ED=(e,t)=>Eo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){SD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Eo.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"})),CD=So.forwardRef(ED);function wD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const RD=(e,t)=>Eo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){wD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Eo.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"})),kD=So.forwardRef(RD);function LD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ID=(e,t)=>Eo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){LD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Eo.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"})),MD=So.forwardRef(ID);function _D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const AD=(e,t)=>Eo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_D(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Eo.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"})),PD=So.forwardRef(AD);function DD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const TD=(e,t)=>Eo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){DD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Eo.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"})),OD=So.forwardRef(TD);let ND=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const qD=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c})=>{const d=[];if(n[ND.SORTING]){const{isActivelySorted:n,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:n,isSortedByFirstMeasure:r})=>{let o=!n&&!e||"D"===t,i=!n&&!e||"A"===t;return r&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);d.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")),r(!1)},icon:sD,enabled:a,isActive:!!n&&"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")),r(!1)},icon:bD,enabled:l,isActive:!!n&&"D"===i,autoFocus:!a&&l}]}])}if(e.isDim&&null!=i&&i.select){const e=[];n[ND.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:xD,enabled:!0}]}]),n[ND.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:OD,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAll())},icon:CD,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectPossible())},icon:PD,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAlternative())},icon:kD,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectExcluded())},icon:MD,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.clear())},icon:dD,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&d.push(...e)}return n[ND.ADJUST_HEADER_SIZE]&&d.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==c||c(u)},icon:hD,enabled:!0}]}]),d},FD=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const h=xM({translator:o}),{headTextAlign:m,qLibraryId:g,fieldId:b}=r,{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:S}=(({headerData:e,app:t})=>{const[n,r]=So.useState(null),[o,i]=So.useState(oD);return So.useEffect((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:So.useCallback((()=>i(oD)),[]),updateSelectionActionsEnabledStatus:So.useCallback((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:iD(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:iD(["qSelected"],n.qStateCounts),canSelectPossible:iD(["qOption"],n.qStateCounts),canSelectAlternative:iD(["qAlternative"],n.qStateCounts),canSelectExcluded:iD(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),E=So.useCallback((()=>{const e=g?{qLibraryId:g,type:"dimension"}:b;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:n}=c;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sortCriteria:c.sortCriteria})}}),[c,b,g]);So.useEffect((()=>{e||(x(),null!=d&&d.model&&d.model.getLayout().then((e=>{S(e)})).catch((e=>console.error(e))))}),[e,x,S,null==d?void 0:d.model]);const C=So.useCallback((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?Eo.createElement(jP,{rightAligned:"right"===m,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper"},s&&Eo.createElement($P,{height:Xe,className:Qe,"data-testid":Qe,isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},Eo.createElement(FP,null)),Eo.createElement(rD,{open:e,anchorEl:n.current,onClose:C,menuGroups:qD({headerData:r,translator:h,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:E,interactions:i,fieldInstance:v,selectionActionsEnabledStatus:y,anchorRef:n,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),handleHeadCellMenuKeyDown:a})):null},zD=e=>e.isDark?{background:e.color,borderColor:JL.DARK_MODE_BORDER,color:JL.DARK_MODE_TEXT,disabledColor:JL.DARK_MODE_DISABLED,iconColor:JL.DARK_MODE_TEXT}:{background:e.color,borderColor:JL.BORDER_MEDIUM,color:JL.TEXT,disabledColor:JL.DISABLED},jD=Kd(RR,{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}`}))),$D=Kd(GL,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),BD=Kd(NR,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)}))),HD=Kd(kw)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),WD=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=So.useMemo((()=>zD(r.background)),[r]);if(!n.active)return null;const a=o?Eo.createElement(jD,{footerStyle:i},e):null;return t?kC.createPortal(e,t):a},GD={},VD=So.createContext(GD),UD=()=>So.useContext(VD),YD=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=So.useMemo((()=>zD(p.background)),[p]),v=o?o.getBoundingClientRect().width:h.width,y=xM({translator:d}),x=So.useMemo((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:h,layout:m,footerStyle:b,tabIndex:g,width:v})),[t,n,r,o,i,a,l,s,u,c,y,p,f,h,m,b,g,v]);return Eo.createElement(VD.Provider,{value:x},e)};let KD=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),XD=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 QD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const JD=(e,t)=>Eo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){QD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Eo.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),ZD=So.forwardRef(JD);function eT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const tT=(e,t)=>Eo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){eT(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Eo.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),nT=So.forwardRef(tT);function rT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const oT=(e,t)=>Eo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){rT(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Eo.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),iT=So.forwardRef(oT),aT={FirstPage:nT,PreviousPage:ZD,NextPage:JP,LastPage:iT,FirstPageRTL:iT,PreviousPageRTL:JP,NextPageRTL:ZD,LastPageRTL:nT},lT=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=UD(),u=aT[`${n}${"rtl"===r?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},sT=()=>{const{pageInfo:e,width:t}=UD(),n=0===e.page,{IconComponent:r,styledProps:o}=lT({type:KD.FirstPage,disabledCondition:n,pageNumber:0});return t<=XD.FirstPage?null:Eo.createElement(BD,o,Eo.createElement(r,{height:Xe}))},uT=(e,t,n=!1)=>{n&&e.key===Ze.TAB&&!e.shiftKey&&(aM(e),((e,t,n)=>{var r,o,i,a;const l=null!==(r=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!==r?r: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,n)})(e.target,t,!1))},cT=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=UD(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=lT({type:KD.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>uT(e,t,r):null;return o<=XD.LastPage?null:Eo.createElement(BD,zP({},l,{onKeyDown:s}),Eo.createElement(a,{height:Xe}))},dT=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=UD(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=lT({type:KD.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>XD.FirstPage&&o>XD.LastPage)&&t.enabled?e=>uT(e,t,r):null;return Eo.createElement(BD,zP({},l,{onKeyDown:s}),Eo.createElement(a,{height:Xe}))},pT=()=>{const{pageInfo:e}=UD(),t=0===e.page,{IconComponent:n,styledProps:r}=lT({type:KD.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return Eo.createElement(BD,r,Eo.createElement(n,{height:Xe}))},fT=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=UD(),{page:o,rowsPerPage:i}=n;if(t<=XD.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return Eo.createElement(HD,{variant:"caption"},a)},hT=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=UD(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return Eo.createElement(Eo.Fragment,null,Eo.createElement(HD,{variant:"caption",id:d},u,":"),Eo.createElement($D,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},mT=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=UD();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>XD.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=Eo.createElement(Eo.Fragment,null,t.rowsPerPageOptions.map((e=>Eo.createElement("option",{key:e,value:e},e))));return Eo.createElement(hT,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},gT=1e3,bT="…",vT=({totalPages:e,page:t})=>{const n=Math.min(e,gT),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-gT):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return Eo.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(Eo.createElement("option",{key:"startMoreOptions",value:bT,disabled:!0},bT)),o<e-1&&a.push(Eo.createElement("option",{key:"endMoreOptions",value:bT,disabled:!0},bT)),Eo.createElement(Eo.Fragment,null,a)},yT=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=UD(),{page:o}=e;if(t<=XD.SelectPage)return null;const i=Eo.createElement(vT,{totalPages:n,page:o});return Eo.createElement(hT,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})},xT=e=>Eo.createElement(YD,e,Eo.createElement(mT,null),Eo.createElement(yT,null),Eo.createElement(fT,null),Eo.createElement(sT,null),Eo.createElement(pT,null),Eo.createElement(dT,null),Eo.createElement(cT,null));var ST=So.memo(xT);const ET=e=>Eo.createElement(WD,e,Eo.createElement(ST,e)),CT={},wT=So.createContext(CT),RT=()=>So.useContext(wT),kT=({children:e,model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,env:l,downloadService:s,translator:u})=>{const c=So.useMemo((()=>({model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,env:l,downloadService:s,translator:u})),[n,r,t,o,i,a,l,s,u]);return Lc.jsx(wT.Provider,{value:c,children:e})},LT=e=>{const{text:t,fontFamily:n,fontSize:r,justifyContent:o,alignItems:i,height:a}=(({layoutService:e})=>{var t;const{theme:n,translator:r}=RT(),o=null!==(t=n.getStyle("","","fontFamily"))&&void 0!==t?t:rr;return e.hasData?e.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%"}})(e);return void 0===t?null:Lc.jsx("div",{style:{display:"flex",justifyContent:o,alignItems:i,width:"100%",height:a},children:Lc.jsx("span",{style:{...fr,fontFamily:n,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:t})})},IT={},MT=So.createContext(IT),_T=()=>So.useContext(MT),AT=({children:e,styleService:t})=>Lc.jsx(MT.Provider,{value:t,children:e}),PT=21,DT=20,TT=DT,OT=16+lr+1,NT=.75,qT=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===qe.Image},FT="/qHyperCubeDef",zT=-1,jT="PSEUDO-DIM",$T=e=>void 0===e?or:e,BT=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,HT=e=>BT(e,tt.PixelsDefault),WT=(e,t)=>BT(e,tt.PercentageDefault)*t/100,GT=(e,t,n)=>{switch(null==t?void 0:t.type){case nt.Pixels:return HT(t.pixels);case nt.Percentage:return WT(t.percentage,e);case nt.FitToContent:case nt.Auto:default:return n}},VT=({headers:e,layoutService:t,estimateWidthForDimensionValue:n,shouldConsiderCombinatedLength:r,measureTextForHeader:o,longestMeasureValuePossible:i})=>e.reduce(((e,a,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:s}},isFullyExpanded:u}=t,{id:c,colIdx:d,qApprMaxGlyphCount:p,isLeftDimension:f}=a;if(!f)return e+0;if(c===jT)return e+0;const h=n(p),m=!u&&f&&d<s-1?PT:0;let g=0;if(r&&o&&i){g=o("-")+i}return Math.max(e,24*l+OT+m+h+g)}),0),UT=(e,t,n)=>e.reduce(((e,r)=>{const o=(n?0:1)*OT;return Math.max(e,o+t(r.qFallbackTitle))}),0),YT=(e,t,n,r)=>{const o=100*e/t,i=r*NT*(o/100),a=n*(o/100);return Math.min(a,i)},KT=(e,t,n,r)=>r*(n/100)*(100*e/t/100),XT=(e,t)=>e.some((e=>e>=t*NT)),QT=({layoutService:e,headersData:t,columnWidths:n,tableWidth:r,widthOverride:o,measureTextForHeader:i,estimateWidthForDimensionValue:a,measureTextWidthForMeasuresCombinedWithDimensions:l,translator:s})=>{let u=[];const c=r*NT,d=t.data[t.data.length-1][0],p=Math.min(c,n.at(-1)),f=Math.min(c,VT({headers:d,layoutService:e,estimateWidthForDimensionValue:a})),h=Math.min(c,UT(e.visibleMeasureInfo,i));let m=0;const g=d.findIndex((e=>e.id===jT)),b=(({layoutService:e,measureTextForHeader:t,translator:n,headersData:r})=>{const{type:o}=e.indentModeColumnWidth;return o===nt.Auto&&r.size.y<=1?t(n.get("SNPivotTable.IndentMode.Rows"))+8+OT+16:24})({layoutService:e,measureTextForHeader:i,translator:s,headersData:t});if(e.hasPseudoDimOnLeft)if(0===g){const e=Math.max(p,f,h);u=[Math.max(b,e-p),p]}else{const t=Math.min(c,UT(e.visibleMeasureInfo,l,!0));m=Math.min(c,VT({headers:d.slice(0,g),layoutService:e,estimateWidthForDimensionValue:a,shouldConsiderCombinatedLength:!0,measureTextForHeader:i,longestMeasureValuePossible:t}));const n=Math.max(p,f,m);u=[Math.max(b,n-p),p]}else u=[Math.max(b,f-p),p];const v=Math.min(c,u.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:y}=e;o&&o<=c&&(y.type=nt.Pixels,y.pixels=o);return[nt.Pixels,nt.Percentage].includes(y.type)||XT(u,r)?((e,t,n,r)=>{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=XT(e,n);s===nt.Auto&&d&&(o>i?o-=i:i-=o),s===nt.Pixels&&u&&(o=YT(e[0],l,u,n),i=YT(e[1],l,u,n)),s===nt.Percentage&&c&&(o=KT(e[0],l,c,n),i=KT(e[1],l,c,n));let p=0;i<=r&&(p=o-5,p>0&&(o-=p,i+=p)),p=i-r,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}})(u,y,r,p):{leftGridWidth:v,leftGridColumnWidths:u,leftGridFullWidth:v}};function JT({layoutService:e,tableWidth:t,headersData:n}){const r=t*NT,o=_T(),{translator:i}=RT(),{measureText:a}=mM(o.header),{estimateWidth:l,measureText:s}=mM({...o.dimensionValues,fontWeight:$T(o.dimensionValues.fontWeight)}),{measureText:u}=mM({...o.dimensionValues,...o.measureLabels}),c=So.useCallback(((o,c)=>{const{layout:{qHyperCube:{qNoOfLeftDims:d,topHeadersColumnWidth:p}},visibleMeasureInfo:f,isFullyExpanded:h,isIndentModeEnabled:m,hasPseudoDimOnLeft:g}=e,b=(e=0)=>f.reduce(((n,{qFallbackTitle:r,columnWidth:o})=>{const i=u(r)+OT,a=Math.max(i,e);return Math.max(n,m?a:GT(t,o,a))}),0),v=e=>n.data.reduce(((t,n)=>{const r=n[e];if(!r)return t;if(r.id===jT)return t;const o=(e=>{const{label:t,isLocked:n}=e,r=n?TT:0;return OT+a(t)+DT+r})(r);return Math.max(o,t)}),0);let y=0,x=n.data.at(-1);m&&n.size.x>1&&x&&x[0]&&(x=x[0]);const S=x.map(((i,a)=>{let s=OT;if((!m||m&&1===n.size.x)&&o&&void 0!==c&&c===i.colIdx)s=m?Math.min(r,o):o;else{let r;i.columnWidthLocation===Ve.Pivot?r=m?void 0:p:i.columnWidthLocation===Ve.Dimension&&({columnWidth:r}=i);let o=0;if(i.isLeftDimension)if(i.id===jT)o=b();else{const t=v(a),r=((t,n)=>{const{qApprMaxGlyphCount:r,isLeftDimension:o,dimensionInfoIndex:i}=t,a=e.getDimensionInfo(i);if(qT(a))return tt.PixelsDefault;const s=!h&&o&&n<d-1?PT:0;return OT+l(r)+s})(i,a);o=Math.max(t,r),m&&!g&&a+1===d&&i.columnWidthLocation===Ve.Dimension&&n.size.x>1&&(o=t)}else i.isLeftDimension||(o=v(a),i.columnWidthLocation===Ve.Measures&&(o=b(o)));m&&1===n.size.x&&(r=e.indentModeColumnWidth),s=m&&!g&&n.size.x>1?o:GT(t,r,o)}return y+=s,s}));return m&&n.size.x>1?QT({layoutService:e,headersData:n,columnWidths:S,tableWidth:t,widthOverride:o,measureTextForHeader:a,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:s,translator:i}):{leftGridWidth:Math.min(r,y),leftGridColumnWidths:S,leftGridFullWidth:y}}),[t,n,e,r,a,u,l,s,i]),[d,p]=So.useState(c);vM((()=>{p(c())}),[c]);const f=So.useCallback(((e,t)=>{p(c(e,t))}),[c]);return{...d,overrideLeftGridWidth:f}}function ZT({layoutService:e,tableWidth:t,visibleTopDimensionInfo:n,verticalScrollbarWidth:r,leftGridWidth:o}){const{layout:{qHyperCube:{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:a}},size:l,visibleMeasureInfo:s}=e,u=_T(),{estimateWidth:c,measureText:d}=mM(u.measureValues),{estimateWidth:p}=mM({...u.dimensionValues,fontWeight:$T(u.dimensionValues.fontWeight)}),f=t-o-lr,h=n.at(-1),m=h===zT,g=a.length-i>n.length?PT:0,b=So.useMemo((()=>{const e=m?s:[h],t=l.x/e.length,n=[],r=[];let o=f;const i=(e,r)=>{n[e]=Math.min(tt.PixelsMax,Math.max(tt.PixelsMin,r)),o-=n[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:n,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:u}=e;switch(n){case nt.Pixels:i(t,HT(o));break;case nt.Percentage:i(t,WT(a,f));break;case nt.FitToContent:i(t,((e,t,n)=>n?tt.PixelsDefault:OT+(m?Math.max(c(e),d(t)):Math.max(Math.max(...s.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+g)))(l,u,qT(e)));break;case nt.Auto:default:r.push(t)}}else r.push(t)})),r.length){const e=r.length*t,i=o/e;r.forEach((e=>{n[e]=Math.max(tt.AutoMinPivot,i)}))}return n}),[m,s,h,l.x,f,c,d,p,g]),v=So.useMemo((()=>{if(m){return s.reduce(((e,t,n)=>e+b[n]),0)/s.length}return b[0]}),[m,b,s]),y=parseFloat((r/e.size.x).toFixed(12)),x=So.useCallback((t=>m&&void 0!==t?b[e.getMeasureInfoIndexFromCellIndex(t,!0)]-y:v-y),[m,b,e,v,y]),S=l.x*v;return{rightGridFullWidth:S,rightGridWidth:Math.min(S,f),getRightGridColumnWidth:x}}let eO;const tO=new Uint8Array(16);function nO(){if(!eO&&(eO="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!eO))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return eO(tO)}const rO=[];for(let e=0;e<256;++e)rO.push((e+256).toString(16).slice(1));var oO={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function iO(e,t,n){if(oO.randomUUID&&!t&&!e)return oO.randomUUID();const r=(e=e||{}).random||(e.rng||nO)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return rO[e[t+0]]+rO[e[t+1]]+rO[e[t+2]]+rO[e[t+3]]+"-"+rO[e[t+4]]+rO[e[t+5]]+"-"+rO[e[t+6]]+rO[e[t+7]]+"-"+rO[e[t+8]]+rO[e[t+9]]+"-"+rO[e[t+10]]+rO[e[t+11]]+rO[e[t+12]]+rO[e[t+13]]+rO[e[t+14]]+rO[e[t+15]]}(r)}const aO=()=>{var e,t,n;return null!==(e=null===(t=crypto)||void 0===t||null===(n=t.randomUUID)||void 0===n?void 0:n.call(t))&&void 0!==e?e:iO()},lO=e=>e===zT?jT:(({qLibraryId:e,cId:t})=>{var n;return null!==(n=null!=e?e:t)&&void 0!==n?n:aO()})(e),sO=({layoutService:e,visibleLeftDimensionInfos:t,cell:n,colIdx:r})=>{n&&(n.canBeResized=!0,n.colIdx=n.colIdx||r,n.dimensionInfoIndex===zT?n.columnWidthLocation=Ve.Measures:n.isLeftDimension?n.columnWidthLocation=Ve.Dimension:t.at(-1)===zT?n.columnWidthLocation=Ve.Measures:e.hasPseudoDimOnLeft&&(n.columnWidthLocation=Ve.Pivot))},uO=(e,t,n)=>{var r;const o=lO(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===zT?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Ve.Measures,isPivot:!0}:{id:o,colIdx:0,label:t.qFallbackTitle,qReverseSort:t.qReverseSort,sortDirection:t.qSortIndicator&&"N"!==t.qSortIndicator?t.qSortIndicator:"A",qLibraryId:t.qLibraryId,fieldId:t.qGroupFieldDefs[t.qGroupPos],isLocked:null!==(r=t.qLocked)&&void 0!==r&&r,columnWidth:t.columnWidth,qApprMaxGlyphCount:t.qApprMaxGlyphCount,isDim:!0,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Ve.Dimension,isPivot:!0,isSortedByFirstMeasure:e.isSortedByFirstMeasure}},cO=({layoutService:e,lastRow:t,lastCol:n})=>{let r=n;var o;t.length>0&&(r=(o=n).at(-1)===zT?o.slice(0,-1):o);const i=r.length+(t.length?1:0),a=Math.max(1,t.length),l=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(i,a);return t.forEach(((t,n,r)=>{const o=n===r.length-1;l[i-1][n]=uO(e,t,o)})),r.forEach(((t,n,r)=>{const o=n===r.length-1;l[n][a-1]=uO(e,t,o)})),l},dO=(e,t,n)=>{var r,o;const i=((e,t,n)=>{let r;var o;return r=0===t.length||t.includes(zT)?cO({layoutService:e,lastRow:n,lastCol:t}):(e=>e[0].map(((t,n)=>e.map((e=>e[n])))))(cO({layoutService:e,lastRow:t,lastCol:n})),e.isIndentModeEnabled&&r[r.length-1].length>1&&(r[r.length-1]=[r.at(-1),...new Array(r[0]?r[0].length-1:0).fill(null)]),r.length&&(null===(o=r.at(-1))||void 0===o||o.forEach(((t,r)=>{if(Array.isArray(t)){const r=t;for(let t=0;t<r.length;t++)sO({layoutService:e,visibleLeftDimensionInfos:n,cell:r[t],colIdx:t})}else sO({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})}))),r})(e,t,n);return{data:i,size:{x:null!==(r=null===(o=i[0])||void 0===o?void 0:o.length)&&void 0!==r?r:0,y:i.length}}};function pO(e){return pO="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},pO(e)}function fO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),r)}var o,i}function mO(e,t,n){return t&&hO(e.prototype,t),n&&hO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function gO(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&&vO(e,t)}function bO(e){return bO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bO(e)}function vO(e,t){return vO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vO(e,t)}function yO(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function xO(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bO(e);if(t){var o=bO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yO(this,n)}}function SO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return EO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EO(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function EO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var CO={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var n,r=e.indexOf("="),o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,n){return{key:wO(e),value:wO(t),useEqualSign:n}}(n,o,i))}})),t}};function wO(e){try{return decodeURIComponent(e)}catch(t){return e}}function RO(e){if(!(this instanceof RO))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:""},n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));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 CO.fromSearchString(t.search)}}})}function kO(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}RO.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},RO.encodeSearchParams=function(e){for(var t,n="",r=0;r<e.length;r++)n+=0===r?"?":"&",n+=kO((t=e[r]).key),t.value?n+="=".concat(kO(t.value)):n+=t.useEqualSign?"=":"";return n};var LO,IO=function(){function e(t){fO(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return mO(e,[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}]),e}(),MO=function(){function e(){fO(this,e)}return mO(e,[{key:"decode",value:function(e){for(var t,n="",r=new IO(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),_O=function(e){return e>=0&&e<=1114111},AO=function(e){return e.match(/[\s]/)},PO=function(e){gO(n,e);var t=xO(n);function n(){return fO(this,n),t.apply(this,arguments)}return mO(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,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,n=0;n<5&&(null!=(r=e.next())&&!AO(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return _O(a)?String.fromCharCode(a):"�"}}]),n}(MO),DO=function(){function e(t,n){fO(this,e),this._key=t,this._value=n}return mO(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,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}}]),e}(),TO=function(){function e(){fO(this,e)}return mO(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,n,r){var o,i;if(t.length===n)return i=this._value,this.setValue(r),i;var a=t.charAt(n);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,n+1,r)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return DO.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return DO.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||DO.newInstanceIfNeeded(e,t,this._value)}}]),e}(),OO=function(){function e(){fO(this,e),this.clear()}return mO(e,[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new TO);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),NO=function(){var e,t,n,r=[],o=[],i=new OO;for(e in r["&quot"]="34",r["&amp"]="38",r["&lt"]="60",r["&gt"]="62",r["&nbsp"]="160",r["&iexcl"]="161",r["&cent"]="162",r["&pound"]="163",r["&curren"]="164",r["&yen"]="165",r["&brvbar"]="166",r["&sect"]="167",r["&uml"]="168",r["&copy"]="169",r["&ordf"]="170",r["&laquo"]="171",r["&not"]="172",r["&shy"]="173",r["&reg"]="174",r["&macr"]="175",r["&deg"]="176",r["&plusmn"]="177",r["&sup2"]="178",r["&sup3"]="179",r["&acute"]="180",r["&micro"]="181",r["&para"]="182",r["&middot"]="183",r["&cedil"]="184",r["&sup1"]="185",r["&ordm"]="186",r["&raquo"]="187",r["&frac14"]="188",r["&frac12"]="189",r["&frac34"]="190",r["&iquest"]="191",r["&Agrave"]="192",r["&Aacute"]="193",r["&Acirc"]="194",r["&Atilde"]="195",r["&Auml"]="196",r["&Aring"]="197",r["&AElig"]="198",r["&Ccedil"]="199",r["&Egrave"]="200",r["&Eacute"]="201",r["&Ecirc"]="202",r["&Euml"]="203",r["&Igrave"]="204",r["&Iacute"]="205",r["&Icirc"]="206",r["&Iuml"]="207",r["&ETH"]="208",r["&Ntilde"]="209",r["&Ograve"]="210",r["&Oacute"]="211",r["&Ocirc"]="212",r["&Otilde"]="213",r["&Ouml"]="214",r["&times"]="215",r["&Oslash"]="216",r["&Ugrave"]="217",r["&Uacute"]="218",r["&Ucirc"]="219",r["&Uuml"]="220",r["&Yacute"]="221",r["&THORN"]="222",r["&szlig"]="223",r["&agrave"]="224",r["&aacute"]="225",r["&acirc"]="226",r["&atilde"]="227",r["&auml"]="228",r["&aring"]="229",r["&aelig"]="230",r["&ccedil"]="231",r["&egrave"]="232",r["&eacute"]="233",r["&ecirc"]="234",r["&euml"]="235",r["&igrave"]="236",r["&iacute"]="237",r["&icirc"]="238",r["&iuml"]="239",r["&eth"]="240",r["&ntilde"]="241",r["&ograve"]="242",r["&oacute"]="243",r["&ocirc"]="244",r["&otilde"]="245",r["&ouml"]="246",r["&divide"]="247",r["&oslash"]="248",r["&ugrave"]="249",r["&uacute"]="250",r["&ucirc"]="251",r["&uuml"]="252",r["&yacute"]="253",r["&thorn"]="254",r["&yuml"]="255",r["&OElig"]="338",r["&oelig"]="339",r["&Scaron"]="352",r["&scaron"]="353",r["&Yuml"]="376",r["&fnof"]="402",r["&circ"]="710",r["&tilde"]="732",r["&Alpha"]="913",r["&Beta"]="914",r["&Gamma"]="915",r["&Delta"]="916",r["&Epsilon"]="917",r["&Zeta"]="918",r["&Eta"]="919",r["&Theta"]="920",r["&Iota"]="921",r["&Kappa"]="922",r["&Lambda"]="923",r["&Mu"]="924",r["&Nu"]="925",r["&Xi"]="926",r["&Omicron"]="927",r["&Pi"]="928",r["&Rho"]="929",r["&Sigma"]="931",r["&Tau"]="932",r["&Upsilon"]="933",r["&Phi"]="934",r["&Chi"]="935",r["&Psi"]="936",r["&Omega"]="937",r["&alpha"]="945",r["&beta"]="946",r["&gamma"]="947",r["&delta"]="948",r["&epsilon"]="949",r["&zeta"]="950",r["&eta"]="951",r["&theta"]="952",r["&iota"]="953",r["&kappa"]="954",r["&lambda"]="955",r["&mu"]="956",r["&nu"]="957",r["&xi"]="958",r["&omicron"]="959",r["&pi"]="960",r["&rho"]="961",r["&sigmaf"]="962",r["&sigma"]="963",r["&tau"]="964",r["&upsilon"]="965",r["&phi"]="966",r["&chi"]="967",r["&psi"]="968",r["&omega"]="969",r["&thetasym"]="977",r["&upsih"]="978",r["&piv"]="982",r["&ensp"]="8194",r["&emsp"]="8195",r["&thinsp"]="8201",r["&zwnj"]="8204",r["&zwj"]="8205",r["&lrm"]="8206",r["&rlm"]="8207",r["&ndash"]="8211",r["&mdash"]="8212",r["&lsquo"]="8216",r["&rsquo"]="8217",r["&sbquo"]="8218",r["&ldquo"]="8220",r["&rdquo"]="8221",r["&bdquo"]="8222",r["&dagger"]="8224",r["&Dagger"]="8225",r["&bull"]="8226",r["&hellip"]="8230",r["&permil"]="8240",r["&prime"]="8242",r["&Prime"]="8243",r["&lsaquo"]="8249",r["&rsaquo"]="8250",r["&oline"]="8254",r["&frasl"]="8260",r["&euro"]="8364",r["&image"]="8365",r["&weierp"]="8472",r["&real"]="8476",r["&trade"]="8482",r["&alefsym"]="8501",r["&larr"]="8592",r["&uarr"]="8593",r["&rarr"]="8594",r["&darr"]="8595",r["&harr"]="8596",r["&crarr"]="8629",r["&lArr"]="8656",r["&uArr"]="8657",r["&rArr"]="8658",r["&dArr"]="8659",r["&hArr"]="8660",r["&forall"]="8704",r["&part"]="8706",r["&exist"]="8707",r["&empty"]="8709",r["&nabla"]="8711",r["&isin"]="8712",r["&notin"]="8713",r["&ni"]="8715",r["&prod"]="8719",r["&sum"]="8721",r["&minus"]="8722",r["&lowast"]="8727",r["&radic"]="8730",r["&prop"]="8733",r["&infin"]="8734",r["&ang"]="8736",r["&and"]="8743",r["&or"]="8744",r["&cap"]="8745",r["&cup"]="8746",r["&int"]="8747",r["&there4"]="8756",r["&sim"]="8764",r["&cong"]="8773",r["&asymp"]="8776",r["&ne"]="8800",r["&equiv"]="8801",r["&le"]="8804",r["&ge"]="8805",r["&sub"]="8834",r["&sup"]="8835",r["&nsub"]="8836",r["&sube"]="8838",r["&supe"]="8839",r["&oplus"]="8853",r["&otimes"]="8855",r["&perp"]="8869",r["&sdot"]="8901",r["&lceil"]="8968",r["&rceil"]="8969",r["&lfloor"]="8970",r["&rfloor"]="8971",r["&lang"]="9001",r["&rang"]="9002",r["&loz"]="9674",r["&spades"]="9824",r["&clubs"]="9827",r["&hearts"]="9829",r["&diams"]="9830",r)"function"!=typeof r[e]&&r.hasOwnProperty(e)&&(o[r[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(n=o[t].toLowerCase().substr(1),i.put(n,String.fromCharCode(t)));return i}(),qO=function(e){gO(n,e);var t=xO(n);function n(){return fO(this,n),t.apply(this,arguments)}return mO(n,[{key:"decodeCharacter",value:function(e){var t;e.mark();var n=e.next();if(null==n||"&"!==n)return e.reset(),null;var r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(null!=(t=this._getNumericEntity(e)))return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,n,r,o="";for(t=Math.min(e.remainder().length,NO.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=NO.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)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,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,16);return!Number.isNaN(+r)&&_O(r)?String.fromCharCode(r):null}},{key:"_parseNumber",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,10);return!Number.isNaN(+r)&&_O(r)?String.fromCharCode(r):null}}]),n}(MO),FO=function(e){gO(n,e);var t=xO(n);function n(){return fO(this,n),t.apply(this,arguments)}return mO(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",n=0;n<2;n++)null!=(r=e.nextHex())&&(t+=r);return 2===t.length&&(o=parseInt(t,16),_O(o))?String.fromCharCode(o):(e.reset(),null)}}]),n}(MO),zO=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(LO=document.createElement("div"));var jO=Array.prototype.indexOf,$O=[",",".","_"," "],BO={default:[",",".","-","_"," "]},HO={width:["%"],height:["%"]},WO={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},GO={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":WO.image,"background-color":WO.color,"border-color":WO.color,"border-image":WO.image,color:WO.color,icon:WO.image,"list-style-image":WO.image,"outline-color":WO.color},VO={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function UO(e,t,n){var r;if(t){if(jO)return jO.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function YO(e){if(null==e)return"";var t,n=document.createTextNode(e);return LO.appendChild(n),t=LO.innerHTML,LO.removeChild(n),t}function KO(e,t,n){var r,o,i,a,l,s,u,c,d;if(e=QO(e).toLowerCase(),t=QO(t),UO(e,VO.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<VO.attr_val;i++)if(t.toLowerCase().match(VO.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=HO[e])||(r=BO.default),o="",!n){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]/)&&UO(u,r)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return n||(o+='"'),o}function XO(e,t,n){var r,o,i,a,l,s,u,c,d,p;if(e=QO(e).toLowerCase(),t=QO(t),UO(e,VO.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<VO.css_val.length;r++)if(t.toLowerCase().indexOf(VO.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=GO[e])||(o=WO.default),i="",!n){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]/)&&UO(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function QO(e,t){var n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;for(var l=[new qO,new FO,new PO];!a;){r=n;for(var s=0;s<l.length;s++)(i=l[s].decode(n))!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}for(var JO=[],ZO=0;ZO<255;ZO++)JO[ZO]=ZO>=48&&ZO<=57||ZO>=65&&ZO<=90||ZO>=97&&ZO<=122?null:ZO.toString(16);var eN=function(e){return YO(e.unsafe)},tN=function(e){var t,n=[],r=[],o={},i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=XO(t,n[t],!0),i+=XO(t,n[t],!0),o[t]=r[t]);return e.map?o:i},nN=function(e){var t=[],n=[],r={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(n[i]=KO(i,t[i],!0),o+=KO(i,t[i],!0),r[i]=n[i]);return e.map?r:o};function rN(e,t){throw new Error(t)}var oN={canonicalize:QO,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===pO(arguments[0])?function(){for(var e,t,n,r=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r===(n=e[t]))continue;void 0!==n&&(r[t]=n)}}(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?eN(e):"css"===e.context?(null!=e.map&&"object"!==pO(e.map)&&rN(this,"Invalid parameter type"),tN(e)):"attr"===e.context?(null!=e.map&&"object"!==pO(e.map)&&rN(this,"Invalid parameter type"),nN(e)):void rN(this,"Invalid parameter type")},encodeForAttr:KO,encodeForAttr2:function(e){return KO("nonsens",e,!0)},encodeForCSS:XO,encodeForHref:function(e){QO(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new RO(e),n=RO.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+RO.encodeSearchParams(r)+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 n,r,o,i,a,l;for(t||(t=$O),l="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),UO(o,t)>=0||null==JO[i]?l+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),l+="\\x".concat(a).concat(r.toUpperCase())):(a="0000".substr(r.length),l+="\\u".concat(a).concat(r.toUpperCase())));return l},encodeForHTML:YO,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=QO(t).toLowerCase():rN(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':""},isSafeDataURL:function(e,t){var n=null!=t?t:{},r=n.maxByteSizeSvg,o=void 0===r?5e5:r,i=n.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,n=SO(null!==(t=zO.exec(e.trim()))&&void 0!==t?t:[],4),r=n[1];return{encoding:n[2],data:n[3],mimeType:null==r?void 0:r.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,n){var r={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(n)],r).size}catch(e){return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a}};const iN=(e,t)=>{var n;const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps;return null==r||null===(n=r.qValues)||void 0===n?void 0:n[e]},aN=e=>{switch(e){case"topLeft":default:return{horizontal:"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"flex-end",vertical:"center"};case"topRight":return{horizontal:"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"flex-end",vertical:"flex-end"}}},lN=({text:e,url:t,imageSize:n,imagePosition:r})=>r&&t&&!t.toLowerCase().includes("javascript:")&&oN.isSafeDataURL(t)?{type:qe.Image,url:t,text:e,imageSize:n,resolvedImagePosition:aN(r)}:{type:qe.Text,url:void 0,text:e},sN=(e,t,n)=>{var r;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(r=o.qValues)||void 0===r?void 0:r[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==n?void 0:n.urlPosition)===Fe.Attribute||null==n?void 0:n.urlLabel},uN=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:qe.Link,url:oN.encodeForHref(t),text:e}}catch(t){return{type:qe.Text,url:void 0,text:e}}},cN=(e,t,n,r)=>{var o,i;const a=ze(t);return a!==qe.Image||!r.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(o=r.anything.sense)&&void 0!==o&&null!==(i=o.isUnsupportedFeature)&&void 0!==i&&i.call(o,"tableImages")?a===qe.Link&&r.flags.isEnabled("CLIENT_IM_5715_LINKS")?((e,t,n)=>{const{urlPosition:r}=null!=t?t:{};if(r===Fe.Attribute){var o;const r=sN(null!==(o=n.url)&&void 0!==o?o:-1,e,t),i=e.qText||r||"";return uN({text:i,url:r})}if(r===Fe.Dimension){var i;const r=sN(null!==(i=n.urlLabel)&&void 0!==i?i:-1,e,t)||e.qText;return uN({text:r,url:e.qText})}return{type:qe.Text,url:void 0,text:e.qText}})(e,t,n):a===qe.Indicator&&r.flags.isEnabled("CLIENT_IM_6696_INDICATORS")?((e,t)=>{const{indicator:n,indicatorConditionalColoring:r}=null!=t?t:{};return{type:qe.Indicator,url:void 0,text:e.qText,indicator:{applySegmentColors:null==n?void 0:n.applySegmentColors,position:null==n?void 0:n.position,showTextValues:null==n?void 0:n.showTextValues},indicatorConditionalColoring:r}})(e,t):{type:qe.Text,url:void 0,text:e.qText}:((e,t,n)=>{const{imageSize:r,imagePosition:o,imageSetting:i,imageLabel:a}=null!=t?t:{};if("url"===i){var l,s;const t=e.qText,i=null===(l=iN(null!==(s=n.imageUrl)&&void 0!==s?s:-1,e))||void 0===l?void 0:l.qText;return lN({text:t,url:i,imageSize:r,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===n.imageLabel)return lN({text:a||t||"",url:t,imageSize:r,imagePosition:o});const i=null!==(u=null===(c=iN(null!==(d=n.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return lN({text:i,url:t,imageSize:r,imagePosition:o})}return{type:qe.Text,url:void 0,text:e.qText}})(e,t,n)},dN=(e,t)=>{var n,r,o,i;const a=t.qAttrExps,l=null==a||null===(n=a.qValues)||void 0===n||null===(n=n[null!==(r=null==e?void 0:e.cellForegroundColor)&&void 0!==r?r:-1])||void 0===n?void 0:n.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?iM(s):null,c=l?iM(l):null,d=((e,t)=>e||!t?null:tM(t)?JL.WHITE:JL.TEXT)(c,u);return{color:null!=d?d:c,background:u}},pN=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:pN(e,t)),e),fN=(e,t,n,r,o,i)=>{const a=o?i.rowsPerPage-n:ir-r;let l=e.qUp+e.qDown;if(o&&0===n){const n=(t+e.qUp)%i.rowsPerPage;l=e.qDown+n}return Math.min(a,pN(l,e))},hN=(e,t)=>{if(e!==zT)return t?{type:qe.Text}:e.representation},mN=({node:e,parent:t,root:n,x:r,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentLevel:d,env:p,pageInfo:f})=>{const h=(!c||!u)&&e.qType===lt.NX_DIM_CELL_PSEUDO;let m="";if(u&&e.indentLabel){const{label:t,delimeter:n,suffix:r}=e.indentLabel;m=`${t} ${!r||!t&&r?"":n} ${r}`.trim()}else m=e.qText;const g={id:aO(),ref:e,x:r,y:o,pageX:r,pageY:i,mainAxisPageCoord:u?i:r,isLeftColumn:u,parent:t,root:n,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:fN(e,o,i,r,u,f),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===lt.NX_DIM_CELL_TOTAL||!(null==t||!t.isTotal),isEmpty:e.qType===lt.NX_DIM_CELL_EMPTY||-4===e.qElemNo,isNull:e.qType===lt.NX_DIM_CELL_NULL,isPseudoDimension:h,expressionColor:dN(s,e),selectionCellType:u?at.NX_CELL_LEFT:at.NX_CELL_TOP,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:h?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:cN({...e,qText:m},hN(l,c),s,p),...void 0!==d&&{indentLevel:d}};return t&&(t.children[g.mainAxisPageCoord-t.mainAxisPageCoord]=g),g},gN=(e,t,n,r,o,i,a,l)=>{const{isIndentModeEnabled:s}=o;if(!t.length)return e;let u=0;return function t(c,d,p,f=0,h=-1){e[f]||(e[f]={}),s&&h++;const m=o.leftDimensionInfoIndexes.indexOf(zT);p.forEach(((p,g)=>{var b;u+=0===g?0:1;const v=n.qTop-r.page*r.rowsPerPage,y=Math.max(0,v+u-p.qUp),x=n.qTop+u-p.qUp;if(s&&o.hasPseudoDimOnLeft&&h<=m){const e={label:p.qText,suffix:"",delimeter:"-"};if(p.qType===lt.NX_DIM_CELL_NORMAL||p.qType===lt.NX_DIM_CELL_NULL||p.qType===lt.NX_DIM_CELL_TOTAL)h<m&&(e.suffix=`${o.visibleMeasureInfo[0].qFallbackTitle}`),p={...p,indentLabel:e};else if(p.qType===lt.NX_DIM_CELL_PSEUDO){var S,E,C,w,R;e.label=null!==(S=null===(E=d||c)||void 0===E||null===(E=E.ref)||void 0===E||null===(E=E.indentLabel)||void 0===E?void 0:E.label)&&void 0!==S?S:"",e.suffix=p.qText;const t=p.qSubNodes;p={...null===(C=d||c)||void 0===C?void 0:C.ref,...p.qText?{qText:p.qText}:{},qSubNodes:t,indentLabel:e},h=null!==(w=null===(R=d||c)||void 0===R?void 0:R.indentLevel)&&void 0!==w?w:0}}let k=f;s&&(k=m>=1&&h>=m?h+1:h,0===h&&0===m&&0===p.qSubNodes.length&&(k=0));const L=s&&void 0===(null===(b=e[f][y])||void 0===b?void 0:b.ref.qText)||!e[f][y]?mN({node:p,parent:d,root:c,x:k,y:x,pageY:y,layoutService:o,dimensionInfo:i[k],attrExprInfoIndex:a[k],isLeftColumn:!0,...s&&{isIndentModeEnabled:s,indentLevel:h},env:l,pageInfo:r}):e[f][y];if(e[f][y]=L,p.qSubNodes.length){const e=s?0:f+1;t(c||L,L,p.qSubNodes,e,h)}}))}(null,null,t,0,-1),e},bN=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,n,r)=>{const o=r[n+1];e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},vN=(e,t)=>{const n=e[0],r=n?Object.values(n):[],o=null!=t&&t.isIndentModeEnabled&&null!=t&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,i=null==n?void 0:n[o],a=r.at(-1);return null!=i&&i.isTotal?i.isLeafNode?i.mainAxisPageCoord:i.mainAxisPageCoord+i.leafCount-1:null!=a&&a.isTotal?a.mainAxisPageCoord-1:-1},yN=({prevData:e,nextDataPage:t,pageInfo:n,layoutService:r,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i,env:a})=>{const{qLeft:l,qArea:s}=t;if(!l.length)return e;const u=gN(e.grid,l,s,n,r,o,i,a);bN(u,n.rowsOnCurrentPage);const c=vN(u,r);return{...e,grid:u,columnCount:u.length,totalDividerIndex:c}},xN=({qArea:e,prevData:t,pivotValuePoints:n,pageInfo:r})=>{const o=[...t];return n.forEach(((t,n)=>{t.forEach(((t,i)=>{var a;const l=e.qTop-r.page*r.rowsPerPage+n,s=e.qLeft+i;Array.isArray(o[l])||(o[l]=[]);const u=t.qType===lt.NX_DIM_CELL_NULL;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:aO(),ref:t,isNull:u}}))})),o},SN=({prevData:e,dataPage:t,pageInfo:n})=>{const{qData:r,qArea:o}=t;return r.length?xN({qArea:o,prevData:e,pivotValuePoints:r,pageInfo:n}):e},EN=(e,t,n,r,o,i,a,l,s)=>{if(!t.length)return e;let u=0;!function t(a,c,d,p=0){e[p]||(e[p]={}),d.forEach(((d,f)=>{var h;u+=0===f?0:1;const m=n.qLeft+u-d.qUp,g=null!==(h=e[p][m])&&void 0!==h?h:mN({node:d,parent:c,root:a,x:m,y:p,pageY:p,layoutService:r,dimensionInfo:o[p],attrExprInfoIndex:i[p],isLeftColumn:!1,...r.isIndentModeEnabled&&{isIndentModeEnabled:r.isIndentModeEnabled},env:l,pageInfo:s});e[p][m]=g,d.qSubNodes.length&&t(a||g,g,d.qSubNodes,p+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},CN=({prevData:e,nextDataPage:t,layoutService:n,visibleTopDimensionInfo:r,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:l})=>{const{qTop:s,qArea:u}=t;if(!s.length)return e;const c=EN(e.grid,s,u,n,r,o,i,a,l);bN(c,n.size.x);const d=vN(c);return{...e,grid:c,rowCount:c.length,totalDividerIndex:d}},wN=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},n)=>(e[t]=n,e)),{}),RN=(e,t,n,r,o)=>{const{env:i}=RT(),[a,l]=So.useState(null),s=((e,t,n)=>So.useMemo((()=>({left:e.map(wN),top:t.map(wN),measures:n.map(wN)})),[n,e,t]))(r,o,t.visibleMeasureInfo),u=So.useMemo((()=>dO(t,o,r)),[t,o,r]),c=So.useCallback((()=>e.slice(1).reduce(((e,t)=>SN({prevData:e,dataPage:t,pageInfo:n})),((e,t)=>{const{qData:n,qArea:r}=e;return xN({qArea:r,prevData:[],pivotValuePoints:n,pageInfo:t})})(e[0],n))),[e,n]),d=So.useCallback((()=>e.slice(1).reduce(((e,r)=>CN({prevData:e,nextDataPage:r,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:i,pageInfo:n})),((e,t,n,r,o,i,a)=>{const{qArea:l,qTop:s}=e,u=EN([],s,l,t,n,r,o,i,a);bN(u,t.size.x);const c=vN(u);return{grid:u,rowCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(e[0],t,o,s.top,u.size.y,i,n))),[e,t,o,s.top,u.size.y,i,n]),p=So.useCallback((()=>e.slice(1).reduce(((e,o)=>yN({prevData:e,nextDataPage:o,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:s.left,env:i})),((e,t,n,r,o,i)=>{const{qArea:a,qLeft:l}=e,s=gN([],l,a,n,t,r,o,i);bN(s,n.rowsOnCurrentPage);const u=vN(s,t);return{grid:s,columnCount:s.length,layoutSize:t.size,totalDividerIndex:u}})(e[0],t,n,r,s.left,i))),[e,t,n,r,s,i]),[f,h]=So.useState((()=>c())),[m,g]=So.useState((()=>d())),[b,v]=So.useState((()=>p()));vM((()=>{h(c())}),[c]),vM((()=>{g(d())}),[d]),vM((()=>{v(p())}),[p]),vM((()=>{a&&a.forEach((e=>{h((t=>SN({prevData:t,dataPage:e,pageInfo:n}))),g((r=>CN({prevData:r,nextDataPage:e,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:i,pageInfo:n}))),v((o=>yN({prevData:o,nextDataPage:e,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:s.left,env:i})))}))}),[a]);const y=So.useCallback((e=>{l(e)}),[]);return{headersData:u,measureData:f,topDimensionData:m,leftDimensionData:b,attrExprInfoIndexes:s,nextPageHandler:y}},kN=Math.sqrt(1e4),LN=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/tt.PixelsMin)}),IN=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],n=Math.ceil(e.qWidth/kN),r=Math.ceil(e.qHeight/kN);for(let o=0;o<n;o++)for(let n=0;n<r;n++)t.push({qLeft:e.qLeft+o*kN,qTop:e.qTop+n*kN,qWidth:Math.min(kN,e.qWidth-o*kN),qHeight:Math.min(kN,e.qHeight-n*kN)});return t};function MN({model:e,nextPageHandler:t,pageInfo:n,layoutService:r}){const o=(e=>{const t=So.useRef(e);return t.current=e,t})(n.page),i=e,a=So.useCallback((async(e,t)=>{var n;await(null==i||null===(n=i.collapseLeft)||void 0===n?void 0:n.call(i,FT,e,t,!1))}),[i]),l=So.useCallback((async(e,t)=>{await(null==i?void 0:i.collapseTop(FT,e,t,!1))}),[i]),s=So.useCallback((async(e,t)=>{await(null==i?void 0:i.expandLeft(FT,e,t,!1))}),[i]),u=So.useCallback((async(e,t)=>{await(null==i?void 0:i.expandTop(FT,e,t,!1))}),[i]),c=So.useCallback((async e=>{if(null!=i&&i.getHyperCubePivotData&&0!==e.length)try{const r=await i.getHyperCubePivotData(FT,e.reduce(((e,t)=>[...e,...IN(t)]),[]));o.current===n.page&&t(r)}catch(e){console.error(e)}}),[i,t,n,o]),d=So.useCallback(((t,{dimensionInfoIndex:n,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=r.layout.qHyperCube;let c=[];switch(a){case Ve.Dimension:c=[{qPath:`${FT}/qDimensions/${n}/qDef/columnWidth`,oldValue:s[n].columnWidth}];break;case Ve.Measures:if(o)c=l.map(((e,t)=>({qPath:`${FT}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=r.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${FT}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case Ve.Pivot:c=[{qPath:`${FT}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((e=>{const{qPath:n,oldValue:r}=e;return{qPath:n,qOp:r?"Replace":"Add",qValue:JSON.stringify({...r,...t})}}));null==e||e.applyPatches(d,!0)}),[e,r]),p=So.useCallback((async e=>{var t;await(null==i?void 0:i.applyPatches([{qPath:`${FT}/indentModeColumnWidth`,qOp:null!==(t=r.layout.qHyperCube)&&void 0!==t&&t.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...r.indentModeColumnWidth,...e})}],!0))}),[i,r]);return So.useMemo((()=>({collapseLeft:a,collapseTop:l,expandLeft:s,expandTop:u,applyColumnWidth:d,applyIndentModeColumnWidth:p,fetchPages:c})),[a,l,s,u,d,p,c])}const _N=(e,t)=>e>t?Ke.Forward:e<t?Ke.Backward:Ke.None,AN=(e,t,n)=>(r,o)=>{if(r===lt.NX_DIM_CELL_PSEUDO)return zT;const i=t[n+o];return e[i]},PN=e=>{const t=[],n=(e,r=0)=>{e.slice(0,1).forEach((e=>{t[r]=e.qType,e.qSubNodes.length&&n(e.qSubNodes,r+1)}))};return n(e),t},DN=({width:e,height:t,children:n,isLeftGrid:r})=>Lc.jsx("div",{"data-testid":"full-size-container",style:{display:"block",width:r?"fit-content":e,height:t+lr},children:n}),TN=e=>`scrollable-container--${e}`,ON=(e,t)=>{const{width:n,height:r,children:o,onScroll:i,style:a,showVerticalScrollbar:l,showHorizontalScrollbar:s,origin:u}=e,{interactions:c}=RT();return Lc.jsx("div",{ref:t,"data-key":TN(u),style:{width:n,height:r,overscrollBehaviorX:"contain",overflowX:c.active&&s?"auto":"hidden",overflowY:c.active&&l?"auto":"hidden",...a},onScroll:i,children:o})};var NN=Eo.forwardRef(ON);const qN=({width:e,height:t,children:n,style:r,isLeftGrid:o})=>Lc.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:0,left:0,width:o?"fit-content":e,height:t,...r},children:n});function FN(){return FN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FN.apply(this,arguments)}function zN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jN(e,t){return jN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jN(e,t)}function $N(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jN(e,t)}var BN=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function HN(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||BN(r)&&BN(o)))return!1;var r,o;return!0}function WN(e,t){var n;void 0===t&&(t=HN);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}function GN(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var VN="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function UN(e){cancelAnimationFrame(e.id)}function YN(e,t){var n=VN();var r={id:requestAnimationFrame((function o(){VN()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var KN=-1;function XN(e){if(void 0===e&&(e=!1),-1===KN||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),KN=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return KN}var QN=null;function JN(e){if(void 0===e&&(e=!1),null===QN||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?QN="positive-descending":(t.scrollLeft=1,QN=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),QN}return QN}var ZN=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function eq(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,zN(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:zN(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=WN((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=WN((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=r._getItemStyleCache(m&&l,m&&s,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(r.props,e,r._instanceProps),height:c(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=WN((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,u=i;if("rtl"===t)switch(JN()){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-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&UN(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=YN(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}$N(t,e),t.getDerivedStateFromProps=function(e,t){return tq(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=XN();void 0!==r&&(r=Math.max(0,Math.min(r,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,m,this._instanceProps,x):m,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(JN()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&UN(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?ZN:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],C=S[1],w=this._getVerticalRangeToRender(),R=w[0],k=w[1],L=[];if(r>0&&g)for(var I=R;I<=k;I++)for(var M=E;M<=C;M++)L.push(So.createElement(t,{columnIndex:M,data:d,isScrolling:v?x:void 0,key:f({columnIndex:M,data:d,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,M)}));var _=a(this.props,this._instanceProps),A=l(this.props,this._instanceProps);return So.createElement(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:FN({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},So.createElement(u||c||"div",{children:L,ref:s,style:{height:_,pointerEvents:x?"none":void 0,width:A}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),h=f(this.props,d,u,this._instanceProps),m=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(So.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var tq=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},nq=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},rq=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},oq=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},iq=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?aq(e,t,n,i,0,r):lq(e,t,n,Math.max(0,i),r)},aq=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=oq(e,t,a,n).offset;if(l===i)return a;l<i?o=a+1:l>i&&(r=a-1)}return o>0?o-1:0},lq=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&oq(e,t,r,n).offset<o;)r+=a,a*=2;return aq(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},sq=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=oq(e,t,n,i),u="column"===e?rq(t,i):nq(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===r&&(r=o>=d-l&&o<=c+l?"auto":"center"),r){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}},uq=eq({getColumnOffset:function(e,t,n){return oq("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return iq("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=oq("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=oq("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:nq,getEstimatedTotalWidth:rq,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return sq("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return sq("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return oq("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return iq("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=oq("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=oq("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),cq=function(e,t){return e};function dq(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,zN(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:zN(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=WN((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=WN((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,c=r._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=WN((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(JN()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&UN(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=YN(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}$N(t,e),t.getDerivedStateFromProps=function(e,t){return pq(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?XN():0:s.scrollHeight>s.clientHeight?XN():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(JN()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&UN(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?cq:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),C=E[0],w=E[1],R=[];if(u>0)for(var k=C;k<=w;k++)R.push(So.createElement(t,{data:c,key:p(k,c),index:k,isScrolling:b?y:void 0,style:this._getItemStyle(k)}));var L=r(this.props,this._instanceProps);return So.createElement(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:FN({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},So.createElement(l||s||"div",{children:R,ref:a,style:{height:x?"100%":L,pointerEvents:y?"none":void 0,width:x?L:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(So.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var pq=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},fq=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.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=r(s);o[s]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},hq=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=fq(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},mq=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&fq(e,n,t).offset<r;)n+=i,i*=2;return hq(e,t,Math.min(n,o-1),Math.floor(n/2),r)},gq=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},bq=dq({getItemOffset:function(e,t,n){return fq(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:gq,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=fq(e,t,o),p=gq(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=h-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return r>=h&&r<=f?r:r<h?h:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?hq(e,t,o,0,n):mq(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){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=fq(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=fq(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function vq(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var yq=["style"],xq=["style"];function Sq(e,t){var n=e.style,r=GN(e,yq),o=t.style,i=GN(t,xq);return!vq(n,o)&&!vq(r,i)}const Eq=(e,t,n=!1)=>void 0!==e&&(e.isLeafNode||n&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),Cq=10,wq=(e,t)=>e.current===Ke.Backward?t:0,Rq=(e,t,n,r)=>{for(let o=n;o<n+r;o++){const n=e[o];if(void 0===n||void 0===n[t])return!0}return!1},kq=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,Lq=({pageInfo:e,measureData:t,pageTop:n,qHeight:r,startLeft:o,endLeft:i})=>{const a=[],l=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(Rq(t,e,n,r)){const t=a[a.length-1],o={qLeft:e,qTop:n+l,qWidth:1,qHeight:r};void 0!==t&&kq(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},Iq=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=r,u=n.current===Ke.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return Lq({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},Mq=({pageInfo:e,measureData:t,scrollDirection:n,layoutService:r,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:l,qHeight:s}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=e.size.x,s=wq(n,Cq),u=Math.max(r-s,0);return{startLeft:u,endLeft:u+Math.min(i+Cq,l-u),pageTop:o,qHeight:a}})(r,o,n),u=Lq({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...Iq({pageInfo:e,measureData:t,scrollDirection:n,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:r.size.x})]:u},_q=(e,t,n,r)=>{const o=e[n];if(void 0===o)return!0;for(let e=t;e<t+r;e++){if(void 0===o[e])return!0}return!1},Aq=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,Pq=({startTop:e,endTop:t,qLeft:n,qWidth:r,measureData:o,pageInfo:i})=>{const a=[],l=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(_q(o,n,i,r)){const e=a.at(-1),t={qLeft:n,qTop:i+l,qWidth:r,qHeight:1};void 0!==e&&Aq(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},Dq=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:l}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=wq(n,Cq),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+Cq,e.rowsOnCurrentPage-s),qLeft:r,qWidth:i}})(e,r,n),s=Pq({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const r=n.current===Ke.Backward?Math.max(0,o-25):i,u=Math.min(r+25,e.rowsOnCurrentPage),c=Pq({startTop:r,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},Tq=async(e,t,n,r,o,i,a,l)=>{const{gridColumnStartIndex:s,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==Ke.None&&(p=Dq({pageInfo:r,measureData:n,scrollDirection:i,viewService:o})),a.current!==Ke.None&&(f=Mq({pageInfo:r,measureData:n,scrollDirection:a,layoutService:t,viewService:o})),i.current===Ke.None&&a.current===Ke.None&&(p=Pq({measureData:n,pageInfo:r,qLeft:s,qWidth:c,startTop:u,endTop:u+d}));const h=e.fetchPages([...p,...f]);l.isDownloadedAsPDForImage&&l.waitForPromise(h)},Oq=function(e){var t,n,r,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];n=l;var u=Date.now()-i,c=function(){i=Date.now(),r=0,e.apply(t,n)};r||(u>=o?c():r=setTimeout(c,o-u))}}(Tq,100),Nq=xe(Tq,75),qq=({style:e,index:t,isLastRow:n,isLastColumn:r,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{grid:{border:l,divider:s}}=_T();return Lc.jsx("div",{style:{...e,...pr,...gr(n,r,l,o),...vr({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},Fq=({children:e,verticalAlign:t,width:n,right:r})=>Lc.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",overflow:"hidden",flexDirection:"row",alignItems:t,width:n,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:r,alignSelf:t},children:e}),zq=e=>{const{type:t,imageSize:n}=e;return t!==qe.Image||"fill"!==n&&"fitWidth"!==n?"fit-content":"100%"},jq=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function $q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Bq=(e,t)=>Eo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$q(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Eo.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"})),Hq=So.forwardRef(Bq);function Wq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Gq=(e,t)=>Eo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Wq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Eo.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"})),Vq=So.forwardRef(Gq),Uq=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(et)},Yq=(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:n}=t.payload,r=Math.min(n,e.activeSelection.startIndex),o=Math.max(n,e.activeSelection.endIndex);if(r===e.activeSelection.startIndex&&o===e.activeSelection.endIndex)return e;const i={...e.activeSelection,startIndex:r,endIndex:o};return i.clientSelectedCells=(e=>{const{getCellFromIndex:t,startIndex:n,endIndex:r,clientSelectedCells:o}=e,i=new Map(o);for(let e=n;e<=r;e++){const n=t(e);(null==n?void 0:n.ref.qType)===lt.NX_DIM_CELL_NORMAL&&i.set(n.ref.qElemNo,n)}return i})(i),{...e,activeSelection:i}}default:return e}};const Kq={createMouseDownHandler:()=>()=>{},createMouseOverHandler:()=>()=>{},isSelected:()=>!1,isActive:!1,isLocked:()=>!1},Xq=So.createContext(Kq),Qq=()=>So.useContext(Xq),Jq=({children:e,selections:t,updatePageInfo:n,env:r})=>{const o=function(e,t,n){var r,o,i;const a=e.isActive(),[l,s]=So.useReducer(Yq,{engineSelectedCells:null,selectedField:null,activeSelection:null});So.useEffect((()=>{const n=()=>{s({type:"clearSelections"})},r=()=>{n(),t({page:0})};return e.on("deactivated",n),e.on("canceled",n),e.on("confirmed",r),e.on("cleared",n),()=>{e.removeListener("deactivated",n),e.removeListener("canceled",n),e.removeListener("confirmed",r),e.removeListener("cleared",n)}}),[e,t]);const u=So.useCallback((async()=>{var t,n,r;if(!l.activeSelection)return;1===l.activeSelection.clientSelectedCells.size&&(n=l.engineSelectedCells,(r=l.activeSelection).clientSelectedCells.forEach(((e,t)=>{null!=n&&n.has(t)&&(r.clientSelectedCells.delete(t),n.delete(t))})));const o=new Map([...null!==(t=l.engineSelectedCells)&&void 0!==t?t:new Map,...l.activeSelection.clientSelectedCells]);try{s({type:"mouseup",payload:{engineSelectedCells:o}}),await e.select({method:"selectPivotCells",params:[FT,Array.from(o,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]})}catch(e){console.error(e),s({type:"mouseup",payload:{engineSelectedCells:l.engineSelectedCells}})}}),[l,e]);So.useEffect((()=>{if(l.activeSelection)return document.addEventListener("mouseup",u),()=>{document.removeEventListener("mouseup",u)}}),[u,l.activeSelection]);const c=So.useCallback(((e,t)=>n=>{const r=t(e);!Uq(n)&&!(e=>{var t;return null!==(null===(t=e.target)||void 0===t?void 0:t.closest("[data-prevent-selection]"))})(n)&&(e=>1===e.buttons)(n)&&r&&s({type:"mousedown",payload:{activeSelection:{startIndex:e,endIndex:e,getCellFromIndex:t,clientSelectedCells:(new Map).set(r.ref.qElemNo,r)},selectedField:{selectionCellType:r.selectionCellType,index:r.selectionCellType===at.NX_CELL_LEFT?r.x:r.y}}})}),[]),d=So.useCallback((t=>n.flags.isEnabled("CLIENT_IM_6223_PIVOT_RANGE_SELECTION")?async()=>{l.activeSelection&&(e.isActive()||await e.begin([FT]),s({type:"mouseover",payload:{index:t}}))}:void 0),[l.activeSelection,e,n]),p=So.useCallback((e=>{var t,n;return!(!(null!==(t=l.engineSelectedCells)&&void 0!==t&&t.size||null!==(n=l.activeSelection)&&void 0!==n&&n.clientSelectedCells.size)||!l.selectedField||e.selectionCellType===l.selectedField.selectionCellType&&(e.selectionCellType===at.NX_CELL_LEFT?l.selectedField.index===e.x:l.selectedField.index===e.y))}),[null===(r=l.activeSelection)||void 0===r?void 0:r.clientSelectedCells.size,null===(o=l.engineSelectedCells)||void 0===o?void 0:o.size,l.selectedField]),f=So.useCallback((e=>{var t,n;return!p(e)&&((null===(t=l.engineSelectedCells)||void 0===t?void 0:t.has(e.ref.qElemNo))||!(null===(n=l.activeSelection)||void 0===n||!n.clientSelectedCells.has(e.ref.qElemNo)))}),[p,null===(i=l.activeSelection)||void 0===i?void 0:i.clientSelectedCells,l.engineSelectedCells]);return So.useMemo((()=>({isSelected:f,isActive:a,isLocked:p,createMouseDownHandler:c,createMouseOverHandler:d})),[f,a,p,c,d])}(t,n,r);return Lc.jsx(Xq.Provider,{value:o,children:e})};var Zq;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(Zq||(Zq={}));const eF={brighter:.5,darker:.3,opacity:.03},tF=(e,{cell:t,styleService:n})=>{if(e===Zq.Background||e===Zq.Color){const n=t.expressionColor[e];if(n)return n}return t.isNull?n.nullValues[e]:t.isPseudoDimension?n.measureLabels[e]:t.isTotal?n.totalValues[e]:n.dimensionValues[e]},nF=({styleService:e,isCellSelected:t,cell:n,isCellLocked:r})=>{if(t)return e.selectedColors.background;const o=tF(Zq.Background,{cell:n,styleService:e});return!r||!o||n.isPseudoDimension||n.isEmpty||n.isNull||n.isTotal?tF(Zq.Background,{cell:n,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${JI(i=o,eF)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},rF=({cell:e,styleService:t,isCellSelected:n})=>n?t.selectedColors.color:tF(Zq.Color,{cell:e,styleService:t}),oF=({cell:e,styleService:t})=>{const{qCanCollapse:n,qCanExpand:r}=e.ref,o=tF(Zq.FontWeight,{cell:e,styleService:t});return void 0===o&&(r||n)?or:o},iF=({cell:e,styleService:t})=>tF(Zq.FontStyle,{cell:e,styleService:t}),aF=({cell:e,styleService:t})=>tF(Zq.TextDecoration,{cell:e,styleService:t}),lF=e=>e?"pointer":"default",sF=({expandOrCollapse:e,cell:t})=>n=>{null==e||e(t.y,t.x),n.stopPropagation()},uF=(e,t)=>{if(!e.isLeftColumn||e.representation.type===qe.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},cF=({cell:e,dataModel:t,isLeftColumn:n,isCellSelected:r})=>{const o=_T(),{interactions:i}=RT(),{isActive:a}=Qq();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!t,s=rF({cell:e,styleService:o,isCellSelected:r}),u=a?.4:1,c=e.ref.qCanExpand?Vq:Hq;let d;return d=e.ref.qCanExpand?n?null==t?void 0:t.expandLeft:null==t?void 0:t.expandTop:n?null==t?void 0:t.collapseLeft:null==t?void 0:t.collapseTop,Lc.jsx(c,{opacity:u,color:s,"data-prevent-selection":!l||void 0,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",...uF(e,o)},onClick:l?void 0:sF({cell:e,expandOrCollapse:d})})},dF=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},pF=e=>{switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},fF=({representation:e,styleService:t,canExpandOrCollapse:n,leafCount:r,isLeftColumn:o})=>{const i=`calc(100% - ${n?21:0}px)`,a=o?t.contentCellHeight:t.headerCellHeight,l=o&&void 0!==r?a*Math.max(r,1):a;switch(e.imageSize){case"originalSize":return{maxWidth:i,maxHeight:l};case"fitWidth":return{width:i,maxHeight:l};case"fitHeight":return{height:l,maxWidth:i};case"fill":return{height:l,width:i};default:return{width:i,height:a}}},hF=(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"}},mF=e=>{if("alwaysFit"===e)return"contain"},gF=({representation:e,styleService:t,textStyle:n,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})=>{const{imageRef:a,onLoad:l}=(()=>{const{downloadService:e}=RT(),t=So.useRef(null),{promise:n,resolve:r}=So.useMemo((()=>jq()),[]);return So.useEffect((()=>{var o;return e.isDownloadedAsPDForImage&&(e.waitForPromise(n),null!==(o=t.current)&&void 0!==o&&o.complete&&r()),()=>r()}),[t,e,n,r]),{onLoad:So.useCallback((()=>{r()}),[r]),imageRef:t}})(),{url:s,text:u,imageSize:c,resolvedImagePosition:d}=e,{overflow:p,...f}=n;return Lc.jsx("div",{"data-key":"image-container",style:{display:"flex",flexDirection:"column",justifyContent:null==d?void 0:d.vertical,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...fF({representation:e,styleService:t,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})},children:Lc.jsx("img",{src:s,alt:u,style:{width:pF(c),height:dF(c),objectFit:mF(c),objectPosition:hF(c,d),...f},onLoad:l,ref:a})})},bF=(e,t,n)=>{if(!n.isEnabled("CLIENT_IM_5863_PVT_TEXT_ALIGN")||null!=e&&e.auto)return t;switch(null==e?void 0:e.align){case"center":return"center";case"left":return"flex-start";case"right":return"flex-end";default:return t}},vF={display:"flex",flexDirection:"row",alignItems:"center"},yF={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},xF=(e,t,n,r)=>t?{...yF,...e.nullValues}:n?{...vF,color:e.totalValues.color,background:null!=r?r:e.totalValues.background}:{...vF,color:e.measureValues.color,background:null!=r?r:e.measureValues.background},SF=(e,t,n,r,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...fr,...!n&&hr(e.grid.lineClamp),...t&&{color:t},fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.nullValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}if(r){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.totalValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}const{fontWeight:s,fontStyle:u,textDecoration:c}=e.measureValues;return{...l,fontWeight:void 0===s?or:s,fontStyle:u,textDecoration:c}},EF=(e,t,n,r,o)=>{const{textAlign:i}=t,a=r?"flex-end":"center";var l,s;return e.isNull||n.type!==qe.Image?bF(i,a,o):null!==(l=null===(s=n.resolvedImagePosition)||void 0===s?void 0:s.horizontal)&&void 0!==l?l:"center"},CF=({cell:e,layoutService:t,styleService:n,representation:r,color:o,isNumeric:i,isTotalValueCell:a})=>{const l=e.isNull?t.getNullValueText():r.text,s=SF(n,o,i,a,e.isNull);return r.type!==qe.Image||e.isNull?Lc.jsx("span",{style:{padding:4,...s},children:l}):Lc.jsx(gF,{representation:r,styleService:n,textStyle:s,isLeftColumn:!0})},wF=(e,t)=>{var n,r;return null!==(n=null==e||null===(r=e[t])||void 0===r?void 0:r.visibleMeasureInfoIndex)&&void 0!==n?n:0},RF="flex-start",kF=(e,t)=>{return e.isNull?RF:t.type===qe.Image&&"fill"!==t.imageSize?null===(n=t.resolvedImagePosition)||void 0===n?void 0:n.vertical:RF;var n},LF=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const i=_T(),{env:a}=RT(),{background:l}=i.measureValues,{grid:s,layoutService:u,showLastBorder:c,shouldShowTotalCellBottomDivider:d,shouldShowTotalCellRightDivider:p,isTotalValue:f,pageInfo:h,lastRow:m,lastColumn:g,attrExprInfoIndexes:b}=r,v=null===(o=s[t])||void 0===o?void 0:o[e],y=t===h.rowsOnCurrentPage-1,x=e===u.size.x-1;if(!v)return Lc.jsx(qq,{style:{...n,background:l},isLastRow:y,isLastColumn:x,showLastBorder:c,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const S=u.hasPseudoDimOnLeft?wF(g,t):wF(m,e),E=u.visibleMeasureInfo[S],C=cN(v.ref,u.isIndentModeEnabled?{type:qe.Text}:E.representation,b[S],a),w=!v.isNull&&f(e,t),R=v.isNull?u.getNullValueText():C.text,k=!v.isNull||!Number.isNaN(+R),L=dN(b[S],v.ref),I={...xF(i,v.isNull,w,L.background),...gr(y,x,i.grid.border,c),...vr({bottomDivider:d(t),rightDivider:p(e),borderColor:i.grid.divider}),...pr,padding:"0px 4px",display:"flex",justifyContent:EF(v,E,C,k,a.flags)};return Lc.jsx("div",{className:Je,title:R,style:{...I,...n},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:Lc.jsx(Fq,{width:zq(C),verticalAlign:kF(v,C),children:Lc.jsx(CF,{cell:v,layoutService:u,styleService:i,representation:C,isNumeric:k,isTotalValueCell:w,color:L.color})})})};var IF=Eo.memo(LF,Sq);const MF=(e,t)=>{var n,r;return null!==(n=null===(r=t.list[e])||void 0===r?void 0:r.id)&&void 0!==n?n:e.toString()},_F=({columnIndex:e,rowIndex:t,data:n})=>{var r,o;return null!==(r=null===(o=n.grid[t])||void 0===o||null===(o=o[e])||void 0===o?void 0:o.id)&&void 0!==r?r:`${t}-${e}`},AF={...dr,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},PF=({dataModel:e,dataGridRef:t,height:n,rowHightCallback:r,width:o,viewService:i,layoutService:a,measureData:l,leftDimensionData:s,topDimensionData:u,visibleTopDimensionInfo:c,visibleLeftDimensionInfo:d,attrExprInfoIndexes:p,showLastBorder:f,getRightGridColumnWidth:h,pageInfo:m,verticalScrollDirection:g,horizontalScrollDirection:b})=>{const{grid:{divider:v},contentCellHeight:y}=_T(),x={...AF,borderColor:v,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},S=((e,t,n=!1)=>So.useCallback((r=>{var o;const i=n?0:t-1,a=null===(o=e.grid.at(i))||void 0===o?void 0:o[r];return Eq(a,e.totalDividerIndex,n)}),[e,n,t]))(s,d.length,a.isIndentModeEnabled),E=((e,t)=>So.useCallback((n=>{var r;const o=null===(r=e.grid.at(t-1))||void 0===r?void 0:r[n];return Eq(o,e.totalDividerIndex)}),[e,t]))(u,c.length),C=((e,t,n,r,o)=>So.useCallback(((i,a)=>{var l,s;return!!(null!==(l=t.grid.at(r-1))&&void 0!==l&&null!==(l=l[i])&&void 0!==l&&l.isTotal||null!==(s=e.grid.at(o?0:n-1))&&void 0!==s&&null!==(s=s[a])&&void 0!==s&&s.isTotal)}),[t,e,n,r,o]))(s,u,d.length,c.length,a.isIndentModeEnabled),w=(({viewService:e,dataModel:t,measureData:n,layoutService:r,pageInfo:o,leftColumnCount:i,topRowCount:a,verticalScrollDirection:l,horizontalScrollDirection:s})=>{const{downloadService:u}=RT();return So.useCallback((async({overscanColumnStartIndex:c,overscanColumnStopIndex:d,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{e.gridColumnStartIndex=c,e.gridRowStartIndex=p,e.gridWidth=d-c+1,e.gridHeight=f-p+1;const h=e.gridWidth+i+(s.current===Ke.None?0:Cq),m=e.gridHeight+a+(l.current===Ke.None?0:Cq);let g=Oq;m*h>1500&&(g=Nq),g(t,r,n,o,e,l,s,u)}),[e,r,t,n,l,s,o,i,a,u])})({viewService:i,layoutService:a,dataModel:e,measureData:l,pageInfo:m,leftColumnCount:s.columnCount,topRowCount:u.rowCount,verticalScrollDirection:g,horizontalScrollDirection:b});return vM((()=>{t.current&&t.current.resetAfterColumnIndex(0,!1)}),[t,e,l]),So.useLayoutEffect((()=>{t.current&&t.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[o,n,t,y]),0===a.size.x?null:Lc.jsx(uq,{ref:t,style:x,columnCount:a.size.x,columnWidth:h,height:n,rowCount:m.rowsOnCurrentPage,rowHeight:r,width:o,itemData:{layoutService:a,grid:l,dataModel:e,showLastBorder:f,isTotalValue:C,shouldShowTotalCellBottomDivider:S,shouldShowTotalCellRightDivider:E,pageInfo:m,lastRow:u.grid.at(c.length-1),lastColumn:s.grid.at(d.length-1),attrExprInfoIndexes:p},onItemsRendered:w,estimatedRowHeight:r(),estimatedColumnWidth:h(),itemKey:_F,children:IF})};var DF=So.memo(PF);function TF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const OF=(e,t)=>Eo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){TF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Eo.createElement("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),Eo.createElement("use",{fillRule:"evenodd"})),NF=So.forwardRef(OF),qF=e=>{const[t,n]=So.useState(!1);return vM((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}},FF=({interactions:e,dataModel:t})=>{const[n,r]=So.useState(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=qF([t]);return{open:n,setOpen:r,handleOpenMenu:t=>e.active&&!Uq(t)&&!o&&r(!0),setIsAdjustingWidth:i}};function zF(e,t){var n,r,o,i;const a=null!==(n=null===(r=t.expressionColor)||void 0===r?void 0:r.background)&&void 0!==n?n:e.dimensionValues.background,l=t.isLeftColumn?e.header.background:a,s=l===sr.Transparent?JL.WHITE:l,u=null===(o=bI(e.grid.border))||void 0===o?void 0:o.rgb(),c=null===(i=bI(s))||void 0===i?void 0:i.rgb();if(c&&u&&u.opacity<1){const e=1-u.opacity;return`rgb(${u.opacity*u.r+e*c.r}, ${u.opacity*u.g+e*c.g}, ${u.opacity*u.b+e*c.g})`}return e.grid.border}const jF=({cellInfo:e,columnWidth:t,dataModel:n,isLastColumn:r,overrideLeftGridWidth:o,setIsAdjustingWidth:i,shouldApplyIndentModeColumnWidth:a,tableWidth:l})=>{var s;const{interactions:u,translator:c}=RT(),{isActive:d}=Qq(),p=_T(),[,f]=So.useState({});if(!(e.canBeResized&&!!u.active&&!d))return null;const h=zF(p,e);return Lc.jsx(OP,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:h,updateWidthCallback:t=>{f({}),o&&void 0!==e.colIdx&&o(t,e.colIdx)},confirmWidthCallback:t=>{var r;a?null==n||n.applyIndentModeColumnWidth({...t,pixels:Math.min((null!=l?l:0)*NT,null!==(r=t.pixels)&&void 0!==r?r:0)}):null==n||n.applyColumnWidth(t,e)},setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn,accessibilityRelatedArgs:{translator:c,columnLabel:null!==(s=e.label)&&void 0!==s?s:""}})};function $F(e){return K_(e)}const BF=e=>e.scrollTop;function HF(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function WF(e){return nu("MuiPaper",e)}ru("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 GF=["className","component","elevation","square","variant"],VF=IP("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return Ir({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&&Ir({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${iA("#fff",AP(t.elevation))}, ${iA("#fff",AP(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var UF=So.forwardRef((function(e,t){const n=$F({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=Or(n,GF),u=Ir({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Js({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},WF,o)})(u);return Lc.jsx(VF,Ir({as:o,ownerState:u,className:su(c.root,r),ref:t},s))}));var YF=ru("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const KF=["center","classes","className"];let XF,QF,JF,ZF,ez=e=>e;const tz=Vl(XF||(XF=ez`
120
+ `),qC.rippleVisible,BC,550,(({theme:e})=>e.transitions.easing.easeInOut),qC.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),qC.child,qC.childLeaving,HC,550,(({theme:e})=>e.transitions.easing.easeInOut),qC.childPulsate,VC,(({theme:e})=>e.transitions.easing.easeInOut)),KC=ro.forwardRef((function(e,t){const n=kd({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Wo(n,FC),[l,s]=ro.useState([]),u=ro.useRef(0),c=ro.useRef(null);ro.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=ro.useRef(!1),p=ro.useRef(0),f=ro.useRef(null),m=ro.useRef(null);ro.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=ro.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,uc.jsx(YC,{classes:{ripple:Dd(o.ripple,qC.ripple),rippleVisible:Dd(o.rippleVisible,qC.rippleVisible),ripplePulsate:Dd(o.ripplePulsate,qC.ripplePulsate),child:Dd(o.child,qC.child),childLeaving:Dd(o.childLeaving,qC.childLeaving),childPulsate:Dd(o.childPulsate,qC.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=ro.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h]),v=ro.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=ro.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{b(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return ro.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),uc.jsx(UC,$o({className:Dd(qC.root,o.root,i),ref:m},a,{children:uc.jsx(RC,{component:null,exit:!0,children:l})}))}));var XC=KC;function QC(e){return nd("MuiButtonBase",e)}var JC=rd("MuiButtonBase",["root","disabled","focusVisible"]);const ZC=["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"],ew=_d("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"},[`&.${JC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),tw=ro.forwardRef((function(e,t){const n=kd({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:C,onTouchEnd:w,onTouchMove:R,onTouchStart:k,tabIndex:L=0,TouchRippleProps:I,touchRippleRef:M,type:_}=n,A=Wo(n,ZC),P=ro.useRef(null),D=ro.useRef(null),T=$c(D,M),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:F}=Qc(),[z,j]=ro.useState(!1);s&&z&&j(!1),ro.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),P.current.focus()}})),[]);const[$,W]=ro.useState(!1);ro.useEffect((()=>{W(!0)}),[]);const G=$&&!u&&!s;function B(e,t,n=c){return jc((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}ro.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const H=B("start",S),V=B("stop",h),U=B("stop",g),Y=B("stop",C),K=B("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=B("start",k),Q=B("stop",w),J=B("stop",R),Z=B("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),ee=jc((e=>{P.current||(P.current=e.currentTarget),N(e),!0===O.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=P.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=ro.useRef(!1),re=jc((e=>{d&&!ne.current&&z&&D.current&&" "===e.key&&(ne.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),oe=jc((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(A.href||A.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===_?"button":_,ae.disabled=s):(A.href||A.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=$c(t,F,P),se=$o({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:L,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Ts({root:["root",t&&"disabled",n&&"focusVisible"]},QC,o);return n&&r&&(i.root+=` ${r}`),i})(se);return uc.jsxs(ew,$o({as:ie,className:Dd(ue.root,a),ownerState:se,onBlur:Z,onClick:m,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:H,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:L,type:_},ae,A,{children:[i,G?uc.jsx(XC,$o({ref:T,center:o},I)):null]}))}));var nw=tw;function rw(e){return nd("MuiTypography",e)}rd("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ow=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],iw=_d("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${Pc(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>$o({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}))),aw={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},lw={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},sw=ro.forwardRef((function(e,t){const n=kd({props:e,name:"MuiTypography"}),r=(e=>lw[e]||e)(n.color),o=pc($o({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=aw}=o,f=Wo(o,ow),m=$o({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||aw[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Ts({root:["root",i,"inherit"!==e.align&&`align${Pc(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},rw,a)})(m);return uc.jsx(iw,$o({as:h,ref:t,ownerState:m,className:Dd(g.root,a)},f))}));var uw=sw;const cw=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function dw(e){const t=[],n=[];return Array.from(e.querySelectorAll(cw)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function pw(){return!0}function fw(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=dw,isEnabled:a=pw,open:l}=e,s=ro.useRef(!1),u=ro.useRef(null),c=ro.useRef(null),d=ro.useRef(null),p=ro.useRef(null),f=ro.useRef(!1),m=ro.useRef(null),h=bs(t.ref,m),g=ro.useRef(null);ro.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),ro.useEffect((()=>{if(!l||!m.current)return;const e=fs(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),ro.useEffect((()=>{if(!l||!m.current)return;const e=fs(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return uc.jsxs(ro.Fragment,{children:[uc.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),ro.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),uc.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const mw=ro.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=ro.useState(null),l=bs(ro.isValidElement(n)?n.ref:null,t);if(gs((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),gs((()=>{if(i&&!o)return hs(t,i),()=>{hs(t,null)}}),[t,i,o]),o){if(ro.isValidElement(n)){const e={ref:l};return ro.cloneElement(n,e)}return uc.jsx(ro.Fragment,{children:n})}return uc.jsx(ro.Fragment,{children:i?sC.createPortal(n,i):i})}));function hw(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function gw(e){return parseInt(ms(e).getComputedStyle(e).paddingRight,10)||0}function vw(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&hw(e,o)}))}function bw(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function yw(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=fs(e);return t.body===e?ms(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Ps(fs(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${gw(r)+e}px`;const t=fs(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${gw(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=fs(r).body;else{const t=r.parentElement,n=ms(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const xw=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&hw(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);vw(t,e.mount,e.modalRef,r,!0);const o=bw(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=bw(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=yw(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=bw(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&hw(e.modalRef,t),vw(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&hw(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Sw(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=xw,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=ro.useRef({}),f=ro.useRef(null),m=ro.useRef(null),h=bs(m,d),[g,v]=ro.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=vs((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||fs(f.current).body;o.add(x(),e),m.current&&S()})),C=ro.useCallback((()=>o.isTopModal(x())),[o]),w=vs((e=>{f.current=e,e&&(c&&C()?S():m.current&&hw(m.current,y))})),R=ro.useCallback((()=>{o.remove(x(),y)}),[y,o]);ro.useEffect((()=>()=>{R()}),[R]),ro.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const k=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},L=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=DC(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Dl({},n,t);return Dl({role:"presentation"},r,{onKeyDown:k(r),ref:h})},getBackdropProps:(e={})=>Dl({"aria-hidden":!0},e,{onClick:L(e),open:c}),getTransitionProps:()=>({onEnter:ds((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:ds((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:w,isTopModal:C,exited:g,hasTransition:b}}const Ew=["onChange","maxRows","minRows","style","value"];function Cw(e){return parseInt(e,10)||0}const ww={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Rw(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const kw=ro.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=Tl(e,Ew),{current:s}=ro.useRef(null!=a),u=ro.useRef(null),c=bs(t,u),d=ro.useRef(null),p=ro.useRef(0),[f,m]=ro.useState({outerHeightStyle:0}),h=ro.useCallback((()=>{const t=u.current,n=ms(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n.boxSizing,l=Cw(n.paddingBottom)+Cw(n.paddingTop),s=Cw(n.borderBottomWidth)+Cw(n.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},v=ro.useCallback((()=>{const e=h();Rw(e)||m((t=>g(t,e)))}),[h]);gs((()=>{const e=()=>{p.current=0,(()=>{const e=h();Rw(e)||sC.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=ps(e),n=u.current,r=ms(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[h]),gs((()=>{v()})),ro.useEffect((()=>{p.current=0}),[a]);return uc.jsxs(ro.Fragment,{children:[uc.jsx("textarea",Dl({value:a,onChange:e=>{p.current=0,s||v(),n&&n(e)},ref:c,rows:o,style:Dl({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),uc.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Dl({},ww,i,{paddingTop:0,paddingBottom:0})})]})}));function Lw({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var Iw=ro.createContext(void 0);function Mw(){return ro.useContext(Iw)}function _w(e){return uc.jsx(cc,$o({},e,{defaultTheme:wd,themeId:jo}))}function Aw(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Pw(e,t=!1){return e&&(Aw(e.value)&&""!==e.value||t&&Aw(e.defaultValue)&&""!==e.defaultValue)}function Dw(e){return nd("MuiInputBase",e)}var Tw=rd("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const Ow=["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"],Nw=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Pc(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},qw=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Fw=_d("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Nw})((({theme:e,ownerState:t})=>$o({},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",[`&.${Tw.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&$o({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),zw=_d("input",{name:"MuiInputBase",slot:"Input",overridesResolver:qw})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=$o({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return $o({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Tw.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},[`&.${Tw.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"})})),jw=uc.jsx(_w,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),$w=ro.forwardRef((function(e,t){var n;const r=kd({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:S=!1,name:E,onBlur:C,onChange:w,onClick:R,onFocus:k,onKeyDown:L,onKeyUp:I,placeholder:M,readOnly:_,renderSuffix:A,rows:P,slotProps:D={},slots:T={},startAdornment:O,type:N="text",value:q}=r,F=Wo(r,Ow),z=null!=v.value?v.value:q,{current:j}=ro.useRef(null!=z),$=ro.useRef(),W=ro.useCallback((e=>{}),[]),G=$c($,b,v.ref,W),[B,H]=ro.useState(!1),V=Mw(),U=Lw({props:r,muiFormControl:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=V?V.focused:B,ro.useEffect((()=>{!V&&d&&B&&(H(!1),C&&C())}),[V,d,B,C]);const Y=V&&V.onFilled,K=V&&V.onEmpty,X=ro.useCallback((e=>{Pw(e)?Y&&Y():K&&K()}),[Y,K]);Oc((()=>{j&&X({value:z})}),[z,X,j]);ro.useEffect((()=>{X($.current)}),[]);let Q=g,J=v;S&&"input"===Q&&(J=$o(P?{type:void 0,minRows:P,maxRows:P}:{type:void 0,maxRows:y,minRows:x},J),Q=kw);ro.useEffect((()=>{V&&V.setAdornedStart(Boolean(O))}),[V,O]);const Z=$o({},r,{color:U.color||"primary",disabled:U.disabled,endAdornment:f,error:U.error,focused:U.focused,formControl:V,fullWidth:m,hiddenLabel:U.hiddenLabel,multiline:S,size:U.size,startAdornment:O,type:N}),ee=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return Ts({root:["root",`color${Pc(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${Pc(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Dw,t)})(Z),te=T.root||s.Root||Fw,ne=D.root||u.root||{},re=T.input||s.Input||zw;return J=$o({},J,null!=(n=D.input)?n:u.input),uc.jsxs(ro.Fragment,{children:[!p&&jw,uc.jsxs(te,$o({},ne,!PC(te)&&{ownerState:$o({},Z,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),R&&R(e)}},F,{className:Dd(ee.root,ne.className,l,_&&"MuiInputBase-readOnly"),children:[O,uc.jsx(Iw.Provider,{value:null,children:uc.jsx(re,$o({ownerState:Z,"aria-invalid":U.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:U.disabled,id:h,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:E,placeholder:M,readOnly:_,required:U.required,rows:P,value:z,onKeyDown:L,onKeyUp:I,type:N},J,!PC(re)&&{as:Q,ownerState:$o({},Z,J.ownerState)},{ref:G,className:Dd(ee.input,J.className,_&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),v.onBlur&&v.onBlur(e),V&&V.onBlur?V.onBlur(e):H(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||$.current;if(null==t)throw new Error(zo(1));X({value:t.value})}v.onChange&&v.onChange(e,...t),w&&w(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(k&&k(e),v.onFocus&&v.onFocus(e),V&&V.onFocus?V.onFocus(e):H(!0))}}))}),f,A?A($o({},U,{startAdornment:O})):null]}))]})}));var Ww=$w;function Gw(e){return nd("MuiInput",e)}var Bw=$o({},Tw,rd("MuiInput",["root","underline","input"]));function Hw(e){return nd("MuiOutlinedInput",e)}var Vw=$o({},Tw,rd("MuiOutlinedInput",["root","notchedOutline","input"]));function Uw(e){return nd("MuiFilledInput",e)}var Yw=$o({},Tw,rd("MuiFilledInput",["root","underline","input"])),Kw=function(e,t){function n(n,r){return uc.jsx(Fd,$o({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Fd.muiName,ro.memo(ro.forwardRef(n))}(uc.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Xw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Qw={entering:{opacity:1},entered:{opacity:1}},Jw=ro.forwardRef((function(e,t){const n=Rd(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:v=yC}=e,b=Wo(e,Xw),y=ro.useRef(null),x=$c(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),C=S(((e,t)=>{kC(e);const r=LC({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),w=S(c),R=S(m),k=S((e=>{const t=LC({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),L=S(f);return uc.jsx(v,$o({appear:i,in:s,nodeRef:y,onEnter:C,onEntered:w,onEntering:E,onExit:k,onExited:L,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>ro.cloneElement(a,$o({style:$o({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},Qw[e],h,a.props.style),ref:x},t))}))}));var Zw=Jw;function eR(e){return nd("MuiBackdrop",e)}rd("MuiBackdrop",["root","invisible"]);const tR=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],nR=_d("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>$o({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"}))),rR=ro.forwardRef((function(e,t){var n,r,o;const i=kd({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=Zw,transitionDuration:g}=i,v=Wo(i,tR),b=$o({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Ts({root:["root",n&&"invisible"]},eR,t)})(b),x=null!=(n=f.root)?n:c.root;return uc.jsx(h,$o({in:p,timeout:g},v,{children:uc.jsx(nR,$o({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:Dd(y.root,l,null==x?void 0:x.className),ownerState:$o({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var oR=rR;var iR=rd("MuiBox",["root"]);const aR=Cd(),lR=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=_l("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Uu);return ro.forwardRef((function(e,a){const l=Zu(n),s=pc(e),{className:u,component:c="div"}=s,d=Tl(s,fc);return uc.jsx(i,Dl({as:c,ref:a,className:Bs(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:jo,defaultTheme:aR,defaultClassName:iR.root,generateClassName:ed.generate});var sR=lR;function uR(e){return nd("MuiButton",e)}var cR=rd("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var dR=ro.createContext({});var pR=ro.createContext(void 0);const fR=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],mR=e=>$o({},"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}}),hR=_d(nw,{shouldForwardProp:e=>Ld(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Pc(n.color)}`],t[`size${Pc(n.size)}`],t[`${n.variant}Size${Pc(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return $o({},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":$o({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ic(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})`:Ic(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})`:Ic(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":$o({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${cR.focusVisible}`]:$o({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${cR.disabled}`]:$o({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 ${Ic(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${cR.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${cR.disabled}`]:{boxShadow:"none"}})),gR=_d("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Pc(n.size)}`]]}})((({ownerState:e})=>$o({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},mR(e)))),vR=_d("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Pc(n.size)}`]]}})((({ownerState:e})=>$o({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},mR(e)))),bR=ro.forwardRef((function(e,t){const n=ro.useContext(dR),r=ro.useContext(pR),o=kd({props:Jc(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:v,variant:b="text"}=o,y=Wo(o,fR),x=$o({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:v,variant:b}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return $o({},a,Ts({root:["root",i,`${i}${Pc(t)}`,`size${Pc(o)}`,`${i}Size${Pc(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Pc(o)}`],endIcon:["endIcon",`iconSize${Pc(o)}`]},uR,a))})(x),E=g&&uc.jsx(gR,{className:S.startIcon,ownerState:x,children:g}),C=p&&uc.jsx(vR,{className:S.endIcon,ownerState:x,children:p}),w=r||"";return uc.jsxs(hR,$o({ownerState:x,className:Dd(n.className,S.root,s,w),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:Dd(S.focusVisible,f),ref:t,type:v},y,{classes:S,children:[E,i,C]}))}));var yR=bR;function xR(e){return nd("MuiModal",e)}rd("MuiModal",["root","hidden","backdrop"]);const SR=["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"],ER=_d("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>$o({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),CR=_d(oR,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),wR=ro.forwardRef((function(e,t){var n,r,o,i,a,l;const s=kd({name:"MuiModal",props:e}),{BackdropComponent:u=CR,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:w=!1,keepMounted:R=!1,onBackdropClick:k,open:L,slotProps:I,slots:M}=s,_=Wo(s,SR),A=$o({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:w,keepMounted:R}),{getRootProps:P,getBackdropProps:D,getTransitionProps:T,portalRef:O,isTopModal:N,exited:q,hasTransition:F}=Sw($o({},A,{rootRef:t})),z=$o({},A,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return Ts({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},xR,r)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const W=null!=(n=null!=(r=null==M?void 0:M.root)?r:g.Root)?n:ER,G=null!=(o=null!=(i=null==M?void 0:M.backdrop)?i:g.Backdrop)?o:u,B=null!=(a=null==I?void 0:I.root)?a:v.root,H=null!=(l=null==I?void 0:I.backdrop)?l:v.backdrop,V=NC({elementType:W,externalSlotProps:B,externalForwardedProps:_,getSlotProps:P,additionalProps:{ref:t,as:h},ownerState:z,className:Dd(d,null==B?void 0:B.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=NC({elementType:G,externalSlotProps:H,additionalProps:c,getSlotProps:e=>D($o({},e,{onClick:t=>{k&&k(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Dd(null==H?void 0:H.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||L||F&&!q?uc.jsx(mw,{ref:O,container:m,disablePortal:S,children:uc.jsxs(W,$o({},V,{children:[!w&&u?uc.jsx(G,$o({},U)):null,uc.jsx(fw,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:L,children:ro.cloneElement(f,$)})]}))}):null}));var RR=wR;function kR(e){return nd("MuiDivider",e)}var LR=rd("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const IR=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],MR=_d("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>$o({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)`:Ic(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})=>$o({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>$o({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>$o({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>$o({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),_R=_d("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>$o({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)`}))),AR=ro.forwardRef((function(e,t){const n=kd({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Wo(n,IR),m=$o({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return Ts({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},kR,r)})(m);return uc.jsx(MR,$o({as:a,className:Dd(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?uc.jsx(_R,{className:h.wrapper,ownerState:m,children:o}):null}))}));AR.muiSkipListHighlight=!0;var PR=AR;const DR=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],TR=_d(Fw,{shouldForwardProp:e=>Ld(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Nw(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return $o({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}},[`&.${Yw.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Yw.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Yw.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Yw.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(.${Yw.disabled}, .${Yw.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Yw.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&$o({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}))})),OR=_d(zw,{name:"MuiFilledInput",slot:"Input",overridesResolver:qw})((({theme:e,ownerState:t})=>$o({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}))),NR=ro.forwardRef((function(e,t){var n,r,o,i;const a=kd({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=Wo(a,DR),g=$o({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),v=(e=>{const{classes:t,disableUnderline:n}=e;return $o({},t,Ts({root:["root",!n&&"underline"],input:["input"]},Uw,t))})(a),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Ac(b,null!=p?p:s):b,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:TR,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:OR;return uc.jsx(Ww,$o({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:v}))}));NR.muiName="Input";var qR=NR;const FR=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function zR(e){return`scale(${e}, ${e**2})`}const jR={entering:{opacity:1,transform:zR(1)},entered:{opacity:1,transform:"none"}},$R="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),WR=ro.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=yC}=e,g=Wo(e,FR),v=ro.useRef(),b=ro.useRef(),y=Rd(),x=ro.useRef(null),S=$c(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(u),w=E(((e,t)=>{kC(e);const{duration:n,delay:r,easing:o}=LC({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:$R?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),k=E(p),L=E((e=>{const{duration:t,delay:n,easing:r}=LC({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:$R?o:.666*o,delay:$R?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=zR(.75),c&&c(e)})),I=E(d);return ro.useEffect((()=>()=>{clearTimeout(v.current)}),[]),uc.jsx(h,$o({appear:r,in:a,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:L,onExited:I,onExiting:k,addEndListener:e=>{"auto"===m&&(v.current=setTimeout(e,b.current||0)),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>ro.cloneElement(o,$o({style:$o({opacity:0,transform:zR(.75),visibility:"exited"!==e||a?void 0:"hidden"},jR[e],f,o.props.style),ref:S},t))}))}));WR.muiSupportAuto=!0;var GR=WR;const BR=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],HR=_d(Fw,{shouldForwardProp:e=>Ld(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Nw(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),$o({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"},[`&.${Bw.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Bw.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Bw.disabled}, .${Bw.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Bw.disabled}:before`]:{borderBottomStyle:"dotted"}})})),VR=_d(zw,{name:"MuiInput",slot:"Input",overridesResolver:qw})({}),UR=ro.forwardRef((function(e,t){var n,r,o,i;const a=kd({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=Wo(a,BR),v=(e=>{const{classes:t,disableUnderline:n}=e;return $o({},t,Ts({root:["root",!n&&"underline"],input:["input"]},Gw,t))})(a),b={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Ac(null!=f?f:u,b):b,x=null!=(n=null!=(r=m.root)?r:s.Root)?n:HR,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:VR;return uc.jsx(Ww,$o({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:v}))}));UR.muiName="Input";var YR=UR;function KR(e){return nd("MuiLink",e)}var XR=rd("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const QR={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var JR=({theme:e,ownerState:t})=>{const n=(e=>QR[e]||e)(t.color),r=nu(e,`palette.${n}`,!1)||t.color,o=nu(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Ic(r,.4)};const ZR=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],ek=_d(uw,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Pc(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>$o({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&$o({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:JR({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"},[`&.${XR.focusVisible}`]:{outline:"auto"}}))),tk=ro.forwardRef((function(e,t){const n=kd({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=n,p=Wo(n,ZR),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=Qc(),[v,b]=ro.useState(!1),y=$c(t,g),x=$o({},n,{color:o,component:i,focusVisible:v,underline:u,variant:c}),S=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return Ts({root:["root",`underline${Pc(o)}`,"button"===n&&"button",r&&"focusVisible"]},KR,t)})(x);return uc.jsx(ek,$o({color:o,className:Dd(S.root,r),classes:s,component:i,onBlur:e=>{m(e),!1===f.current&&b(!1),a&&a(e)},onFocus:e=>{h(e),!0===f.current&&b(!0),l&&l(e)},ref:y,ownerState:x,variant:c,sx:[...Object.keys(QR).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var nk=tk;var rk=ro.createContext({});function ok(e){return nd("MuiList",e)}rd("MuiList",["root","padding","dense","subheader"]);const ik=["children","className","component","dense","disablePadding","subheader"],ak=_d("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>$o({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var lk=ro.forwardRef((function(e,t){const n=kd({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=Wo(n,ik),c=ro.useMemo((()=>({dense:a})),[a]),d=$o({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Ts({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},ok,t)})(d);return uc.jsx(rk.Provider,{value:c,children:uc.jsxs(ak,$o({as:i,className:Dd(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function sk(e){return nd("MuiListItemIcon",e)}var uk=rd("MuiListItemIcon",["root","alignItemsFlexStart"]);const ck=["className"],dk=_d("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>$o({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var pk=ro.forwardRef((function(e,t){const n=kd({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Wo(n,ck),i=$o({},n,{alignItems:ro.useContext(rk).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Ts({root:["root","flex-start"===t&&"alignItemsFlexStart"]},sk,n)})(i);return uc.jsx(dk,$o({className:Dd(a.root,r),ownerState:i,ref:t},o))}));var fk=rd("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const mk=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function hk(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function gk(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function vk(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function bk(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&vk(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var yk=ro.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Wo(e,mk),p=ro.useRef(null),f=ro.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Oc((()=>{r&&p.current.focus()}),[r]),ro.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(Dc(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=$c(p,t);let h=-1;ro.Children.forEach(i,((e,t)=>{ro.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=ro.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),ro.cloneElement(e,t)}return e}));return uc.jsx(lk,$o({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Dc(t).activeElement;if("ArrowDown"===n)e.preventDefault(),bk(t,r,s,l,hk);else if("ArrowUp"===n)e.preventDefault(),bk(t,r,s,l,gk);else if("Home"===n)e.preventDefault(),bk(t,null,s,l,hk);else if("End"===n)e.preventDefault(),bk(t,null,s,l,gk);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&vk(r,o);o.previousKeyMatched&&(s||bk(t,r,!1,l,hk,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function xk(e){return nd("MuiPopover",e)}rd("MuiPopover",["root","paper"]);const Sk=["onEntering"],Ek=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Ck=["slotProps"];function wk(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Rk(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function kk(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Lk(e){return"function"==typeof e?e():e}const Ik=_d(RR,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Mk=_d(AC,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var _k=ro.forwardRef((function(e,t){var n,r,o;const i=kd({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=GR,transitionDuration:E="auto",TransitionProps:{onEntering:C}={},disableScrollLock:w=!1}=i,R=Wo(i.TransitionProps,Sk),k=Wo(i,Ek),L=null!=(n=null==y?void 0:y.paper)?n:v,I=ro.useRef(),M=$c(I,L.ref),_=$o({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:L,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),A=(e=>{const{classes:t}=e;return Ts({root:["root"],paper:["paper"]},xk,t)})(_),P=ro.useCallback((()=>{if("anchorPosition"===c)return u;const e=Lk(l),t=(e&&1===e.nodeType?e:Dc(I.current).body).getBoundingClientRect();return{top:t.top+wk(t,s.vertical),left:t.left+Rk(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=ro.useCallback((e=>({vertical:wk(e,x.vertical),horizontal:Rk(e,x.horizontal)})),[x.horizontal,x.vertical]),T=ro.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:kk(n)};const r=P();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=Tc(Lk(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:kk(n)}}),[l,c,P,D,h]),[O,N]=ro.useState(g),q=ro.useCallback((()=>{const e=I.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);ro.useEffect((()=>(w&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,w,q]);ro.useEffect((()=>{g&&q()})),ro.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),ro.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{q()})),t=Tc(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,q]);let F=E;"auto"!==E||S.muiSupportAuto||(F=void 0);const z=f||(l?Dc(Lk(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:Ik,$=null!=(o=null==b?void 0:b.paper)?o:Mk,W=NC({elementType:$,externalSlotProps:$o({},L,{style:O?L.style:$o({},L.style,{opacity:0})}),additionalProps:{elevation:m,ref:M},ownerState:_,className:Dd(A.paper,null==L?void 0:L.className)}),G=NC({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:k,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:_,className:Dd(A.root,p)}),{slotProps:B}=G,H=Wo(G,Ck);return uc.jsx(j,$o({},H,!PC(j)&&{slotProps:B,disableScrollLock:w},{children:uc.jsx(S,$o({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:uc.jsx($,$o({},W,{children:d}))}))}))}));function Ak(e){return nd("MuiMenu",e)}rd("MuiMenu",["root","paper","list"]);const Pk=["onEntering"],Dk=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Tk={vertical:"top",horizontal:"right"},Ok={vertical:"top",horizontal:"left"},Nk=_d(_k,{shouldForwardProp:e=>Ld(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qk=_d(Mk,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Fk=_d(yk,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var zk=ro.forwardRef((function(e,t){var n,r;const o=kd({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=Wo(o.TransitionProps,Pk),x=Wo(o,Dk),S=Rd(),E="rtl"===S.direction,C=$o({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),w=(e=>{const{classes:t}=e;return Ts({root:["root"],paper:["paper"],list:["list"]},Ak,t)})(C),R=i&&!s&&d,k=ro.useRef(null);let L=-1;ro.Children.map(a,((e,t)=>{ro.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===L)&&(L=t))}));const I=null!=(n=v.paper)?n:qk,M=null!=(r=b.paper)?r:p,_=NC({elementType:v.root,externalSlotProps:b.root,ownerState:C,className:[w.root,l]}),A=NC({elementType:I,externalSlotProps:M,ownerState:C,className:w.paper});return uc.jsx(Nk,$o({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?Tk:Ok,slots:{paper:I,root:v.root},slotProps:{root:_,paper:A},open:d,ref:t,transitionDuration:m,TransitionProps:$o({onEntering:(e,t)=>{k.current&&k.current.adjustStyleForScrollbar(e,S),h&&h(e,t)}},y),ownerState:C},x,{classes:f,children:uc.jsx(Fk,$o({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:k,autoFocus:i&&(-1===L||s),autoFocusItem:R,variant:g},u,{className:Dd(w.list,u.className),children:a}))}))}));function jk(e){return nd("MuiMenuItem",e)}var $k=rd("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const Wk=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Gk=_d(nw,{shouldForwardProp:e=>Ld(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>$o({},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"}},[`&.${$k.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ic(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${$k.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ic(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${$k.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ic(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})`:Ic(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${$k.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$k.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${LR.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${LR.inset}`]:{marginLeft:52},[`& .${fk.root}`]:{marginTop:0,marginBottom:0},[`& .${fk.inset}`]:{paddingLeft:36},[`& .${uk.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&$o({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${uk.root} svg`]:{fontSize:"1.25rem"}}))));var Bk=ro.forwardRef((function(e,t){const n=kd({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=Wo(n,Wk),f=ro.useContext(rk),m=ro.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=ro.useRef(null);Oc((()=>{r&&h.current&&h.current.focus()}),[r]);const g=$o({},n,{dense:m.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return $o({},a,Ts({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},jk,a))})(n),b=$c(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),uc.jsx(rk.Provider,{value:m,children:uc.jsx(Gk,$o({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:Dd(v.focusVisible,s),className:Dd(v.root,d)},p,{ownerState:g,classes:v}))})}));function Hk(e){return nd("MuiNativeSelect",e)}var Vk=rd("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Uk=["className","disabled","error","IconComponent","inputRef","variant"],Yk=({ownerState:e,theme:t})=>$o({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":$o({},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"},[`&.${Vk.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}}),Kk=_d("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ld,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Vk.multiple}`]:t.multiple}]}})(Yk),Xk=({ownerState:e,theme:t})=>$o({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Vk.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Qk=_d("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Pc(n.variant)}`],n.open&&t.iconOpen]}})(Xk),Jk=ro.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=Wo(e,Uk),u=$o({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Ts({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Pc(n)}`,i&&"iconOpen",r&&"disabled"]},Hk,t)})(u);return uc.jsxs(ro.Fragment,{children:[uc.jsx(Kk,$o({ownerState:u,className:Dd(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:uc.jsx(Qk,{as:i,ownerState:u,className:c.icon})]})}));var Zk,eL=Jk;const tL=["children","classes","className","label","notched"],nL=_d("fieldset",{shouldForwardProp:Ld})({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%"}),rL=_d("legend",{shouldForwardProp:Ld})((({ownerState:e,theme:t})=>$o({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&&$o({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 oL=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],iL=_d(Fw,{shouldForwardProp:e=>Ld(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Nw})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return $o({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Vw.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Vw.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Vw.focused} .${Vw.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Vw.error} .${Vw.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Vw.disabled} .${Vw.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&$o({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),aL=_d((function(e){const{className:t,label:n,notched:r}=e,o=Wo(e,tL),i=null!=n&&""!==n,a=$o({},e,{notched:r,withLabel:i});return uc.jsx(nL,$o({"aria-hidden":!0,className:t,ownerState:a},o,{children:uc.jsx(rL,{ownerState:a,children:i?uc.jsx("span",{children:n}):Zk||(Zk=uc.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}})),lL=_d(zw,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:qw})((({theme:e,ownerState:t})=>$o({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}))),sL=ro.forwardRef((function(e,t){var n,r,o,i,a;const l=kd({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=l,g=Wo(l,oL),v=(e=>{const{classes:t}=e;return $o({},t,Ts({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Hw,t))})(l),b=Mw(),y=Lw({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=$o({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:h}),S=null!=(n=null!=(r=m.root)?r:s.Root)?n:iL,E=null!=(o=null!=(i=m.input)?i:s.Input)?o:lL;return uc.jsx(Ww,$o({slots:{root:S,input:E},renderSuffix:e=>uc.jsx(aL,{ownerState:x,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=uc.jsxs(ro.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:$o({},v,{notchedOutline:null})}))}));sL.muiName="Input";var uL=sL;function cL(e){return nd("MuiSelect",e)}var dL,pL=rd("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const fL=["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"],mL=_d("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${pL.select}`]:t.select},{[`&.${pL.select}`]:t[n.variant]},{[`&.${pL.error}`]:t.error},{[`&.${pL.multiple}`]:t.multiple}]}})(Yk,{[`&.${pL.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),hL=_d("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Pc(n.variant)}`],n.open&&t.iconOpen]}})(Xk),gL=_d("input",{shouldForwardProp:e=>Id(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 vL(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function bL(e){return null==e||"string"==typeof e&&!e.trim()}const yL=ro.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:v={},multiple:b,name:y,onBlur:x,onChange:S,onClose:E,onFocus:C,onOpen:w,open:R,readOnly:k,renderValue:L,SelectDisplayProps:I={},tabIndex:M,value:_,variant:A="standard"}=e,P=Wo(e,fL),[D,T]=zc({controlled:_,default:c,name:"Select"}),[O,N]=zc({controlled:R,default:u,name:"Select"}),q=ro.useRef(null),F=ro.useRef(null),[z,j]=ro.useState(null),{current:$}=ro.useRef(null!=R),[W,G]=ro.useState(),B=$c(t,h),H=ro.useCallback((e=>{F.current=e,e&&j(e)}),[]),V=null==z?void 0:z.parentNode;ro.useImperativeHandle(B,(()=>({focus:()=>{F.current.focus()},node:q.current,value:D})),[D]),ro.useEffect((()=>{u&&O&&z&&!$&&(G(a?null:V.clientWidth),F.current.focus())}),[z,a]),ro.useEffect((()=>{i&&F.current.focus()}),[i]),ro.useEffect((()=>{if(!g)return;const e=Dc(F.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const U=(e,t)=>{e?w&&w(t):E&&E(t),$||(G(a?null:V.clientWidth),N(e))},Y=ro.Children.toArray(l),K=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(b){n=Array.isArray(D)?D.slice():[];const t=D.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),D!==n&&(T(n),S)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),S(o,e)}b||U(!1,t)}},X=null!==z&&O;let Q,J;delete P["aria-invalid"];const Z=[];let ee=!1;(Pw({value:D})||p)&&(L?Q=L(D):ee=!0);const te=Y.map((e=>{if(!ro.isValidElement(e))return null;let t;if(b){if(!Array.isArray(D))throw new Error(zo(2));t=D.some((t=>vL(t,e.props.value))),t&&ee&&Z.push(e.props.children)}else t=vL(D,e.props.value),t&&ee&&(J=e.props.children);return ro.cloneElement(e,{"aria-selected":t?"true":"false",onClick:K(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ee&&(Q=b?0===Z.length?null:Z.reduce(((e,t,n)=>(e.push(t),n<Z.length-1&&e.push(", "),e)),[]):J);let ne,re=W;!a&&$&&z&&(re=V.clientWidth),ne=void 0!==M?M:d?null:0;const oe=I.id||(y?`mui-component-select-${y}`:void 0),ie=$o({},e,{variant:A,value:D,open:X,error:f}),ae=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Ts({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Pc(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},cL,t)})(ie),le=$o({},v.PaperProps,null==(n=v.slotProps)?void 0:n.paper),se=Fc();return uc.jsxs(ro.Fragment,{children:[uc.jsx(mL,$o({ref:H,tabIndex:ne,role:"combobox","aria-controls":se,"aria-disabled":d?"true":void 0,"aria-expanded":X?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,oe].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!k){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:d||k?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),U(!0,e))},onBlur:e=>{!X&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:D,name:y}}),x(e))},onFocus:C},I,{ownerState:ie,className:Dd(I.className,ae.select,s),id:oe,children:bL(Q)?dL||(dL=uc.jsx("span",{className:"notranslate",children:"​"})):Q})),uc.jsx(gL,$o({"aria-invalid":f,value:Array.isArray(D)?D.join(","):D,name:y,ref:q,"aria-hidden":!0,onChange:e=>{const t=Y.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:ae.nativeInput,autoFocus:i,ownerState:ie},P)),uc.jsx(hL,{as:m,className:ae.icon,ownerState:ie}),uc.jsx(zk,$o({id:`menu-${y||""}`,anchorEl:V,open:X,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:$o({"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:se},v.MenuListProps),slotProps:$o({},v.slotProps,{paper:$o({},le,{style:$o({minWidth:re},null!=le?le.style:null)})}),children:te}))]})}));var xL=yL;const SL=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],EL=["root"],CL={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ld(e)&&"variant"!==e,slot:"Root"},wL=_d(YR,CL)(""),RL=_d(uL,CL)(""),kL=_d(qR,CL)(""),LL=ro.forwardRef((function(e,t){const n=kd({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=Kw,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:v=!1,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:E,variant:C="outlined"}=n,w=Wo(n,SL),R=v?eL:xL,k=Lw({props:n,muiFormControl:Mw(),states:["variant","error"]}),L=k.variant||C,I=$o({},n,{variant:L,classes:i}),M=(e=>{const{classes:t}=e;return t})(I),_=Wo(M,EL),A=d||{standard:uc.jsx(wL,{ownerState:I}),outlined:uc.jsx(RL,{label:f,ownerState:I}),filled:uc.jsx(kL,{ownerState:I})}[L],P=$c(t,A.ref);return uc.jsx(ro.Fragment,{children:ro.cloneElement(A,$o({inputComponent:R,inputProps:$o({children:o,error:k.error,IconComponent:u,variant:L,type:void 0,multiple:g},v?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:$o({id:c},E)},p,{classes:p?Ac(_,p.classes):_},d?d.props.inputProps:{})},g&&v&&"outlined"===L?{notched:!0}:{},{ref:P,className:Dd(A.props.className,a,M.root)},!d&&{variant:L},w))})}));LL.muiName="Select";var IL=LL,ML=(e={})=>oo.createElement(Ro,{...e},oo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},oo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},oo.createElement("rect",{stroke:lo.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const _L={MuiAccordion:{styleOverrides:{root:{backgroundColor:lo.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:lo.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:oo.createElement(Eo,{"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 ${lo.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:lo.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${lo.MISC_FOCUS_BORDER}`,borderRadius:fo,backgroundColor:lo.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 ${lo.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:lo.WHITE,color:lo.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:fo},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${lo.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:lo.GREYSCALE_0_15,backgroundColor:lo.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:lo.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${lo.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:lo.GREEN_PALE},"&:active":{backgroundColor:lo.GREEN_DARK},"&.Mui-focusVisible":{borderColor:lo.GREEN_PALE,boxShadow:`0 0 0 3px ${Ic(lo.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:lo.BLUE_PALE},"&:active":{backgroundColor:lo.BLUE_DARK},"&.Mui-focusVisible":{borderColor:lo.BLUE_PALE,boxShadow:`0 0 0 3px ${Ic(lo.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:fo,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:lo.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${lo.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:lo.GREYSCALE_0_15,backgroundColor:lo.GREYSCALE_100_60,"&:active":{backgroundColor:lo.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:lo.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${lo.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:lo.PURPLE,"&.Mui-focusVisible":{borderColor:lo.PURPLE,boxShadow:`0 0 0 3px ${Ic(lo.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:lo.GREEN,"&.Mui-focusVisible":{borderColor:lo.GREEN,boxShadow:`0 0 0 3px ${Ic(lo.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:lo.BLUE,"&.Mui-focusVisible":{borderColor:lo.BLUE,boxShadow:`0 0 0 3px ${Ic(lo.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:lo.ORANGE,"&.Mui-focusVisible":{borderColor:lo.ORANGE,boxShadow:`0 0 0 3px ${Ic(lo.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:lo.RED,"&.Mui-focusVisible":{borderColor:lo.RED,boxShadow:`0 0 0 3px ${Ic(lo.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:lo.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:lo.PURPLE_PALE},"&:active":{backgroundColor:lo.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:lo.PURPLE_PALE,boxShadow:`0 0 0 3px ${Ic(lo.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:lo.GREEN_PALE},"&:active":{backgroundColor:lo.GREEN_DARK},"&.Mui-focusVisible":{borderColor:lo.GREEN_PALE,boxShadow:`0 0 0 3px ${Ic(lo.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:lo.BLUE_PALE},"&:active":{backgroundColor:lo.BLUE_DARK},"&.Mui-focusVisible":{borderColor:lo.BLUE_PALE,boxShadow:`0 0 0 3px ${Ic(lo.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:lo.ORANGE_PALE},"&:active":{backgroundColor:lo.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:lo.ORANGE_PALE,boxShadow:`0 0 0 3px ${Ic(lo.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:lo.RED_PALE},"&:active":{backgroundColor:lo.RED_DARK},"&.Mui-focusVisible":{borderColor:lo.RED_PALE,boxShadow:`0 0 0 3px ${Ic(lo.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:lo.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:lo.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:fo,boxShadow:`inset 0 0 0 2px ${lo.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:oo.createElement(wo,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:so,borderRadius:fo,color:lo.TEXT_PRIMARY,backgroundColor:lo.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:lo.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${lo.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:lo.GREYSCALE_0_05,color:lo.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:lo.GREEN,borderColor:lo.GREEN},"&.MuiChip-outlinedInfo":{color:lo.BLUE,borderColor:lo.BLUE},"&.MuiChip-outlinedWarning":{color:lo.ORANGE,borderColor:lo.ORANGE},"&.MuiChip-outlinedError":{color:lo.RED,borderColor:lo.RED}},outlined:{border:`solid 1px ${lo.GREYSCALE_0_15}`,backgroundColor:lo.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:fo,boxShadow:"none",backgroundColor:lo.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:lo.GREEN,borderColor:lo.GREEN},outlinedSecondary:{color:lo.BLUE,borderColor:lo.BLUE},label:{fontFamily:bo.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:oo.createElement(wo,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:oo.createElement(Eo,{"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:fo},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:fo,fontSize:uo,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:lo.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${lo.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:lo.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:lo.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:lo.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:fo,border:`solid 1px ${lo.GREYSCALE_0_15}`,color:lo.GREYSCALE_0_60,marginRight:0,width:po,height:po},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${lo.GREYSCALE_0_15}`},clearIndicator:{borderRadius:fo,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:lo.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:uo}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:so,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:lo.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:lo.GREYSCALE_25,fontSize:so,fontFamily:bo.FONT_FAMILY,fontWeight:go,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:lo.TEXT_PRIMARY},"&.Mui-error":{color:lo.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:lo.TEXT_SECONDARY,content:"'(optional)'",fontWeight:ho,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:lo.TEXT_SECONDARY,content:"'(required)'",fontWeight:ho,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:uo,lineHeight:"16px",backgroundColor:lo.WHITE,borderRadius:fo,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${lo.GREYSCALE_0_05}`,borderColor:lo.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${lo.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${lo.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${lo.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${lo.RED}`,boxShadow:`0px 0px 0px 1px ${lo.RED}, inset 0 2px 0 0 ${lo.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${lo.GREYSCALE_0_10}`,borderColor:lo.GREYSCALE_0_10,backgroundColor:lo.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:lo.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:lo.GREYSCALE_0_15,borderRadius:fo,boxShadow:`inset 0 2px 0 0 ${lo.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>oo.createElement(Eo,{...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:lo.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:lo.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:lo.GREYSCALE_0_03},"&:active":{backgroundColor:lo.GREYSCALE_0_10},"&:focus":{backgroundColor:lo.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${lo.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${lo.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:lo.GREYSCALE_0_30,"&:hover":{backgroundColor:lo.GREYSCALE_0_0,borderColor:lo.GREYSCALE_0_15},"& ~svg":{color:lo.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${lo.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:fo}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:lo.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${lo.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:lo.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:uo,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:so,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:so,fontWeight:go,color:lo.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:go}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${lo.GREYSCALE_0_15}, 0px 0px 0px 1px ${lo.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:oo.createElement(Io,null),checkedIcon:oo.createElement(Mo,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:lo.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${lo.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:lo.GREEN_PALE,boxShadow:`0 0 0 3px ${Ic(lo.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:lo.BLUE_PALE,boxShadow:`0 0 0 3px ${Ic(lo.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:lo.GREYSCALE_0_20}},"&.Mui-disabled":{fill:lo.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:oo.createElement(ML,null),checkedIcon:oo.createElement(ko,null),indeterminateIcon:oo.createElement(Lo,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:fo,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:lo.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:lo.GREYSCALE_0_55,color:lo.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:lo.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:lo.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:lo.GREYSCALE_0_55,"&:hover":{color:lo.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:lo.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:lo.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:uo,color:lo.TEXT_PRIMARY,lineHeight:"16px",fontWeight:go},secondary:{fontSize:so,color:lo.GREYSCALE_45,fontWeight:ho,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:uo,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:lo.GREYSCALE_0_03},"&:active":{backgroundColor:lo.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:uo,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:lo.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:so,borderBottom:`solid 1px ${lo.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:uo,color:lo.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:lo.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:lo.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:lo.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:lo.RED}}},"&.Mui-focusVisible":{backgroundColor:lo.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:lo.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:lo.GREEN,height:"24px","&.Mui-disabled":{color:lo.GREYSCALE_0_15}},rail:{backgroundColor:lo.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${lo.GREYSCALE_0_05}`,borderRadius:fo,boxShadow:`inset 0px 0px 0px 1px ${lo.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${lo.GREYSCALE_0_05}`,borderRadius:fo},thumb:{height:"16px",width:"16px",borderRadius:fo,backgroundColor:lo.WHITE,boxShadow:`0px 1px 2px 0px ${lo.GREYSCALE_0_15}, 0px 0px 0px 1px ${lo.GREYSCALE_0_05}`,"&:hover":{borderRadius:fo,boxShadow:`0 2px 4px 0 ${lo.GREYSCALE_0_30}, 0 0 0 1px ${lo.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${lo.GREYSCALE_0_15}, 0 0 0 1px ${lo.GREYSCALE_0_06}, 0 0 0 2px ${lo.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${lo.GREYSCALE_0_15}, 0 0 0 1px ${lo.GREYSCALE_0_06}, 0 0 0 2px ${lo.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:lo.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:lo.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:lo.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:lo.GREYSCALE_0_15},markLabel:{color:lo.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:lo.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:lo.WHITE,color:lo.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:lo.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:lo.GREEN_PALE,boxShadow:`0 0 0 3px ${Ic(lo.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:lo.BLUE_PALE,boxShadow:`0 0 0 3px ${Ic(lo.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:lo.GREYSCALE_0_15,borderRadius:fo},thumb:{height:"16px",width:"16px",borderRadius:fo,backgroundColor:lo.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:uo,fontWeight:go,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${lo.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${lo.MISC_FOCUS_BORDER}`,backgroundColor:lo.GREYSCALE_0_03,borderRadius:fo},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:lo.GREYSCALE_25,"&.Mui-selected":{color:lo.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:uo,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${lo.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${lo.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${lo.GREYSCALE_85}`,borderRight:`1px solid ${lo.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:go,backgroundColor:lo.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:lo.GREYSCALE_98,borderBottom:`1px solid ${lo.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${lo.GREYSCALE_85}`,borderTop:`1px solid ${lo.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:lo.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:lo.GREYSCALE_0_05,"&:hover":{backgroundColor:lo.GREYSCALE_0_03}},"&&:hover":{backgroundColor:lo.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>oo.createElement(_o,{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 ${lo.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:uo,borderRadius:fo,padding:"7px 16px",border:`1px solid ${lo.GREYSCALE_0_15}`,backgroundColor:lo.GREYSCALE_100_60,color:lo.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:lo.GREYSCALE_0_10,border:`1px solid ${lo.GREYSCALE_0_30}`},"&:hover":{backgroundColor:lo.GREYSCALE_0_03,border:`1px solid ${lo.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:lo.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${lo.MISC_FOCUS_BORDER}`,border:`1px solid ${lo.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:lo.GREYSCALE_25,backgroundColor:lo.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:lo.GREYSCALE_0_10,border:`1px solid ${lo.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:so,height:24,width:24,padding:7},sizeLarge:{fontSize:co,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:uo,borderRadius:fo}}},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:lo.GREYSCALE_20},tooltip:{backgroundColor:lo.GREYSCALE_20,fontSize:so,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const AL={mode:"light",primary:{light:lo.GREEN_PALE,main:lo.GREEN,dark:lo.GREEN_DARK,contrastText:lo.WHITE},secondary:{light:lo.BLUE_PALE,main:lo.BLUE,dark:lo.BLUE_DARK,contrastText:lo.WHITE},error:{light:lo.RED_PALE,main:lo.RED,dark:lo.RED_DARK,contrastText:lo.WHITE},warning:{light:lo.ORANGE_PALE,main:lo.ORANGE,dark:lo.ORANGE_DARK,contrastText:lo.WHITE},success:{light:lo.GREEN_PALE,main:lo.GREEN,dark:lo.GREEN_DARK,contrastText:lo.WHITE},info:{light:lo.BLUE_PALE,main:lo.BLUE,dark:lo.BLUE_DARK,contrastText:lo.WHITE},text:{primary:lo.TEXT_PRIMARY,secondary:lo.TEXT_SECONDARY,disabled:lo.GREYSCALE_0_30},action:{hover:lo.GREYSCALE_0_03,hoverOpacity:.05,selected:lo.GREYSCALE_0_05,focus:lo.MISC_FOCUS_BORDER},amethyst:{main:lo.PURPLE,light:lo.PURPLE_PALE,dark:lo.PURPLE_DARK,contrastText:lo.WHITE},background:{paper:lo.WHITE,default:lo.GREYSCALE_95},divider:lo.GREYSCALE_0_15},PL=e=>({components:_L,palette:AL,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:uo,fontWeightLight:mo,fontWeightRegular:ho,fontWeightMedium:go,fontWeightBold:vo,htmlFontSize:uo,fontFamily:bo.FONT_FAMILY,button:{fontWeight:go,fontSize:uo,textTransform:"none"},body1:{fontSize:co,lineHeight:"24px"},body2:{fontSize:uo,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:po,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:co,fontWeight:go,lineHeight:"16px"},h6:{fontSize:uo,fontWeight:go,lineHeight:"16px"},caption:{color:lo.TEXT_SECONDARY},subtitle1:{fontSize:uo,color:lo.TEXT_SECONDARY},subtitle2:{fontSize:so,color:lo.TEXT_SECONDARY}},shape:{borderRadius:fo}}),DL={...ao,MISC_FOCUS_BORDER:lo.MISC_FOCUS_BORDER},TL=PL().palette,OL={TEXT:TL.text.primary,DISABLED:TL.text.disabled,HOVER:TL.action.hover,WHITE:DL.GREYSCALE_100,BORDER_LIGHT:DL.GREYSCALE_90,BORDER_MEDIUM:DL.GREYSCALE_85,BORDER_HEAVY:DL.GREYSCALE_50,DARK_MODE_TEXT:DL.GREYSCALE_95,DARK_MODE_BORDER:DL.GREYSCALE_95,DARK_MODE_DISABLED:DL.GREYSCALE_70,DARK_MODE_BACKGROUND:DL.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:DL.GREYSCALE_95,SELECTED:TL.primary.main};function NL(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function qL(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function FL(){}var zL=.7,jL=1/zL,$L="\\s*([+-]?\\d+)\\s*",WL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",GL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",BL=/^#([0-9a-f]{3,8})$/,HL=new RegExp(`^rgb\\(${$L},${$L},${$L}\\)$`),VL=new RegExp(`^rgb\\(${GL},${GL},${GL}\\)$`),UL=new RegExp(`^rgba\\(${$L},${$L},${$L},${WL}\\)$`),YL=new RegExp(`^rgba\\(${GL},${GL},${GL},${WL}\\)$`),KL=new RegExp(`^hsl\\(${WL},${GL},${GL}\\)$`),XL=new RegExp(`^hsla\\(${WL},${GL},${GL},${WL}\\)$`),QL={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 JL(){return this.rgb().formatHex()}function ZL(){return this.rgb().formatRgb()}function eI(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=BL.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?tI(t):3===n?new iI(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?nI(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?nI(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=HL.exec(e))?new iI(t[1],t[2],t[3],1):(t=VL.exec(e))?new iI(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=UL.exec(e))?nI(t[1],t[2],t[3],t[4]):(t=YL.exec(e))?nI(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=KL.exec(e))?dI(t[1],t[2]/100,t[3]/100,1):(t=XL.exec(e))?dI(t[1],t[2]/100,t[3]/100,t[4]):QL.hasOwnProperty(e)?tI(QL[e]):"transparent"===e?new iI(NaN,NaN,NaN,0):null}function tI(e){return new iI(e>>16&255,e>>8&255,255&e,1)}function nI(e,t,n,r){return r<=0&&(e=t=n=NaN),new iI(e,t,n,r)}function rI(e){return e instanceof FL||(e=eI(e)),e?new iI((e=e.rgb()).r,e.g,e.b,e.opacity):new iI}function oI(e,t,n,r){return 1===arguments.length?rI(e):new iI(e,t,n,null==r?1:r)}function iI(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function aI(){return`#${cI(this.r)}${cI(this.g)}${cI(this.b)}`}function lI(){const e=sI(this.opacity);return`${1===e?"rgb(":"rgba("}${uI(this.r)}, ${uI(this.g)}, ${uI(this.b)}${1===e?")":`, ${e})`}`}function sI(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function uI(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function cI(e){return((e=uI(e))<16?"0":"")+e.toString(16)}function dI(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new fI(e,t,n,r)}function pI(e){if(e instanceof fI)return new fI(e.h,e.s,e.l,e.opacity);if(e instanceof FL||(e=eI(e)),!e)return new fI;if(e instanceof fI)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new fI(a,l,s,e.opacity)}function fI(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function mI(e){return(e=(e||0)%360)<0?e+360:e}function hI(e){return Math.max(0,Math.min(1,e||0))}function gI(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}NL(FL,eI,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:JL,formatHex:JL,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return pI(this).formatHsl()},formatRgb:ZL,toString:ZL}),NL(iI,oI,qL(FL,{brighter(e){return e=null==e?jL:Math.pow(jL,e),new iI(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?zL:Math.pow(zL,e),new iI(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new iI(uI(this.r),uI(this.g),uI(this.b),sI(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:aI,formatHex:aI,formatHex8:function(){return`#${cI(this.r)}${cI(this.g)}${cI(this.b)}${cI(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:lI,toString:lI})),NL(fI,(function(e,t,n,r){return 1===arguments.length?pI(e):new fI(e,t,n,null==r?1:r)}),qL(FL,{brighter(e){return e=null==e?jL:Math.pow(jL,e),new fI(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?zL:Math.pow(zL,e),new fI(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new iI(gI(e>=240?e-240:e+120,o,r),gI(e,o,r),gI(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new fI(mI(this.h),hI(this.s),hI(this.l),sI(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=sI(this.opacity);return`${1===e?"hsl(":"hsla("}${mI(this.h)}, ${100*hI(this.s)}%, ${100*hI(this.l)}%${1===e?")":`, ${e})`}`}}));const vI=Math.PI/180,bI=180/Math.PI,yI=.96422,xI=.82521,SI=4/29,EI=6/29,CI=3*EI*EI,wI=EI*EI*EI;function RI(e){if(e instanceof kI)return new kI(e.l,e.a,e.b,e.opacity);if(e instanceof PI)return DI(e);e instanceof iI||(e=rI(e));var t,n,r=_I(e.r),o=_I(e.g),i=_I(e.b),a=LI((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=LI((.4360747*r+.3850649*o+.1430804*i)/yI),n=LI((.0139322*r+.0971045*o+.7141733*i)/xI)),new kI(116*a-16,500*(t-a),200*(a-n),e.opacity)}function kI(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function LI(e){return e>wI?Math.pow(e,1/3):e/CI+SI}function II(e){return e>EI?e*e*e:CI*(e-SI)}function MI(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function _I(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function AI(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof PI)return new PI(e.h,e.c,e.l,e.opacity);if(e instanceof kI||(e=RI(e)),0===e.a&&0===e.b)return new PI(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*bI;return new PI(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new PI(e,t,n,null==r?1:r)}function PI(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function DI(e){if(isNaN(e.h))return new kI(e.l,0,0,e.opacity);var t=e.h*vI;return new kI(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}NL(kI,(function(e,t,n,r){return 1===arguments.length?RI(e):new kI(e,t,n,null==r?1:r)}),qL(FL,{brighter(e){return new kI(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new kI(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new iI(MI(3.1338561*(t=yI*II(t))-1.6168667*(e=1*II(e))-.4906146*(n=xI*II(n))),MI(-.9787684*t+1.9161415*e+.033454*n),MI(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),NL(PI,AI,qL(FL,{brighter(e){return new PI(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new PI(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return DI(this).rgb()}}));const TI=(e,t)=>{const n=AI(e),r=n.l<70;return 0===n.opacity?(n.opacity=t.opacity,n.toString()):r?n.brighter(t.brighter).toString():n.darker(t.darker).toString()},OI={background:OL.SELECTED,color:OL.WHITE},NI=({theme:e,flags:t})=>{if(!t.isEnabled("PS_22149_THEME_SELECTION_COLORS"))return OI;const n=e.getStyle("","","dataColors.selected")||OI.background,r=function(e,t){var n=Et("#FFFFFF"),r=Et(e),o=Et(t);if(r.isInvalid()||o.isInvalid()||r.getAlpha()<1||o.getAlpha()<1)return t;var i=Ct(n,r),a=Ct(o,r),l=i>a||i>4.5;return!l&&a>3?t:l?"#FFFFFF":"#000000"}(n,OL.TEXT);return{background:n,color:r}},qI=e=>{if(e){const t=oI(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},FI=e=>!!e&&0===oI(e).opacity,zI=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,jI=e=>{const t=zI.exec(e);if(t){const[,e,n,r,o]=t;return oI(+n,+r,+o,+e/255)}return oI(e)},$I=e=>{const t=jI(e);return Number.isNaN(t.r)?null:t.toString()},WI=e=>{e.stopPropagation(),e.preventDefault()},GI="#grid",BI=(e,t)=>{const n=null==t?void 0:t.closest(e);return n&&window.getComputedStyle(n).backgroundColor},HI=(e,t,n,r,o)=>{const i=BI(".qv-object .qv-inner-object",n),a=BI(".qv-panel-sheet",n),l=BI(GI,n),s=null!=l?l:a,u=(e=>{var t,n,r,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(n=l.bgColor)||void 0===n?void 0:n.colorExpression,u=null==l||null===(r=l.bgColor)||void 0===r||null===(r=r.color)||void 0===r?void 0:r.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return $I(s);if("none"===u)return"transparent";if(void 0===u)return;const c=jI(u);return c.opacity=null!==(i=null==l||null===(a=l.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.opacity,c.toString()})(e),c=null==r?void 0:r(t),d=null==o?void 0:o(t),p=c||i||d,f=FI(p),m=qI(f?s:p),h=((e,t,n)=>e&&!FI(e)?e:FI(t)?n&&!FI(n)?n:OL.WHITE:t)(u,p,s);return{color:p,headerColor:h,isDark:m}},VI=(t,n,r,o)=>{const i=e.useTheme(),a=((t,n={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,o]=e.useState([]);return e.useEffect((()=>{let e;return t&&(e=new MutationObserver((e=>{o(e)})),e.observe(t,n)),()=>{var t;null===(t=e)||void 0===t||t.disconnect()}}),[t,n]),r})(null==n?void 0:n.closest(GI),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return e.useMemo((()=>({...i,background:HI(t,i,n,r,o)})),[i.name(),n,r,o,t,a])};function UI(t,n){const r=e.useMemo((()=>({isLoading:!0})),n),[o,i]=e.usePromise((async()=>{try{return await t()}finally{r.isLoading=!1}}),n);return[o,r.isLoading,i]}const YI=3;function KI(e,t,n){let r=0,o=e.length;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=o;){const i=Math.floor((r+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=n(a),u=n(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?r=i+1:o=i}return null}function XI({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=YI}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=ro.useMemo((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const a=Mn(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=Mn((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,o=e;do{r+=1,o=KI(o,t,l)}while(null!==o&&r<i);return r}),(({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:s}}),[n,r,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var QI,JI=sC;QI=JI.createRoot,JI.hydrateRoot;function ZI(e,t){const[n,r]=ro.useState(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}var eM={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_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const tM=({translator:e})=>(ro.useMemo((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(eM).forEach((t=>{e.add(eM[t])}))}}(e)),[e]),e),nM=document.createElement("textarea");function rM(e){nM.value=e,document.body.appendChild(nM),nM.select(),nM.setSelectionRange(0,nM.value.length),document.execCommand("copy"),document.body.removeChild(nM)}nM.style.position="absolute",nM.style.left="-9999px",nM.setAttribute("readonly","");function oM(){null===e.onContextMenu||void 0===e.onContextMenu||e.onContextMenu(((e,t)=>{const n=t.target,r=null==n?void 0:n.closest(`.${He}`);null!=r&&r.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{(e=>{var t;const n=e.title;n&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(n).catch((()=>rM(n))):rM(n))})(r)}})}))}var iM="$$material";const aM=["values","unit","step"];function lM(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Tl(e,aM),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)=>Dl({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Dl({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:n},o)}var sM={borderRadius:4};function uM(e,t){return t?ql(e,t,{clone:!1}):e}const cM={xs:0,sm:600,md:900,lg:1200,xl:1536},dM={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${cM[e]}px)`};function pM(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||dM;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||dM;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||cM).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function fM(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function mM(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:fM(e,n)||r,t&&(o=t(o,r,e)),o}function hM(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=fM(e.theme,r)||{};return pM(e,i,(e=>{let r=mM(a,o,e);return e===r&&"string"==typeof e&&(r=mM(a,o,`${t}${"default"===e?"":us(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const gM={m:"margin",p:"padding"},vM={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},bM={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},yM=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!bM[e])return[e];e=bM[e]}const[t,n]=e.split(""),r=gM[t],o=vM[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),xM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],SM=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function EM(e,t,n,r){var o;const i=null!=(o=fM(e,t,!1))?o:n;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 CM(e){return EM(e,"spacing",8)}function wM(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function RM(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=wM(t,n),e)),{})}(yM(n),r);return pM(e,e[n],o)}function kM(e,t){const n=CM(e.theme);return Object.keys(e).map((r=>RM(e,t,r,n))).reduce(uM,{})}function LM(e){return kM(e,xM)}function IM(e){return kM(e,SM)}function MM(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?uM(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function _M(e){return"number"!=typeof e?e:`${e}px solid`}function AM(e,t){return hM({prop:e,themeKey:"borders",transform:t})}LM.propTypes={},LM.filterProps=xM,IM.propTypes={},IM.filterProps=SM;const PM=AM("border",_M),DM=AM("borderTop",_M),TM=AM("borderRight",_M),OM=AM("borderBottom",_M),NM=AM("borderLeft",_M),qM=AM("borderColor"),FM=AM("borderTopColor"),zM=AM("borderRightColor"),jM=AM("borderBottomColor"),$M=AM("borderLeftColor"),WM=AM("outline",_M),GM=AM("outlineColor"),BM=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=EM(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:wM(t,e)});return pM(e,e.borderRadius,n)}return null};BM.propTypes={},BM.filterProps=["borderRadius"],MM(PM,DM,TM,OM,NM,qM,FM,zM,jM,$M,BM,WM,GM);const HM=e=>{if(void 0!==e.gap&&null!==e.gap){const t=EM(e.theme,"spacing",8),n=e=>({gap:wM(t,e)});return pM(e,e.gap,n)}return null};HM.propTypes={},HM.filterProps=["gap"];const VM=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=EM(e.theme,"spacing",8),n=e=>({columnGap:wM(t,e)});return pM(e,e.columnGap,n)}return null};VM.propTypes={},VM.filterProps=["columnGap"];const UM=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=EM(e.theme,"spacing",8),n=e=>({rowGap:wM(t,e)});return pM(e,e.rowGap,n)}return null};UM.propTypes={},UM.filterProps=["rowGap"];function YM(e,t){return"grey"===t?t:e}MM(HM,VM,UM,hM({prop:"gridColumn"}),hM({prop:"gridRow"}),hM({prop:"gridAutoFlow"}),hM({prop:"gridAutoColumns"}),hM({prop:"gridAutoRows"}),hM({prop:"gridTemplateColumns"}),hM({prop:"gridTemplateRows"}),hM({prop:"gridTemplateAreas"}),hM({prop:"gridArea"}));function KM(e){return e<=1&&0!==e?100*e+"%":e}MM(hM({prop:"color",themeKey:"palette",transform:YM}),hM({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:YM}),hM({prop:"backgroundColor",themeKey:"palette",transform:YM}));const XM=hM({prop:"width",transform:KM}),QM=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||cM[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:KM(t)}};return pM(e,e.maxWidth,t)}return null};QM.filterProps=["maxWidth"];const JM=hM({prop:"minWidth",transform:KM}),ZM=hM({prop:"height",transform:KM}),e_=hM({prop:"maxHeight",transform:KM}),t_=hM({prop:"minHeight",transform:KM});hM({prop:"size",cssProperty:"width",transform:KM}),hM({prop:"size",cssProperty:"height",transform:KM});MM(XM,QM,JM,ZM,e_,t_,hM({prop:"boxSizing"}));var n_={border:{themeKey:"borders",transform:_M},borderTop:{themeKey:"borders",transform:_M},borderRight:{themeKey:"borders",transform:_M},borderBottom:{themeKey:"borders",transform:_M},borderLeft:{themeKey:"borders",transform:_M},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:_M},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:BM},color:{themeKey:"palette",transform:YM},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:YM},backgroundColor:{themeKey:"palette",transform:YM},p:{style:IM},pt:{style:IM},pr:{style:IM},pb:{style:IM},pl:{style:IM},px:{style:IM},py:{style:IM},padding:{style:IM},paddingTop:{style:IM},paddingRight:{style:IM},paddingBottom:{style:IM},paddingLeft:{style:IM},paddingX:{style:IM},paddingY:{style:IM},paddingInline:{style:IM},paddingInlineStart:{style:IM},paddingInlineEnd:{style:IM},paddingBlock:{style:IM},paddingBlockStart:{style:IM},paddingBlockEnd:{style:IM},m:{style:LM},mt:{style:LM},mr:{style:LM},mb:{style:LM},ml:{style:LM},mx:{style:LM},my:{style:LM},margin:{style:LM},marginTop:{style:LM},marginRight:{style:LM},marginBottom:{style:LM},marginLeft:{style:LM},marginX:{style:LM},marginY:{style:LM},marginInline:{style:LM},marginInlineStart:{style:LM},marginInlineEnd:{style:LM},marginBlock:{style:LM},marginBlockStart:{style:LM},marginBlockEnd:{style:LM},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:HM},rowGap:{style:UM},columnGap:{style:VM},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:KM},maxWidth:{style:QM},minWidth:{transform:KM},height:{transform:KM},maxHeight:{transform:KM},minHeight:{transform:KM},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function r_(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[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=fM(n,l)||{};if(u)return u(o);return pM(o,t,(t=>{let n=mM(c,s,t);return t===n&&"string"==typeof t&&(n=mM(c,s,`${e}${"default"===t?"":us(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:n_;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=uM(s,e(n,o,i,a));else{const e=pM({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=uM(s,e):s[n]=t({sx:o,theme:i})}else s=uM(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const o_=r_();o_.filterProps=["sx"];var i_=o_;function a_(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}const l_=["breakpoints","palette","spacing","shape"];function s_(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Tl(e,l_),l=lM(n),s=function(e=8){if(e.mui)return e;const t=CM({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=ql({breakpoints:l,direction:"ltr",components:{},palette:Dl({mode:"light"},r),spacing:s,shape:Dl({},sM,i)},a);return u.applyStyles=a_,u=t.reduce(((e,t)=>ql(e,t)),u),u.unstable_sxConfig=Dl({},n_,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return i_({sx:e,theme:this})},u}var u_=Object.freeze({__proto__:null,default:s_,private_createBreakpoints:lM,unstable_applyStyles:a_});function c_(e=null){const t=ro.useContext(gl);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const d_=s_();function p_(e=d_){return c_(e)}const f_=["sx"];function m_(e){const{sx:t}=e,n=Tl(e,f_),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:n_;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Ol(n)?Dl({},r,n):r}:Dl({},r,t),Dl({},o,{sx:i})}var h_=Object.freeze({__proto__:null,default:i_,extendSxProp:m_,unstable_createStyleFunctionSx:r_,unstable_defaultSxConfig:n_});const g_=["className","component"];function v_(e){if(e.type)return e;if("#"===e.charAt(0))return v_(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Go(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=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(r))throw new Error(Go(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function b_(e,t){return e=v_(e),t=function(e,t=0,n=1){return js(e,t,n)}(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:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}var y_=ro.createContext(null);function x_(){return ro.useContext(y_)}var S_="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function E_(e){const{children:t,theme:n}=e,r=x_(),o=ro.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Dl({},e,t)}(r,n);return null!=e&&(e[S_]=null!==r),e}),[n,r]);return uc.jsx(y_.Provider,{value:o,children:t})}const C_=["value"],w_=ro.createContext();function R_(e){let{value:t}=e,n=Tl(e,C_);return uc.jsx(w_.Provider,Dl({value:null==t||t},n))}const k_=ro.createContext(void 0);function L_({value:e,children:t}){return uc.jsx(k_.Provider,{value:e,children:t})}function I_({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Ds(o.defaultProps,r):o.styleOverrides||o.variants?r:Ds(o,r)}({props:e,name:t,theme:{components:ro.useContext(k_)}})}const M_={};function __(e,t,n,r=!1){return ro.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Dl({},t,{[e]:i}):i;return r?()=>a:a}return Dl({},t,e?{[e]:n}:n)}),[e,t,n,r])}function A_(e){const{children:t,theme:n,themeId:r}=e,o=c_(M_),i=x_()||M_,a=__(r,o,n),l=__(r,i,n,!0),s="rtl"===a.direction;return uc.jsx(E_,{theme:l,children:uc.jsx(gl.Provider,{value:a,children:uc.jsx(R_,{value:s,children:uc.jsx(L_,{value:null==a?void 0:a.components,children:t})})})})}var P_={},D_={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(D_);var T_=D_.exports,O_=r(Bo),N_=r($s),q_=T_;Object.defineProperty(P_,"__esModule",{value:!0});var F_=P_.alpha=Q_;P_.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=V_(e),a=V_(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Y_({type:"rgb",values:l})},P_.colorChannel=void 0;var z_=P_.darken=J_;P_.decomposeColor=V_,P_.emphasize=eA;var j_=P_.getContrastRatio=function(e,t){const n=X_(e),r=X_(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};P_.getLuminance=X_,P_.hexToRgb=H_,P_.hslToRgb=K_;var $_=P_.lighten=Z_;P_.private_safeAlpha=function(e,t,n){try{return Q_(e,t)}catch(t){return e}},P_.private_safeColorChannel=void 0,P_.private_safeDarken=function(e,t,n){try{return J_(e,t)}catch(t){return e}},P_.private_safeEmphasize=function(e,t,n){try{return eA(e,t)}catch(t){return e}},P_.private_safeLighten=function(e,t,n){try{return Z_(e,t)}catch(t){return e}},P_.recomposeColor=Y_,P_.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=V_(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 W_=q_(O_),G_=q_(N_);function B_(e,t=0,n=1){return(0,G_.default)(e,t,n)}function H_(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function V_(e){if(e.type)return e;if("#"===e.charAt(0))return V_(H_(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,W_.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=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(r))throw new Error((0,W_.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const U_=e=>{const t=V_(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};P_.colorChannel=U_;function Y_(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function K_(e){e=V_(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/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])),Y_({type:l,values:s})}function X_(e){let t="hsl"===(e=V_(e)).type||"hsla"===e.type?V_(K_(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 Q_(e,t){return e=V_(e),t=B_(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Y_(e)}function J_(e,t){if(e=V_(e),t=B_(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 n=0;n<3;n+=1)e.values[n]*=1-t;return Y_(e)}function Z_(e,t){if(e=V_(e),t=B_(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Y_(e)}function eA(e,t=.15){return X_(e)>.5?J_(e,t):Z_(e,t)}P_.private_safeColorChannel=(e,t)=>{try{return U_(e)}catch(t){return e}};var tA={black:"#000",white:"#fff"};var nA={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var rA={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var oA={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var iA={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var aA={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var lA={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var sA={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const uA=["mode","contrastThreshold","tonalOffset"],cA={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:tA.white,default:tA.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}},dA={text:{primary:tA.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:tA.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 pA(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=$_(e.main,o):"dark"===t&&(e.dark=z_(e.main,i)))}function fA(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Tl(e,uA),i=e.primary||function(e="light"){return"dark"===e?{main:aA[200],light:aA[50],dark:aA[400]}:{main:aA[700],light:aA[400],dark:aA[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:rA[200],light:rA[50],dark:rA[400]}:{main:rA[500],light:rA[300],dark:rA[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:oA[500],light:oA[300],dark:oA[700]}:{main:oA[700],light:oA[400],dark:oA[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:lA[400],light:lA[300],dark:lA[700]}:{main:lA[700],light:lA[500],dark:lA[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:sA[400],light:sA[300],dark:sA[700]}:{main:sA[800],light:sA[500],dark:sA[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:iA[400],light:iA[300],dark:iA[700]}:{main:"#ed6c02",light:iA[500],dark:iA[900]}}(t);function d(e){return j_(e,dA.text.primary)>=n?dA.text.primary:cA.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Dl({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Go(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Go(12,t?` (${t})`:"",JSON.stringify(e.main)));return pA(e,"light",o,r),pA(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:dA,light:cA};return ql(Dl({common:Dl({},tA),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:nA,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const mA=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const hA={textTransform:"uppercase"},gA='"Roboto", "Helvetica", "Arial", sans-serif';function vA(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=gA,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Tl(n,mA),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return Dl({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===gA?{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,hA),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,hA),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ql(Dl({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function bA(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var yA=["none",bA(0,2,1,-1,0,1,1,0,0,1,3,0),bA(0,3,1,-2,0,2,2,0,0,1,5,0),bA(0,3,3,-2,0,3,4,0,0,1,8,0),bA(0,2,4,-1,0,4,5,0,0,1,10,0),bA(0,3,5,-1,0,5,8,0,0,1,14,0),bA(0,3,5,-1,0,6,10,0,0,1,18,0),bA(0,4,5,-2,0,7,10,1,0,2,16,1),bA(0,5,5,-3,0,8,10,1,0,3,14,2),bA(0,5,6,-3,0,9,12,1,0,3,16,2),bA(0,6,6,-3,0,10,14,1,0,4,18,3),bA(0,6,7,-4,0,11,15,1,0,4,20,3),bA(0,7,8,-4,0,12,17,2,0,5,22,4),bA(0,7,8,-4,0,13,19,2,0,5,24,4),bA(0,7,9,-4,0,14,21,2,0,5,26,4),bA(0,8,9,-5,0,15,22,2,0,6,28,5),bA(0,8,10,-5,0,16,24,2,0,6,30,5),bA(0,8,11,-5,0,17,26,2,0,6,32,5),bA(0,9,11,-5,0,18,28,2,0,7,34,6),bA(0,9,12,-6,0,19,29,2,0,7,36,6),bA(0,10,13,-6,0,20,31,3,0,8,38,7),bA(0,10,13,-6,0,21,33,3,0,8,40,7),bA(0,10,14,-6,0,22,35,3,0,8,42,7),bA(0,11,14,-7,0,23,36,3,0,9,44,8),bA(0,11,15,-7,0,24,38,3,0,9,46,8)];const xA=["duration","easing","delay"],SA={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)"},EA={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function CA(e){return`${Math.round(e)}ms`}function wA(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function RA(e){const t=Dl({},SA,e.easing),n=Dl({},EA,e.duration);return Dl({getAutoHeightDuration:wA,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Tl(r,xA),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:CA(o)} ${i} ${"string"==typeof a?a:CA(a)}`)).join(",")}},e,{easing:t,duration:n})}var kA={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const LA=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function IA(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Tl(e,LA);if(e.vars)throw new Error(Go(18));const l=fA(r),s=s_(e);let u=ql(s,{mixins:(c=s.breakpoints,d=n,Dl({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:yA.slice(),typography:vA(l,i),transitions:RA(o),zIndex:Dl({},kA)});var c,d;return u=ql(u,a),u=t.reduce(((e,t)=>ql(e,t)),u),u.unstable_sxConfig=Dl({},n_,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return i_({sx:e,theme:this})},u}var MA=IA();function _A(){const e=p_(MA);return e[iM]||e}var AA,PA={},DA={exports:{}};var TA,OA={exports:{}};var NA=r(Pl),qA=r(zl),FA=r(cs),zA=r(ss),jA=r(u_),$A=r(h_),WA=T_;Object.defineProperty(PA,"__esModule",{value:!0});var GA=PA.default=function(e={}){const{themeId:t,defaultTheme:n=tP,rootShouldForwardProp:r=eP,slotShouldForwardProp:o=eP}=e,i=e=>(0,KA.default)((0,BA.default)({},e,{theme:rP((0,BA.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,VA.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=oP(nP(s))}=a,p=(0,HA.default)(a,JA),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=eP;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,VA.default)(e,(0,BA.default)({shouldForwardProp:h,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,UA.isPlainObject)(e)?r=>iP(e,(0,BA.default)({},r,{theme:rP({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let a=v(r);const s=o?o.map(v):[];l&&d&&s.push((e=>{const r=rP((0,BA.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=iP(n,(0,BA.default)({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=rP((0,BA.default)({},e,{defaultTheme:n,themeId:t}));return iP({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,BA.default)({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(b.withConfig=g.withConfig),b}};PA.shouldForwardProp=eP,PA.systemDefaultTheme=void 0;var BA=WA((AA||(AA=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 n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}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}(DA)),DA.exports)),HA=WA((TA||(TA=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(OA)),OA.exports)),VA=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=ZA(t);if(n&&n.has(e))return n.get(e);var r={__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(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(NA),UA=qA;WA(FA),WA(zA);var YA=WA(jA),KA=WA($A);const XA=["ownerState"],QA=["variants"],JA=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ZA(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(ZA=function(e){return e?n:t})(e)}function eP(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const tP=PA.systemDefaultTheme=(0,YA.default)(),nP=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function rP({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function oP(e){return e?(t,n)=>n[e]:null}function iP(e,t){let{ownerState:n}=t,r=(0,HA.default)(t,XA);const o="function"==typeof e?e((0,BA.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>iP(e,(0,BA.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,HA.default)(o,QA);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,BA.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,BA.default)({ownerState:n},r,n)):e.style))})),t}return o}var aP=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var lP=GA({themeId:iM,defaultTheme:MA,rootShouldForwardProp:aP});const sP=["theme"];function uP(e){let{theme:t}=e,n=Tl(e,sP);const r=t[iM];return uc.jsx(A_,Dl({},n,{themeId:r?iM:void 0,theme:r||t}))}var cP=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};const dP={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},pP={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},fP=_d("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...dP},"&::-moz-range-track":{...dP},"&::-ms-track":{...dP},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...pP},"&::-moz-range-thumb":{...pP},"&::-ms-thumb":{...pP},"&: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"}}))),mP=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u,accessibilityRelatedArgs:c})=>{const d=tM({translator:c.translator}),p=ro.useRef({initWidth:e,columnWidth:e,initX:0}),f=n?0:1,m=r&&!u,h={left:m?p.current.columnWidth-f:"100%"},g=t=>{p.current={initWidth:e,columnWidth:e,initX:null!=t?t:p.current.initX}};ZI((()=>m&&g()),[e]);const v=e=>{const t=Math.max(e,Ye.PixelsMin);p.current.columnWidth=t,i(t)},b=()=>{if(p.current.columnWidth!==p.current.initWidth){const e={type:Ke.Pixels,pixels:p.current.columnWidth};a(e)}else null==s||s(!1)},y=e=>{const t=p.current.initWidth+e.clientX-p.current.initX;v(t)},x=e=>{WI(e),document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",x),b()},S=e=>{const t=p.current.initWidth+e.touches[0].clientX-p.current.initX;v(t)},E=e=>{WI(e),document.removeEventListener("touchmove",S),document.removeEventListener("touchend",E),b()},C=!r&&l?e=>{if(e.key===Ve.LEFT||e.key===Ve.RIGHT){WI(e);const t=5,n=e.key===Ve.LEFT?-t:t;v(p.current.columnWidth+n)}else e.key===Ve.SPACE||e.key===Ve.ENTER?(WI(e),l(e),b()):e.key===Ve.ESC&&(WI(e),l(e),v(p.current.initWidth))}:void 0,w=d.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return oo.createElement(fP,{style:h,key:t,hoverColor:o,isLastColumn:n,className:Ue,"data-testid":Ue,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",y),document.addEventListener("mouseup",x),null==s||s(!0),g(e.clientX)},onDoubleClick:()=>a({type:Ke.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",S),document.addEventListener("touchend",E),null==s||s(!0),g(e.touches[0].clientX))},onKeyDown:C,onBlur:l,onFocus:()=>g(),type:"range",tabIndex:"-1",max:Ye.PixelsMax,"aria-label":w,"aria-valuemin":Ye.PixelsMin,"aria-valuemax":Ye.PixelsMax,"aria-valuenow":Number(e.toFixed(1))})};function hP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gP=(e,t)=>oo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){hP(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),oo.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),vP=ro.forwardRef(gP);function bP(){return bP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bP.apply(null,arguments)}const yP=_d(sR,{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"}))),xP=_d(vP,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),SP=_d(zk)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),EP=_d(PR)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),CP=_d(Bk)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),wP=_d(Bk,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:n})=>({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:""+(n?"rgba(0, 0, 0, 0.05)":"transparent")}))),RP=_d("div")((({theme:e})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),kP=_d("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),LP=_d(uw)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),IP=_d(pk)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function MP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _P=(e,t)=>oo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){MP(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),oo.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),AP=ro.forwardRef(_P);let PP={};const DP=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=ro.useState(!1),p=ro.useRef(null),f=ro.useCallback((e=>{e.stopPropagation(),d(!1)}),[d]);return oo.createElement(oo.Fragment,null,oo.createElement(wP,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),PP={}),null!=a&&a.length&&(d(!0),PP[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&oo.createElement(RP,null),oo.createElement(kP,null,oo.createElement(IP,null,oo.createElement(o,null)),oo.createElement(LP,{variant:"body2"},r)),null!=a&&a.length?oo.createElement(AP,null):null),(null==a?void 0:a.length)&&oo.createElement(NP,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=PP,m.map((e=>e.map((e=>{var t;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(t=e.items)||void 0===t?void 0:t.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(h).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var m,h},TP=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&oo.createElement(CP,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>oo.createElement(DP,bP({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),OP={appear:200,enter:200,exit:100},NP=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>r.length?oo.createElement(SP,bP({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,transitionDuration:OP,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[TP({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?oo.createElement(EP,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:r,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,qP={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},FP=(e,t)=>e.some((e=>t[e]>0));function zP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jP=(e,t)=>oo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){zP(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),oo.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"})),$P=ro.forwardRef(jP);function WP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const GP=(e,t)=>oo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){WP(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),oo.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"})),BP=ro.forwardRef(GP);function HP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const VP=(e,t)=>oo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){HP(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),oo.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"})),UP=ro.forwardRef(VP);function YP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const KP=(e,t)=>oo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){YP(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),oo.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"})),XP=ro.forwardRef(KP);function QP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const JP=(e,t)=>oo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){QP(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),oo.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"})),ZP=ro.forwardRef(JP);function eD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const tD=(e,t)=>oo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){eD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),oo.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"})),nD=ro.forwardRef(tD);function rD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const oD=(e,t)=>oo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){rD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),oo.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"})),iD=ro.forwardRef(oD);function aD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const lD=(e,t)=>oo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){aD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),oo.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"})),sD=ro.forwardRef(lD);function uD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const cD=(e,t)=>oo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){uD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),oo.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"})),dD=ro.forwardRef(cD);function pD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fD=(e,t)=>oo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){pD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),oo.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"})),mD=ro.forwardRef(fD);let hD=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const gD=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c})=>{const d=[];if(n[hD.SORTING]){const{isActivelySorted:n,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:n,isSortedByFirstMeasure:r})=>{let o=!n&&!e||"D"===t,i=!n&&!e||"A"===t;return r&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);d.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")),r(!1)},icon:$P,enabled:a,isActive:!!n&&"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")),r(!1)},icon:XP,enabled:l,isActive:!!n&&"D"===i,autoFocus:!a&&l}]}])}if(e.isDim&&null!=i&&i.select){const e=[];n[hD.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:ZP,enabled:!0}]}]),n[hD.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:mD,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAll())},icon:nD,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectPossible())},icon:dD,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAlternative())},icon:iD,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectExcluded())},icon:sD,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.clear())},icon:BP,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&d.push(...e)}return n[hD.ADJUST_HEADER_SIZE]&&d.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==c||c(u)},icon:UP,enabled:!0}]}]),d},vD=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const m=tM({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:v}=r,{fieldInstance:b,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:S}=(({headerData:e,app:t})=>{const[n,r]=ro.useState(null),[o,i]=ro.useState(qP);return ro.useEffect((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:ro.useCallback((()=>i(qP)),[]),updateSelectionActionsEnabledStatus:ro.useCallback((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:FP(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:FP(["qSelected"],n.qStateCounts),canSelectPossible:FP(["qOption"],n.qStateCounts),canSelectAlternative:FP(["qAlternative"],n.qStateCounts),canSelectExcluded:FP(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),E=ro.useCallback((()=>{const e=g?{qLibraryId:g,type:"dimension"}:v;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:n}=c;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sortCriteria:c.sortCriteria})}}),[c,v,g]);ro.useEffect((()=>{e||(x(),null!=d&&d.model&&d.model.getLayout().then((e=>{S(e)})).catch((e=>console.error(e))))}),[e,x,S,null==d?void 0:d.model]);const C=ro.useCallback((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?oo.createElement(yP,{rightAligned:"right"===h,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper"},s&&oo.createElement(xP,{height:Ge,className:Be,"data-testid":Be,isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},oo.createElement(vP,null)),oo.createElement(NP,{open:e,anchorEl:n.current,onClose:C,menuGroups:gD({headerData:r,translator:m,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:E,interactions:i,fieldInstance:b,selectionActionsEnabledStatus:y,anchorRef:n,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),handleHeadCellMenuKeyDown:a})):null},bD=e=>e.isDark?{background:e.color,borderColor:OL.DARK_MODE_BORDER,color:OL.DARK_MODE_TEXT,disabledColor:OL.DARK_MODE_DISABLED,iconColor:OL.DARK_MODE_TEXT}:{background:e.color,borderColor:OL.BORDER_MEDIUM,color:OL.TEXT,disabledColor:OL.DISABLED},yD=_d(sR,{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}`}))),xD=_d(IL,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),SD=_d(yR,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)}))),ED=_d(uw)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),CD=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=ro.useMemo((()=>bD(r.background)),[r]);if(!n.active)return null;const a=o?oo.createElement(yD,{footerStyle:i},e):null;return t?uC.createPortal(e,t):a},wD={},RD=ro.createContext(wD),kD=()=>ro.useContext(RD),LD=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,v=ro.useMemo((()=>bD(p.background)),[p]),b=o?o.getBoundingClientRect().width:m.width,y=tM({translator:d}),x=ro.useMemo((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:v,tabIndex:g,width:b})),[t,n,r,o,i,a,l,s,u,c,y,p,f,m,h,v,g,b]);return oo.createElement(RD.Provider,{value:x},e)};let ID=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),MD=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 _D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const AD=(e,t)=>oo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_D(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),oo.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),PD=ro.forwardRef(AD);function DD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const TD=(e,t)=>oo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){DD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),oo.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),OD=ro.forwardRef(TD);function ND(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qD=(e,t)=>oo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ND(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),oo.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),FD=ro.forwardRef(qD),zD={FirstPage:OD,PreviousPage:PD,NextPage:AP,LastPage:FD,FirstPageRTL:FD,PreviousPageRTL:AP,NextPageRTL:PD,LastPageRTL:OD},jD=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=kD(),u=zD[`${n}${"rtl"===r?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},$D=()=>{const{pageInfo:e,width:t}=kD(),n=0===e.page,{IconComponent:r,styledProps:o}=jD({type:ID.FirstPage,disabledCondition:n,pageNumber:0});return t<=MD.FirstPage?null:oo.createElement(SD,o,oo.createElement(r,{height:Ge}))},WD=(e,t,n=!1)=>{n&&e.key===Ve.TAB&&!e.shiftKey&&(WI(e),((e,t,n)=>{var r,o,i,a;const l=null!==(r=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!==r?r: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,n)})(e.target,t,!1))},GD=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=kD(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=jD({type:ID.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>WD(e,t,r):null;return o<=MD.LastPage?null:oo.createElement(SD,bP({},l,{onKeyDown:s}),oo.createElement(a,{height:Ge}))},BD=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=kD(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=jD({type:ID.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>MD.FirstPage&&o>MD.LastPage)&&t.enabled?e=>WD(e,t,r):null;return oo.createElement(SD,bP({},l,{onKeyDown:s}),oo.createElement(a,{height:Ge}))},HD=()=>{const{pageInfo:e}=kD(),t=0===e.page,{IconComponent:n,styledProps:r}=jD({type:ID.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return oo.createElement(SD,r,oo.createElement(n,{height:Ge}))},VD=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=kD(),{page:o,rowsPerPage:i}=n;if(t<=MD.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return oo.createElement(ED,{variant:"caption"},a)},UD=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=kD(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return oo.createElement(oo.Fragment,null,oo.createElement(ED,{variant:"caption",id:d},u,":"),oo.createElement(xD,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},YD=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=kD();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>MD.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=oo.createElement(oo.Fragment,null,t.rowsPerPageOptions.map((e=>oo.createElement("option",{key:e,value:e},e))));return oo.createElement(UD,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},KD=1e3,XD="…",QD=({totalPages:e,page:t})=>{const n=Math.min(e,KD),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-KD):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return oo.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(oo.createElement("option",{key:"startMoreOptions",value:XD,disabled:!0},XD)),o<e-1&&a.push(oo.createElement("option",{key:"endMoreOptions",value:XD,disabled:!0},XD)),oo.createElement(oo.Fragment,null,a)},JD=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=kD(),{page:o}=e;if(t<=MD.SelectPage)return null;const i=oo.createElement(QD,{totalPages:n,page:o});return oo.createElement(UD,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})},ZD=e=>oo.createElement(LD,e,oo.createElement(YD,null),oo.createElement(JD,null),oo.createElement(VD,null),oo.createElement($D,null),oo.createElement(HD,null),oo.createElement(BD,null),oo.createElement(GD,null));var eT=ro.memo(ZD);const tT=e=>oo.createElement(CD,e,oo.createElement(eT,e)),nT={},rT=ro.createContext(nT),oT=()=>ro.useContext(rT),iT=({rect:e,pageInfo:t,qPivotDataPages:n,updatePageInfo:r,children:o})=>{const i=ro.useMemo((()=>({rect:e,pageInfo:t,qPivotDataPages:n,updatePageInfo:r})),[e,t,n,r]);return uc.jsx(rT.Provider,{value:i,children:o})},aT=ro.createContext({}),lT=()=>ro.useContext(aT),sT=({app:e,model:t,theme:n,embed:r,keyboard:o,translator:i,interactions:a,env:l,children:s})=>{const u=ro.useMemo((()=>({model:t,app:e,interactions:a,embed:r,theme:n,keyboard:o,env:l,translator:i})),[e,a,t,r,n,o,l,i]);return uc.jsx(aT.Provider,{value:u,children:s})},uT=ro.createContext({}),cT=()=>ro.useContext(uT),dT=({children:e,...t})=>uc.jsx(uT.Provider,{value:t,children:e}),pT=()=>{const{text:e,fontFamily:t,fontSize:n,justifyContent:r,alignItems:o,height:i}=(()=>{var e;const{theme:t,translator:n}=lT(),{layoutService:r}=cT(),o=null!==(e=t.getStyle("","","fontFamily"))&&void 0!==e?e:Hn;return r.hasData?r.hasLimitedData?{text:n.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:n.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})();return void 0===e?null:uc.jsx("div",{style:{display:"flex",justifyContent:r,alignItems:o,width:"100%",height:i},children:uc.jsx("span",{style:{...er,fontFamily:t,fontSize:n,fontStyle:"italic",color:"#7b7a78"},children:e})})},fT=18,mT=.75,hT=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===_e.Image},gT="/qHyperCubeDef",vT=-1,bT="PSEUDO-DIM",yT=e=>void 0===e?Vn:e,xT=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,ST=e=>xT(e,Ye.PixelsDefault),ET=(e,t)=>xT(e,Ye.PercentageDefault)*t/100,CT=(e,t,n)=>{switch(null==t?void 0:t.type){case Ke.Pixels:return ST(t.pixels);case Ke.Percentage:return ET(t.percentage,e);case Ke.FitToContent:case Ke.Auto:default:return n}},wT=({headers:e,layoutService:t,estimateWidthForDimensionValue:n,shouldConsiderCombinatedLength:r,measureTextForHeader:o,longestMeasureValuePossible:i})=>e.reduce(((e,a,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:s}},isFullyExpanded:u}=t,{id:c,colIdx:d,qApprMaxGlyphCount:p,isLeftDimension:f}=a;if(!f)return e+0;if(c===bT)return e+0;const m=n(p),h=!u&&f&&d<s-1?21:0;let g=0;if(r&&o&&i){g=o("-")+i}return Math.max(e,24*l+fT+h+m+g)}),0),RT=(e,t,n)=>e.reduce(((e,r)=>{const o=(n?0:1)*fT;return Math.max(e,o+t(r.qFallbackTitle))}),0),kT=(e,t,n,r)=>{const o=100*e/t,i=r*mT*(o/100),a=n*(o/100);return Math.min(a,i)},LT=(e,t,n,r)=>r*(n/100)*(100*e/t/100),IT=(e,t)=>e.some((e=>e>=t*mT)),MT=({layoutService:e,headersData:t,columnWidths:n,tableWidth:r,widthOverride:o,measureTextForHeader:i,estimateWidthForDimensionValue:a,measureTextWidthForMeasuresCombinedWithDimensions:l,translator:s})=>{let u=[];const c=r*mT,d=t.data[t.data.length-1][0],p=Math.min(c,n.at(-1)),f=Math.min(c,wT({headers:d,layoutService:e,estimateWidthForDimensionValue:a})),m=Math.min(c,RT(e.visibleMeasureInfo,i));let h=0;const g=d.findIndex((e=>e.id===bT)),v=(({layoutService:e,measureTextForHeader:t,translator:n,headersData:r})=>{const{type:o}=e.indentModeColumnWidth;return o===Ke.Auto&&r.size.y<=1?t(n.get("SNPivotTable.IndentMode.Rows"))+8+fT+16:24})({layoutService:e,measureTextForHeader:i,translator:s,headersData:t});if(e.hasPseudoDimOnLeft)if(0===g){const e=Math.max(p,f,m);u=[Math.max(v,e-p),p]}else{const t=Math.min(c,RT(e.visibleMeasureInfo,l,!0));h=Math.min(c,wT({headers:d.slice(0,g),layoutService:e,estimateWidthForDimensionValue:a,shouldConsiderCombinatedLength:!0,measureTextForHeader:i,longestMeasureValuePossible:t}));const n=Math.max(p,f,h);u=[Math.max(v,n-p),p]}else u=[Math.max(v,f-p),p];const b=Math.min(c,u.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:y}=e;o&&o<=c&&(y.type=Ke.Pixels,y.pixels=o);return[Ke.Pixels,Ke.Percentage].includes(y.type)||IT(u,r)?((e,t,n,r)=>{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=IT(e,n);s===Ke.Auto&&d&&(o>i?o-=i:i-=o),s===Ke.Pixels&&u&&(o=kT(e[0],l,u,n),i=kT(e[1],l,u,n)),s===Ke.Percentage&&c&&(o=LT(e[0],l,c,n),i=LT(e[1],l,c,n));let p=0;i<=r&&(p=o-5,p>0&&(o-=p,i+=p)),p=i-r,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}})(u,y,r,p):{leftGridWidth:b,leftGridColumnWidths:u,leftGridFullWidth:b}};function _T({tableWidth:e,headersData:t}){const n=e*mT,{styleService:r,layoutService:o}=cT(),{translator:i}=lT(),{measureText:a}=XI(r.header),{estimateWidth:l,measureText:s}=XI({...r.dimensionValues,fontWeight:yT(r.dimensionValues.fontWeight)}),{measureText:u}=XI({...r.dimensionValues,...r.measureLabels}),c=ro.useCallback(((r,c)=>{const{layout:{qHyperCube:{qNoOfLeftDims:d,topHeadersColumnWidth:p}},visibleMeasureInfo:f,isFullyExpanded:m,isIndentModeEnabled:h,hasPseudoDimOnLeft:g}=o,v=(t=0)=>f.reduce(((n,{qFallbackTitle:r,columnWidth:o})=>{const i=u(r)+fT,a=Math.max(i,t);return Math.max(n,h?a:CT(e,o,a))}),0),b=e=>t.data.reduce(((t,n)=>{const r=n[e];if(!r)return t;if(r.id===bT)return t;const o=(e=>{const{label:t,isLocked:n}=e,r=n?20:0;return fT+a(t)+20+r})(r);return Math.max(o,t)}),0);let y=0,x=t.data.at(-1);h&&t.size.x>1&&x&&x[0]&&(x=x[0]);const S=x.map(((i,a)=>{let s=fT;if((!h||h&&1===t.size.x)&&r&&void 0!==c&&c===i.colIdx)s=h?Math.min(n,r):r;else{let n;i.columnWidthLocation===ze.Pivot?n=h?void 0:p:i.columnWidthLocation===ze.Dimension&&({columnWidth:n}=i);let r=0;if(i.isLeftDimension)if(i.id===bT)r=v();else{const e=b(a),n=((e,t)=>{const{qApprMaxGlyphCount:n,isLeftDimension:r,dimensionInfoIndex:i}=e,a=o.getDimensionInfo(i);if(hT(a))return Ye.PixelsDefault;const s=!m&&r&&t<d-1?21:0;return fT+l(n)+s})(i,a);r=Math.max(e,n),h&&!g&&a+1===d&&i.columnWidthLocation===ze.Dimension&&t.size.x>1&&(r=e)}else i.isLeftDimension||(r=b(a),i.columnWidthLocation===ze.Measures&&(r=v(r)));h&&1===t.size.x&&(n=o.indentModeColumnWidth),s=h&&!g&&t.size.x>1?r:CT(e,n,r)}return y+=s,s}));return h&&t.size.x>1?MT({layoutService:o,headersData:t,columnWidths:S,tableWidth:e,widthOverride:r,measureTextForHeader:a,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:s,translator:i}):{leftGridWidth:Math.min(n,y),leftGridColumnWidths:S,leftGridFullWidth:y}}),[e,t,o,n,a,u,l,s,i]),[d,p]=ro.useState(c);ZI((()=>{p(c())}),[c]);const f=ro.useCallback(((e,t)=>{p(c(e,t))}),[c]);return{...d,overrideLeftGridWidth:f}}function AT({tableWidth:e,visibleTopDimensionInfo:t,verticalScrollbarWidth:n,leftGridWidth:r}){const{styleService:o,layoutService:i}=cT(),{layout:{qHyperCube:{qNoOfLeftDims:a,qEffectiveInterColumnSortOrder:l}},size:s,visibleMeasureInfo:u}=i,{estimateWidth:c,measureText:d}=XI(o.measureValues),{estimateWidth:p}=XI({...o.dimensionValues,fontWeight:yT(o.dimensionValues.fontWeight)}),f=e-r-1,m=t.at(-1),h=m===vT,g=l.length-a>t.length?21:0,v=ro.useMemo((()=>{const e=h?u:[m],t=s.x/e.length,n=[],r=[];let o=f;const i=(e,r)=>{n[e]=Math.min(Ye.PixelsMax,Math.max(Ye.PixelsMin,r)),o-=n[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:n,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:s}=e;switch(n){case Ke.Pixels:i(t,ST(o));break;case Ke.Percentage:i(t,ET(a,f));break;case Ke.FitToContent:i(t,((e,t,n)=>n?Ye.PixelsDefault:fT+(h?Math.max(c(e),d(t)):Math.max(Math.max(...u.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+g)))(l,s,hT(e)));break;case Ke.Auto:default:r.push(t)}}else r.push(t)})),r.length){const e=r.length*t,i=o/e;r.forEach((e=>{n[e]=Math.max(Ye.AutoMinPivot,i)}))}return n}),[h,u,m,s.x,f,c,d,p,g]),b=ro.useMemo((()=>{if(h){return u.reduce(((e,t,n)=>e+v[n]),0)/u.length}return v[0]}),[h,v,u]),y=parseFloat((n/i.size.x).toFixed(12)),x=ro.useCallback((e=>(h&&void 0!==e?v[i.getMeasureInfoIndexFromCellIndex(e,!0)]:b)-y),[h,v,i,b,y]),S=s.x*b;return{rightGridFullWidth:S,rightGridWidth:Math.min(S,f),getRightGridColumnWidth:x}}let PT;const DT=new Uint8Array(16);function TT(){if(!PT&&(PT="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!PT))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return PT(DT)}const OT=[];for(let e=0;e<256;++e)OT.push((e+256).toString(16).slice(1));var NT={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function qT(e,t,n){if(NT.randomUUID&&!t&&!e)return NT.randomUUID();const r=(e=e||{}).random||(e.rng||TT)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return OT[e[t+0]]+OT[e[t+1]]+OT[e[t+2]]+OT[e[t+3]]+"-"+OT[e[t+4]]+OT[e[t+5]]+"-"+OT[e[t+6]]+OT[e[t+7]]+"-"+OT[e[t+8]]+OT[e[t+9]]+"-"+OT[e[t+10]]+OT[e[t+11]]+OT[e[t+12]]+OT[e[t+13]]+OT[e[t+14]]+OT[e[t+15]]}(r)}const FT=()=>{var e,t,n;return null!==(e=null===(t=crypto)||void 0===t||null===(n=t.randomUUID)||void 0===n?void 0:n.call(t))&&void 0!==e?e:qT()},zT=e=>e===vT?bT:(({qLibraryId:e,cId:t})=>{var n;return null!==(n=null!=e?e:t)&&void 0!==n?n:FT()})(e),jT=({layoutService:e,visibleLeftDimensionInfos:t,cell:n,colIdx:r})=>{n&&(n.canBeResized=!0,n.colIdx=n.colIdx||r,n.dimensionInfoIndex===vT?n.columnWidthLocation=ze.Measures:n.isLeftDimension?n.columnWidthLocation=ze.Dimension:t.at(-1)===vT?n.columnWidthLocation=ze.Measures:e.hasPseudoDimOnLeft&&(n.columnWidthLocation=ze.Pivot))},$T=(e,t,n)=>{var r;const o=zT(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===vT?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:ze.Measures,isPivot:!0}:{id:o,colIdx:0,label:t.qFallbackTitle,qReverseSort:t.qReverseSort,sortDirection:t.qSortIndicator&&"N"!==t.qSortIndicator?t.qSortIndicator:"A",qLibraryId:t.qLibraryId,fieldId:t.qGroupFieldDefs[t.qGroupPos],isLocked:null!==(r=t.qLocked)&&void 0!==r&&r,columnWidth:t.columnWidth,qApprMaxGlyphCount:t.qApprMaxGlyphCount,isDim:!0,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:ze.Dimension,isPivot:!0,isSortedByFirstMeasure:e.isSortedByFirstMeasure}},WT=({layoutService:e,lastRow:t,lastCol:n})=>{let r=n;var o;t.length>0&&(r=(o=n).at(-1)===vT?o.slice(0,-1):o);const i=r.length+(t.length?1:0),a=Math.max(1,t.length),l=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(i,a);return t.forEach(((t,n,r)=>{const o=n===r.length-1;l[i-1][n]=$T(e,t,o)})),r.forEach(((t,n,r)=>{const o=n===r.length-1;l[n][a-1]=$T(e,t,o)})),l},GT=(e,t,n)=>{var r,o;const i=((e,t,n)=>{let r;var o;return r=0===t.length||t.includes(vT)?WT({layoutService:e,lastRow:n,lastCol:t}):(e=>e[0].map(((t,n)=>e.map((e=>e[n])))))(WT({layoutService:e,lastRow:t,lastCol:n})),e.isIndentModeEnabled&&r[r.length-1].length>1&&(r[r.length-1]=[r.at(-1),...new Array(r[0]?r[0].length-1:0).fill(null)]),r.length&&(null===(o=r.at(-1))||void 0===o||o.forEach(((t,r)=>{if(Array.isArray(t)){const r=t;for(let t=0;t<r.length;t++)jT({layoutService:e,visibleLeftDimensionInfos:n,cell:r[t],colIdx:t})}else jT({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})}))),r})(e,t,n);return{data:i,size:{x:null!==(r=null===(o=i[0])||void 0===o?void 0:o.length)&&void 0!==r?r:0,y:i.length}}};function BT(e){return BT="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},BT(e)}function HT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),r)}var o,i}function UT(e,t,n){return t&&VT(e.prototype,t),n&&VT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function YT(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&&XT(e,t)}function KT(e){return KT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},KT(e)}function XT(e,t){return XT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},XT(e,t)}function QT(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function JT(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=KT(e);if(t){var o=KT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return QT(this,n)}}function ZT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return eO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eO(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var tO={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var n,r=e.indexOf("="),o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,n){return{key:nO(e),value:nO(t),useEqualSign:n}}(n,o,i))}})),t}};function nO(e){try{return decodeURIComponent(e)}catch(t){return e}}function rO(e){if(!(this instanceof rO))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:""},n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));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 tO.fromSearchString(t.search)}}})}function oO(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}rO.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},rO.encodeSearchParams=function(e){for(var t,n="",r=0;r<e.length;r++)n+=0===r?"?":"&",n+=oO((t=e[r]).key),t.value?n+="=".concat(oO(t.value)):n+=t.useEqualSign?"=":"";return n};var iO,aO=function(){function e(t){HT(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return UT(e,[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}]),e}(),lO=function(){function e(){HT(this,e)}return UT(e,[{key:"decode",value:function(e){for(var t,n="",r=new aO(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),sO=function(e){return e>=0&&e<=1114111},uO=function(e){return e.match(/[\s]/)},cO=function(e){YT(n,e);var t=JT(n);function n(){return HT(this,n),t.apply(this,arguments)}return UT(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,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,n=0;n<5&&(null!=(r=e.next())&&!uO(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return sO(a)?String.fromCharCode(a):"�"}}]),n}(lO),dO=function(){function e(t,n){HT(this,e),this._key=t,this._value=n}return UT(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,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}}]),e}(),pO=function(){function e(){HT(this,e)}return UT(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,n,r){var o,i;if(t.length===n)return i=this._value,this.setValue(r),i;var a=t.charAt(n);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,n+1,r)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return dO.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return dO.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||dO.newInstanceIfNeeded(e,t,this._value)}}]),e}(),fO=function(){function e(){HT(this,e),this.clear()}return UT(e,[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new pO);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),mO=function(){var e,t,n,r=[],o=[],i=new fO;for(e in r["&quot"]="34",r["&amp"]="38",r["&lt"]="60",r["&gt"]="62",r["&nbsp"]="160",r["&iexcl"]="161",r["&cent"]="162",r["&pound"]="163",r["&curren"]="164",r["&yen"]="165",r["&brvbar"]="166",r["&sect"]="167",r["&uml"]="168",r["&copy"]="169",r["&ordf"]="170",r["&laquo"]="171",r["&not"]="172",r["&shy"]="173",r["&reg"]="174",r["&macr"]="175",r["&deg"]="176",r["&plusmn"]="177",r["&sup2"]="178",r["&sup3"]="179",r["&acute"]="180",r["&micro"]="181",r["&para"]="182",r["&middot"]="183",r["&cedil"]="184",r["&sup1"]="185",r["&ordm"]="186",r["&raquo"]="187",r["&frac14"]="188",r["&frac12"]="189",r["&frac34"]="190",r["&iquest"]="191",r["&Agrave"]="192",r["&Aacute"]="193",r["&Acirc"]="194",r["&Atilde"]="195",r["&Auml"]="196",r["&Aring"]="197",r["&AElig"]="198",r["&Ccedil"]="199",r["&Egrave"]="200",r["&Eacute"]="201",r["&Ecirc"]="202",r["&Euml"]="203",r["&Igrave"]="204",r["&Iacute"]="205",r["&Icirc"]="206",r["&Iuml"]="207",r["&ETH"]="208",r["&Ntilde"]="209",r["&Ograve"]="210",r["&Oacute"]="211",r["&Ocirc"]="212",r["&Otilde"]="213",r["&Ouml"]="214",r["&times"]="215",r["&Oslash"]="216",r["&Ugrave"]="217",r["&Uacute"]="218",r["&Ucirc"]="219",r["&Uuml"]="220",r["&Yacute"]="221",r["&THORN"]="222",r["&szlig"]="223",r["&agrave"]="224",r["&aacute"]="225",r["&acirc"]="226",r["&atilde"]="227",r["&auml"]="228",r["&aring"]="229",r["&aelig"]="230",r["&ccedil"]="231",r["&egrave"]="232",r["&eacute"]="233",r["&ecirc"]="234",r["&euml"]="235",r["&igrave"]="236",r["&iacute"]="237",r["&icirc"]="238",r["&iuml"]="239",r["&eth"]="240",r["&ntilde"]="241",r["&ograve"]="242",r["&oacute"]="243",r["&ocirc"]="244",r["&otilde"]="245",r["&ouml"]="246",r["&divide"]="247",r["&oslash"]="248",r["&ugrave"]="249",r["&uacute"]="250",r["&ucirc"]="251",r["&uuml"]="252",r["&yacute"]="253",r["&thorn"]="254",r["&yuml"]="255",r["&OElig"]="338",r["&oelig"]="339",r["&Scaron"]="352",r["&scaron"]="353",r["&Yuml"]="376",r["&fnof"]="402",r["&circ"]="710",r["&tilde"]="732",r["&Alpha"]="913",r["&Beta"]="914",r["&Gamma"]="915",r["&Delta"]="916",r["&Epsilon"]="917",r["&Zeta"]="918",r["&Eta"]="919",r["&Theta"]="920",r["&Iota"]="921",r["&Kappa"]="922",r["&Lambda"]="923",r["&Mu"]="924",r["&Nu"]="925",r["&Xi"]="926",r["&Omicron"]="927",r["&Pi"]="928",r["&Rho"]="929",r["&Sigma"]="931",r["&Tau"]="932",r["&Upsilon"]="933",r["&Phi"]="934",r["&Chi"]="935",r["&Psi"]="936",r["&Omega"]="937",r["&alpha"]="945",r["&beta"]="946",r["&gamma"]="947",r["&delta"]="948",r["&epsilon"]="949",r["&zeta"]="950",r["&eta"]="951",r["&theta"]="952",r["&iota"]="953",r["&kappa"]="954",r["&lambda"]="955",r["&mu"]="956",r["&nu"]="957",r["&xi"]="958",r["&omicron"]="959",r["&pi"]="960",r["&rho"]="961",r["&sigmaf"]="962",r["&sigma"]="963",r["&tau"]="964",r["&upsilon"]="965",r["&phi"]="966",r["&chi"]="967",r["&psi"]="968",r["&omega"]="969",r["&thetasym"]="977",r["&upsih"]="978",r["&piv"]="982",r["&ensp"]="8194",r["&emsp"]="8195",r["&thinsp"]="8201",r["&zwnj"]="8204",r["&zwj"]="8205",r["&lrm"]="8206",r["&rlm"]="8207",r["&ndash"]="8211",r["&mdash"]="8212",r["&lsquo"]="8216",r["&rsquo"]="8217",r["&sbquo"]="8218",r["&ldquo"]="8220",r["&rdquo"]="8221",r["&bdquo"]="8222",r["&dagger"]="8224",r["&Dagger"]="8225",r["&bull"]="8226",r["&hellip"]="8230",r["&permil"]="8240",r["&prime"]="8242",r["&Prime"]="8243",r["&lsaquo"]="8249",r["&rsaquo"]="8250",r["&oline"]="8254",r["&frasl"]="8260",r["&euro"]="8364",r["&image"]="8365",r["&weierp"]="8472",r["&real"]="8476",r["&trade"]="8482",r["&alefsym"]="8501",r["&larr"]="8592",r["&uarr"]="8593",r["&rarr"]="8594",r["&darr"]="8595",r["&harr"]="8596",r["&crarr"]="8629",r["&lArr"]="8656",r["&uArr"]="8657",r["&rArr"]="8658",r["&dArr"]="8659",r["&hArr"]="8660",r["&forall"]="8704",r["&part"]="8706",r["&exist"]="8707",r["&empty"]="8709",r["&nabla"]="8711",r["&isin"]="8712",r["&notin"]="8713",r["&ni"]="8715",r["&prod"]="8719",r["&sum"]="8721",r["&minus"]="8722",r["&lowast"]="8727",r["&radic"]="8730",r["&prop"]="8733",r["&infin"]="8734",r["&ang"]="8736",r["&and"]="8743",r["&or"]="8744",r["&cap"]="8745",r["&cup"]="8746",r["&int"]="8747",r["&there4"]="8756",r["&sim"]="8764",r["&cong"]="8773",r["&asymp"]="8776",r["&ne"]="8800",r["&equiv"]="8801",r["&le"]="8804",r["&ge"]="8805",r["&sub"]="8834",r["&sup"]="8835",r["&nsub"]="8836",r["&sube"]="8838",r["&supe"]="8839",r["&oplus"]="8853",r["&otimes"]="8855",r["&perp"]="8869",r["&sdot"]="8901",r["&lceil"]="8968",r["&rceil"]="8969",r["&lfloor"]="8970",r["&rfloor"]="8971",r["&lang"]="9001",r["&rang"]="9002",r["&loz"]="9674",r["&spades"]="9824",r["&clubs"]="9827",r["&hearts"]="9829",r["&diams"]="9830",r)"function"!=typeof r[e]&&r.hasOwnProperty(e)&&(o[r[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(n=o[t].toLowerCase().substr(1),i.put(n,String.fromCharCode(t)));return i}(),hO=function(e){YT(n,e);var t=JT(n);function n(){return HT(this,n),t.apply(this,arguments)}return UT(n,[{key:"decodeCharacter",value:function(e){var t;e.mark();var n=e.next();if(null==n||"&"!==n)return e.reset(),null;var r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(null!=(t=this._getNumericEntity(e)))return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,n,r,o="";for(t=Math.min(e.remainder().length,mO.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=mO.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)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,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,16);return!Number.isNaN(+r)&&sO(r)?String.fromCharCode(r):null}},{key:"_parseNumber",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,10);return!Number.isNaN(+r)&&sO(r)?String.fromCharCode(r):null}}]),n}(lO),gO=function(e){YT(n,e);var t=JT(n);function n(){return HT(this,n),t.apply(this,arguments)}return UT(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",n=0;n<2;n++)null!=(r=e.nextHex())&&(t+=r);return 2===t.length&&(o=parseInt(t,16),sO(o))?String.fromCharCode(o):(e.reset(),null)}}]),n}(lO),vO=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(iO=document.createElement("div"));var bO=Array.prototype.indexOf,yO=[",",".","_"," "],xO=[",",".","-","_"," "],SO={width:["%"],height:["%"]},EO={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},CO={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":EO.image,"background-color":EO.color,"border-color":EO.color,"border-image":EO.image,color:EO.color,icon:EO.image,"list-style-image":EO.image,"outline-color":EO.color},wO={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function RO(e,t,n){var r;if(t){if(bO)return bO.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function kO(e){if(null==e)return"";var t,n=document.createTextNode(e);return iO.appendChild(n),t=iO.innerHTML,iO.removeChild(n),t}function LO(e,t,n){var r,o,i,a,l,s,u,c,d;if(e=MO(e).toLowerCase(),t=MO(t),RO(e,wO.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<wO.attr_val;i++)if(t.toLowerCase().match(wO.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=SO[e])||(r=xO),o="",!n){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]/)&&RO(u,r)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return n||(o+='"'),o}function IO(e,t,n){var r,o,i,a,l,s,u,c,d,p;if(e=MO(e).toLowerCase(),t=MO(t),RO(e,wO.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<wO.css_val.length;r++)if(t.toLowerCase().indexOf(wO.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=CO[e])||(o=EO.default),i="",!n){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]/)&&RO(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function MO(e,t){var n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;for(var l=[new hO,new gO,new cO];!a;){r=n;for(var s=0;s<l.length;s++)(i=l[s].decode(n))!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}for(var _O=[],AO=0;AO<255;AO++)_O[AO]=AO>=48&&AO<=57||AO>=65&&AO<=90||AO>=97&&AO<=122?null:AO.toString(16);var PO=function(e){return kO(e.unsafe)},DO=function(e){var t,n=[],r=[],o={},i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=IO(t,n[t],!0),i+=IO(t,n[t],!0),o[t]=r[t]);return e.map?o:i},TO=function(e){var t=[],n=[],r={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(n[i]=LO(i,t[i],!0),o+=LO(i,t[i],!0),r[i]=n[i]);return e.map?r:o};function OO(e,t){throw new Error(t)}var NO={canonicalize:MO,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===BT(arguments[0])?function(){for(var e,t,n,r=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r===(n=e[t]))continue;void 0!==n&&(r[t]=n)}}(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?PO(e):"css"===e.context?(null!=e.map&&"object"!==BT(e.map)&&OO(this,"Invalid parameter type"),DO(e)):"attr"===e.context?(null!=e.map&&"object"!==BT(e.map)&&OO(this,"Invalid parameter type"),TO(e)):void OO(this,"Invalid parameter type")},encodeForAttr:LO,encodeForAttr2:function(e){return LO("nonsens",e,!0)},encodeForCSS:IO,encodeForHref:function(e){MO(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new rO(e),n=rO.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+rO.encodeSearchParams(r)+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 n,r,o,i,a,l;for(t||(t=yO),l="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),RO(o,t)>=0||null==_O[i]?l+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),l+="\\x".concat(a).concat(r.toUpperCase())):(a="0000".substr(r.length),l+="\\u".concat(a).concat(r.toUpperCase())));return l},encodeForHTML:kO,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=MO(t).toLowerCase():OO(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':""},isSafeDataURL:function(e,t){var n=null!=t?t:{},r=n.maxByteSizeSvg,o=void 0===r?5e5:r,i=n.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,n=ZT(null!==(t=vO.exec(e.trim()))&&void 0!==t?t:[],4),r=n[1];return{encoding:n[2],data:n[3],mimeType:null==r?void 0:r.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,n){var r={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(n)],r).size}catch(e){return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a}};const qO=(e,t)=>{var n;const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps;return null==r||null===(n=r.qValues)||void 0===n?void 0:n[e]},FO=e=>{switch(e){case"topLeft":default:return{horizontal:"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"flex-end",vertical:"center"};case"topRight":return{horizontal:"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"flex-end",vertical:"flex-end"}}},zO=({text:e,url:t,imageSize:n,imagePosition:r})=>r&&t&&!t.toLowerCase().includes("javascript:")&&NO.isSafeDataURL(t)?{type:_e.Image,url:t,text:e,imageSize:n,resolvedImagePosition:FO(r)}:{type:_e.Text,url:void 0,text:e},jO=(e,t,n)=>{var r;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(r=o.qValues)||void 0===r?void 0:r[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==n?void 0:n.urlPosition)===Ae.Attribute||null==n?void 0:n.urlLabel},$O=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:_e.Link,url:NO.encodeForHref(t),text:e}}catch(t){return{type:_e.Text,url:void 0,text:e}}},WO=(e,t,n,r)=>{var o,i;const a=Pe(t);return a!==_e.Image||!r.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(o=r.anything.sense)&&void 0!==o&&null!==(i=o.isUnsupportedFeature)&&void 0!==i&&i.call(o,"tableImages")?a===_e.Link&&r.flags.isEnabled("CLIENT_IM_5715_LINKS")?((e,t,n)=>{const{urlPosition:r}=null!=t?t:{};if(r===Ae.Attribute){var o;const r=jO(null!==(o=n.url)&&void 0!==o?o:-1,e,t),i=e.qText||r||"";return $O({text:i,url:r})}if(r===Ae.Dimension){var i;const r=jO(null!==(i=n.urlLabel)&&void 0!==i?i:-1,e,t)||e.qText;return $O({text:r,url:e.qText})}return{type:_e.Text,url:void 0,text:e.qText}})(e,t,n):a===_e.Indicator&&r.flags.isEnabled("CLIENT_IM_6696_INDICATORS")?((e,t)=>{const{indicator:n,indicatorConditionalColoring:r}=null!=t?t:{};return{type:_e.Indicator,url:void 0,text:e.qText,indicator:{applySegmentColors:null==n?void 0:n.applySegmentColors,position:null==n?void 0:n.position,showTextValues:null==n?void 0:n.showTextValues},indicatorConditionalColoring:r}})(e,t):{type:_e.Text,url:void 0,text:e.qText}:((e,t,n)=>{const{imageSize:r,imagePosition:o,imageSetting:i,imageLabel:a}=null!=t?t:{};if("url"===i){var l,s;const t=e.qText,i=null===(l=qO(null!==(s=n.imageUrl)&&void 0!==s?s:-1,e))||void 0===l?void 0:l.qText;return zO({text:t,url:i,imageSize:r,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===n.imageLabel)return zO({text:a||t||"",url:t,imageSize:r,imagePosition:o});const i=null!==(u=null===(c=qO(null!==(d=n.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return zO({text:i,url:t,imageSize:r,imagePosition:o})}return{type:_e.Text,url:void 0,text:e.qText}})(e,t,n)},GO=(e,t)=>{var n,r,o,i;const a=t.qAttrExps,l=null==a||null===(n=a.qValues)||void 0===n||null===(n=n[null!==(r=null==e?void 0:e.cellForegroundColor)&&void 0!==r?r:-1])||void 0===n?void 0:n.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?$I(s):null,c=l?$I(l):null,d=((e,t)=>e||!t?null:qI(t)?OL.WHITE:OL.TEXT)(c,u);return{color:null!=d?d:c,background:u}},BO=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:BO(e,t)),e),HO=(e,t,n,r,o,i)=>{const a=o?i.rowsPerPage-n:Un-r;let l=e.qUp+e.qDown;if(o&&0===n){const n=(t+e.qUp)%i.rowsPerPage;l=e.qDown+n}return Math.min(a,BO(l,e))},VO=(e,t)=>{if(e!==vT)return t?{type:_e.Text}:e.representation},UO=({node:e,parent:t,root:n,x:r,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentLevel:d,env:p,pageInfo:f})=>{const m=(!c||!u)&&e.qType===et.NX_DIM_CELL_PSEUDO;let h="";if(u&&e.indentLabel){const{label:t,delimeter:n,suffix:r}=e.indentLabel;h=`${t} ${!r||!t&&r?"":n} ${r}`.trim()}else h=e.qText;const g={id:FT(),ref:e,x:r,y:o,pageX:r,pageY:i,mainAxisPageCoord:u?i:r,isLeftColumn:u,parent:t,root:n,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:HO(e,o,i,r,u,f),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===et.NX_DIM_CELL_TOTAL||!(null==t||!t.isTotal),isEmpty:e.qType===et.NX_DIM_CELL_EMPTY||-4===e.qElemNo,isNull:e.qType===et.NX_DIM_CELL_NULL,isPseudoDimension:m,expressionColor:GO(s,e),selectionCellType:u?Ze.NX_CELL_LEFT:Ze.NX_CELL_TOP,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:m?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:WO({...e,qText:h},VO(l,c),s,p),...void 0!==d&&{indentLevel:d}};return t&&(t.children[g.mainAxisPageCoord-t.mainAxisPageCoord]=g),g},YO=(e,t,n,r,o,i,a,l)=>{const{isIndentModeEnabled:s}=o;if(!t.length)return e;let u=0;return function t(c,d,p,f=0,m=-1){e[f]||(e[f]={}),s&&m++;const h=o.leftDimensionInfoIndexes.indexOf(vT);p.forEach(((p,g)=>{var v;u+=0===g?0:1;const b=n.qTop-r.page*r.rowsPerPage,y=Math.max(0,b+u-p.qUp),x=n.qTop+u-p.qUp;if(s&&o.hasPseudoDimOnLeft&&m<=h){const e={label:p.qText,suffix:"",delimeter:"-"};if(p.qType===et.NX_DIM_CELL_NORMAL||p.qType===et.NX_DIM_CELL_NULL||p.qType===et.NX_DIM_CELL_TOTAL)m<h&&(e.suffix=`${o.visibleMeasureInfo[0].qFallbackTitle}`),p={...p,indentLabel:e};else if(p.qType===et.NX_DIM_CELL_PSEUDO){var S,E,C,w,R;e.label=null!==(S=null===(E=d||c)||void 0===E||null===(E=E.ref)||void 0===E||null===(E=E.indentLabel)||void 0===E?void 0:E.label)&&void 0!==S?S:"",e.suffix=p.qText;const t=p.qSubNodes;p={...null===(C=d||c)||void 0===C?void 0:C.ref,...p.qText?{qText:p.qText}:{},qSubNodes:t,indentLabel:e},m=null!==(w=null===(R=d||c)||void 0===R?void 0:R.indentLevel)&&void 0!==w?w:0}}let k=f;s&&(k=h>=1&&m>=h?m+1:m,0===m&&0===h&&0===p.qSubNodes.length&&(k=0));const L=s&&void 0===(null===(v=e[f][y])||void 0===v?void 0:v.ref.qText)||!e[f][y]?UO({node:p,parent:d,root:c,x:k,y:x,pageY:y,layoutService:o,dimensionInfo:i[k],attrExprInfoIndex:a[k],isLeftColumn:!0,...s&&{isIndentModeEnabled:s,indentLevel:m},env:l,pageInfo:r}):e[f][y];if(e[f][y]=L,p.qSubNodes.length){const e=s?0:f+1;t(c||L,L,p.qSubNodes,e,m)}}))}(null,null,t,0,-1),e},KO=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,n,r)=>{const o=r[n+1];e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},XO=(e,t)=>{const n=e[0],r=n?Object.values(n):[],o=null!=t&&t.isIndentModeEnabled&&null!=t&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,i=null==n?void 0:n[o],a=r.at(-1);return null!=i&&i.isTotal?i.isLeafNode?i.mainAxisPageCoord:i.mainAxisPageCoord+i.leafCount-1:null!=a&&a.isTotal?a.mainAxisPageCoord-1:-1},QO=({prevData:e,nextDataPage:t,pageInfo:n,layoutService:r,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i,env:a})=>{const{qLeft:l,qArea:s}=t;if(!l.length)return e;const u=YO(e.grid,l,s,n,r,o,i,a);KO(u,n.rowsOnCurrentPage);const c=XO(u,r);return{...e,grid:u,columnCount:u.length,totalDividerIndex:c}},JO=({qArea:e,prevData:t,pivotValuePoints:n,pageInfo:r})=>{const o=[...t];return n.forEach(((t,n)=>{t.forEach(((t,i)=>{var a;const l=e.qTop-r.page*r.rowsPerPage+n,s=e.qLeft+i;Array.isArray(o[l])||(o[l]=[]);const u=t.qType===et.NX_DIM_CELL_NULL;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:FT(),ref:t,isNull:u}}))})),o},ZO=({prevData:e,dataPage:t,pageInfo:n})=>{const{qData:r,qArea:o}=t;return r.length?JO({qArea:o,prevData:e,pivotValuePoints:r,pageInfo:n}):e},eN=(e,t,n,r,o,i,a,l,s)=>{if(!t.length)return e;let u=0;!function t(a,c,d,p=0){e[p]||(e[p]={}),d.forEach(((d,f)=>{var m;u+=0===f?0:1;const h=n.qLeft+u-d.qUp,g=null!==(m=e[p][h])&&void 0!==m?m:UO({node:d,parent:c,root:a,x:h,y:p,pageY:p,layoutService:r,dimensionInfo:o[p],attrExprInfoIndex:i[p],isLeftColumn:!1,...r.isIndentModeEnabled&&{isIndentModeEnabled:r.isIndentModeEnabled},env:l,pageInfo:s});e[p][h]=g,d.qSubNodes.length&&t(a||g,g,d.qSubNodes,p+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},tN=({prevData:e,nextDataPage:t,layoutService:n,visibleTopDimensionInfo:r,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:l})=>{const{qTop:s,qArea:u}=t;if(!s.length)return e;const c=eN(e.grid,s,u,n,r,o,i,a,l);KO(c,n.size.x);const d=XO(c);return{...e,grid:c,rowCount:c.length,totalDividerIndex:d}},nN=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},n)=>(e[t]=n,e)),{}),rN=(e,t)=>{const{env:n}=lT(),{layoutService:r}=cT(),{qPivotDataPages:o,pageInfo:i}=oT(),[a,l]=ro.useState(null),s=((e,t,n)=>ro.useMemo((()=>({left:e.map(nN),top:t.map(nN),measures:n.map(nN)})),[n,e,t]))(e,t,r.visibleMeasureInfo),u=ro.useMemo((()=>GT(r,t,e)),[r,t,e]),c=ro.useCallback((()=>o.slice(1).reduce(((e,t)=>ZO({prevData:e,dataPage:t,pageInfo:i})),((e,t)=>{const{qData:n,qArea:r}=e;return JO({qArea:r,prevData:[],pivotValuePoints:n,pageInfo:t})})(o[0],i))),[o,i]),d=ro.useCallback((()=>o.slice(1).reduce(((e,o)=>tN({prevData:e,nextDataPage:o,layoutService:r,visibleTopDimensionInfo:t,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:n,pageInfo:i})),((e,t,n,r,o,i,a)=>{const{qArea:l,qTop:s}=e,u=eN([],s,l,t,n,r,o,i,a);KO(u,t.size.x);const c=XO(u);return{grid:u,rowCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(o[0],r,t,s.top,u.size.y,n,i))),[o,r,t,s.top,u.size.y,n,i]),p=ro.useCallback((()=>o.slice(1).reduce(((t,o)=>QO({prevData:t,nextDataPage:o,pageInfo:i,layoutService:r,visibleLeftDimensionInfo:e,attrExprInfoIndexes:s.left,env:n})),((e,t,n,r,o,i)=>{const{qArea:a,qLeft:l}=e,s=YO([],l,a,n,t,r,o,i);KO(s,n.rowsOnCurrentPage);const u=XO(s,t);return{grid:s,columnCount:s.length,layoutSize:t.size,totalDividerIndex:u}})(o[0],r,i,e,s.left,n))),[o,r,i,e,s,n]),[f,m]=ro.useState((()=>c())),[h,g]=ro.useState((()=>d())),[v,b]=ro.useState((()=>p()));ZI((()=>{m(c())}),[c]),ZI((()=>{g(d())}),[d]),ZI((()=>{b(p())}),[p]),ZI((()=>{a&&a.forEach((o=>{m((e=>ZO({prevData:e,dataPage:o,pageInfo:i}))),g((e=>tN({prevData:e,nextDataPage:o,layoutService:r,visibleTopDimensionInfo:t,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:n,pageInfo:i}))),b((t=>QO({prevData:t,nextDataPage:o,pageInfo:i,layoutService:r,visibleLeftDimensionInfo:e,attrExprInfoIndexes:s.left,env:n})))}))}),[a]);const y=ro.useCallback((e=>{l(e)}),[]);return{headersData:u,measureData:f,topDimensionData:h,leftDimensionData:v,attrExprInfoIndexes:s,nextPageHandler:y}},oN=Math.sqrt(1e4),iN=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/Ye.PixelsMin)}),aN=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],n=Math.ceil(e.qWidth/oN),r=Math.ceil(e.qHeight/oN);for(let o=0;o<n;o++)for(let n=0;n<r;n++)t.push({qLeft:e.qLeft+o*oN,qTop:e.qTop+n*oN,qWidth:Math.min(oN,e.qWidth-o*oN),qHeight:Math.min(oN,e.qHeight-n*oN)});return t};function lN({nextPageHandler:e}){const{model:t}=lT(),{pageInfo:n}=oT(),{layoutService:r}=cT(),o=(e=>{const t=ro.useRef(e);return t.current=e,t})(n.page),i=t,a=ro.useCallback((async(e,t)=>{var n;await(null==i||null===(n=i.collapseLeft)||void 0===n?void 0:n.call(i,gT,e,t,!1))}),[i]),l=ro.useCallback((async(e,t)=>{await(null==i?void 0:i.collapseTop(gT,e,t,!1))}),[i]),s=ro.useCallback((async(e,t)=>{await(null==i?void 0:i.expandLeft(gT,e,t,!1))}),[i]),u=ro.useCallback((async(e,t)=>{await(null==i?void 0:i.expandTop(gT,e,t,!1))}),[i]),c=ro.useCallback((async t=>{if(null!=i&&i.getHyperCubePivotData&&0!==t.length)try{const r=await i.getHyperCubePivotData(gT,t.reduce(((e,t)=>[...e,...aN(t)]),[]));o.current===n.page&&e(r)}catch(e){console.error(e)}}),[i,e,n,o]),d=ro.useCallback(((e,{dimensionInfoIndex:n,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=r.layout.qHyperCube;let c=[];switch(a){case ze.Dimension:c=[{qPath:`${gT}/qDimensions/${n}/qDef/columnWidth`,oldValue:s[n].columnWidth}];break;case ze.Measures:if(o)c=l.map(((e,t)=>({qPath:`${gT}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=r.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${gT}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case ze.Pivot:c=[{qPath:`${gT}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((t=>{const{qPath:n,oldValue:r}=t;return{qPath:n,qOp:r?"Replace":"Add",qValue:JSON.stringify({...r,...e})}}));null==t||t.applyPatches(d,!0)}),[t,r]),p=ro.useCallback((async e=>{var t;await(null==i?void 0:i.applyPatches([{qPath:`${gT}/indentModeColumnWidth`,qOp:null!==(t=r.layout.qHyperCube)&&void 0!==t&&t.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...r.indentModeColumnWidth,...e})}],!0))}),[i,r]);return ro.useMemo((()=>({collapseLeft:a,collapseTop:l,expandLeft:s,expandTop:u,applyColumnWidth:d,applyIndentModeColumnWidth:p,fetchPages:c})),[a,l,s,u,d,p,c])}const sN=`scrollable-container--${$e.TOP_GRID}`,uN=`scrollable-container--${$e.LEFT_GRID}`,cN=`scrollable-container--${$e.DATA_GRID}`,dN=e=>e&&e instanceof HTMLDivElement?{width:e.offsetWidth-e.clientWidth,height:e.offsetHeight-e.clientHeight}:{width:0,height:0},pN=(e,t)=>e>t?We.Forward:e<t?We.Backward:We.None,fN=()=>{const{layoutService:e}=cT(),t=ro.useRef(null),n=ro.useRef(null),r=ro.useRef(null),o=ro.useRef(null),i=ro.useRef([]),a=ro.useRef([]),l=ro.useRef(null),{scrollbarsDimensions:{verticalScrollbarWidth:s,horizontalScrollbarHeight:u},resetHorizontalScrollbarHeight:c}=(({topGridWrapperRef:e,leftGridWrapperRef:t,dataGridWrapperRef:n})=>{const[r,o]=ro.useState(0),[i,a]=ro.useState(0);return ro.useLayoutEffect((()=>{(e.current||n.current)&&o(Math.max(dN(e.current).width,dN(n.current).width))})),ro.useLayoutEffect((()=>{(t.current||n.current)&&a(Math.max(dN(t.current).height,dN(n.current).height))})),{scrollbarsDimensions:{verticalScrollbarWidth:r,horizontalScrollbarHeight:i},resetHorizontalScrollbarHeight:()=>a(0)}})({topGridWrapperRef:n,leftGridWrapperRef:r,dataGridWrapperRef:o});(({gridSectionsWrapperRefs:{headerGridWrapperRef:e,topGridWrapperRef:t,leftGridWrapperRef:n,dataGridWrapperRef:r},gridRefs:{topGridRef:o,leftGridRef:i,dataGridRef:a}})=>{const{pageInfo:l}=oT(),{downloadService:s,viewService:u,layoutService:c}=cT(),d=ro.useCallback((()=>{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=n.current)||void 0===a||a.scrollTo(s),null===(l=r.current)||void 0===l||l.scrollTo(s)}),[e,t,n,r]);ro.useLayoutEffect((()=>{d()}),[l.page,d]),ro.useLayoutEffect((()=>{c.triggerdByExpandOrCollapse||d()}),[c,d]),ro.useLayoutEffect((()=>{if(c.triggerdByExpandOrCollapse){var e,t,n,l,s,u,d;const c=null!==(e=null===(t=r.current)||void 0===t?void 0:t.scrollLeft)&&void 0!==e?e:0,p=null!==(n=null===(l=r.current)||void 0===l?void 0:l.scrollTop)&&void 0!==n?n:0;null===(s=i.current)||void 0===s||s.forEach((e=>null==e?void 0:e.scrollTo(p))),null===(u=o.current)||void 0===u||u.forEach((e=>null==e?void 0:e.scrollTo(c))),null===(d=a.current)||void 0===d||d.scrollTo({scrollTop:p,scrollLeft:c})}}),[c,r,a,i,o]),ro.useLayoutEffect((()=>{(s.isDownloadedAsPDForImage||c.isSnapshot)&&r.current&&n.current&&t.current&&(r.current.scrollTop=u.scrollTop,r.current.scrollLeft=u.scrollLeft,n.current.scrollLeft=u.leftGridScrollLeft,t.current.scrollTop=u.topGridScrollTop)}),[u,s,c,r,n,t])})({gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:n,leftGridWrapperRef:r,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:l}});const{trackScrollDirection:d,scrollDirectionRefs:{verticalScrollDirection:p,horizontalScrollDirection:f}}=(()=>{const e=ro.useRef(We.None),t=ro.useRef(We.None),n=ro.useRef({prevScrollTop:0,prevScrollLeft:0});return{trackScrollDirection:ro.useCallback((r=>{if(r instanceof WheelEvent&&(e.current=pN(r.deltaY,0),t.current=pN(r.deltaX,0)),r instanceof Event){const o=r.target;e.current=pN(o.scrollTop,n.current.prevScrollTop),n.current.prevScrollTop=o.scrollTop,t.current=pN(o.scrollLeft,n.current.prevScrollLeft),n.current.prevScrollLeft=o.scrollLeft}}),[e,t,n]),scrollDirectionRefs:{verticalScrollDirection:e,horizontalScrollDirection:t}}})(),m=(()=>{const{viewService:e}=cT();return ro.useCallback((t=>{const n=t instanceof WheelEvent?t.currentTarget:t.target,r=t.currentTarget,o=n.dataset.key;o===uN&&(e.leftGridScrollLeft=r.scrollLeft),o===cN&&(e.scrollLeft=r.scrollLeft),o===sN&&(e.topGridScrollTop=r.scrollTop),o!==uN&&o!==cN||(e.scrollTop=r.scrollTop)}),[e])})(),h={gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:l},getWrapperElements:ro.useCallback((()=>({headerGridWrapperElement:t.current,topGridWrapperElement:n.current,leftGridWrapperElement:r.current,dataGridWrapperElement:o.current})),[t,n,r,o]),updateViewService:m,trackScrollDirection:d,isSnapshotMode:e.isSnapshot};return(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:n},getWrapperElements:r,updateViewService:o,trackScrollDirection:i,isSnapshotMode:a})=>{ro.useEffect((()=>{const{headerGridWrapperElement:l,topGridWrapperElement:s,leftGridWrapperElement:u,dataGridWrapperElement:c}=r(),d=e=>{l.scrollLeft+=e.deltaX,l.scrollTop+=e.deltaY,u.scrollLeft=l.scrollLeft,s.scrollTop=l.scrollTop,i(e)},p=e=>{var r,a;u.scrollTop+=e.deltaY,null===(r=t.current)||void 0===r||r.forEach((e=>null==e?void 0:e.scrollTo(u.scrollTop))),l.scrollLeft+=e.deltaX,u.scrollLeft=l.scrollLeft,c.scrollTop=u.scrollTop,null===(a=n.current)||void 0===a||a.scrollTo({scrollTop:u.scrollTop}),i(e),o(e)},f=t=>{var r,a;s.scrollLeft+=t.deltaX,null===(r=e.current)||void 0===r||r.forEach((e=>null==e?void 0:e.scrollTo(s.scrollLeft))),l.scrollTop+=t.deltaY,s.scrollTop=l.scrollTop,c.scrollLeft=s.scrollLeft,null===(a=n.current)||void 0===a||a.scrollTo({scrollLeft:s.scrollLeft}),i(t),o(t)},m=r=>{var a,l,d;c.scrollLeft+=r.deltaX,c.scrollTop+=r.deltaY,null===(a=n.current)||void 0===a||a.scrollTo({scrollLeft:c.scrollLeft,scrollTop:c.scrollTop}),s.scrollLeft=c.scrollLeft,null===(l=e.current)||void 0===l||l.forEach((e=>null==e?void 0:e.scrollTo(c.scrollLeft))),u.scrollTop=c.scrollTop,null===(d=t.current)||void 0===d||d.forEach((e=>null==e?void 0:e.scrollTo(c.scrollTop))),i(r),o(r)};return l.addEventListener("wheel",d),u.addEventListener("wheel",p),s.addEventListener("wheel",f),c.addEventListener("wheel",m),a&&setTimeout((()=>{l.removeEventListener("wheel",d),u.removeEventListener("wheel",p),s.removeEventListener("wheel",f),c.removeEventListener("wheel",m)}),0),()=>{l.removeEventListener("wheel",d),u.removeEventListener("wheel",p),s.removeEventListener("wheel",f),c.removeEventListener("wheel",m)}}),[i,o,a,e,t,n,r])})(h),(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:n},getWrapperElements:r,updateViewService:o,trackScrollDirection:i,isSnapshotMode:a})=>{ro.useEffect((()=>{const{headerGridWrapperElement:l,topGridWrapperElement:s,leftGridWrapperElement:u,dataGridWrapperElement:c}=r(),d=e=>{const t=e.target;l.scrollLeft=t.scrollLeft,i(e),o(e)},p=e=>{const t=e.target;l.scrollTop=t.scrollTop,i(e),o(e)},f=r=>{var a,l,d;const p=r.target;null===(a=n.current)||void 0===a||a.scrollTo({scrollLeft:p.scrollLeft,scrollTop:p.scrollTop}),s.scrollLeft=c.scrollLeft,null===(l=e.current)||void 0===l||l.forEach((e=>null==e?void 0:e.scrollTo(p.scrollLeft))),u.scrollTop=c.scrollTop,null===(d=t.current)||void 0===d||d.forEach((e=>null==e?void 0:e.scrollTo(c.scrollTop))),i(r),o(r)};return u.addEventListener("scroll",d),s.addEventListener("scroll",p),c.addEventListener("scroll",f),a&&setTimeout((()=>{u.removeEventListener("scroll",d),s.removeEventListener("scroll",p),c.removeEventListener("scroll",f)}),0),()=>{u.removeEventListener("scroll",d),s.removeEventListener("scroll",p),c.removeEventListener("scroll",f)}}),[i,o,a,e,t,n,r])})(h),{gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:n,leftGridWrapperRef:r,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:l},scrollDirectionRefs:{verticalScrollDirection:p,horizontalScrollDirection:f},scrollbarsDimensions:{verticalScrollbarWidth:s,horizontalScrollbarHeight:u,resetHorizontalScrollbarHeight:c}}},mN=(e,t,n)=>(r,o)=>{if(r===et.NX_DIM_CELL_PSEUDO)return vT;const i=t[n+o];return e[i]},hN=e=>{const t=[],n=(e,r=0)=>{e.slice(0,1).forEach((e=>{t[r]=e.qType,e.qSubNodes.length&&n(e.qSubNodes,r+1)}))};return n(e),t},gN=({children:e,style:t})=>uc.jsx("div",{"data-testid":"fullSize",style:t,children:e}),vN=({children:e,style:t})=>uc.jsx("div",{"data-section-id":"GRID",style:{display:"grid",...t},children:e}),bN=e=>e&&`scrollable-container--${e}`,yN=({children:e,style:t,origin:n},r)=>{const{interactions:o}=lT(),i=o.active?t:{overflow:"hidden"};return uc.jsx("div",{"data-testid":"scrollable","data-key":bN(n),style:i,ref:r,children:e})};var xN=oo.forwardRef(yN);const SN=({children:e,style:t})=>uc.jsx("div",{"data-testid":"sticky",style:{position:"sticky",top:0,left:0,...t},children:e});function EN(){return EN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EN.apply(this,arguments)}function CN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wN(e,t){return wN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wN(e,t)}function RN(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,wN(e,t)}var kN=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function LN(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||kN(r)&&kN(o)))return!1;var r,o;return!0}function IN(e,t){var n;void 0===t&&(t=LN);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}function MN(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var _N="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function AN(e){cancelAnimationFrame(e.id)}function PN(e,t){var n=_N();var r={id:requestAnimationFrame((function o(){_N()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var DN=-1;function TN(e){if(void 0===e&&(e=!1),-1===DN||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),DN=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return DN}var ON=null;function NN(e){if(void 0===e&&(e=!1),null===ON||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?ON="positive-descending":(t.scrollLeft=1,ON=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),ON}return ON}var qN=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function FN(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,CN(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:CN(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=IN((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=IN((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=r._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(r.props,e,r._instanceProps),height:c(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=IN((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,u=i;if("rtl"===t)switch(NN()){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-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&AN(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=PN(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}RN(t,e),t.getDerivedStateFromProps=function(e,t){return zN(e,t),g(e),null};var v=t.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,v=TN();void 0!==r&&(r=Math.max(0,Math.min(r,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?v:0,x=b>d?v:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,y):g})},v.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(NN()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&AN(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?qN:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],C=S[1],w=this._getVerticalRangeToRender(),R=w[0],k=w[1],L=[];if(r>0&&g)for(var I=R;I<=k;I++)for(var M=E;M<=C;M++)L.push(ro.createElement(t,{columnIndex:M,data:d,isScrolling:b?x:void 0,key:f({columnIndex:M,data:d,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,M)}));var _=a(this.props,this._instanceProps),A=l(this.props,this._instanceProps);return ro.createElement(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:EN({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},ro.createElement(u||c||"div",{children:L,ref:s,style:{height:_,pointerEvents:x?"none":void 0,width:A}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&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 r){var h=this.state,g=h.horizontalScrollDirection,v=h.scrollLeft,b=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),m=o(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]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(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,m+g)),d,m]},t}(ro.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var zN=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},jN=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},$N=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},WN=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},GN=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?BN(e,t,n,i,0,r):HN(e,t,n,Math.max(0,i),r)},BN=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=WN(e,t,a,n).offset;if(l===i)return a;l<i?o=a+1:l>i&&(r=a-1)}return o>0?o-1:0},HN=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&WN(e,t,r,n).offset<o;)r+=a,a*=2;return BN(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},VN=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=WN(e,t,n,i),u="column"===e?$N(t,i):jN(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===r&&(r=o>=d-l&&o<=c+l?"auto":"center"),r){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}},UN=FN({getColumnOffset:function(e,t,n){return WN("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return GN("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=WN("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=WN("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:jN,getEstimatedTotalWidth:$N,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return VN("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return VN("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return WN("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return GN("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=WN("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=WN("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),YN=function(e,t){return e};function KN(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,CN(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:CN(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=IN((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=IN((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,c=r._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?d:0;c[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},r._getItemStyleCache=void 0,r._getItemStyleCache=IN((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(NN()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&AN(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=PN(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}RN(t,e),t.getDerivedStateFromProps=function(e,t){return XN(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?TN():0:s.scrollHeight>s.clientHeight?TN():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(NN()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&AN(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?YN:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),C=E[0],w=E[1],R=[];if(u>0)for(var k=C;k<=w;k++)R.push(ro.createElement(t,{data:c,key:p(k,c),index:k,isScrolling:v?y:void 0,style:this._getItemStyle(k)}));var L=r(this.props,this._instanceProps);return ro.createElement(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:EN({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},ro.createElement(l||s||"div",{children:R,ref:a,style:{height:x?"100%":L,pointerEvents:y?"none":void 0,width:x?L:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(ro.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var XN=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},QN=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.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=r(s);o[s]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},JN=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=QN(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},ZN=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&QN(e,n,t).offset<r;)n+=i,i*=2;return JN(e,t,Math.min(n,o-1),Math.floor(n/2),r)},eq=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},tq=KN({getItemOffset:function(e,t,n){return QN(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:eq,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=QN(e,t,o),p=eq(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=m-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return r>=m&&r<=f?r:r<m?m:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?JN(e,t,o,0,n):ZN(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){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=QN(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=QN(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function nq(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var rq=["style"],oq=["style"];function iq(e,t){var n=e.style,r=MN(e,rq),o=t.style,i=MN(t,oq);return!nq(n,o)&&!nq(r,i)}const aq=(e,t,n=!1)=>void 0!==e&&(e.isLeafNode||n&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),lq=10,sq=(e,t)=>e.current===We.Backward?t:0,uq=(e,t,n,r)=>{for(let o=n;o<n+r;o++){const n=e[o];if(void 0===n||void 0===n[t])return!0}return!1},cq=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,dq=({pageInfo:e,measureData:t,pageTop:n,qHeight:r,startLeft:o,endLeft:i})=>{const a=[],l=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(uq(t,e,n,r)){const t=a[a.length-1],o={qLeft:e,qTop:n+l,qWidth:1,qHeight:r};void 0!==t&&cq(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},pq=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=r,u=n.current===We.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return dq({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},fq=({pageInfo:e,measureData:t,scrollDirection:n,layoutService:r,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:l,qHeight:s}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=e.size.x,s=sq(n,lq),u=Math.max(r-s,0);return{startLeft:u,endLeft:u+Math.min(i+lq,l-u),pageTop:o,qHeight:a}})(r,o,n),u=dq({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...pq({pageInfo:e,measureData:t,scrollDirection:n,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:r.size.x})]:u},mq=(e,t,n,r)=>{const o=e[n];if(void 0===o)return!0;for(let e=t;e<t+r;e++){if(void 0===o[e])return!0}return!1},hq=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,gq=({startTop:e,endTop:t,qLeft:n,qWidth:r,measureData:o,pageInfo:i})=>{const a=[],l=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(mq(o,n,i,r)){const e=a.at(-1),t={qLeft:n,qTop:i+l,qWidth:r,qHeight:1};void 0!==e&&hq(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},vq=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:l}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=sq(n,lq),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+lq,e.rowsOnCurrentPage-s),qLeft:r,qWidth:i}})(e,r,n),s=gq({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const r=n.current===We.Backward?Math.max(0,o-25):i,u=Math.min(r+25,e.rowsOnCurrentPage),c=gq({startTop:r,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},bq=async(e,t,n,r,o,i,a,l)=>{const{gridColumnStartIndex:s,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==We.None&&(p=vq({pageInfo:r,measureData:n,scrollDirection:i,viewService:o})),a.current!==We.None&&(f=fq({pageInfo:r,measureData:n,scrollDirection:a,layoutService:t,viewService:o})),i.current===We.None&&a.current===We.None&&(p=gq({measureData:n,pageInfo:r,qLeft:s,qWidth:c,startTop:u,endTop:u+d}));const m=e.fetchPages([...p,...f]);l.isDownloadedAsPDForImage&&l.waitForPromise(m)},yq=function(e){var t,n,r,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];n=l;var u=Date.now()-i,c=function(){i=Date.now(),r=0,e.apply(t,n)};r||(u>=o?c():r=setTimeout(c,o-u))}}(bq,100),xq=fe(bq,75),Sq=({style:e,index:t,isLastRow:n,isLastColumn:r,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{styleService:{grid:{border:l,divider:s}}}=cT();return uc.jsx("div",{style:{...e,...Zn,...rr(n,r,l,o),...ir({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},Eq=({children:e,verticalAlign:t,width:n,right:r})=>uc.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",overflow:"hidden",flexDirection:"row",alignItems:t,width:n,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:r,alignSelf:t},children:e}),Cq=e=>{const{type:t,imageSize:n}=e;return t!==_e.Image||"fill"!==n&&"fitWidth"!==n?"fit-content":"100%"},wq=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function Rq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kq=(e,t)=>oo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Rq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),oo.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"})),Lq=ro.forwardRef(kq);function Iq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Mq=(e,t)=>oo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Iq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),oo.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"})),_q=ro.forwardRef(Mq),Aq=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(Ue)},Pq=(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:n}=t.payload,r=Math.min(n,e.activeSelection.startIndex),o=Math.max(n,e.activeSelection.endIndex);if(r===e.activeSelection.startIndex&&o===e.activeSelection.endIndex)return e;const i={...e.activeSelection,startIndex:r,endIndex:o};return i.clientSelectedCells=(e=>{const{getCellFromIndex:t,startIndex:n,endIndex:r,clientSelectedCells:o}=e,i=new Map(o);for(let e=n;e<=r;e++){const n=t(e);(null==n?void 0:n.ref.qType)===et.NX_DIM_CELL_NORMAL&&i.set(n.ref.qElemNo,n)}return i})(i),{...e,activeSelection:i}}default:return e}};const Dq={createMouseDownHandler:()=>()=>{},createMouseOverHandler:()=>()=>{},isSelected:()=>!1,isActive:!1,isLocked:()=>!1},Tq=ro.createContext(Dq),Oq=()=>ro.useContext(Tq),Nq=({children:e,selections:t})=>{const n=function(e){var t,n,r;const{env:o}=lT(),{updatePageInfo:i}=oT(),a=e.isActive(),[l,s]=ro.useReducer(Pq,{engineSelectedCells:null,selectedField:null,activeSelection:null});ro.useEffect((()=>{const t=()=>{s({type:"clearSelections"})},n=()=>{t(),i({page:0})};return e.on("deactivated",t),e.on("canceled",t),e.on("confirmed",n),e.on("cleared",t),()=>{e.removeListener("deactivated",t),e.removeListener("canceled",t),e.removeListener("confirmed",n),e.removeListener("cleared",t)}}),[e,i]);const u=ro.useCallback((async()=>{var t,n,r;if(!l.activeSelection)return;1===l.activeSelection.clientSelectedCells.size&&(n=l.engineSelectedCells,(r=l.activeSelection).clientSelectedCells.forEach(((e,t)=>{null!=n&&n.has(t)&&(r.clientSelectedCells.delete(t),n.delete(t))})));const o=new Map([...null!==(t=l.engineSelectedCells)&&void 0!==t?t:new Map,...l.activeSelection.clientSelectedCells]);try{s({type:"mouseup",payload:{engineSelectedCells:o}}),await e.select({method:"selectPivotCells",params:[gT,Array.from(o,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]})}catch(e){console.error(e),s({type:"mouseup",payload:{engineSelectedCells:l.engineSelectedCells}})}}),[l,e]);ro.useEffect((()=>{if(l.activeSelection)return document.addEventListener("mouseup",u),()=>{document.removeEventListener("mouseup",u)}}),[u,l.activeSelection]);const c=ro.useCallback(((e,t)=>n=>{const r=t(e);!Aq(n)&&!(e=>{var t;return null!==(null===(t=e.target)||void 0===t?void 0:t.closest("[data-prevent-selection]"))})(n)&&(e=>1===e.buttons)(n)&&r&&s({type:"mousedown",payload:{activeSelection:{startIndex:e,endIndex:e,getCellFromIndex:t,clientSelectedCells:(new Map).set(r.ref.qElemNo,r)},selectedField:{selectionCellType:r.selectionCellType,index:r.selectionCellType===Ze.NX_CELL_LEFT?r.x:r.y}}})}),[]),d=ro.useCallback((t=>o.flags.isEnabled("CLIENT_IM_6223_PIVOT_RANGE_SELECTION")?async()=>{l.activeSelection&&(e.isActive()||await e.begin([gT]),s({type:"mouseover",payload:{index:t}}))}:void 0),[l.activeSelection,e,o]),p=ro.useCallback((e=>{var t,n;return!(!(null!==(t=l.engineSelectedCells)&&void 0!==t&&t.size||null!==(n=l.activeSelection)&&void 0!==n&&n.clientSelectedCells.size)||!l.selectedField||e.selectionCellType===l.selectedField.selectionCellType&&(e.selectionCellType===Ze.NX_CELL_LEFT?l.selectedField.index===e.x:l.selectedField.index===e.y))}),[null===(t=l.activeSelection)||void 0===t?void 0:t.clientSelectedCells.size,null===(n=l.engineSelectedCells)||void 0===n?void 0:n.size,l.selectedField]),f=ro.useCallback((e=>{var t,n;return!p(e)&&((null===(t=l.engineSelectedCells)||void 0===t?void 0:t.has(e.ref.qElemNo))||!(null===(n=l.activeSelection)||void 0===n||!n.clientSelectedCells.has(e.ref.qElemNo)))}),[p,null===(r=l.activeSelection)||void 0===r?void 0:r.clientSelectedCells,l.engineSelectedCells]);return ro.useMemo((()=>({isSelected:f,isActive:a,isLocked:p,createMouseDownHandler:c,createMouseOverHandler:d})),[f,a,p,c,d])}(t);return uc.jsx(Tq.Provider,{value:n,children:e})};var qq;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(qq||(qq={}));const Fq={brighter:.5,darker:.3,opacity:.03},zq=(e,{cell:t,styleService:n})=>{if(e===qq.Background||e===qq.Color){const n=t.expressionColor[e];if(n)return n}return t.isNull?n.nullValues[e]:t.isPseudoDimension?n.measureLabels[e]:t.isTotal?n.totalValues[e]:n.dimensionValues[e]},jq=({styleService:e,isCellSelected:t,cell:n,isCellLocked:r})=>{if(t)return e.selectedColors.background;const o=zq(qq.Background,{cell:n,styleService:e});return!r||!o||n.isPseudoDimension||n.isEmpty||n.isNull||n.isTotal?zq(qq.Background,{cell:n,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${TI(i=o,Fq)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},$q=({cell:e,styleService:t,isCellSelected:n})=>n?t.selectedColors.color:zq(qq.Color,{cell:e,styleService:t}),Wq=({cell:e,styleService:t})=>{const{qCanCollapse:n,qCanExpand:r}=e.ref,o=zq(qq.FontWeight,{cell:e,styleService:t});return void 0===o&&(r||n)?Vn:o},Gq=({cell:e,styleService:t})=>zq(qq.FontStyle,{cell:e,styleService:t}),Bq=({cell:e,styleService:t})=>zq(qq.TextDecoration,{cell:e,styleService:t}),Hq=e=>e?"pointer":"default",Vq=({expandOrCollapse:e,cell:t})=>n=>{null==e||e(t.y,t.x),n.stopPropagation()},Uq=(e,t)=>{if(!e.isLeftColumn||e.representation.type===_e.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},Yq=({cell:e,dataModel:t,isLeftColumn:n,isCellSelected:r})=>{const{styleService:o}=cT(),{interactions:i}=lT(),{isActive:a}=Oq();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!t,s=$q({cell:e,styleService:o,isCellSelected:r}),u=a?.4:1,c=e.ref.qCanExpand?_q:Lq;let d;return d=e.ref.qCanExpand?n?null==t?void 0:t.expandLeft:null==t?void 0:t.expandTop:n?null==t?void 0:t.collapseLeft:null==t?void 0:t.collapseTop,uc.jsx(c,{opacity:u,color:s,"data-prevent-selection":!l||void 0,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",...Uq(e,o)},onClick:l?void 0:Vq({cell:e,expandOrCollapse:d})})},Kq=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},Xq=e=>{switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},Qq=({representation:e,styleService:t,canExpandOrCollapse:n,leafCount:r,isLeftColumn:o})=>{const i=`calc(100% - ${n?21:0}px)`,a=o?t.contentCellHeight:t.headerCellHeight,l=o&&void 0!==r?a*Math.max(r,1):a;switch(e.imageSize){case"originalSize":return{maxWidth:i,maxHeight:l};case"fitWidth":return{width:i,maxHeight:l};case"fitHeight":return{height:l,maxWidth:i};case"fill":return{height:l,width:i};default:return{width:i,height:a}}},Jq=(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"}},Zq=e=>{if("alwaysFit"===e)return"contain"},eF=({representation:e,styleService:t,textStyle:n,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})=>{const{imageRef:a,onLoad:l}=(()=>{const{downloadService:e}=cT(),t=ro.useRef(null),{promise:n,resolve:r}=ro.useMemo((()=>wq()),[]);return ro.useEffect((()=>{var o;return e.isDownloadedAsPDForImage&&(e.waitForPromise(n),null!==(o=t.current)&&void 0!==o&&o.complete&&r()),()=>r()}),[t,e,n,r]),{onLoad:ro.useCallback((()=>{r()}),[r]),imageRef:t}})(),{url:s,text:u,imageSize:c,resolvedImagePosition:d}=e,{overflow:p,...f}=n;return uc.jsx("div",{"data-key":"image-container",style:{display:"flex",flexDirection:"column",justifyContent:null==d?void 0:d.vertical,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...Qq({representation:e,styleService:t,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})},children:uc.jsx("img",{src:s,alt:u,style:{width:Xq(c),height:Kq(c),objectFit:Zq(c),objectPosition:Jq(c,d),...f},onLoad:l,ref:a})})},tF=(e,t)=>{if(null!=e&&e.auto)return t;switch(null==e?void 0:e.align){case"center":return"center";case"left":return"flex-start";case"right":return"flex-end";default:return t}},nF={display:"flex",flexDirection:"row",alignItems:"center"},rF={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},oF=(e,t,n,r)=>t?{...rF,...e.nullValues}:n?{...nF,color:e.totalValues.color,background:null!=r?r:e.totalValues.background}:{...nF,color:e.measureValues.color,background:null!=r?r:e.measureValues.background},iF=(e,t,n,r,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...er,...!n&&tr(e.grid.lineClamp),...t&&{color:t},fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.nullValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}if(r){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.totalValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}const{fontWeight:s,fontStyle:u,textDecoration:c}=e.measureValues;return{...l,fontWeight:void 0===s?Vn:s,fontStyle:u,textDecoration:c}},aF=(e,t,n,r)=>{const{textAlign:o}=t,i=r?"flex-end":"center";var a,l;return e.isNull||n.type!==_e.Image?tF(o,i):null!==(a=null===(l=n.resolvedImagePosition)||void 0===l?void 0:l.horizontal)&&void 0!==a?a:"center"},lF=({cell:e,representation:t,color:n,isNumeric:r,isTotalValueCell:o})=>{const{layoutService:i,styleService:a}=cT(),l=e.isNull?i.getNullValueText():t.text,s=iF(a,n,r,o,e.isNull);return t.type!==_e.Image||e.isNull?uc.jsx("span",{style:{padding:4,...s},children:l}):uc.jsx(eF,{representation:t,styleService:a,textStyle:s,isLeftColumn:!0})},sF=(e,t)=>{var n,r;return null!==(n=null==e||null===(r=e[t])||void 0===r?void 0:r.visibleMeasureInfoIndex)&&void 0!==n?n:0},uF="flex-start",cF=(e,t)=>{return e.isNull?uF:t.type===_e.Image&&"fill"!==t.imageSize?null===(n=t.resolvedImagePosition)||void 0===n?void 0:n.vertical:uF;var n},dF=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const{env:i}=lT(),{pageInfo:a}=oT(),{styleService:l,layoutService:s}=cT(),{background:u}=l.measureValues,{grid:c,showLastBorder:d,shouldShowTotalCellBottomDivider:p,shouldShowTotalCellRightDivider:f,isTotalValue:m,lastRow:h,lastColumn:g,attrExprInfoIndexes:v}=r,b=null===(o=c[t])||void 0===o?void 0:o[e],y=t===a.rowsOnCurrentPage-1,x=e===s.size.x-1;if(!b)return uc.jsx(Sq,{style:{...n,background:u},isLastRow:y,isLastColumn:x,showLastBorder:d,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const S=s.hasPseudoDimOnLeft?sF(g,t):sF(h,e),E=s.visibleMeasureInfo[S],C=WO(b.ref,s.isIndentModeEnabled?{type:_e.Text}:E.representation,v[S],i),w=!b.isNull&&m(e,t),R=b.isNull?s.getNullValueText():C.text,k=!b.isNull||!Number.isNaN(+R),L=GO(v[S],b.ref),I={...oF(l,b.isNull,w,L.background),...rr(y,x,l.grid.border,d),...ir({bottomDivider:p(t),rightDivider:f(e),borderColor:l.grid.divider}),...Zn,padding:"0px 4px",display:"flex",justifyContent:aF(b,E,C,k)};return uc.jsx("div",{className:He,title:R,style:{...I,...n},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:uc.jsx(Eq,{width:Cq(C),verticalAlign:cF(b,C),children:uc.jsx(lF,{cell:b,representation:C,isNumeric:k,isTotalValueCell:w,color:L.color})})})};var pF=oo.memo(dF,iq);const fF=(e,t)=>{var n,r;return null!==(n=null===(r=t.list[e])||void 0===r?void 0:r.id)&&void 0!==n?n:e.toString()},mF=({columnIndex:e,rowIndex:t,data:n})=>{var r,o;return null!==(r=null===(o=n.grid[t])||void 0===o||null===(o=o[e])||void 0===o?void 0:o.id)&&void 0!==r?r:`${t}-${e}`},hF={...Jn,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},gF=({dataModel:e,dataGridRef:t,height:n,rowHightCallback:r,width:o,measureData:i,leftDimensionData:a,topDimensionData:l,visibleTopDimensionInfo:s,visibleLeftDimensionInfo:u,attrExprInfoIndexes:c,showLastBorder:d,getRightGridColumnWidth:p,verticalScrollDirection:f,horizontalScrollDirection:m})=>{const{pageInfo:h}=oT(),{layoutService:g,viewService:v}=cT(),{styleService:{grid:{divider:b},contentCellHeight:y}}=cT(),x={...hF,borderColor:b,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},S=((e,t,n=!1)=>ro.useCallback((r=>{var o;const i=n?0:t-1,a=null===(o=e.grid.at(i))||void 0===o?void 0:o[r];return aq(a,e.totalDividerIndex,n)}),[e,n,t]))(a,u.length,g.isIndentModeEnabled),E=((e,t)=>ro.useCallback((n=>{var r;const o=null===(r=e.grid.at(t-1))||void 0===r?void 0:r[n];return aq(o,e.totalDividerIndex)}),[e,t]))(l,s.length),C=((e,t,n,r,o)=>ro.useCallback(((i,a)=>{var l,s;return!!(null!==(l=t.grid.at(r-1))&&void 0!==l&&null!==(l=l[i])&&void 0!==l&&l.isTotal||null!==(s=e.grid.at(o?0:n-1))&&void 0!==s&&null!==(s=s[a])&&void 0!==s&&s.isTotal)}),[t,e,n,r,o]))(a,l,u.length,s.length,g.isIndentModeEnabled),w=(({viewService:e,dataModel:t,measureData:n,layoutService:r,pageInfo:o,leftColumnCount:i,topRowCount:a,verticalScrollDirection:l,horizontalScrollDirection:s})=>{const{downloadService:u}=cT();return ro.useCallback((async({overscanColumnStartIndex:c,overscanColumnStopIndex:d,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{e.gridColumnStartIndex=c,e.gridRowStartIndex=p,e.gridWidth=d-c+1,e.gridHeight=f-p+1;const m=e.gridWidth+i+(s.current===We.None?0:lq),h=e.gridHeight+a+(l.current===We.None?0:lq);let g=yq;h*m>1500&&(g=xq),g(t,r,n,o,e,l,s,u)}),[e,r,t,n,l,s,o,i,a,u])})({viewService:v,layoutService:g,dataModel:e,measureData:i,pageInfo:h,leftColumnCount:a.columnCount,topRowCount:l.rowCount,verticalScrollDirection:f,horizontalScrollDirection:m});return ZI((()=>{t.current&&t.current.resetAfterColumnIndex(0,!1)}),[t,e,i]),ro.useLayoutEffect((()=>{t.current&&t.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[o,n,t,y]),0===g.size.x?null:uc.jsx(UN,{"data-section-id":"DATA_GRID",ref:t,style:x,columnCount:g.size.x,columnWidth:p,height:n,rowCount:h.rowsOnCurrentPage,rowHeight:r,width:o,itemData:{grid:i,dataModel:e,showLastBorder:d,isTotalValue:C,shouldShowTotalCellBottomDivider:S,shouldShowTotalCellRightDivider:E,lastRow:l.grid.at(s.length-1),lastColumn:a.grid.at(u.length-1),attrExprInfoIndexes:c},onItemsRendered:w,estimatedRowHeight:r(),estimatedColumnWidth:p(),itemKey:mF,children:pF})};var vF=ro.memo(gF);function bF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const yF=(e,t)=>oo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){bF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),oo.createElement("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),oo.createElement("use",{fillRule:"evenodd"})),xF=ro.forwardRef(yF),SF=e=>{const[t,n]=ro.useState(!1);return ZI((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}},EF=({interactions:e,dataModel:t})=>{const[n,r]=ro.useState(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=SF([t]);return{open:n,setOpen:r,handleOpenMenu:t=>e.active&&!Aq(t)&&!o&&r(!0),setIsAdjustingWidth:i}};function CF(e,t){var n,r,o,i;const a=null!==(n=null===(r=t.expressionColor)||void 0===r?void 0:r.background)&&void 0!==n?n:e.dimensionValues.background,l=t.isLeftColumn?e.header.background:a,s=l===Kn.Transparent?OL.WHITE:l,u=null===(o=eI(e.grid.border))||void 0===o?void 0:o.rgb(),c=null===(i=eI(s))||void 0===i?void 0:i.rgb();if(c&&u&&u.opacity<1){const e=1-u.opacity;return`rgb(${u.opacity*u.r+e*c.r}, ${u.opacity*u.g+e*c.g}, ${u.opacity*u.b+e*c.g})`}return e.grid.border}const wF=({cellInfo:e,columnWidth:t,dataModel:n,isLastColumn:r,overrideLeftGridWidth:o,setIsAdjustingWidth:i,shouldApplyIndentModeColumnWidth:a,tableWidth:l})=>{var s;const{interactions:u,translator:c}=lT(),{isActive:d}=Oq(),{styleService:p}=cT(),[,f]=ro.useState({});if(!(e.canBeResized&&!!u.active&&!d))return null;const m=CF(p,e);return uc.jsx(mP,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:m,updateWidthCallback:t=>{f({}),o&&void 0!==e.colIdx&&o(t,e.colIdx)},confirmWidthCallback:t=>{var r;a?null==n||n.applyIndentModeColumnWidth({...t,pixels:Math.min((null!=l?l:0)*mT,null!==(r=t.pixels)&&void 0!==r?r:0)}):null==n||n.applyColumnWidth(t,e)},setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn,accessibilityRelatedArgs:{translator:c,columnLabel:null!==(s=e.label)&&void 0!==s?s:""}})};function RF(e){return I_(e)}const kF=e=>e.scrollTop;function LF(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function IF(e){return Fs("MuiPaper",e)}zs("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const MF=["className","component","elevation","square","variant"],_F=lP("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return Dl({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&&Dl({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${F_("#fff",cP(t.elevation))}, ${F_("#fff",cP(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var AF=ro.forwardRef((function(e,t){const n=RF({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=Tl(n,MF),u=Dl({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Ts({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},IF,o)})(u);return uc.jsx(_F,Dl({as:o,ownerState:u,className:Bs(c.root,r),ref:t},s))}));var PF=zs("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const DF=["center","classes","className"];let TF,OF,NF,qF,FF=e=>e;const zF=kl(TF||(TF=FF`
121
121
  0% {
122
122
  transform: scale(0);
123
123
  opacity: 0.1;
@@ -127,7 +127,7 @@ function Xl(e,t){let n;return n=t?Wl(e).withConfig({displayName:t.label,shouldFo
127
127
  transform: scale(1);
128
128
  opacity: 0.3;
129
129
  }
130
- `)),nz=Vl(QF||(QF=ez`
130
+ `)),jF=kl(OF||(OF=FF`
131
131
  0% {
132
132
  opacity: 1;
133
133
  }
@@ -135,7 +135,7 @@ function Xl(e,t){let n;return n=t?Wl(e).withConfig({displayName:t.label,shouldFo
135
135
  100% {
136
136
  opacity: 0;
137
137
  }
138
- `)),rz=Vl(JF||(JF=ez`
138
+ `)),$F=kl(NF||(NF=FF`
139
139
  0% {
140
140
  transform: scale(1);
141
141
  }
@@ -147,7 +147,7 @@ function Xl(e,t){let n;return n=t?Wl(e).withConfig({displayName:t.label,shouldFo
147
147
  100% {
148
148
  transform: scale(1);
149
149
  }
150
- `)),oz=IP("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),iz=IP((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=So.useState(!1),p=su(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=su(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),So.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),Lc.jsx("span",{className:p,style:f,children:Lc.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(ZF||(ZF=ez`
150
+ `)),WF=lP("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),GF=lP((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=ro.useState(!1),p=Bs(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Bs(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),ro.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),uc.jsx("span",{className:p,style:f,children:uc.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(qF||(qF=FF`
151
151
  opacity: 0;
152
152
  position: absolute;
153
153
 
@@ -190,4 +190,4 @@ function Xl(e,t){let n;return n=t?Wl(e).withConfig({displayName:t.label,shouldFo
190
190
  animation-iteration-count: infinite;
191
191
  animation-delay: 200ms;
192
192
  }
193
- `),YF.rippleVisible,tz,550,(({theme:e})=>e.transitions.easing.easeInOut),YF.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),YF.child,YF.childLeaving,nz,550,(({theme:e})=>e.transitions.easing.easeInOut),YF.childPulsate,rz,(({theme:e})=>e.transitions.easing.easeInOut)),az=So.forwardRef((function(e,t){const n=$F({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Or(n,KF),[l,s]=So.useState([]),u=So.useRef(0),c=So.useRef(null);So.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=So.useRef(!1),p=js(),f=So.useRef(null),h=So.useRef(null),m=So.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Lc.jsx(iz,{classes:{ripple:su(o.ripple,YF.ripple),rippleVisible:su(o.rippleVisible,YF.rippleVisible),ripplePulsate:su(o.ripplePulsate,YF.ripplePulsate),child:su(o.child,YF.child),childLeaving:su(o.childLeaving,YF.childLeaving),childPulsate:su(o.childPulsate,YF.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=So.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,m,p]),b=So.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=So.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return So.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Lc.jsx(oz,Ir({className:su(YF.root,o.root,i),ref:h},a,{children:Lc.jsx(BC,{component:null,exit:!0,children:l})}))}));var lz=az;function sz(e){return nu("MuiButtonBase",e)}var uz=ru("MuiButtonBase",["root","disabled","focusVisible"]);const cz=["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"],dz=IP("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"},[`&.${uz.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),pz=So.forwardRef((function(e,t){const n=$F({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:C,onTouchEnd:w,onTouchMove:R,onTouchStart:k,tabIndex:L=0,TouchRippleProps:I,touchRippleRef:M,type:_}=n,A=Or(n,cz),P=So.useRef(null),D=So.useRef(null),T=Ns(D,M),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:F}=Ks(),[z,j]=So.useState(!1);s&&z&&j(!1),So.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),P.current.focus()}})),[]);const[$,B]=So.useState(!1);So.useEffect((()=>{B(!0)}),[]);const H=$&&!u&&!s;function W(e,t,n=c){return Os((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}So.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const G=W("start",S),V=W("stop",m),U=W("stop",g),Y=W("stop",C),K=W("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=W("start",k),Q=W("stop",w),J=W("stop",R),Z=W("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),ee=Os((e=>{P.current||(P.current=e.currentTarget),N(e),!0===O.current&&(j(!0),v&&v(e)),b&&b(e)})),te=()=>{const e=P.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=So.useRef(!1),re=Os((e=>{d&&!ne.current&&z&&D.current&&" "===e.key&&(ne.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),oe=Os((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ie=l;"button"===ie&&(A.href||A.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===_?"button":_,ae.disabled=s):(A.href||A.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=Ns(t,F,P),se=Ir({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:L,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Js({root:["root",t&&"disabled",n&&"focusVisible"]},sz,o);return n&&r&&(i.root+=` ${r}`),i})(se);return Lc.jsxs(dz,Ir({as:ie,className:su(ue.root,a),ownerState:se,onBlur:Z,onClick:h,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:G,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:L,type:_},ae,A,{children:[i,H?Lc.jsx(lz,Ir({ref:T,center:o},I)):null]}))}));var fz=pz;var hz=So.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=So.useState(null),l=Ns(So.isValidElement(n)?n.ref:null,t);if(Ts((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Ts((()=>{if(i&&!o)return Ds(t,i),()=>{Ds(t,null)}}),[t,i,o]),o){if(So.isValidElement(n)){const e={ref:l};return So.cloneElement(n,e)}return Lc.jsx(So.Fragment,{children:n})}return Lc.jsx(So.Fragment,{children:i?RC.createPortal(n,i):i})}));const mz=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],gz={entering:{opacity:1},entered:{opacity:1}},bz=So.forwardRef((function(e,t){const n=QA(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:b=NC}=e,v=Or(e,mz),y=So.useRef(null),x=Ns(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),C=S(((e,t)=>{BF(e);const r=HF({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),w=S(c),R=S(h),k=S((e=>{const t=HF({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),L=S(f);return Lc.jsx(b,Ir({appear:i,in:s,nodeRef:y,onEnter:C,onEntered:w,onEntering:E,onExit:k,onExited:L,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>So.cloneElement(a,Ir({style:Ir({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},gz[e],m,a.props.style),ref:x},t))}))}));var vz=bz;function yz(e){return nu("MuiBackdrop",e)}ru("MuiBackdrop",["root","invisible"]);const xz=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Sz=IP("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Ir({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"}))),Ez=So.forwardRef((function(e,t){var n,r,o;const i=$F({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=vz,transitionDuration:g}=i,b=Or(i,xz),v=Ir({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Js({root:["root",n&&"invisible"]},yz,t)})(v),x=null!=(n=f.root)?n:c.root;return Lc.jsx(m,Ir({in:p,timeout:g},b,{children:Lc.jsx(Sz,Ir({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:u.Root)?r:s,className:su(y.root,l,null==x?void 0:x.className),ownerState:Ir({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var Cz=Ez;var wz=ru("MuiBox",["root"]);const Rz=KA(),kz=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Xl("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(R_);return So.forwardRef((function(e,a){const l=P_(n),s=O_(e),{className:u,component:c="div"}=s,d=Or(s,q_);return Lc.jsx(i,Ir({as:c,ref:a,className:su(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:wM,defaultTheme:Rz,defaultClassName:wz.root,generateClassName:eu.generate});var Lz=kz;function Iz(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Mz(e){return parseInt(Ps(e).getComputedStyle(e).paddingRight,10)||0}function _z(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Iz(e,o)}))}function Az(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Pz(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=As(e);return t.body===e?Ps(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Xs(As(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Mz(r)+e}px`;const t=As(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Mz(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=As(r).body;else{const t=r.parentElement,n=Ps(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const Dz=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Tz(e){const t=[],n=[];return Array.from(e.querySelectorAll(Dz)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Oz(){return!0}function Nz(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Tz,isEnabled:a=Oz,open:l}=e,s=So.useRef(!1),u=So.useRef(null),c=So.useRef(null),d=So.useRef(null),p=So.useRef(null),f=So.useRef(!1),h=So.useRef(null),m=Ns(t.ref,h),g=So.useRef(null);So.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),So.useEffect((()=>{if(!l||!h.current)return;const e=As(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),So.useEffect((()=>{if(!l||!h.current)return;const e=As(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Lc.jsxs(So.Fragment,{children:[Lc.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),So.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Lc.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const qz=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Iz(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);_z(t,e.mount,e.modalRef,r,!0);const o=Az(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=Az(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Pz(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Az(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Iz(e.modalRef,t),_z(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Iz(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Fz(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=qz,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=So.useRef({}),f=So.useRef(null),h=So.useRef(null),m=Ns(h,d),[g,b]=So.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},E=Os((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||As(f.current).body;o.add(x(),e),h.current&&S()})),C=So.useCallback((()=>o.isTopModal(x())),[o]),w=Os((e=>{f.current=e,e&&(c&&C()?S():h.current&&Iz(h.current,y))})),R=So.useCallback((()=>{o.remove(x(),y)}),[y,o]);So.useEffect((()=>()=>{R()}),[R]),So.useEffect((()=>{c?E():v&&i||R()}),[c,R,v,i,E]);const k=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},L=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=uu(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Ir({},n,t);return Ir({role:"presentation"},r,{onKeyDown:k(r),ref:m})},getBackdropProps:(e={})=>Ir({"aria-hidden":!0},e,{onClick:L(e),open:c}),getTransitionProps:()=>({onEnter:Ms((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Ms((()=>{b(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:w,isTopModal:C,exited:g,hasTransition:v}}function zz(e){return nu("MuiModal",e)}ru("MuiModal",["root","hidden","backdrop"]);const jz=["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"],$z=IP("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Ir({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Bz=IP(Cz,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Hz=So.forwardRef((function(e,t){var n,r,o,i,a,l;const s=$F({name:"MuiModal",props:e}),{BackdropComponent:u=Bz,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:w=!1,keepMounted:R=!1,onBackdropClick:k,open:L,slotProps:I,slots:M}=s,_=Or(s,jz),A=Ir({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:w,keepMounted:R}),{getRootProps:P,getBackdropProps:D,getTransitionProps:T,portalRef:O,isTopModal:N,exited:q,hasTransition:F}=Fz(Ir({},A,{rootRef:t})),z=Ir({},A,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return Js({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},zz,r)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(r=null==M?void 0:M.root)?r:g.Root)?n:$z,H=null!=(o=null!=(i=null==M?void 0:M.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==I?void 0:I.root)?a:b.root,G=null!=(l=null==I?void 0:I.backdrop)?l:b.backdrop,V=pu({elementType:B,externalSlotProps:W,externalForwardedProps:_,getSlotProps:P,additionalProps:{ref:t,as:m},ownerState:z,className:su(d,null==W?void 0:W.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=pu({elementType:H,externalSlotProps:G,additionalProps:c,getSlotProps:e=>D(Ir({},e,{onClick:t=>{k&&k(t),null!=e&&e.onClick&&e.onClick(t)}})),className:su(null==G?void 0:G.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||L||F&&!q?Lc.jsx(hz,{ref:O,container:h,disablePortal:S,children:Lc.jsxs(B,Ir({},V,{children:[!w&&u?Lc.jsx(H,Ir({},U)):null,Lc.jsx(Nz,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:E,isEnabled:N,open:L,children:So.cloneElement(f,$)})]}))}):null}));var Wz=Hz;var Gz=ru("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Vz=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Uz(e){return`scale(${e}, ${e**2})`}const Yz={entering:{opacity:1,transform:Uz(1)},entered:{opacity:1,transform:"none"}},Kz="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Xz=So.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=NC}=e,g=Or(e,Vz),b=js(),v=So.useRef(),y=QA(),x=So.useRef(null),S=Ns(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(u),w=E(((e,t)=>{BF(e);const{duration:n,delay:r,easing:o}=HF({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:Kz?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),k=E(p),L=E((e=>{const{duration:t,delay:n,easing:r}=HF({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:Kz?o:.666*o,delay:Kz?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Uz(.75),c&&c(e)})),I=E(d);return Lc.jsx(m,Ir({appear:r,in:a,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:L,onExited:I,onExiting:k,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>So.cloneElement(o,Ir({style:Ir({opacity:0,transform:Uz(.75),visibility:"exited"!==e||a?void 0:"hidden"},Yz[e],f,o.props.style),ref:S},t))}))}));Xz.muiSupportAuto=!0;var Qz=Xz;var Jz=So.createContext({});function Zz(e){return nu("MuiList",e)}ru("MuiList",["root","padding","dense","subheader"]);const ej=["children","className","component","dense","disablePadding","subheader"],tj=IP("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Ir({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var nj=So.forwardRef((function(e,t){const n=$F({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=Or(n,ej),c=So.useMemo((()=>({dense:a})),[a]),d=Ir({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Js({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Zz,t)})(d);return Lc.jsx(Jz.Provider,{value:c,children:Lc.jsxs(tj,Ir({as:i,className:su(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));var rj=ru("MuiListItemIcon",["root","alignItemsFlexStart"]);var oj=ru("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const ij=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function aj(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function lj(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function sj(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function uj(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&sj(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var cj=So.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Or(e,ij),p=So.useRef(null),f=So.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ts((()=>{r&&p.current.focus()}),[r]),So.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${Xs(As(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=Ns(p,t);let m=-1;So.Children.forEach(i,((e,t)=>{So.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=So.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),So.cloneElement(e,t)}return e}));return Lc.jsx(nj,Ir({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=As(t).activeElement;if("ArrowDown"===n)e.preventDefault(),uj(t,r,s,l,aj);else if("ArrowUp"===n)e.preventDefault(),uj(t,r,s,l,lj);else if("Home"===n)e.preventDefault(),uj(t,null,s,l,aj);else if("End"===n)e.preventDefault(),uj(t,null,s,l,lj);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&sj(r,o);o.previousKeyMatched&&(s||uj(t,r,!1,l,aj,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function dj(e){return nu("MuiPopover",e)}ru("MuiPopover",["root","paper"]);const pj=["onEntering"],fj=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],hj=["slotProps"];function mj(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function gj(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function bj(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function vj(e){return"function"==typeof e?e():e}const yj=IP(Wz,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xj=IP(UF,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var Sj=So.forwardRef((function(e,t){var n,r,o;const i=$F({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=Qz,transitionDuration:E="auto",TransitionProps:{onEntering:C}={},disableScrollLock:w=!1}=i,R=Or(i.TransitionProps,pj),k=Or(i,fj),L=null!=(n=null==y?void 0:y.paper)?n:b,I=So.useRef(),M=Ns(I,L.ref),_=Ir({},i,{anchorOrigin:s,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:L,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),A=(e=>{const{classes:t}=e;return Js({root:["root"],paper:["paper"]},dj,t)})(_),P=So.useCallback((()=>{if("anchorPosition"===c)return u;const e=vj(l),t=(e&&1===e.nodeType?e:As(I.current).body).getBoundingClientRect();return{top:t.top+mj(t,s.vertical),left:t.left+gj(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=So.useCallback((e=>({vertical:mj(e,x.vertical),horizontal:gj(e,x.horizontal)})),[x.horizontal,x.vertical]),T=So.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:bj(n)};const r=P();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=Ps(vj(l)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:bj(n)}}),[l,c,P,D,m]),[O,N]=So.useState(g),q=So.useCallback((()=>{const e=I.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);So.useEffect((()=>(w&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,w,q]);So.useEffect((()=>{g&&q()})),So.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),So.useEffect((()=>{if(!g)return;const e=_s((()=>{q()})),t=Ps(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,q]);let F=E;"auto"!==E||S.muiSupportAuto||(F=void 0);const z=f||(l?As(vj(l)).body:void 0),j=null!=(r=null==v?void 0:v.root)?r:yj,$=null!=(o=null==v?void 0:v.paper)?o:xj,B=pu({elementType:$,externalSlotProps:Ir({},L,{style:O?L.style:Ir({},L.style,{opacity:0})}),additionalProps:{elevation:h,ref:M},ownerState:_,className:su(A.paper,null==L?void 0:L.className)}),H=pu({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:k,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:_,className:su(A.root,p)}),{slotProps:W}=H,G=Or(H,hj);return Lc.jsx(j,Ir({},G,!au(j)&&{slotProps:W,disableScrollLock:w},{children:Lc.jsx(S,Ir({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:Lc.jsx($,Ir({},B,{children:d}))}))}))}));function Ej(e){return nu("MuiMenu",e)}ru("MuiMenu",["root","paper","list"]);const Cj=["onEntering"],wj=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Rj={vertical:"top",horizontal:"right"},kj={vertical:"top",horizontal:"left"},Lj=IP(Sj,{shouldForwardProp:e=>LP(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ij=IP(xj,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Mj=IP(cj,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var _j=So.forwardRef((function(e,t){var n,r;const o=$F({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=Or(o.TransitionProps,Cj),x=Or(o,wj),S=(()=>{const e=So.useContext(G_);return null!=e&&e})(),E=Ir({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return Js({root:["root"],paper:["paper"],list:["list"]},Ej,t)})(E),w=i&&!s&&d,R=So.useRef(null);let k=-1;So.Children.map(a,((e,t)=>{So.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===k)&&(k=t))}));const L=null!=(n=b.paper)?n:Ij,I=null!=(r=v.paper)?r:p,M=pu({elementType:b.root,externalSlotProps:v.root,ownerState:E,className:[C.root,l]}),_=pu({elementType:L,externalSlotProps:I,ownerState:E,className:C.paper});return Lc.jsx(Lj,Ir({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?Rj:kj,slots:{paper:L,root:b.root},slotProps:{root:M,paper:_},open:d,ref:t,transitionDuration:h,TransitionProps:Ir({onEntering:(e,t)=>{R.current&&R.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),m&&m(e,t)}},y),ownerState:E},x,{classes:f,children:Lc.jsx(Mj,Ir({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:R,autoFocus:i&&(-1===k||s),autoFocusItem:w,variant:g},u,{className:su(C.list,u.className),children:a}))}))}));function Aj(e){return nu("MuiMenuItem",e)}var Pj=ru("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const Dj=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Tj=IP(fz,{shouldForwardProp:e=>LP(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Ir({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Pj.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:iA(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Pj.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:iA(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Pj.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:iA(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})`:iA(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Pj.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Pj.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Gz.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Gz.inset}`]:{marginLeft:52},[`& .${oj.root}`]:{marginTop:0,marginBottom:0},[`& .${oj.inset}`]:{paddingLeft:36},[`& .${rj.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Ir({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${rj.root} svg`]:{fontSize:"1.25rem"}}))));var Oj=So.forwardRef((function(e,t){const n=$F({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=Or(n,Dj),f=So.useContext(Jz),h=So.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=So.useRef(null);Ts((()=>{r&&m.current&&m.current.focus()}),[r]);const g=Ir({},n,{dense:h.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Ir({},a,Js({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},Aj,a))})(n),v=Ns(m,t);let y;return n.disabled||(y=void 0!==c?c:-1),Lc.jsx(Jz.Provider,{value:h,children:Lc.jsx(Tj,Ir({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:su(b.focusVisible,s),className:su(b.root,d)},p,{ownerState:g,classes:b}))})}));const Nj=IP(Lz,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:n,shouldShowMenuIcon:r,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:r?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?n:t}}))),qj=IP("div")({position:"absolute",left:0,bottom:0}),Fj=IP("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...cr,justifyContent:null!=e?e:cr.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),zj=IP("div")((()=>({...cr}))),jj=IP("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:n,fontStyle:r,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:n,fontSize:e,fontFamily:t,fontStyle:r,textDecoration:o}))),$j=IP(_j)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),Bj=IP(Oj,{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}}}))),Hj=IP("span")({textOverflow:"ellipsis",overflow:"hidden"}),Wj=IP("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:DT,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),Gj={[ND.SORTING]:!0,[ND.SELECTIONS]:!0,[ND.SEARCHING]:!0},Vj=({dataModel:e,cell:t,style:n,isFirstColumn:r,isLastColumn:o,isLastRow:i,changeSortOrder:a,iconsVisibilityStatus:l,columnWidth:s,overrideLeftGridWidth:u,layoutService:c,shouldApplyIndentModeColumnWidth:d,tableWidth:p})=>{var f;const h=So.useRef(null),m=_T(),{app:g,model:b,interactions:v,embed:y,env:{flags:x},translator:S}=RT(),{fontSize:E,fontFamily:C,fontStyle:w,fontWeight:R,textDecoration:k,color:L,background:I,hoverBackground:M,activeBackground:_}=m.header,A=So.useRef(null),{shouldShowLockIcon:P,shouldShowMenuIcon:D}=l,{open:T,setOpen:O,handleOpenMenu:N,setIsAdjustingWidth:q}=FF({interactions:v,dataModel:e}),F={sortFromMenu:async(e,n)=>{e.stopPropagation(),await a(t,n)}},z={embed:y,listboxRef:h,sortCriteria:c.searchSortFromDimension&&t.isDim?c.getSortCriteriaForDimension(t.dimensionInfoIndex):void 0},j={model:b,app:g},{labelTextAlign:$}=null!==(f=c.getDimensionInfo(t.dimensionInfoIndex))&&void 0!==f?f:{},B=bF($,"flex-start",x);return Lc.jsxs(Nj,{className:Je,title:t.label,interactions:v,background:T?_:I,hoverBackground:M,shouldShowMenuIcon:D,isDimension:t.isDim,style:{...n,...pr,...br(t,i,r,o,m.grid.border),color:L},"data-testid":"title-cell",onClick:N,children:[Lc.jsxs(Fj,{children:[P&&Lc.jsx(zj,{children:Lc.jsx(NF,{height:12})}),Lc.jsx(jj,{fontFamily:C,fontSize:E,fontStyle:w,fontWeight:R,textDecoration:k,justifyContent:B,children:Lc.jsx("span",{style:fr,children:t.label})})]}),t.isDim&&Lc.jsxs(Lc.Fragment,{children:[Lc.jsx(FD,{headerData:t,translator:S,anchorRef:A,open:T,setOpen:O,interactions:v,menuAvailabilityFlags:Gj,sortRelatedArgs:F,searchRelatedArgs:z,selectionRelatedArgs:j,shouldShowMenuIcon:D}),Lc.jsx(qj,{ref:h}),Lc.jsx(qj,{ref:A})]}),Lc.jsx(jF,{cellInfo:{...t,isLeftColumn:!0},columnWidth:s,dataModel:e,isLastColumn:o,overrideLeftGridWidth:u,setIsAdjustingWidth:q,shouldApplyIndentModeColumnWidth:d,tableWidth:p})]})},Uj=({rowSpan:e,columnSpan:t})=>{const n=_T();return e>0&&t>0?Lc.jsx("div",{style:{...dr,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"0px 1px 0px 0px",borderColor:n.grid.border,background:n.grid.background},"data-testid":"empty-header-cell"}):null};function Yj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Kj=(e,t)=>Eo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Yj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Eo.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})),Xj=So.forwardRef(Kj);function Qj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Jj=(e,t)=>Eo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Qj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Eo.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),Eo.createElement("use",{fillRule:"evenodd"})),Zj=So.forwardRef(Jj),e$=({dataModel:e,tableWidth:t,leftGridWidth:n,overrideLeftGridWidth:r})=>{const o=_T(),{interactions:i,translator:a}=RT(),{isActive:l}=Qq(),{setIsAdjustingWidth:s}=qF([e]);if(!(!!i.active&&!l))return null;const u=zF(o,{isLeftColumn:!0});return Lc.jsx(OP,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:u,columnWidth:n,updateWidthCallback:e=>{r(Math.min(e,t*NT))},confirmWidthCallback:o=>{var i;if(o.type===nt.FitToContent)return void e.applyIndentModeColumnWidth({type:nt.Auto});const a=Math.min(null!==(i=o.pixels)&&void 0!==i?i:n,t*NT);r(a),e.applyIndentModeColumnWidth({type:nt.Pixels,pixels:a})},setIsAdjustingWidth:s,accessibilityRelatedArgs:{translator:a,columnLabel:a.get("SNPivotTable.IndentMode.Rows")}})};function t$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const n$=(e,t)=>Eo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){t$(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Eo.createElement("path",{d:"M3 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})),r$=So.forwardRef(n$),o$=({cell:e,dataModel:t,changeSortOrder:n})=>{const r=So.useRef(null),o=So.useRef(null),{app:i,model:a,interactions:l,embed:s,translator:u}=RT(),{open:c,setOpen:d,handleOpenMenu:p}=FF({interactions:l,dataModel:t});return Lc.jsxs(Bj,{component:"div",onClick:p,isActive:c,children:[Lc.jsx(Hj,{children:e.label}),Lc.jsxs(Wj,{className:"indent-mode-dropdown-more",visible:c,children:[Lc.jsx(r$,{}),e.isDim&&Lc.jsxs(Lc.Fragment,{children:[Lc.jsx(FD,{headerData:e,translator:u,anchorRef:r,open:c,setOpen:d,interactions:l,menuAvailabilityFlags:Gj,sortRelatedArgs:{sortFromMenu:async(t,r)=>{t.stopPropagation(),await n(e,r)}},searchRelatedArgs:{embed:s,listboxRef:o},selectionRelatedArgs:{model:a,app:i},shouldShowMenuIcon:!1}),Lc.jsx(qj,{ref:o}),Lc.jsx(qj,{ref:r})]})]})]})},i$=({idx:e,menu:t,menuItems:n,isOnlyOneRow:r})=>{var o,i;const a=(null===(o=n.at(-1))||void 0===o?void 0:o.id)===jT,l=e+1<n.length&&(null===(i=n[e+1])||void 0===i?void 0:i.id)===jT;return!(r&&a&&l)&&((null==t?void 0:t.id)!==jT&&e<n.length-1)},a$=({headersData:e,menuItems:t,dataModel:n,changeSortOrder:r,overrideLeftGridWidth:o,leftGridWidth:i,tableWidth:a})=>{const l=_T(),{interactions:s,translator:u}=RT(),[c,d]=So.useState(!1),p=So.useRef(null),{headerCellHeight:f}=l,{color:h,background:m,hoverBackground:g,activeBackground:b,fontFamily:v,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E}=l.header,{isAdjustingWidth:C}=qF([n]),w=e=>e.stopPropagation(),R={height:f,gridColumn:`1 / span ${e.size.x}`,gridRow:e.size.y,zIndex:e.size.x-0};return Lc.jsxs(Nj,{isDimension:!0,background:c?b:m,interactions:s,hoverBackground:g,style:{...R,...pr,color:h},onClick:e=>s.active&&!Uq(e)&&!C&&d(!c),"data-testid":"indentModeHeaderCellWrapper",children:[Lc.jsxs(Fj,{justifyContent:"flex-start",children:[Lc.jsx(jj,{fontFamily:v,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E,justifyContent:"flex-start",children:Lc.jsx("span",{style:fr,children:u.get("SNPivotTable.IndentMode.Rows")})}),c?Lc.jsx(Zj,{}):Lc.jsx(Xj,{}),Lc.jsx(qj,{ref:p})]}),Lc.jsx($j,{open:c,anchorEl:p.current,children:t.map(((o,i)=>[o&&(null==o?void 0:o.id)!==jT&&Lc.jsx("li",{role:"presentation",onClick:w,onKeyDown:w,children:Lc.jsx(o$,{cell:o,dataModel:n,changeSortOrder:r})}),i$({idx:i,menu:o,menuItems:t,isOnlyOneRow:1===e.size.y})&&Lc.jsx(HP,{"data-testid":"group-divider",variant:"middle"},"divider")]))}),Lc.jsx(e$,{dataModel:n,tableWidth:a,leftGridWidth:i,overrideLeftGridWidth:o})]})},l$={display:"grid",width:"fit-content"},s$=({dataModel:e,tableWidth:t,leftGridWidth:n,columnWidths:r,rowHight:o,headersData:i,changeSortOrder:a,getHeaderCellsIconsVisibilityStatus:l,height:s,overrideLeftGridWidth:u,layoutService:c})=>Lc.jsxs("div",{style:{...l$,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:i.data.map((()=>`${o}px`)).join(" "),height:s},children:[i.size.y>1&&Lc.jsx(Uj,{columnSpan:i.size.x-1,rowSpan:i.size.y-1}),i.data.map(((s,d)=>{let p=[];if(c.isIndentModeEnabled&&i.size.x>1&&d+1===i.size.y){const r=i.data.at(-1);return p.push(Lc.jsx(a$,{headersData:i,menuItems:r[0],dataModel:e,changeSortOrder:a,overrideLeftGridWidth:u,leftGridWidth:n,tableWidth:t},r[0][0].id)),p}return p=s.reduce(((n,s,p)=>{if(s){const f=l(p,s.isLocked,s.label),h=c.isIndentModeEnabled&&1===i.size.x;n.push(Lc.jsx(Vj,{dataModel:e,style:{width:r[p],height:o,gridColumn:c.isIndentModeEnabled&&i.size.x>1?2:p+1,gridRow:d+1,zIndex:i.size.x-p},isLastRow:d===i.size.y-1,isFirstColumn:0===p,isLastColumn:p===i.size.x-1,changeSortOrder:a,cell:s,iconsVisibilityStatus:f,columnWidth:r[p],overrideLeftGridWidth:u,layoutService:c,shouldApplyIndentModeColumnWidth:h,tableWidth:t},s.id))}return n}),[]),p}))]});var u$=So.memo(s$);const c$=(e,t,n,r,o)=>{So.useLayoutEffect((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,n,r,o])},d$=(e,t)=>{vM((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},p$=(e,t)=>{const{isLast:n,list:r,listValues:o}=t;return n?r[e]:o[e]},f$=(e,t,n,r)=>{var o;const i=n?"flex-start":"center";var a,l;if(e.representation.type===qe.Image)return null!==(a=null===(l=e.representation.resolvedImagePosition)||void 0===l?void 0:l.horizontal)&&void 0!==a?a:i;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){var s;const{labelTextAlign:n}=null!==(s=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==s?s:{};return bF(n,i,r)}const{textAlign:u}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return bF(u,i,r)},h$=()=>{},m$=({children:e,text:t,reactWindowStyle:n,cell:r,data:o,showTotalCellDivider:i,isLastRow:a,isLastColumn:l,isLeftColumn:s,isCellSelected:u,isAdjustingWidth:c,index:d})=>{var p;const f=_T(),{interactions:h,env:{flags:m}}=RT(),{isLocked:g,createMouseDownHandler:b,createMouseOverHandler:v}=Qq(),{layoutService:y,showLastBorder:x}=o,S=g(r)||r.isLockedByDimension,E=!(S||!h.active||!h.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||c),C=E?b(d,(e=>p$(e,o))):void 0,w=E?v(d):void 0;return Lc.jsx("div",{className:Je,title:h.passive?t:void 0,style:{...n,...gr(a,l,f.grid.border,x),...vr({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:f.grid.divider}),...pr,padding:"0px 4px",cursor:lF(E),background:nF({styleService:f,isCellSelected:u,cell:r,isCellLocked:S}),zIndex:s?void 0:y.size.x-r.x,justifyContent:f$(r,y,s,m),display:"flex",...y.isIndentModeEnabled&&s&&{paddingLeft:Math.max(4,24*(null!==(p=r.indentLevel)&&void 0!==p?p:0))}},"aria-hidden":"true",onMouseDown:C,onMouseOver:w,onKeyUp:h$,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":r.x,"data-page-x":r.pageX,"data-y":r.y,"data-page-y":r.pageY,"data-cell-type":r.ref.qType,children:e})},g$=e=>e.stopPropagation(),b$=({href:e,text:t,interactions:n,color:r})=>Eo.createElement(yk,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:g$,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),v$=({children:e,textStyle:t})=>Lc.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),y$=({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>{const{isActive:o}=Qq(),{interactions:i}=RT();let a=e.representation.text;if(e.isEmpty)return null;const l=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>({...fr,...hr(r?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:rF({cell:e,styleService:t,isCellSelected:n}),fontWeight:oF({cell:e,styleService:t}),fontStyle:iF({cell:e,styleService:t}),textDecoration:aF({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r});return e.representation.type!==qe.Image||e.isTotal?(e.representation.type!==qe.Link||o||e.isTotal||(a=Lc.jsx(b$,{text:e.representation.text,href:e.representation.url,interactions:i,color:e.expressionColor.color})),Lc.jsx(v$,{textStyle:l,children:a})):Lc.jsx(gF,{representation:e.representation,isLeftColumn:r,styleService:t,textStyle:l,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand})},x$=e=>{const t=e.isLeftColumn?"flex-start":"center";var n;return e.representation.type!==qe.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(n=e.representation.resolvedImagePosition)||void 0===n?void 0:n.vertical},S$=({index:e,style:t,data:n})=>{const r=_T(),{isSelected:o}=Qq(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=qF([n]),{dataModel:l,isLeftColumn:s=!1,showLastBorder:u,itemCount:c,isLast:d,totalDividerIndex:p,layoutService:f}=n,h=p$(e,n),m=s?e===c-1:d,g=s?d:e===c-1,b=Eq(h,p,f.isIndentModeEnabled);if(void 0===h){const{background:n}=r.dimensionValues;return Lc.jsx(qq,{style:{...t,background:n},index:e,isLastRow:m,isLastColumn:g,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:b})}const v=o(h);return Lc.jsxs(m$,{text:h.representation.text,reactWindowStyle:t,isLeftColumn:s,isLastRow:m,isLastColumn:g,isCellSelected:v,showTotalCellDivider:b,cell:h,data:n,isAdjustingWidth:i,index:e,children:[Lc.jsxs(Fq,{verticalAlign:x$(h),width:zq(h.representation),right:h.isLeftColumn?void 0:4,children:[Lc.jsx(cF,{isLeftColumn:s,isCellSelected:v,cell:h,dataModel:l}),Lc.jsx(y$,{isLeftColumn:s,isCellSelected:v,cell:h,styleService:r})]}),Lc.jsx(jF,{cellInfo:{...h,columnWidthLocation:h.isPseudoDimension?Ve.Measures:Ve.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:g,setIsAdjustingWidth:a})]})};var E$=Eo.memo(S$,Sq);const C$=({list:e,listValues:t,isLastRow:n,getRightGridColumnWidth:r})=>o=>{var i;const a=n?e[o]:t[o];return 0===o&&(null==a?void 0:a.x)>0?(a.leafCount+a.x+a.distanceToNextCell)*r():n||void 0===a?r(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o):(a.leafCount+a.distanceToNextCell)*r()},w$=(e,t,n,r)=>{const o=Object.values(e);let i,a=o.length;return r&&(a=n,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},R$=(e,t)=>n=>{e.current&&(e.current[t]=n)},k$={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...dr},L$={overflow:"hidden",willChange:"auto",flexShrink:0},I$=({dataModel:e,leftGridRef:t,width:n,columnWidths:r,height:o,layoutService:i,leftDimensionData:a,showLastBorder:l,visibleLeftDimensionInfo:s,pageInfo:u})=>{const{qSize:c}=i.layout.qHyperCube,{contentCellHeight:d,grid:{divider:p}}=_T();d$(t,a),c$(t,n,o,d,i);const f=u.rowsOnCurrentPage*d;return Lc.jsx("div",{style:{...k$,borderColor:p},children:a.grid.map(((n,p)=>{const h=p===a.columnCount-1,m=lO(s[p]),{itemCount:g,estimatedItemSize:b,listValues:v}=w$(n,f,u.rowsOnCurrentPage,h),y=i.isIndentModeEnabled?()=>d:((e,t,n,r,o)=>i=>{const a=r?e[i]:t[i];if(0===i&&(null==a?void 0:a.pageY)>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if((null==a?void 0:a.leafCount)>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n})(n,v,d,h,c.qcy);return Lc.jsx(bq,{ref:R$(t,p),style:{...L$,flexGrow:h?1:0},height:o,width:r[p],itemCount:g,itemSize:y,layout:"vertical",itemData:{layoutService:i,dataModel:e,list:n,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:l,listValues:v,totalDividerIndex:a.totalDividerIndex},itemKey:MF,estimatedItemSize:b,children:E$},m)}))})};var M$=So.memo(I$);const _$={overflow:"hidden",willChange:"auto"},A$={...dr,borderWidth:"0px 0px 0px 1px"},P$=({dataModel:e,topGridRef:t,rowHightCallback:n,width:r,height:o,layoutService:i,topDimensionData:a,showLastBorder:l,getRightGridColumnWidth:s,headersData:u})=>{const{grid:{divider:c},headerCellHeight:d}=_T(),p={...A$,borderColor:c,height:o};d$(t,a),c$(t,r,o,d,i);const f=i.size.x*s();return 0===a.rowCount?Lc.jsx("div",{style:{width:r,height:o,...A$}}):Lc.jsx("div",{style:p,children:a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=w$(o,f,i.size.x,d),g=(({layoutService:e,headersData:t,topRowIndex:n})=>{var r;const o=t.data[n],i=t.size.x-1,a=e.isIndentModeEnabled&&t.size.x>1&&n+1===t.size.y?null===(r=o[0][i])||void 0===r?void 0:r.dimensionInfoIndex:null==o?void 0:o[i].dimensionInfoIndex;return void 0!==a?e.getDimensionInfo(a):void 0})({layoutService:i,headersData:u,topRowIndex:c}),b=g?lO(g):`empty ${c}`;return Lc.jsx(bq,{ref:R$(t,c),style:_$,height:n(),width:r,itemCount:p,itemSize:C$({list:o,listValues:m,isLastRow:d,getRightGridColumnWidth:s}),layout:"horizontal",itemData:{layoutService:i,dataModel:e,list:o,isLast:d,itemCount:p,showLastBorder:l,listValues:m,totalDividerIndex:a.totalDividerIndex},itemKey:MF,estimatedItemSize:h,children:E$},b)}))})};var D$=So.memo(P$);const T$=({model:e,rect:t,viewService:n,layoutService:r,qPivotDataPages:o,pageInfo:i})=>{const{headerCellHeight:a,contentCellHeight:l}=_T(),s=((e,t,n)=>So.useMemo((()=>{let{height:r}=e;return t.hasLimitedData&&(r-=22),n&&(r-=41),{...e,height:r}}),[e,t,n]))(t,r,i.shouldShowPagination),{visibleLeftDimensionInfo:u,visibleTopDimensionInfo:c}=((e,t)=>{const{qHyperCube:n}=e.layout,{qNoOfLeftDims:r,qEffectiveInterColumnSortOrder:o,qDimensionInfo:i}=n;return So.useMemo((()=>{var e,n,a,l;const s=PN(null!==(e=null===(n=t[0])||void 0===n?void 0:n.qLeft)&&void 0!==e?e:[]),u=PN(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(AN(i,o,0)),visibleTopDimensionInfo:u.map(AN(i,o,r))}}),[i,o,r,t])})(r,o),d=(e=>{const t=So.useCallback((async(t,n)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:r,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(n===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!r).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(e),{headersData:p,measureData:f,topDimensionData:h,leftDimensionData:m,attrExprInfoIndexes:g,nextPageHandler:b}=RN(o,r,i,u,c),v=MN({model:e,nextPageHandler:b,pageInfo:i,layoutService:r}),{onHorizontalScrollHandler:y,onVerticalScrollHandler:x,verticalScrollableContainerRef:S,leftGridHorizontalScrollableContainerRef:E,dataGridHorizontalScrollableContainerRef:C,dataGridRef:w,leftGridRef:R,topGridRef:k,verticalScrollbarWidth:L,horizontalScrollbarHeight:I,horizontalScrollbarHeightSetter:M,verticalScrollDirection:_,horizontalScrollDirection:A}=(({layoutService:e,viewService:t,pageInfo:n,tableRect:r,mockedRefs:o})=>{var i,a,l,s,u,c;const{theme:d,downloadService:p}=RT(),f=So.useRef(null!==(i=null==o?void 0:o.verticalScrollableContainerRef)&&void 0!==i?i:null),h=So.useRef(null!==(a=null==o?void 0:o.leftGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),m=So.useRef(null!==(l=null==o?void 0:o.dataGridHorizontalScrollableContainerRef)&&void 0!==l?l:null),g=So.useRef(null!==(s=null==o?void 0:o.topGridRef)&&void 0!==s?s:[]),b=So.useRef(null!==(u=null==o?void 0:o.leftGridRef)&&void 0!==u?u:[]),v=So.useRef(null!==(c=null==o?void 0:o.dataGridRef)&&void 0!==c?c:null),y=So.useRef(0),x=So.useRef(0),S=So.useRef(Ke.None),E=So.useRef(Ke.None),[C,w]=So.useState(0),[R,k]=So.useState(0),L=e=>{E.current=_N(e.currentTarget.scrollLeft,y.current),y.current=e.currentTarget.scrollLeft,S.current=_N(e.currentTarget.scrollTop,x.current),x.current=e.currentTarget.scrollTop};So.useLayoutEffect((()=>{e.triggerdByExpandOrCollapse||(h.current&&(h.current.scrollLeft=0),m.current&&(m.current.scrollLeft=0),f.current&&(f.current.scrollTop=0))}),[e]),So.useLayoutEffect((()=>{if(e.triggerdByExpandOrCollapse){var t,n,r,o,i,a;const e=null!==(t=null===(n=m.current)||void 0===n?void 0:n.scrollLeft)&&void 0!==t?t:0,l=null!==(r=null===(o=f.current)||void 0===o?void 0:o.scrollTop)&&void 0!==r?r:0;null===(i=b.current)||void 0===i||i.forEach((e=>null==e?void 0:e.scrollTo(l))),null===(a=g.current)||void 0===a||a.forEach((t=>null==t?void 0:t.scrollTo(e)))}}),[e]),So.useLayoutEffect((()=>{h.current&&(h.current.scrollLeft=0),m.current&&(m.current.scrollLeft=0),f.current&&(f.current.scrollTop=0)}),[n.page]);const I=So.useCallback((e=>{if(e)return void k(0);let t=0;if(h.current){const e=h.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}if(m.current){const e=m.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}k(t)}),[k]);return So.useLayoutEffect((()=>{if(f.current){const e=f.current,t=e.offsetWidth-e.clientWidth;w(t)}I()}),[I,e,t,r.width,r.height,d,p]),So.useLayoutEffect((()=>{(p.isDownloadedAsPDForImage||e.isSnapshot)&&f.current&&m.current&&h.current&&(f.current.scrollTop=t.scrollTop,m.current.scrollLeft=t.scrollLeft,h.current.scrollLeft=t.leftGridScrollLeft)}),[t,f,m,h,p,e]),{onHorizontalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(e.target.dataset.key===`scrollable-container--${Ye.LEFT_GRID}`&&(t.leftGridScrollLeft=e.currentTarget.scrollLeft),e.target.dataset.key===`scrollable-container--${Ye.DATA_GRID}`&&(L(e),null===(n=g.current)||void 0===n||n.forEach((t=>null==t?void 0:t.scrollTo(e.currentTarget.scrollLeft))),null===(r=v.current)||void 0===r||r.scrollTo({scrollLeft:e.currentTarget.scrollLeft}),t.scrollLeft=e.currentTarget.scrollLeft))},onVerticalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(L(e),null===(n=b.current)||void 0===n||n.filter(Boolean).forEach((t=>t.scrollTo(e.currentTarget.scrollTop))),null===(r=v.current)||void 0===r||r.scrollTo({scrollTop:e.currentTarget.scrollTop}),t.scrollTop=e.currentTarget.scrollTop)},verticalScrollableContainerRef:f,leftGridHorizontalScrollableContainerRef:h,dataGridHorizontalScrollableContainerRef:m,dataGridRef:v,leftGridRef:b,topGridRef:g,verticalScrollbarWidth:C,horizontalScrollbarHeight:R,horizontalScrollbarHeightSetter:I,verticalScrollDirection:S,horizontalScrollDirection:E}})({layoutService:r,viewService:n,pageInfo:i,tableRect:s}),{containerHeight:P,headerGridHeight:D,topGridHeight:T,leftGridHeight:O,dataGridHeight:N,allRowsVisible:q}=function({pageInfo:e,headersData:t,topDimensionData:n,tableRect:r,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=_T(),l=e.rowsOnCurrentPage*a,s=i*t.size.y,u=l+s,c=i*Math.max(t.size.y,n.rowCount,1);return{containerHeight:u,headerGridHeight:s,topGridHeight:c,leftGridHeight:Math.min(r.height-s-lr,l),dataGridHeight:Math.min(r.height-c-lr,l),allRowsVisible:c+lr+l+o<=r.height}}({pageInfo:i,headersData:p,topDimensionData:h,tableRect:s,horizontalScrollbarHeight:I}),{leftGridWidth:F,leftGridColumnWidths:z,rightGridWidth:j,totalWidth:$,showLastRightBorder:B,getRightGridColumnWidth:H,getHeaderCellsIconsVisibilityStatus:W,overrideLeftGridWidth:G}=function({layoutService:e,tableWidth:t,headersData:n,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i}){const a=_T(),{measureText:l}=mM(a.header),s=JT({layoutService:e,tableWidth:t,headersData:n}),u=ZT({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,leftGridWidth:s.leftGridWidth}),c=s.leftGridWidth+u.rightGridFullWidth+lr,d=c<t,p=So.useCallback(((t,r,o="")=>{let i=t;e.isIndentModeEnabled&&(i=1,1===n.size.x&&(i=0));const a=s.leftGridColumnWidths[i];let u=!1,c=!1,d=l(o)+OT;return r&&d+TT<=a&&(c=!0,d+=TT),d+DT<=a&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:c}}),[s.leftGridColumnWidths,l,e.isIndentModeEnabled,n.size.x]);return So.useEffect((()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=u.rightGridWidth===u.rightGridFullWidth;i(e&&t)}),[i,s.leftGridWidth,s.leftGridFullWidth,u.rightGridWidth,u.rightGridFullWidth]),{...s,...u,totalWidth:c,showLastRightBorder:d,getHeaderCellsIconsVisibilityStatus:p}}({layoutService:r,tableWidth:s.width,headersData:p,visibleTopDimensionInfo:c,verticalScrollbarWidth:L,horizontalScrollbarHeightSetter:M}),{rootWrapper:V,leftWrapper:U,rightWrapper:Y}=(({tableRect:e,containerHeight:t,headerGridHeight:n,leftGridHeight:r,topGridHeight:o,dataGridHeight:i,allRowsVisible:a,totalWidth:l,leftGridWidth:s,rightGridWidth:u,verticalScrollbarWidth:c,horizontalScrollbarHeight:d})=>{const p=o+i+lr,f=a?0:Math.max(0,e.height-p),h=c*(a?0:1),m=d*(a?0:1),g=a?p+d:e.height,b=e.height-m,v=l-s-h,y=e.width-s-h;return{rootWrapper:{scrollable:e,fullSize:{width:l-h,height:t+m},sticky:{width:e.width-h,height:e.height}},leftWrapper:{containers:{scrollable:{width:s,height:g},fullSize:{width:s,height:t},sticky:{width:s,height:b}},headerGrid:{width:-1,height:n},leftGrid:{width:s,height:r-m+f}},rightWrapper:{containers:{scrollable:{width:u+lr-h,height:g},fullSize:{width:v,height:t},sticky:{width:v<y?v:y,height:b}},topGrid:{width:u-h,height:o},dataGrid:{width:u-h,height:i-m+f}}}})({tableRect:s,containerHeight:P,headerGridHeight:D,leftGridHeight:O,topGridHeight:T,dataGridHeight:N,allRowsVisible:q,totalWidth:$,leftGridWidth:F,rightGridWidth:j,verticalScrollbarWidth:L,horizontalScrollbarHeight:I}),K=So.useCallback((()=>a),[a]),X=So.useCallback((()=>l),[l]);return(()=>{const{downloadService:e}=RT();So.useEffect((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),Lc.jsx(NN,{ref:S,...V.scrollable,onScroll:x,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:Ye.CONTAINER_GRID,children:Lc.jsx(DN,{...V.fullSize,children:Lc.jsxs(qN,{...V.sticky,style:{display:"grid",gridTemplateColumns:F?`${U.containers.scrollable.width}px ${Y.containers.scrollable.width}px`:`${Y.containers.scrollable.width}px`},children:[Boolean(F)&&Lc.jsx(NN,{ref:E,...U.containers.scrollable,onScroll:y,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ye.LEFT_GRID,children:Lc.jsx(DN,{isLeftGrid:!0,...U.containers.fullSize,children:Lc.jsxs(qN,{isLeftGrid:!0,...U.containers.sticky,children:[Lc.jsx(u$,{dataModel:v,tableWidth:s.width,leftGridWidth:F,columnWidths:z,getHeaderCellsIconsVisibilityStatus:W,rowHight:a,height:U.headerGrid.height,headersData:p,changeSortOrder:d,overrideLeftGridWidth:G,layoutService:r}),Lc.jsx(M$,{dataModel:v,leftGridRef:R,...U.leftGrid,columnWidths:z,layoutService:r,leftDimensionData:m,showLastBorder:{right:!1,bottom:q},visibleLeftDimensionInfo:u,pageInfo:i})]})})}),Lc.jsx(NN,{ref:C,...Y.containers.scrollable,onScroll:y,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ye.DATA_GRID,children:Lc.jsx(DN,{...Y.containers.fullSize,children:Lc.jsxs(qN,{...Y.containers.sticky,children:[Lc.jsx(D$,{dataModel:v,topGridRef:k,rowHightCallback:K,...Y.topGrid,layoutService:r,topDimensionData:h,showLastBorder:{right:B,bottom:!1},getRightGridColumnWidth:H,headersData:p}),Lc.jsx(DF,{dataModel:v,dataGridRef:w,rowHightCallback:X,...Y.dataGrid,viewService:n,layoutService:r,measureData:f,leftDimensionData:m,topDimensionData:h,visibleTopDimensionInfo:c,visibleLeftDimensionInfo:u,attrExprInfoIndexes:g.measures,showLastBorder:{right:B,bottom:q},getRightGridColumnWidth:H,pageInfo:i,verticalScrollDirection:_,horizontalScrollDirection:A})]})})})]})})})},O$=e=>{const{layoutService:t,translator:n,pageInfo:r,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=RT(),{layout:u,hasData:c}=t;return Lc.jsxs(Lc.Fragment,{children:[c&&Lc.jsx(T$,{...e}),Lc.jsx(LT,{layoutService:t}),Lc.jsx(ET,{paginationNeeded:r.shouldShowPagination,handleChangePage:e=>o({page:e}),pageInfo:r,totalRowCount:r.totalRowCount,totalColumnCount:0,totalPages:r.totalPages,keyboard:a,translator:n,theme:l,interactions:s,rect:i,layout:u})]})},N$={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},q$=12,F$=14,z$=16,j$=24,$$=3,B$=300,H$=400,W$=600,G$=700,V$={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Tr(N$.GREYSCALE_0,.05),Tr(N$.GREEN_PALE,.5),Tr(N$.BLUE_PALE,.5),Tr(N$.GREEN_PALE,.5),Tr(N$.BLUE_PALE,.5),Tr(N$.GREEN_PALE,.5),Tr(N$.BLUE_PALE,.5);var U$;function Y$(){return Y$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y$.apply(null,arguments)}Tr(N$.GREEN_PALE,.5),Tr(N$.BLUE_PALE,.5),Tr(N$.GREEN_PALE,.5),Tr(N$.BLUE_PALE,.5);var K$,X$=function(e){return So.createElement("svg",Y$({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),U$||(U$=So.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Q$(){return Q$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q$.apply(null,arguments)}var J$=function(e){return So.createElement("svg",Q$({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),K$||(K$=So.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 Z$({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Eo.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var eB=(e={})=>Eo.createElement(Z$,{...e},Eo.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},Eo.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Eo.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),tB=(e={})=>Eo.createElement(Z$,{...e},Eo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Eo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Eo.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Eo.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),nB=(e={})=>Eo.createElement(Z$,{fontSize:"medium",...e},Eo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Eo.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},Eo.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),rB=(e={})=>Eo.createElement(Z$,{fontSize:"medium",...e},Eo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Eo.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Eo.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),oB=({className:e})=>Eo.createElement(Z$,{fontSize:"small",className:e},Eo.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},Eo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Eo.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},Eo.createElement("g",{transform:"translate(4.324187, 1.300372)"},Eo.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Eo.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})))))),iB=(e={})=>Eo.createElement(Z$,{...e},Eo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Eo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Eo.createElement("rect",{stroke:N$.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const aB={MuiAccordion:{styleOverrides:{root:{backgroundColor:N$.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:N$.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Eo.createElement(X$,{"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 ${N$.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:N$.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${N$.MISC_FOCUS_BORDER}`,borderRadius:$$,backgroundColor:N$.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 ${N$.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:N$.WHITE,color:N$.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:$$},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${N$.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:N$.GREYSCALE_0_15,backgroundColor:N$.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:N$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${N$.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:N$.GREEN_PALE},"&:active":{backgroundColor:N$.GREEN_DARK},"&.Mui-focusVisible":{borderColor:N$.GREEN_PALE,boxShadow:`0 0 0 3px ${z_(N$.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:N$.BLUE_PALE},"&:active":{backgroundColor:N$.BLUE_DARK},"&.Mui-focusVisible":{borderColor:N$.BLUE_PALE,boxShadow:`0 0 0 3px ${z_(N$.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:$$,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:N$.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${N$.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:N$.GREYSCALE_0_15,backgroundColor:N$.GREYSCALE_100_60,"&:active":{backgroundColor:N$.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:N$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${N$.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:N$.PURPLE,"&.Mui-focusVisible":{borderColor:N$.PURPLE,boxShadow:`0 0 0 3px ${z_(N$.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:N$.GREEN,"&.Mui-focusVisible":{borderColor:N$.GREEN,boxShadow:`0 0 0 3px ${z_(N$.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:N$.BLUE,"&.Mui-focusVisible":{borderColor:N$.BLUE,boxShadow:`0 0 0 3px ${z_(N$.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:N$.ORANGE,"&.Mui-focusVisible":{borderColor:N$.ORANGE,boxShadow:`0 0 0 3px ${z_(N$.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:N$.RED,"&.Mui-focusVisible":{borderColor:N$.RED,boxShadow:`0 0 0 3px ${z_(N$.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:N$.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:N$.PURPLE_PALE},"&:active":{backgroundColor:N$.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:N$.PURPLE_PALE,boxShadow:`0 0 0 3px ${z_(N$.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:N$.GREEN_PALE},"&:active":{backgroundColor:N$.GREEN_DARK},"&.Mui-focusVisible":{borderColor:N$.GREEN_PALE,boxShadow:`0 0 0 3px ${z_(N$.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:N$.BLUE_PALE},"&:active":{backgroundColor:N$.BLUE_DARK},"&.Mui-focusVisible":{borderColor:N$.BLUE_PALE,boxShadow:`0 0 0 3px ${z_(N$.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:N$.ORANGE_PALE},"&:active":{backgroundColor:N$.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:N$.ORANGE_PALE,boxShadow:`0 0 0 3px ${z_(N$.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:N$.RED_PALE},"&:active":{backgroundColor:N$.RED_DARK},"&.Mui-focusVisible":{borderColor:N$.RED_PALE,boxShadow:`0 0 0 3px ${z_(N$.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:N$.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:N$.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:$$,boxShadow:`inset 0 0 0 2px ${N$.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Eo.createElement(J$,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:q$,borderRadius:$$,color:N$.TEXT_PRIMARY,backgroundColor:N$.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:N$.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${N$.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:N$.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:N$.GREYSCALE_0_05,color:N$.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:N$.GREEN,borderColor:N$.GREEN},"&.MuiChip-outlinedInfo":{color:N$.BLUE,borderColor:N$.BLUE},"&.MuiChip-outlinedWarning":{color:N$.ORANGE,borderColor:N$.ORANGE},"&.MuiChip-outlinedError":{color:N$.RED,borderColor:N$.RED}},outlined:{border:`solid 1px ${N$.GREYSCALE_0_15}`,backgroundColor:N$.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:$$,boxShadow:"none",backgroundColor:N$.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:N$.GREEN,borderColor:N$.GREEN},outlinedSecondary:{color:N$.BLUE,borderColor:N$.BLUE},label:{fontFamily:V$.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Eo.createElement(J$,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Eo.createElement(X$,{"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:$$},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:$$,fontSize:F$,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:N$.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${N$.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:N$.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:N$.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:N$.GREYSCALE_0_05}}},popupIndicator:{borderRadius:$$,border:`solid 1px ${N$.GREYSCALE_0_15}`,color:N$.GREYSCALE_0_60,marginRight:0,width:j$,height:j$},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${N$.GREYSCALE_0_15}`},clearIndicator:{borderRadius:$$,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:N$.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:F$}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:q$,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:N$.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:N$.GREYSCALE_25,fontSize:q$,fontFamily:V$.FONT_FAMILY,fontWeight:W$,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:N$.TEXT_PRIMARY},"&.Mui-error":{color:N$.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:N$.TEXT_SECONDARY,content:"'(optional)'",fontWeight:H$,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:N$.TEXT_SECONDARY,content:"'(required)'",fontWeight:H$,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:F$,lineHeight:"16px",backgroundColor:N$.WHITE,borderRadius:$$,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${N$.GREYSCALE_0_05}`,borderColor:N$.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${N$.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${N$.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${N$.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${N$.RED}`,boxShadow:`0px 0px 0px 1px ${N$.RED}, inset 0 2px 0 0 ${N$.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${N$.GREYSCALE_0_10}`,borderColor:N$.GREYSCALE_0_10,backgroundColor:N$.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:N$.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:N$.GREYSCALE_0_15,borderRadius:$$,boxShadow:`inset 0 2px 0 0 ${N$.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Eo.createElement(X$,{...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:N$.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:N$.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:N$.GREYSCALE_0_03},"&:active":{backgroundColor:N$.GREYSCALE_0_10},"&:focus":{backgroundColor:N$.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${N$.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${N$.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:N$.GREYSCALE_0_30,"&:hover":{backgroundColor:N$.GREYSCALE_0_0,borderColor:N$.GREYSCALE_0_15},"& ~svg":{color:N$.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${N$.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:$$}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:N$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${N$.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:N$.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:F$,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:q$,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:q$,fontWeight:W$,color:N$.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:W$}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${N$.GREYSCALE_0_15}, 0px 0px 0px 1px ${N$.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Eo.createElement(nB,null),checkedIcon:Eo.createElement(rB,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:N$.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${N$.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:N$.GREEN_PALE,boxShadow:`0 0 0 3px ${z_(N$.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:N$.BLUE_PALE,boxShadow:`0 0 0 3px ${z_(N$.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:N$.GREYSCALE_0_20}},"&.Mui-disabled":{fill:N$.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Eo.createElement(iB,null),checkedIcon:Eo.createElement(eB,null),indeterminateIcon:Eo.createElement(tB,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:$$,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:N$.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:N$.GREYSCALE_0_55,color:N$.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:N$.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:N$.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:N$.GREYSCALE_0_55,"&:hover":{color:N$.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:N$.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:N$.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:F$,color:N$.TEXT_PRIMARY,lineHeight:"16px",fontWeight:W$},secondary:{fontSize:q$,color:N$.GREYSCALE_45,fontWeight:H$,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:F$,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:N$.GREYSCALE_0_03},"&:active":{backgroundColor:N$.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:F$,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:N$.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:q$,borderBottom:`solid 1px ${N$.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:F$,color:N$.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:N$.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:N$.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:N$.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:N$.RED}}},"&.Mui-focusVisible":{backgroundColor:N$.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:N$.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:N$.GREEN,height:"24px","&.Mui-disabled":{color:N$.GREYSCALE_0_15}},rail:{backgroundColor:N$.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${N$.GREYSCALE_0_05}`,borderRadius:$$,boxShadow:`inset 0px 0px 0px 1px ${N$.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${N$.GREYSCALE_0_05}`,borderRadius:$$},thumb:{height:"16px",width:"16px",borderRadius:$$,backgroundColor:N$.WHITE,boxShadow:`0px 1px 2px 0px ${N$.GREYSCALE_0_15}, 0px 0px 0px 1px ${N$.GREYSCALE_0_05}`,"&:hover":{borderRadius:$$,boxShadow:`0 2px 4px 0 ${N$.GREYSCALE_0_30}, 0 0 0 1px ${N$.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${N$.GREYSCALE_0_15}, 0 0 0 1px ${N$.GREYSCALE_0_06}, 0 0 0 2px ${N$.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${N$.GREYSCALE_0_15}, 0 0 0 1px ${N$.GREYSCALE_0_06}, 0 0 0 2px ${N$.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:N$.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:N$.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:N$.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:N$.GREYSCALE_0_15},markLabel:{color:N$.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:N$.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:N$.WHITE,color:N$.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:N$.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:N$.GREEN_PALE,boxShadow:`0 0 0 3px ${z_(N$.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:N$.BLUE_PALE,boxShadow:`0 0 0 3px ${z_(N$.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:N$.GREYSCALE_0_15,borderRadius:$$},thumb:{height:"16px",width:"16px",borderRadius:$$,backgroundColor:N$.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:F$,fontWeight:W$,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${N$.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${N$.MISC_FOCUS_BORDER}`,backgroundColor:N$.GREYSCALE_0_03,borderRadius:$$},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:N$.GREYSCALE_25,"&.Mui-selected":{color:N$.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:F$,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:$$,"&:hover":{backgroundColor:`${N$.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 ${N$.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${N$.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:$$,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:N$.GREYSCALE_0_05},"&:hover":{backgroundColor:`${N$.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${N$.GREYSCALE_85}`,borderRight:`1px solid ${N$.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:W$,backgroundColor:N$.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:N$.GREYSCALE_98,borderBottom:`1px solid ${N$.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${N$.GREYSCALE_85}`,borderTop:`1px solid ${N$.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:N$.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:N$.GREYSCALE_0_05,"&:hover":{backgroundColor:N$.GREYSCALE_0_03}},"&&:hover":{backgroundColor:N$.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Eo.createElement(oB,{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 ${N$.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:F$,borderRadius:$$,padding:"7px 16px",border:`1px solid ${N$.GREYSCALE_0_15}`,backgroundColor:N$.GREYSCALE_100_60,color:N$.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:N$.GREYSCALE_0_10,border:`1px solid ${N$.GREYSCALE_0_30}`},"&:hover":{backgroundColor:N$.GREYSCALE_0_03,border:`1px solid ${N$.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:N$.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${N$.MISC_FOCUS_BORDER}`,border:`1px solid ${N$.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:N$.GREYSCALE_25,backgroundColor:N$.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:N$.GREYSCALE_0_10,border:`1px solid ${N$.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:q$,height:24,width:24,padding:7},sizeLarge:{fontSize:z$,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:F$,borderRadius:$$}}},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:N$.GREYSCALE_20},tooltip:{backgroundColor:N$.GREYSCALE_20,fontSize:q$,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var lB=e=>aB;const sB={mode:"light",primary:{ultraLight:N$.GREEN_ULTRA_LIGHT,light:N$.GREEN_PALE,main:N$.GREEN,dark:N$.GREEN_DARK,extraDark:N$.GREEN_EXTRA_DARK,contrastText:N$.WHITE},secondary:{ultraLight:N$.BLUE_ULTRA_LIGHT,light:N$.BLUE_PALE,main:N$.BLUE,dark:N$.BLUE_DARK,extraDark:N$.BLUE_EXTRA_DARK,contrastText:N$.WHITE},error:{ultraLight:N$.RED_ULTRA_LIGHT,light:N$.RED_PALE,main:N$.RED,dark:N$.RED_DARK,extraDark:N$.RED_EXTRA_DARK,contrastText:N$.WHITE},warning:{ultraLight:N$.ORANGE_ULTRA_LIGHT,light:N$.ORANGE_PALE,main:N$.ORANGE,dark:N$.ORANGE_DARK,extraDark:N$.ORANGE_EXTRA_DARK,contrastText:N$.WHITE},success:{ultraLight:N$.GREEN_ULTRA_LIGHT,light:N$.GREEN_PALE,main:N$.GREEN,dark:N$.GREEN_DARK,extraDark:N$.GREEN_EXTRA_DARK,contrastText:N$.WHITE},info:{ultraLight:N$.BLUE_ULTRA_LIGHT,light:N$.BLUE_PALE,main:N$.BLUE,dark:N$.BLUE_DARK,extraDark:N$.BLUE_EXTRA_DARK,contrastText:N$.WHITE},text:{primary:N$.TEXT_PRIMARY,secondary:N$.TEXT_SECONDARY,disabled:N$.GREYSCALE_0_30},action:{hover:N$.GREYSCALE_0_03,hoverOpacity:.03,selected:N$.GREYSCALE_0_05,selectedOpacity:.05,focus:N$.MISC_FOCUS_BORDER},amethyst:{ultraLight:N$.WHITE,main:N$.PURPLE,light:N$.PURPLE_PALE,dark:N$.PURPLE_DARK,extraDark:N$.GREYSCALE_0_0,contrastText:N$.WHITE},background:{paper:N$.WHITE,default:N$.GREYSCALE_95},divider:N$.GREYSCALE_0_15},uB=e=>sB,cB=(e="light")=>({components:lB(),palette:uB(),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:F$,fontWeightLight:B$,fontWeightRegular:H$,fontWeightMedium:W$,fontWeightBold:G$,htmlFontSize:F$,fontFamily:V$.FONT_FAMILY,button:{fontWeight:W$,fontSize:F$,textTransform:"none"},body1:{fontSize:z$,lineHeight:"24px"},body2:{fontSize:F$,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:j$,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:z$,fontWeight:W$,lineHeight:"16px"},h6:{fontSize:F$,fontWeight:W$,lineHeight:"16px"},caption:{color:N$.TEXT_SECONDARY},subtitle1:{fontSize:F$,color:N$.TEXT_SECONDARY},subtitle2:{fontSize:q$,color:N$.TEXT_SECONDARY}},shape:{borderRadius:$$}});const dB=(e,t)=>{const{selections:n,styleService:r,app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d,translator:p}=t,f=function(e){var t;const n=cB();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),KA({...n,direction:e})}("ltr");e.render(Lc.jsx(Eo.StrictMode,{children:Lc.jsx(_P,{theme:f,children:Lc.jsx(kT,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d,translator:p,children:Lc.jsx(Jq,{selections:n,updatePageInfo:t.updatePageInfo,env:c,children:Lc.jsx(AT,{styleService:r,children:Lc.jsx(O$,{...t})})})})})}))};var pB,fB,hB,mB;!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"}(pB||(pB={})),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"}(fB||(fB={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(hB||(hB={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(mB||(mB={}));const gB=e=>e?`${parseInt(e,10)}px`:void 0,bB=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?sr.Transparent:n}},vB=(e,t)=>+(parseInt(e,10)*ar*t+8).toFixed(2),yB=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?or:"normal",xB=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",SB=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none";function EB(t,n){return e.useMemo((()=>t),n)}const CB={},wB=t=>{const n=e.useMemo((()=>({current:CB})),[]);return n.current=n.current===CB?t:n.current,n},RB=({fontStyle:e,fontWeight:t,fontSize:n,fontFamily:r})=>t?`${e} ${t} ${n} ${r}`:`${e} ${n} ${r}`,kB=(t,n,r)=>{var o,i;const a=null!==(o=null==r?void 0:r.qHyperCubeDef.qShowTotalsAbove)&&void 0!==o&&o,l=null!==(i=null==r?void 0:r.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==i&&i,s=void 0!==(null==r?void 0:r.qHyperCubeDef.qSortbyYValue)&&1===Math.abs(null==r?void 0:r.qHyperCubeDef.qSortbyYValue),u=e.useMemo((()=>{var e;return null==r||null===(e=r.qHyperCubeDef.qDimensions)||void 0===e?void 0:e.map((e=>e.qDef.qSortCriterias))}),[r]);return e.useMemo((()=>(({layout:e,flags:t,qShowTotalsAbove:n,qAlwaysFullyExpanded:r,isSortedByFirstMeasure:o,qSortCriterias:i})=>{var a,l,s,u;const{qHyperCube:c,nullValueRepresentation:d,snapshotData:p}=e,{qNoOfLeftDims:f,qEffectiveInterColumnSortOrder:h,qMeasureInfo:m,qDimensionInfo:g}=c,b=!!p,v=null!==(a=null==p||null===(l=p.content)||void 0===l?void 0:l.rowsPerPage)&&void 0!==a?a:15e3,y={x:Math.min(e.qHyperCube.qSize.qcx,ir),y:Math.min(e.qHyperCube.qSize.qcy,v)},x=h.slice(0,f),S=e=>x.some((t=>t===e)),E=S(zT),C=new Map(h.map((e=>{var t;return[null!==(t=g[e])&&void 0!==t?t:zT,e]}))),w=m.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==d?void 0:d.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(E)return 0;const n=e%w.length;return t?n:m.findIndex((e=>e===w[n]))},getDimensionInfo:e=>e===zT?zT:g[e],getDimensionInfoIndex:e=>{var t;return null!==(t=C.get(e))&&void 0!==t?t:-1},getSortCriteriaForDimension:e=>null==i?void 0:i[e],size:y,isSnapshot:b,hasLimitedData:!b&&y.x<e.qHyperCube.qSize.qcx,hasData:y.x>0&&y.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:n,hasPseudoDimOnLeft:E,leftDimensionInfoIndexes:x,isLeftDimension:S,isFullyExpanded:r,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:w,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),indentModeColumnWidth:null!==(s=e.qHyperCube.indentModeColumnWidth)&&void 0!==s?s:{type:nt.Auto,pixels:tt.PixelsDefault,percentage:tt.PercentageDefault},isSortedByFirstMeasure:o,searchSortFromDimension:"inherit"===(null===(u=e.search)||void 0===u?void 0:u.sorting)}})({layout:t,flags:n,qShowTotalsAbove:a,qAlwaysFullyExpanded:l,isSortedByFirstMeasure:s,qSortCriterias:u})),[t,a,l,s,n,u])},LB=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=wB(e);return t.current=e,t})(LN(o));return dM((async()=>{var t;const{qHyperCube:o}=i,{maxNumberOfVisibleRows:u,maxNumberOfVisibleColumns:c}=s.current;var d,p;if(a)return null!==(d=null===(p=i.snapshotData)||void 0===p||null===(p=p.content)||void 0===p?void 0:p.qPivotDataPages)&&void 0!==d?d:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,n,r)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=r||t.gridRowStartIndex+t.gridHeight>=n))(l,n,u,c)||((e,t,n,r)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(r,l.qcx)||c<Math.min(n,l.qcy)})(i,r,u,c))){const t=((e,t,n,r,o,i)=>{const a=r.page*r.rowsPerPage,l=Math.min(a+r.rowsPerPage,n.qcy),s=Math.min(ir,n.qcx);if(n.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,n=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),n>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:c,qWidth:Math.min(s-u,i),qHeight:Math.min(l-c,o)}})(l,n,i.qHyperCube.qSize,r,u,c);return t?e.getHyperCubePivotData(FT,IN(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,n,r.page,r.rowsPerPage,s,l])},IB=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),MB=(e,t,n=15e3)=>({rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:IB({rowsPerPage:n,totalRowCount:e,page:t})}),_B=15,AB=({layoutService:t,viewService:n,rect:r,model:o,pageInfo:i})=>{var a;return e.onTakeSnapshot((async e=>{if(!e.snapshotData||!o||e.snapshotData.content)return e;if(null!=o&&o.getHyperCubePivotData){const{scrollTop:t,scrollLeft:a,leftGridScrollLeft:l}=n,s=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,l=t.page*t.rowsPerPage,s=Math.max(r-_B,0),u=Math.max(l+o-_B,l,0);if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=LN(n);return{qLeft:s,qTop:u,qWidth:e+30,qHeight:t+30}}return{qLeft:s,qTop:u,qWidth:i+30,qHeight:a+30}})(n,i,r),u=IN(s),c={qLeft:0,qTop:i.page*i.rowsPerPage,qWidth:1,qHeight:1};e.snapshotData.content={qPivotDataPages:await o.getHyperCubePivotData(FT,[c,...u]),scrollTop:t,scrollLeft:a,leftGridScrollLeft:l,page:i.page,rowsPerPage:i.rowsPerPage},e.snapshotData.object.size.w=r.width,e.snapshotData.object.size.h=r.height}return e})),e.useImperativeHandle((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,renderPage:t.page}))(n,i)})),[n]),null!==(a=t.layout.snapshotData)&&void 0!==a&&a.content?{left:r.left,top:r.top,width:t.layout.snapshotData.object.size.w,height:t.layout.snapshotData.object.size.h}:r};var PB={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 DB=()=>{const t=e.useTranslator(),n=t.language();return e.useMemo((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(PB).forEach((t=>{e.add(PB[t])}))}}(t)),[t]),{translator:t,language:n}},TB=t=>{const{flags:n}=t,r=e.useElement(),o=(t=>{const n=e.useMemo((()=>gM(t)),[t]);return e.useEffect((()=>()=>n.unmount()),[n]),n})(r),i=e.useStaleLayout(),a=e.useModel(),l=e.useApp(),s=e.useEmbed(),u=e.useKeyboard(),c=e.useInteractionState(),d=(t=>{const{viewState:n}=e.useOptions(),r=wB(new Set),o=void 0!==n&&t.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),{promise:i,resolve:a}=e.useMemo((()=>jq()),[]),l=EB((e=>{r.current.add(e)}),[r]),s=EB(xe((async()=>{await Promise.all(r.current),a()}),1e3),[a,r]);return e.usePromise((async()=>{o&&await i}),[i,o]),e.useMemo((()=>({viewState:n,isDownloadedAsPDForImage:o,notifyIsDoneRendering:s,waitForPromise:l})),[s,o,n,l])})(t),[p,f]=((e,t)=>dM((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(a,i),h=kB(i,n,p),m=e.useSelections(),g=cM(i,r),{translator:b,language:v}=DB(),{pageInfo:y,updatePageInfo:x}=((t,n)=>{const{size:r,layout:{qHyperCube:{qSize:o}}}=t,i=n.isDownloadedAsPDForImage||t.isSnapshot,a=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(t),[l,s]=e.useState((()=>{const e=((e,t)=>{var n,r,o,i;return t.isDownloadedAsPDForImage?null!==(n=null===(r=t.viewState)||void 0===r?void 0:r.renderPage)&&void 0!==n?n:0:e.isSnapshot&&null!==(o=null===(i=e.layout.snapshotData)||void 0===i||null===(i=i.content)||void 0===i?void 0:i.page)&&void 0!==o?o:0})(t,n);return{page:e,shouldShowPagination:o.qcy>r.y&&!i,...MB(o.qcy,e,a)}}));return e.useEffect((()=>{s((e=>({...e,...MB(t.layout.qHyperCube.qSize.qcy,e.page,a),shouldShowPagination:t.layout.qHyperCube.qSize.qcy>t.size.y&&!i})))}),[t.layout.qHyperCube.qSize.qcy,t.size.y,s,i,a]),e.useEffect((()=>{const{page:e,totalPages:t}=l;if(e+1>t){const e=t-1,n=IB({...l,page:e});s({...l,page:e,rowsOnCurrentPage:n})}}),[l]),{pageInfo:l,updatePageInfo:e=>s({...l,...e,rowsOnCurrentPage:IB({...l,...e})})}})(h,d),S=((t,n,r)=>e.useMemo((()=>((e,t)=>{var n,r,o,i,a,l;if(e.isDownloadedAsPDForImage){var s,u,c;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(s=null==t?void 0:t.scrollTop)&&void 0!==s?s:0,scrollLeft:null!==(u=null==t?void 0:t.scrollLeft)&&void 0!==u?u:0,leftGridScrollLeft:null!==(c=null==t?void 0:t.leftGridScrollLeft)&&void 0!==c?c:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.scrollTop)&&void 0!==n?n:0,scrollLeft:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.leftGridScrollLeft)&&void 0!==a?a:0}})(r,n.snapshotData)),[r,t.page,n.snapshotData]))(y,i,d),E=AB({rect:e.useRect(),layoutService:h,viewService:S,model:a,pageInfo:y}),[C,w]=LB({model:a,layoutService:h,viewService:S,pageInfo:y,rect:E}),R=e.useMemo((()=>((e,t,n)=>{var r,o,i,a,l,s,u,c,d,p,f,h,m,g,b,v,y,x,S,E,C,w,R,k,L,I,M,_,A,P,D,T,O,N,q,F,z,j,$,B,H,W,G,V,U,Y,K;const X=null===(r=t.layout.components)||void 0===r?void 0:r.find((e=>"theme"===e.key)),Q=null==X?void 0:X.header,J=null==X?void 0:X.dimensionValues,Z=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,ne=null==X?void 0:X.nullValues,re=null==X?void 0:X.grid,oe=(t,n,r)=>e.getStyle(t,n,r),ie=+(null!==(o=null!==(i=null==re?void 0:re[pB.LineClamp])&&void 0!==i?i:oe(fB.Grid,hB.Grid,mB.LineClamp))&&void 0!==o?o:1),ae=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==re?void 0:re[pB.ColumnLineClamp])&&void 0!==l?l:oe(fB.Grid,hB.Grid,mB.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=bB(e,null==Q?void 0:Q[pB.Background]))&&void 0!==u?u:oe(fB.Dimension,hB.LabelName,mB.BackgroundColor))&&void 0!==s?s:sr.Transparent,se={header:{fontSize:null!==(c=null!==(d=gB(null==Q?void 0:Q[pB.FontSize]))&&void 0!==d?d:oe(fB.Dimension,hB.LabelName,mB.FontSize))&&void 0!==c?c:nr,fontFamily:null!==(p=null!==(f=null==Q?void 0:Q[pB.FontFamily])&&void 0!==f?f:oe(fB.Dimension,hB.LabelName,mB.FontFamily))&&void 0!==p?p:rr,fontWeight:yB(null==Q?void 0:Q[pB.FontStyle],or),fontStyle:xB(null==Q?void 0:Q[pB.FontStyle]),textDecoration:SB(null==Q?void 0:Q[pB.FontStyle]),color:null!==(h=null!==(m=bB(e,null==Q?void 0:Q[pB.FontColor]))&&void 0!==m?m:oe(fB.Dimension,hB.LabelName,mB.Color))&&void 0!==h?h:JL.TEXT,background:le,hoverBackground:JI(le,rt),activeBackground:JI(le,ot)},dimensionValues:{fontSize:null!==(g=null!==(b=gB(null==J?void 0:J[pB.FontSize]))&&void 0!==b?b:oe(fB.Dimension,hB.LabelValue,mB.FontSize))&&void 0!==g?g:nr,fontFamily:null!==(v=null!==(y=null==J?void 0:J[pB.FontFamily])&&void 0!==y?y:oe(fB.Dimension,hB.LabelValue,mB.FontFamily))&&void 0!==v?v:rr,fontWeight:yB(null==J?void 0:J[pB.FontStyle],void 0),fontStyle:xB(null==J?void 0:J[pB.FontStyle]),textDecoration:SB(null==J?void 0:J[pB.FontStyle]),color:null!==(x=null!==(S=bB(e,null==J?void 0:J[pB.FontColor]))&&void 0!==S?S:oe(fB.Dimension,hB.LabelValue,mB.Color))&&void 0!==x?x:JL.TEXT,background:null!==(E=null!==(C=bB(e,null==J?void 0:J[pB.Background]))&&void 0!==C?C:oe(fB.Dimension,hB.LabelValue,mB.BackgroundColor))&&void 0!==E?E:sr.Transparent},measureValues:{fontSize:null!==(w=null!==(R=gB(null==Z?void 0:Z[pB.FontSize]))&&void 0!==R?R:oe(fB.Measure,hB.LabelValue,mB.FontSize))&&void 0!==w?w:nr,fontFamily:null!==(k=null!==(L=null==Z?void 0:Z[pB.FontFamily])&&void 0!==L?L:oe(fB.Measure,hB.LabelValue,mB.FontFamily))&&void 0!==k?k:rr,fontWeight:yB(null==Z?void 0:Z[pB.FontStyle],"normal"),fontStyle:xB(null==Z?void 0:Z[pB.FontStyle]),textDecoration:SB(null==Z?void 0:Z[pB.FontStyle]),color:null!==(I=null!==(M=bB(e,null==Z?void 0:Z[pB.FontColor]))&&void 0!==M?M:oe(fB.Measure,hB.LabelValue,mB.Color))&&void 0!==I?I:sr.FontSecondary,background:null!==(_=null!==(A=bB(e,null==Z?void 0:Z[pB.Background]))&&void 0!==A?A:oe(fB.Measure,hB.LabelValue,mB.BackgroundColor))&&void 0!==_?_:sr.Transparent},measureLabels:{fontWeight:yB(null==ee?void 0:ee[pB.FontStyle],"normal"),fontStyle:xB(null==ee?void 0:ee[pB.FontStyle]),textDecoration:SB(null==ee?void 0:ee[pB.FontStyle]),color:null!==(P=null!==(D=bB(e,null==ee?void 0:ee[pB.FontColor]))&&void 0!==D?D:oe(fB.Measure,hB.LabelName,mB.Color))&&void 0!==P?P:sr.FontSecondary,background:null!==(T=null!==(O=bB(e,null==ee?void 0:ee[pB.Background]))&&void 0!==O?O:oe(fB.Measure,hB.LabelName,mB.BackgroundColor))&&void 0!==T?T:sr.Transparent},totalValues:{fontWeight:yB(null==te?void 0:te[pB.FontStyle],or),fontStyle:xB(null==te?void 0:te[pB.FontStyle]),textDecoration:SB(null==te?void 0:te[pB.FontStyle]),color:null!==(N=null!==(q=bB(e,null==te?void 0:te[pB.FontColor]))&&void 0!==q?q:oe(fB.Total,hB.LabelValue,mB.Color))&&void 0!==N?N:JL.TEXT,background:null!==(F=null!==(z=bB(e,null==te?void 0:te[pB.Background]))&&void 0!==z?z:oe(fB.Total,hB.LabelValue,mB.BackgroundColor))&&void 0!==F?F:sr.Transparent},nullValues:{fontWeight:yB(null==ne?void 0:ne[pB.FontStyle],"normal"),fontStyle:xB(null==ne?void 0:ne[pB.FontStyle]),textDecoration:SB(null==ne?void 0:ne[pB.FontStyle]),color:null!==(j=null!==($=bB(e,null==ne?void 0:ne[pB.FontColor]))&&void 0!==$?$:oe(fB.Null,hB.LabelValue,mB.Color))&&void 0!==j?j:JL.TEXT,background:null!==(B=null!==(H=bB(e,null==ne?void 0:ne[pB.Background]))&&void 0!==H?H:oe(fB.Null,hB.LabelValue,mB.BackgroundColor))&&void 0!==B?B:sr.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(W=null!==(G=bB(e,null==re?void 0:re[pB.Border]))&&void 0!==G?G:oe(fB.Grid,hB.Grid,mB.BorderColor))&&void 0!==W?W:sr.DividerLight,divider:null!==(V=null!==(U=bB(e,null==re?void 0:re[pB.Divider]))&&void 0!==U?U:oe(fB.Grid,hB.Divider,mB.BorderColor))&&void 0!==V?V:sr.DividerDark,background:null!==(Y=null!==(K=bB(e,null==re?void 0:re[pB.Background]))&&void 0!==K?K:oe(fB.Grid,hB.Grid,mB.BackgroundColor))&&void 0!==Y?Y:sr.Transparent}};return se.headerCellHeight=Math.max(vB(se.header.fontSize,ae),vB(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(vB(se.measureValues.fontSize,ie),vB(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=vB(se.dimensionValues.fontSize,1),se.selectedColors=eM({desiredColor:se.dimensionValues.color,theme:e,flags:n}),se})(g,h,n)),[g,h,n]),k=(t=>e.useMemo((()=>[...new Set([RB(t.header),RB(t.dimensionValues),RB({...t.dimensionValues,...t.measureLabels}),RB({...t.dimensionValues,...t.nullValues}),RB({...t.dimensionValues,...t.totalValues}),RB(t.measureValues),RB({...t.measureValues,...t.nullValues}),RB({...t.measureValues,...t.totalValues})])]),[t]))(R),L=(t=>{const[n,r]=e.usePromise((()=>Promise.all(t.map((e=>document.fonts.load(e))))),[t]);return r?(console.warn("Failed to load font:",r),!0):!!n})(k);n.isEnabled("CLIENT_IM6278_PIVOT_COPYCELL")&&CM(),e.useEffect((()=>{!w&&a&&(null==E?void 0:E.width)&&(null==E?void 0:E.height)&&m&&S&&h&&R&&!!C&&!f&&L&&dB(o,{model:a,app:l,rect:E,selections:m,viewService:S,layoutService:h,downloadService:d,qPivotDataPages:C,styleService:R,translator:b,pageInfo:y,updatePageInfo:x,interactions:c,embed:s,keyboard:u,theme:g,env:t})}),[a,l,E,null==E?void 0:E.width,null==E?void 0:E.height,c,m,S,h,d,w,C,R,o,L,b,v,y,x,p,f,s,u,g,t])},OB={version:"3.11.0",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]};return function(e){return{qae:{properties:{initial:{...OB,qHyperCubeDef:{...OB.qHyperCubeDef,qIndentMode:!1}}},data:Ie(e)},ext:Lr(e),component(){TB(e)}}}}));
193
+ `),PF.rippleVisible,zF,550,(({theme:e})=>e.transitions.easing.easeInOut),PF.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),PF.child,PF.childLeaving,jF,550,(({theme:e})=>e.transitions.easing.easeInOut),PF.childPulsate,$F,(({theme:e})=>e.transitions.easing.easeInOut)),BF=ro.forwardRef((function(e,t){const n=RF({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Tl(n,DF),[l,s]=ro.useState([]),u=ro.useRef(0),c=ro.useRef(null);ro.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=ro.useRef(!1),p=Es(),f=ro.useRef(null),m=ro.useRef(null),h=ro.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,uc.jsx(GF,{classes:{ripple:Bs(o.ripple,PF.ripple),rippleVisible:Bs(o.rippleVisible,PF.rippleVisible),ripplePulsate:Bs(o.ripplePulsate,PF.ripplePulsate),child:Bs(o.child,PF.child),childLeaving:Bs(o.childLeaving,PF.childLeaving),childPulsate:Bs(o.childPulsate,PF.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=ro.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h,p]),v=ro.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=ro.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{b(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return ro.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),uc.jsx(WF,Dl({className:Bs(PF.root,o.root,i),ref:m},a,{children:uc.jsx(RC,{component:null,exit:!0,children:l})}))}));var HF=BF;function VF(e){return Fs("MuiButtonBase",e)}var UF=zs("MuiButtonBase",["root","disabled","focusVisible"]);const YF=["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"],KF=lP("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"},[`&.${UF.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),XF=ro.forwardRef((function(e,t){const n=RF({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:C,onTouchEnd:w,onTouchMove:R,onTouchStart:k,tabIndex:L=0,TouchRippleProps:I,touchRippleRef:M,type:_}=n,A=Tl(n,YF),P=ro.useRef(null),D=ro.useRef(null),T=bs(D,M),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:F}=As(),[z,j]=ro.useState(!1);s&&z&&j(!1),ro.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),P.current.focus()}})),[]);const[$,W]=ro.useState(!1);ro.useEffect((()=>{W(!0)}),[]);const G=$&&!u&&!s;function B(e,t,n=c){return vs((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}ro.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const H=B("start",S),V=B("stop",h),U=B("stop",g),Y=B("stop",C),K=B("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=B("start",k),Q=B("stop",w),J=B("stop",R),Z=B("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),ee=vs((e=>{P.current||(P.current=e.currentTarget),N(e),!0===O.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=P.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=ro.useRef(!1),re=vs((e=>{d&&!ne.current&&z&&D.current&&" "===e.key&&(ne.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),oe=vs((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(A.href||A.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===_?"button":_,ae.disabled=s):(A.href||A.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=bs(t,F,P),se=Dl({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:L,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Ts({root:["root",t&&"disabled",n&&"focusVisible"]},VF,o);return n&&r&&(i.root+=` ${r}`),i})(se);return uc.jsxs(KF,Dl({as:ie,className:Bs(ue.root,a),ownerState:se,onBlur:Z,onClick:m,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:H,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:L,type:_},ae,A,{children:[i,G?uc.jsx(HF,Dl({ref:T,center:o},I)):null]}))}));var QF=XF;var JF=ro.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=ro.useState(null),l=bs(ro.isValidElement(n)?n.ref:null,t);if(gs((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),gs((()=>{if(i&&!o)return hs(t,i),()=>{hs(t,null)}}),[t,i,o]),o){if(ro.isValidElement(n)){const e={ref:l};return ro.cloneElement(n,e)}return uc.jsx(ro.Fragment,{children:n})}return uc.jsx(ro.Fragment,{children:i?sC.createPortal(n,i):i})}));const ZF=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ez={entering:{opacity:1},entered:{opacity:1}},tz=ro.forwardRef((function(e,t){const n=_A(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:v=yC}=e,b=Tl(e,ZF),y=ro.useRef(null),x=bs(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),C=S(((e,t)=>{kF(e);const r=LF({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),w=S(c),R=S(m),k=S((e=>{const t=LF({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),L=S(f);return uc.jsx(v,Dl({appear:i,in:s,nodeRef:y,onEnter:C,onEntered:w,onEntering:E,onExit:k,onExited:L,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>ro.cloneElement(a,Dl({style:Dl({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},ez[e],h,a.props.style),ref:x},t))}))}));var nz=tz;function rz(e){return Fs("MuiBackdrop",e)}zs("MuiBackdrop",["root","invisible"]);const oz=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],iz=lP("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Dl({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"}))),az=ro.forwardRef((function(e,t){var n,r,o;const i=RF({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=nz,transitionDuration:g}=i,v=Tl(i,oz),b=Dl({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Ts({root:["root",n&&"invisible"]},rz,t)})(b),x=null!=(n=f.root)?n:c.root;return uc.jsx(h,Dl({in:p,timeout:g},v,{children:uc.jsx(iz,Dl({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:Bs(y.root,l,null==x?void 0:x.className),ownerState:Dl({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var lz=az;var sz=zs("MuiBox",["root"]);const uz=IA(),cz=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=_l("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(i_);return ro.forwardRef((function(e,a){const l=p_(n),s=m_(e),{className:u,component:c="div"}=s,d=Tl(s,g_);return uc.jsx(i,Dl({as:c,ref:a,className:Bs(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:iM,defaultTheme:uz,defaultClassName:sz.root,generateClassName:Ns.generate});var dz=cz;function pz(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function fz(e){return parseInt(ms(e).getComputedStyle(e).paddingRight,10)||0}function mz(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&pz(e,o)}))}function hz(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function gz(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=fs(e);return t.body===e?ms(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Ps(fs(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${fz(r)+e}px`;const t=fs(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${fz(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=fs(r).body;else{const t=r.parentElement,n=ms(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const vz=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function bz(e){const t=[],n=[];return Array.from(e.querySelectorAll(vz)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function yz(){return!0}function xz(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=bz,isEnabled:a=yz,open:l}=e,s=ro.useRef(!1),u=ro.useRef(null),c=ro.useRef(null),d=ro.useRef(null),p=ro.useRef(null),f=ro.useRef(!1),m=ro.useRef(null),h=bs(t.ref,m),g=ro.useRef(null);ro.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),ro.useEffect((()=>{if(!l||!m.current)return;const e=fs(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),ro.useEffect((()=>{if(!l||!m.current)return;const e=fs(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return uc.jsxs(ro.Fragment,{children:[uc.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),ro.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),uc.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const Sz=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&pz(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);mz(t,e.mount,e.modalRef,r,!0);const o=hz(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=hz(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=gz(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=hz(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&pz(e.modalRef,t),mz(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&pz(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Ez(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Sz,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=ro.useRef({}),f=ro.useRef(null),m=ro.useRef(null),h=bs(m,d),[g,v]=ro.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=vs((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||fs(f.current).body;o.add(x(),e),m.current&&S()})),C=ro.useCallback((()=>o.isTopModal(x())),[o]),w=vs((e=>{f.current=e,e&&(c&&C()?S():m.current&&pz(m.current,y))})),R=ro.useCallback((()=>{o.remove(x(),y)}),[y,o]);ro.useEffect((()=>()=>{R()}),[R]),ro.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const k=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},L=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Hs(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Dl({},n,t);return Dl({role:"presentation"},r,{onKeyDown:k(r),ref:h})},getBackdropProps:(e={})=>Dl({"aria-hidden":!0},e,{onClick:L(e),open:c}),getTransitionProps:()=>({onEnter:ds((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:ds((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:w,isTopModal:C,exited:g,hasTransition:b}}function Cz(e){return Fs("MuiModal",e)}zs("MuiModal",["root","hidden","backdrop"]);const wz=["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"],Rz=lP("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Dl({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),kz=lP(lz,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Lz=ro.forwardRef((function(e,t){var n,r,o,i,a,l;const s=RF({name:"MuiModal",props:e}),{BackdropComponent:u=kz,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:w=!1,keepMounted:R=!1,onBackdropClick:k,open:L,slotProps:I,slots:M}=s,_=Tl(s,wz),A=Dl({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:w,keepMounted:R}),{getRootProps:P,getBackdropProps:D,getTransitionProps:T,portalRef:O,isTopModal:N,exited:q,hasTransition:F}=Ez(Dl({},A,{rootRef:t})),z=Dl({},A,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return Ts({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Cz,r)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const W=null!=(n=null!=(r=null==M?void 0:M.root)?r:g.Root)?n:Rz,G=null!=(o=null!=(i=null==M?void 0:M.backdrop)?i:g.Backdrop)?o:u,B=null!=(a=null==I?void 0:I.root)?a:v.root,H=null!=(l=null==I?void 0:I.backdrop)?l:v.backdrop,V=Ys({elementType:W,externalSlotProps:B,externalForwardedProps:_,getSlotProps:P,additionalProps:{ref:t,as:h},ownerState:z,className:Bs(d,null==B?void 0:B.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=Ys({elementType:G,externalSlotProps:H,additionalProps:c,getSlotProps:e=>D(Dl({},e,{onClick:t=>{k&&k(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Bs(null==H?void 0:H.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||L||F&&!q?uc.jsx(JF,{ref:O,container:m,disablePortal:S,children:uc.jsxs(W,Dl({},V,{children:[!w&&u?uc.jsx(G,Dl({},U)):null,uc.jsx(xz,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:L,children:ro.cloneElement(f,$)})]}))}):null}));var Iz=Lz;var Mz=zs("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const _z=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Az(e){return`scale(${e}, ${e**2})`}const Pz={entering:{opacity:1,transform:Az(1)},entered:{opacity:1,transform:"none"}},Dz="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Tz=ro.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=yC}=e,g=Tl(e,_z),v=Es(),b=ro.useRef(),y=_A(),x=ro.useRef(null),S=bs(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(u),w=E(((e,t)=>{kF(e);const{duration:n,delay:r,easing:o}=LF({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:Dz?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),k=E(p),L=E((e=>{const{duration:t,delay:n,easing:r}=LF({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:Dz?o:.666*o,delay:Dz?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Az(.75),c&&c(e)})),I=E(d);return uc.jsx(h,Dl({appear:r,in:a,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:L,onExited:I,onExiting:k,addEndListener:e=>{"auto"===m&&v.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>ro.cloneElement(o,Dl({style:Dl({opacity:0,transform:Az(.75),visibility:"exited"!==e||a?void 0:"hidden"},Pz[e],f,o.props.style),ref:S},t))}))}));Tz.muiSupportAuto=!0;var Oz=Tz;var Nz=ro.createContext({});function qz(e){return Fs("MuiList",e)}zs("MuiList",["root","padding","dense","subheader"]);const Fz=["children","className","component","dense","disablePadding","subheader"],zz=lP("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Dl({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var jz=ro.forwardRef((function(e,t){const n=RF({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=Tl(n,Fz),c=ro.useMemo((()=>({dense:a})),[a]),d=Dl({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Ts({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},qz,t)})(d);return uc.jsx(Nz.Provider,{value:c,children:uc.jsxs(zz,Dl({as:i,className:Bs(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));var $z=zs("MuiListItemIcon",["root","alignItemsFlexStart"]);var Wz=zs("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const Gz=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Bz(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Hz(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Vz(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Uz(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Vz(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var Yz=ro.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Tl(e,Gz),p=ro.useRef(null),f=ro.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});gs((()=>{r&&p.current.focus()}),[r]),ro.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${Ps(fs(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=bs(p,t);let h=-1;ro.Children.forEach(i,((e,t)=>{ro.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=ro.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),ro.cloneElement(e,t)}return e}));return uc.jsx(jz,Dl({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=fs(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Uz(t,r,s,l,Bz);else if("ArrowUp"===n)e.preventDefault(),Uz(t,r,s,l,Hz);else if("Home"===n)e.preventDefault(),Uz(t,null,s,l,Bz);else if("End"===n)e.preventDefault(),Uz(t,null,s,l,Hz);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&Vz(r,o);o.previousKeyMatched&&(s||Uz(t,r,!1,l,Bz,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function Kz(e){return Fs("MuiPopover",e)}zs("MuiPopover",["root","paper"]);const Xz=["onEntering"],Qz=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Jz=["slotProps"];function Zz(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function ej(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function tj(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function nj(e){return"function"==typeof e?e():e}const rj=lP(Iz,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),oj=lP(AF,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var ij=ro.forwardRef((function(e,t){var n,r,o;const i=RF({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=Oz,transitionDuration:E="auto",TransitionProps:{onEntering:C}={},disableScrollLock:w=!1}=i,R=Tl(i.TransitionProps,Xz),k=Tl(i,Qz),L=null!=(n=null==y?void 0:y.paper)?n:v,I=ro.useRef(),M=bs(I,L.ref),_=Dl({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:L,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),A=(e=>{const{classes:t}=e;return Ts({root:["root"],paper:["paper"]},Kz,t)})(_),P=ro.useCallback((()=>{if("anchorPosition"===c)return u;const e=nj(l),t=(e&&1===e.nodeType?e:fs(I.current).body).getBoundingClientRect();return{top:t.top+Zz(t,s.vertical),left:t.left+ej(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=ro.useCallback((e=>({vertical:Zz(e,x.vertical),horizontal:ej(e,x.horizontal)})),[x.horizontal,x.vertical]),T=ro.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:tj(n)};const r=P();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=ms(nj(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:tj(n)}}),[l,c,P,D,h]),[O,N]=ro.useState(g),q=ro.useCallback((()=>{const e=I.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);ro.useEffect((()=>(w&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,w,q]);ro.useEffect((()=>{g&&q()})),ro.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),ro.useEffect((()=>{if(!g)return;const e=ps((()=>{q()})),t=ms(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,q]);let F=E;"auto"!==E||S.muiSupportAuto||(F=void 0);const z=f||(l?fs(nj(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:rj,$=null!=(o=null==b?void 0:b.paper)?o:oj,W=Ys({elementType:$,externalSlotProps:Dl({},L,{style:O?L.style:Dl({},L.style,{opacity:0})}),additionalProps:{elevation:m,ref:M},ownerState:_,className:Bs(A.paper,null==L?void 0:L.className)}),G=Ys({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:k,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:_,className:Bs(A.root,p)}),{slotProps:B}=G,H=Tl(G,Jz);return uc.jsx(j,Dl({},H,!Ws(j)&&{slotProps:B,disableScrollLock:w},{children:uc.jsx(S,Dl({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:uc.jsx($,Dl({},W,{children:d}))}))}))}));function aj(e){return Fs("MuiMenu",e)}zs("MuiMenu",["root","paper","list"]);const lj=["onEntering"],sj=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],uj={vertical:"top",horizontal:"right"},cj={vertical:"top",horizontal:"left"},dj=lP(ij,{shouldForwardProp:e=>aP(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pj=lP(oj,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),fj=lP(Yz,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var mj=ro.forwardRef((function(e,t){var n,r;const o=RF({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=Tl(o.TransitionProps,lj),x=Tl(o,sj),S=(()=>{const e=ro.useContext(w_);return null!=e&&e})(),E=Dl({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return Ts({root:["root"],paper:["paper"],list:["list"]},aj,t)})(E),w=i&&!s&&d,R=ro.useRef(null);let k=-1;ro.Children.map(a,((e,t)=>{ro.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===k)&&(k=t))}));const L=null!=(n=v.paper)?n:pj,I=null!=(r=b.paper)?r:p,M=Ys({elementType:v.root,externalSlotProps:b.root,ownerState:E,className:[C.root,l]}),_=Ys({elementType:L,externalSlotProps:I,ownerState:E,className:C.paper});return uc.jsx(dj,Dl({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?uj:cj,slots:{paper:L,root:v.root},slotProps:{root:M,paper:_},open:d,ref:t,transitionDuration:m,TransitionProps:Dl({onEntering:(e,t)=>{R.current&&R.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),h&&h(e,t)}},y),ownerState:E},x,{classes:f,children:uc.jsx(fj,Dl({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:R,autoFocus:i&&(-1===k||s),autoFocusItem:w,variant:g},u,{className:Bs(C.list,u.className),children:a}))}))}));function hj(e){return Fs("MuiMenuItem",e)}var gj=zs("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const vj=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],bj=lP(QF,{shouldForwardProp:e=>aP(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Dl({},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"}},[`&.${gj.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:F_(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${gj.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:F_(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${gj.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:F_(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})`:F_(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${gj.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${gj.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Mz.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Mz.inset}`]:{marginLeft:52},[`& .${Wz.root}`]:{marginTop:0,marginBottom:0},[`& .${Wz.inset}`]:{paddingLeft:36},[`& .${$z.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Dl({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${$z.root} svg`]:{fontSize:"1.25rem"}}))));var yj=ro.forwardRef((function(e,t){const n=RF({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=Tl(n,vj),f=ro.useContext(Nz),m=ro.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=ro.useRef(null);gs((()=>{r&&h.current&&h.current.focus()}),[r]);const g=Dl({},n,{dense:m.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Dl({},a,Ts({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},hj,a))})(n),b=bs(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),uc.jsx(Nz.Provider,{value:m,children:uc.jsx(bj,Dl({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:Bs(v.focusVisible,s),className:Bs(v.root,d)},p,{ownerState:g,classes:v}))})}));const xj=lP(dz,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:n,shouldShowMenuIcon:r,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:r?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?n:t}}))),Sj=lP("div")({position:"absolute",left:0,bottom:0}),Ej=lP("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...Qn,justifyContent:null!=e?e:Qn.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),Cj=lP("div")((()=>({...Qn}))),wj=lP("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:n,fontStyle:r,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:n,fontSize:e,fontFamily:t,fontStyle:r,textDecoration:o}))),Rj=lP(mj)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),kj=lP(yj,{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}}}))),Lj=lP("span")({textOverflow:"ellipsis",overflow:"hidden"}),Ij=lP("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:20,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),Mj={[hD.SORTING]:!0,[hD.SELECTIONS]:!0,[hD.SEARCHING]:!0},_j=({dataModel:e,cell:t,style:n,isFirstColumn:r,isLastColumn:o,isLastRow:i,changeSortOrder:a,iconsVisibilityStatus:l,columnWidth:s,overrideLeftGridWidth:u,shouldApplyIndentModeColumnWidth:c,tableWidth:d})=>{var p;const f=ro.useRef(null),{styleService:m,layoutService:h}=cT(),{app:g,model:v,interactions:b,embed:y,translator:x}=lT(),{fontSize:S,fontFamily:E,fontStyle:C,fontWeight:w,textDecoration:R,color:k,background:L,hoverBackground:I,activeBackground:M}=m.header,_=ro.useRef(null),{shouldShowLockIcon:A,shouldShowMenuIcon:P}=l,{open:D,setOpen:T,handleOpenMenu:O,setIsAdjustingWidth:N}=EF({interactions:b,dataModel:e}),q={sortFromMenu:async(e,n)=>{e.stopPropagation(),await a(t,n)}},F={embed:y,listboxRef:f,sortCriteria:h.searchSortFromDimension&&t.isDim?h.getSortCriteriaForDimension(t.dimensionInfoIndex):void 0},z={model:v,app:g},{labelTextAlign:j}=null!==(p=h.getDimensionInfo(t.dimensionInfoIndex))&&void 0!==p?p:{},$=tF(j,"flex-start");return uc.jsxs(xj,{className:He,title:t.label,interactions:b,background:D?M:L,hoverBackground:I,shouldShowMenuIcon:P,isDimension:t.isDim,style:{...n,...Zn,...or(t,i,r,o,m.grid.border),color:k},"data-testid":"title-cell",onClick:O,children:[uc.jsxs(Ej,{children:[A&&uc.jsx(Cj,{children:uc.jsx(xF,{height:12})}),uc.jsx(wj,{fontFamily:E,fontSize:S,fontStyle:C,fontWeight:w,textDecoration:R,justifyContent:$,children:uc.jsx("span",{style:er,children:t.label})})]}),t.isDim&&uc.jsxs(uc.Fragment,{children:[uc.jsx(vD,{headerData:t,translator:x,anchorRef:_,open:D,setOpen:T,interactions:b,menuAvailabilityFlags:Mj,sortRelatedArgs:q,searchRelatedArgs:F,selectionRelatedArgs:z,shouldShowMenuIcon:P}),uc.jsx(Sj,{ref:f}),uc.jsx(Sj,{ref:_})]}),uc.jsx(wF,{cellInfo:{...t,isLeftColumn:!0},columnWidth:s,dataModel:e,isLastColumn:o,overrideLeftGridWidth:u,setIsAdjustingWidth:N,shouldApplyIndentModeColumnWidth:c,tableWidth:d})]})},Aj=({rowSpan:e,columnSpan:t})=>{const{styleService:n}=cT();return e>0&&t>0?uc.jsx("div",{style:{...Jn,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"0px 1px 0px 0px",borderColor:n.grid.border,background:n.grid.background},"data-testid":"empty-header-cell"}):null};function Pj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Dj=(e,t)=>oo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Pj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),oo.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})),Tj=ro.forwardRef(Dj);function Oj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Nj=(e,t)=>oo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Oj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),oo.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),oo.createElement("use",{fillRule:"evenodd"})),qj=ro.forwardRef(Nj),Fj=({dataModel:e,tableWidth:t,leftGridWidth:n,overrideLeftGridWidth:r})=>{const{styleService:o}=cT(),{interactions:i,translator:a}=lT(),{isActive:l}=Oq(),{setIsAdjustingWidth:s}=SF([e]);if(!(!!i.active&&!l))return null;const u=CF(o,{isLeftColumn:!0});return uc.jsx(mP,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:u,columnWidth:n,updateWidthCallback:e=>{r(Math.min(e,t*mT))},confirmWidthCallback:o=>{var i;if(o.type===Ke.FitToContent)return void e.applyIndentModeColumnWidth({type:Ke.Auto});const a=Math.min(null!==(i=o.pixels)&&void 0!==i?i:n,t*mT);r(a),e.applyIndentModeColumnWidth({type:Ke.Pixels,pixels:a})},setIsAdjustingWidth:s,accessibilityRelatedArgs:{translator:a,columnLabel:a.get("SNPivotTable.IndentMode.Rows")}})};function zj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jj=(e,t)=>oo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){zj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),oo.createElement("path",{d:"M3 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})),$j=ro.forwardRef(jj),Wj=({cell:e,dataModel:t,changeSortOrder:n})=>{const r=ro.useRef(null),o=ro.useRef(null),{app:i,model:a,interactions:l,embed:s,translator:u}=lT(),{open:c,setOpen:d,handleOpenMenu:p}=EF({interactions:l,dataModel:t});return uc.jsxs(kj,{component:"div",onClick:p,isActive:c,children:[uc.jsx(Lj,{children:e.label}),uc.jsxs(Ij,{className:"indent-mode-dropdown-more",visible:c,children:[uc.jsx($j,{}),e.isDim&&uc.jsxs(uc.Fragment,{children:[uc.jsx(vD,{headerData:e,translator:u,anchorRef:r,open:c,setOpen:d,interactions:l,menuAvailabilityFlags:Mj,sortRelatedArgs:{sortFromMenu:async(t,r)=>{t.stopPropagation(),await n(e,r)}},searchRelatedArgs:{embed:s,listboxRef:o},selectionRelatedArgs:{model:a,app:i},shouldShowMenuIcon:!1}),uc.jsx(Sj,{ref:o}),uc.jsx(Sj,{ref:r})]})]})]})},Gj=({idx:e,menu:t,menuItems:n,isOnlyOneRow:r})=>{var o,i;const a=(null===(o=n.at(-1))||void 0===o?void 0:o.id)===bT,l=e+1<n.length&&(null===(i=n[e+1])||void 0===i?void 0:i.id)===bT;return!(r&&a&&l)&&((null==t?void 0:t.id)!==bT&&e<n.length-1)},Bj=({headersData:e,menuItems:t,dataModel:n,changeSortOrder:r,overrideLeftGridWidth:o,leftGridWidth:i,tableWidth:a})=>{const{styleService:l}=cT(),{interactions:s,translator:u}=lT(),[c,d]=ro.useState(!1),p=ro.useRef(null),{headerCellHeight:f}=l,{color:m,background:h,hoverBackground:g,activeBackground:v,fontFamily:b,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E}=l.header,{isAdjustingWidth:C}=SF([n]),w=e=>e.stopPropagation(),R={height:f,gridColumn:`1 / span ${e.size.x}`,gridRow:e.size.y,zIndex:e.size.x-0};return uc.jsxs(xj,{isDimension:!0,background:c?v:h,interactions:s,hoverBackground:g,style:{...R,...Zn,color:m},onClick:e=>s.active&&!Aq(e)&&!C&&d(!c),"data-testid":"indentModeHeaderCellWrapper",children:[uc.jsxs(Ej,{justifyContent:"flex-start",children:[uc.jsx(wj,{fontFamily:b,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E,justifyContent:"flex-start",children:uc.jsx("span",{style:er,children:u.get("SNPivotTable.IndentMode.Rows")})}),c?uc.jsx(qj,{}):uc.jsx(Tj,{}),uc.jsx(Sj,{ref:p})]}),uc.jsx(Rj,{open:c,anchorEl:p.current,children:t.map(((o,i)=>[o&&(null==o?void 0:o.id)!==bT&&uc.jsx("li",{role:"presentation",onClick:w,onKeyDown:w,children:uc.jsx(Wj,{cell:o,dataModel:n,changeSortOrder:r})}),Gj({idx:i,menu:o,menuItems:t,isOnlyOneRow:1===e.size.y})&&uc.jsx(EP,{"data-testid":"group-divider",variant:"middle"},"divider")]))}),uc.jsx(Fj,{dataModel:n,tableWidth:a,leftGridWidth:i,overrideLeftGridWidth:o})]})},Hj={display:"grid",width:"fit-content"},Vj=({dataModel:e,tableWidth:t,leftGridWidth:n,columnWidths:r,rowHight:o,headersData:i,changeSortOrder:a,getHeaderCellsIconsVisibilityStatus:l,height:s,overrideLeftGridWidth:u})=>{const{layoutService:c}=cT();return uc.jsxs("div",{"data-testid":"HEADER_GRID",style:{...Hj,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:i.data.map((()=>`${o}px`)).join(" "),height:s},children:[i.size.y>1&&uc.jsx(Aj,{columnSpan:i.size.x-1,rowSpan:i.size.y-1}),i.data.map(((s,d)=>{let p=[];if(c.isIndentModeEnabled&&i.size.x>1&&d+1===i.size.y){const r=i.data.at(-1);return p.push(uc.jsx(Bj,{headersData:i,menuItems:r[0],dataModel:e,changeSortOrder:a,overrideLeftGridWidth:u,leftGridWidth:n,tableWidth:t},r[0][0].id)),p}return p=s.reduce(((n,s,p)=>{if(s){const f=l(p,s.isLocked,s.label),m=c.isIndentModeEnabled&&1===i.size.x;n.push(uc.jsx(_j,{dataModel:e,style:{width:r[p],height:o,gridColumn:c.isIndentModeEnabled&&i.size.x>1?2:p+1,gridRow:d+1,zIndex:i.size.x-p},isLastRow:d===i.size.y-1,isFirstColumn:0===p,isLastColumn:p===i.size.x-1,changeSortOrder:a,cell:s,iconsVisibilityStatus:f,columnWidth:r[p],overrideLeftGridWidth:u,shouldApplyIndentModeColumnWidth:m,tableWidth:t},s.id))}return n}),[]),p}))]})};var Uj=ro.memo(Vj);const Yj=(e,t,n,r,o)=>{ro.useLayoutEffect((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,n,r,o])},Kj=(e,t)=>{ZI((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},Xj=(e,t)=>{const{isLast:n,list:r,listValues:o}=t;return n?r[e]:o[e]},Qj=(e,t,n)=>{var r;const o=n?"flex-start":"center";var i,a;if(e.representation.type===_e.Image)return null!==(i=null===(a=e.representation.resolvedImagePosition)||void 0===a?void 0:a.horizontal)&&void 0!==i?i:o;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){var l;const{labelTextAlign:n}=null!==(l=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==l?l:{};return tF(n,o)}const{textAlign:s}=null!==(r=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==r?r:{};return tF(s,o)},Jj=()=>{},Zj=({children:e,text:t,reactWindowStyle:n,cell:r,data:o,showTotalCellDivider:i,isLastRow:a,isLastColumn:l,isLeftColumn:s,isCellSelected:u,isAdjustingWidth:c,index:d})=>{var p;const{styleService:f,layoutService:m}=cT(),{interactions:h}=lT(),{isLocked:g,createMouseDownHandler:v,createMouseOverHandler:b}=Oq(),{showLastBorder:y}=o,x=g(r)||r.isLockedByDimension,S=!(x||!h.active||!h.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||c),E=S?v(d,(e=>Xj(e,o))):void 0,C=S?b(d):void 0;return uc.jsx("div",{className:He,title:h.passive?t:void 0,style:{...n,...rr(a,l,f.grid.border,y),...ir({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:f.grid.divider}),...Zn,padding:"0px 4px",cursor:Hq(S),background:jq({styleService:f,isCellSelected:u,cell:r,isCellLocked:x}),zIndex:s?void 0:m.size.x-r.x,justifyContent:Qj(r,m,s),display:"flex",...m.isIndentModeEnabled&&s&&{paddingLeft:Math.max(4,24*(null!==(p=r.indentLevel)&&void 0!==p?p:0))}},"aria-hidden":"true",onMouseDown:E,onMouseOver:C,onKeyUp:Jj,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":r.x,"data-page-x":r.pageX,"data-y":r.y,"data-page-y":r.pageY,"data-cell-type":r.ref.qType,children:e})},e$=e=>e.stopPropagation(),t$=({href:e,text:t,interactions:n,color:r})=>oo.createElement(nk,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:e$,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),n$=({children:e,textStyle:t})=>uc.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),r$=({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>{const{isActive:o}=Oq(),{interactions:i}=lT();let a=e.representation.text;if(e.isEmpty)return null;const l=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>({...er,...tr(r?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:$q({cell:e,styleService:t,isCellSelected:n}),fontWeight:Wq({cell:e,styleService:t}),fontStyle:Gq({cell:e,styleService:t}),textDecoration:Bq({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r});return e.representation.type!==_e.Image||e.isTotal?(e.representation.type!==_e.Link||o||e.isTotal||(a=uc.jsx(t$,{text:e.representation.text,href:e.representation.url,interactions:i,color:e.expressionColor.color})),uc.jsx(n$,{textStyle:l,children:a})):uc.jsx(eF,{representation:e.representation,isLeftColumn:r,styleService:t,textStyle:l,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand})},o$=e=>{const t=e.isLeftColumn?"flex-start":"center";var n;return e.representation.type!==_e.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(n=e.representation.resolvedImagePosition)||void 0===n?void 0:n.vertical},i$=({index:e,style:t,data:n})=>{const{styleService:r,layoutService:o}=cT(),{isSelected:i}=Oq(),{isAdjustingWidth:a,setIsAdjustingWidth:l}=SF([n]),{dataModel:s,isLeftColumn:u=!1,showLastBorder:c,itemCount:d,isLast:p,totalDividerIndex:f}=n,m=Xj(e,n),h=u?e===d-1:p,g=u?p:e===d-1,v=aq(m,f,o.isIndentModeEnabled);if(void 0===m){const{background:n}=r.dimensionValues;return uc.jsx(Sq,{style:{...t,background:n},index:e,isLastRow:h,isLastColumn:g,showLastBorder:c,isLeftColumn:u,showTotalCellDivider:v})}const b=i(m);return uc.jsxs(Zj,{text:m.representation.text,reactWindowStyle:t,isLeftColumn:u,isLastRow:h,isLastColumn:g,isCellSelected:b,showTotalCellDivider:v,cell:m,data:n,isAdjustingWidth:a,index:e,children:[uc.jsxs(Eq,{verticalAlign:o$(m),width:Cq(m.representation),right:m.isLeftColumn?void 0:4,children:[uc.jsx(Yq,{isLeftColumn:u,isCellSelected:b,cell:m,dataModel:s}),uc.jsx(r$,{isLeftColumn:u,isCellSelected:b,cell:m,styleService:r})]}),uc.jsx(wF,{cellInfo:{...m,columnWidthLocation:m.isPseudoDimension?ze.Measures:ze.Dimension},columnWidth:t.width,dataModel:s,isLastColumn:g,setIsAdjustingWidth:l})]})};var a$=oo.memo(i$,iq);const l$=({list:e,listValues:t,isLastRow:n,getRightGridColumnWidth:r})=>o=>{var i;const a=n?e[o]:t[o];return 0===o&&(null==a?void 0:a.x)>0?(a.leafCount+a.x+a.distanceToNextCell)*r():n||void 0===a?r(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o):(a.leafCount+a.distanceToNextCell)*r()},s$=(e,t,n,r)=>{const o=Object.values(e);let i,a=o.length;return r&&(a=n,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},u$=(e,t)=>n=>{e.current&&(e.current[t]=n)},c$={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...Jn},d$={overflow:"hidden",willChange:"auto",flexShrink:0},p$=({dataModel:e,leftGridRef:t,width:n,height:r,columnWidths:o,showLastBorder:i,leftDimensionData:a,visibleLeftDimensionInfo:l})=>{const{pageInfo:s}=oT(),{layoutService:u}=cT(),{qSize:c}=u.layout.qHyperCube,{styleService:{contentCellHeight:d,grid:{divider:p}}}=cT();Kj(t,a),Yj(t,n,r,d,u);const f=s.rowsOnCurrentPage*d,m={...c$,borderColor:p,width:o.reduce(((e,t)=>e+t),0)};return uc.jsx("div",{style:m,"data-section-id":"LEFT_GRID",children:a.grid.map(((n,p)=>{const m=p===a.columnCount-1,h=zT(l[p]),{itemCount:g,estimatedItemSize:v,listValues:b}=s$(n,f,s.rowsOnCurrentPage,m),y=u.isIndentModeEnabled?()=>d:((e,t,n,r,o)=>i=>{const a=r?e[i]:t[i];if(0===i&&(null==a?void 0:a.pageY)>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if((null==a?void 0:a.leafCount)>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n})(n,b,d,m,c.qcy);return uc.jsx(tq,{ref:u$(t,p),style:{...d$,flexGrow:m?1:0},height:r,width:o[p],itemCount:g,itemSize:y,layout:"vertical",itemData:{dataModel:e,list:n,isLeftColumn:!0,isLast:m,itemCount:g,showLastBorder:i,listValues:b,totalDividerIndex:a.totalDividerIndex},itemKey:fF,estimatedItemSize:v,children:a$},h)}))})};var f$=ro.memo(p$);const m$={overflow:"hidden",willChange:"auto"},h$={...Jn,borderWidth:"0px 0px 0px 1px"},g$=({dataModel:e,topGridRef:t,rowHightCallback:n,width:r,height:o,topDimensionData:i,showLastBorder:a,getRightGridColumnWidth:l,headersData:s})=>{const{layoutService:u}=cT(),{styleService:{grid:{divider:c},headerCellHeight:d}}=cT(),p={...h$,borderColor:c,height:o};Kj(t,i),Yj(t,r,o,d,u);const f=u.size.x*l();return 0===i.rowCount?uc.jsx("div",{style:{width:r,height:o,...h$}}):uc.jsx("div",{style:p,"data-section-id":"TOP_GRID",children:i.grid.map(((o,c)=>{const d=c===i.rowCount-1,{itemCount:p,estimatedItemSize:m,listValues:h}=s$(o,f,u.size.x,d),g=(({layoutService:e,headersData:t,topRowIndex:n})=>{var r;const o=t.data[n],i=t.size.x-1,a=e.isIndentModeEnabled&&t.size.x>1&&n+1===t.size.y?null===(r=o[0][i])||void 0===r?void 0:r.dimensionInfoIndex:null==o?void 0:o[i].dimensionInfoIndex;return void 0!==a?e.getDimensionInfo(a):void 0})({layoutService:u,headersData:s,topRowIndex:c}),v=g?zT(g):`empty ${c}`;return uc.jsx(tq,{ref:u$(t,c),style:m$,height:n(),width:r,itemCount:p,itemSize:l$({list:o,listValues:h,isLastRow:d,getRightGridColumnWidth:l}),layout:"horizontal",itemData:{dataModel:e,list:o,isLast:d,itemCount:p,showLastBorder:a,listValues:h,totalDividerIndex:i.totalDividerIndex},itemKey:fF,estimatedItemSize:m,children:a$},v)}))})};var v$=ro.memo(g$);const b$=()=>{const{pageInfo:e}=oT(),{styleService:{headerCellHeight:t,contentCellHeight:n}}=cT(),r=(()=>{const{layoutService:e}=cT(),{rect:t,pageInfo:n}=oT();return ro.useMemo((()=>{let{height:r}=t;return e.hasLimitedData&&(r-=22),n.shouldShowPagination&&(r-=41),{...t,height:r}}),[t,e,n.shouldShowPagination])})(),o=(()=>{const{model:e}=lT(),t=ro.useCallback((async(t,n)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:r,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(n===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!r).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(),{visibleLeftDimensionInfo:i,visibleTopDimensionInfo:a}=(()=>{const{layoutService:e}=cT(),{qPivotDataPages:t}=oT(),{qHyperCube:n}=e.layout,{qNoOfLeftDims:r,qEffectiveInterColumnSortOrder:o,qDimensionInfo:i}=n;return ro.useMemo((()=>{var e,n,a,l;const s=hN(null!==(e=null===(n=t[0])||void 0===n?void 0:n.qLeft)&&void 0!==e?e:[]),u=hN(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(mN(i,o,0)),visibleTopDimensionInfo:u.map(mN(i,o,r))}}),[i,o,r,t])})(),{gridSectionsWrapperRefs:{headerGridWrapperRef:l,topGridWrapperRef:s,leftGridWrapperRef:u,dataGridWrapperRef:c},gridRefs:{topGridRef:d,leftGridRef:p,dataGridRef:f},scrollDirectionRefs:{verticalScrollDirection:m,horizontalScrollDirection:h},scrollbarsDimensions:{verticalScrollbarWidth:g,horizontalScrollbarHeight:v,resetHorizontalScrollbarHeight:b}}=fN(),{headersData:y,measureData:x,topDimensionData:S,leftDimensionData:E,attrExprInfoIndexes:C,nextPageHandler:w}=rN(i,a),R=lN({nextPageHandler:w}),{leftGridWidth:k,leftGridFullWidth:L,leftGridColumnWidths:I,rightGridFullWidth:M,showLastRightBorder:_,getRightGridColumnWidth:A,getHeaderCellsIconsVisibilityStatus:P,overrideLeftGridWidth:D}=function({tableWidth:e,headersData:t,visibleTopDimensionInfo:n,verticalScrollbarWidth:r,resetHorizontalScrollbarHeight:o}){const{layoutService:i}=cT(),{styleService:a}=cT(),{measureText:l}=XI(a.header),s=_T({tableWidth:e,headersData:t}),u=AT({tableWidth:e,visibleTopDimensionInfo:n,verticalScrollbarWidth:r,leftGridWidth:s.leftGridWidth}),c=s.leftGridWidth+u.rightGridFullWidth+1<e,d=ro.useCallback(((e,n,r="")=>{let o=e;i.isIndentModeEnabled&&(o=1,1===t.size.x&&(o=0));const a=s.leftGridColumnWidths[o];let u=!1,c=!1,d=l(r)+fT;return n&&d+20<=a&&(c=!0,d+=20),d+20<=a&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:c}}),[s.leftGridColumnWidths,l,i.isIndentModeEnabled,t.size.x]);return ro.useEffect((()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=u.rightGridWidth===u.rightGridFullWidth;e&&t&&o()}),[o,s.leftGridWidth,s.leftGridFullWidth,u.rightGridWidth,u.rightGridFullWidth]),{...s,...u,showLastRightBorder:c,getHeaderCellsIconsVisibilityStatus:d}}({tableWidth:r.width,headersData:y,visibleTopDimensionInfo:a,verticalScrollbarWidth:g,resetHorizontalScrollbarHeight:b}),{gridScaffoldDimensions:T,headerGridDims:O,topGridDims:N,leftGridDims:q,dataGridDims:F,metadata:{everyThingFitsInTableRectHeight:z,scrollbarsVisibilityStatus:j}}=(({tableRect:e,pageInfo:t,headersData:n,topDimensionData:r,cellHeights:{headerCellHeight:o,contentCellHeight:i},horizontalWidths:{leftGridWidth:a,leftGridOriginalWidth:l,rightGridOriginalWidth:s},scrollBarsDimensions:{verticalScrollbarWidth:u,horizontalScrollbarHeight:c}})=>{const d=Math.min(e.height*mT,Math.max(e.height*mT-25,e.height-i-c)),p=e.width*mT,f=t.rowsOnCurrentPage*i,m=Math.max(n.size.y,r.rowCount,1),h=o*m,g=o*m,v=Math.min(p,a),b=e.width-p,y=Math.max(b,e.width-v),x=Math.min(d,h,g),{availableHeight:S,everyThingFitsInTableRectHeight:E,everyThingFitsInTableRectWidth:C}=((t,n,r)=>{const o=n+1+r+u<=e.width,i=t+1+f+c,a=i-e.height<c||i<=e.height;return{availableHeight:a?i:e.height,everyThingFitsInTableRectHeight:a,everyThingFitsInTableRectWidth:o}})(x,v,y),w=S-d,R=Math.max(w,S-x),k=Math.min(R,f),L=Math.min(R,f),I=h+1+f,{visibilityStatus:M,metadata:{hasLeftGridOverflowX:_,hasDataGridOverflowX:A}}=(e=>{const{gridScaffold:{X_AXIS:{leftSectionWidth:t,rightSectionWidth:n},Y_AXIS:{topSectionHeight:r,bottomSectionHeight:o}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:i,rightSectionFullWidth:a},Y_AXIS:{topSectionFullHeight:l,bottomSectionFullHeight:s}}}=e,u=l>r,c=i>t,d=a>n,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:v,rightSectionWidth:y},Y_AXIS:{topSectionHeight:x,bottomSectionHeight:R}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:l,rightSectionFullWidth:s},Y_AXIS:{topSectionFullHeight:g,bottomSectionFullHeight:I-g}}});return{gridScaffoldDimensions:{width:e.width,height:e.height,gridTemplateColumns:`${v}px ${y}px`,gridTemplateRows:`${x}px ${R}px`},headerGridDims:{width:-1,height:x},topGridDims:{fullSizeWrapper:{width:s-u+(A?u:0),height:g},stickyWrapper:{width:y-1-u,height:-1},self:{width:Math.min(s,y)-(C?1:0)-u,height:g}},leftGridDims:{fullSizeWrapper:{width:v,height:I-g+(!_&&A?c:0)},stickyWrapper:{width:v,height:R-1-c},self:{width:v,height:Math.max(i,k-(E?0:c-1))}},dataGridDims:{fullSizeWrapper:{width:s-u+(A?u:0),height:I-g+(!A&&_?c:0)},stickyWrapper:{width:y-1-u,height:R-1-c},self:{width:Math.min(s,y)-(C?1:0)-u,height:Math.max(i,L-(E?0:c-1))}},metadata:{everyThingFitsInTableRectHeight:E,scrollbarsVisibilityStatus:M}}})({tableRect:r,pageInfo:e,headersData:y,topDimensionData:S,cellHeights:{headerCellHeight:t,contentCellHeight:n},horizontalWidths:{leftGridWidth:k,leftGridOriginalWidth:L,rightGridOriginalWidth:M},scrollBarsDimensions:{verticalScrollbarWidth:g,horizontalScrollbarHeight:v}}),$=ro.useCallback((()=>t),[t]),W=ro.useCallback((()=>n),[n]);return(()=>{const{downloadService:e}=cT();ro.useEffect((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),uc.jsxs(vN,{style:T,children:[uc.jsx("div",{style:{overflow:"hidden"},ref:l,children:uc.jsx(Uj,{dataModel:R,tableWidth:r.width,leftGridWidth:k,columnWidths:I,getHeaderCellsIconsVisibilityStatus:P,rowHight:t,height:O.height,headersData:y,changeSortOrder:o,overrideLeftGridWidth:D})}),uc.jsx(xN,{style:j.topGrid,origin:$e.TOP_GRID,ref:s,children:uc.jsx(gN,{style:N.fullSizeWrapper,children:uc.jsx(SN,{style:N.stickyWrapper,children:uc.jsx(v$,{dataModel:R,topGridRef:d,rowHightCallback:$,...N.self,topDimensionData:S,showLastBorder:{right:_,bottom:!1},getRightGridColumnWidth:A,headersData:y})})})}),uc.jsx(xN,{style:j.leftGrid,origin:$e.LEFT_GRID,ref:u,children:uc.jsx(gN,{style:q.fullSizeWrapper,children:uc.jsx(SN,{style:q.stickyWrapper,children:uc.jsx(f$,{dataModel:R,leftGridRef:p,...q.self,columnWidths:I,leftDimensionData:E,showLastBorder:{right:!1,bottom:z},visibleLeftDimensionInfo:i})})})}),uc.jsx(xN,{style:j.dataGrid,origin:$e.DATA_GRID,ref:c,children:uc.jsx(gN,{style:F.fullSizeWrapper,children:uc.jsx(SN,{style:F.stickyWrapper,children:uc.jsx(vF,{dataModel:R,dataGridRef:f,rowHightCallback:W,...F.self,measureData:x,leftDimensionData:E,topDimensionData:S,visibleTopDimensionInfo:a,visibleLeftDimensionInfo:i,attrExprInfoIndexes:C.measures,showLastBorder:{right:_,bottom:z},getRightGridColumnWidth:A,verticalScrollDirection:m,horizontalScrollDirection:h})})})})]})},y$=()=>{const{keyboard:e,theme:t,interactions:n,translator:r}=lT(),{pageInfo:o,updatePageInfo:i,rect:a}=oT(),{layoutService:l}=cT(),{layout:s,hasData:u}=l;return uc.jsxs(uc.Fragment,{children:[u&&uc.jsx(b$,{}),uc.jsx(pT,{}),uc.jsx(tT,{paginationNeeded:o.shouldShowPagination,handleChangePage:e=>i({page:e}),pageInfo:o,totalRowCount:o.totalRowCount,totalColumnCount:0,totalPages:o.totalPages,keyboard:e,translator:r,theme:t,interactions:n,rect:a,layout:s})]})},x$={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},S$=12,E$=14,C$=16,w$=24,R$=3,k$=300,L$=400,I$=600,M$=700,_$={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};xr(x$.GREYSCALE_0,.05),xr(x$.GREEN_PALE,.5),xr(x$.BLUE_PALE,.5),xr(x$.GREEN_PALE,.5),xr(x$.BLUE_PALE,.5),xr(x$.GREEN_PALE,.5),xr(x$.BLUE_PALE,.5);var A$;function P$(){return P$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P$.apply(null,arguments)}xr(x$.GREEN_PALE,.5),xr(x$.BLUE_PALE,.5),xr(x$.GREEN_PALE,.5),xr(x$.BLUE_PALE,.5);var D$,T$=function(e){return ro.createElement("svg",P$({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),A$||(A$=ro.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function O$(){return O$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O$.apply(null,arguments)}var N$=function(e){return ro.createElement("svg",O$({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),D$||(D$=ro.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 q$({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return oo.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var F$=(e={})=>oo.createElement(q$,{...e},oo.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},oo.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),oo.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),z$=(e={})=>oo.createElement(q$,{...e},oo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},oo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},oo.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),oo.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),j$=(e={})=>oo.createElement(q$,{fontSize:"medium",...e},oo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},oo.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},oo.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),$$=(e={})=>oo.createElement(q$,{fontSize:"medium",...e},oo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},oo.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),oo.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),W$=({className:e})=>oo.createElement(q$,{fontSize:"small",className:e},oo.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},oo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},oo.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},oo.createElement("g",{transform:"translate(4.324187, 1.300372)"},oo.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),oo.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})))))),G$=(e={})=>oo.createElement(q$,{...e},oo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},oo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},oo.createElement("rect",{stroke:x$.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const B$={MuiAccordion:{styleOverrides:{root:{backgroundColor:x$.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:x$.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:oo.createElement(T$,{"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 ${x$.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:x$.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${x$.MISC_FOCUS_BORDER}`,borderRadius:R$,backgroundColor:x$.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 ${x$.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:x$.WHITE,color:x$.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:R$},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${x$.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:x$.GREYSCALE_0_15,backgroundColor:x$.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:x$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${x$.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:x$.GREEN_PALE},"&:active":{backgroundColor:x$.GREEN_DARK},"&.Mui-focusVisible":{borderColor:x$.GREEN_PALE,boxShadow:`0 0 0 3px ${b_(x$.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:x$.BLUE_PALE},"&:active":{backgroundColor:x$.BLUE_DARK},"&.Mui-focusVisible":{borderColor:x$.BLUE_PALE,boxShadow:`0 0 0 3px ${b_(x$.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:R$,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:x$.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${x$.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:x$.GREYSCALE_0_15,backgroundColor:x$.GREYSCALE_100_60,"&:active":{backgroundColor:x$.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:x$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${x$.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:x$.PURPLE,"&.Mui-focusVisible":{borderColor:x$.PURPLE,boxShadow:`0 0 0 3px ${b_(x$.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:x$.GREEN,"&.Mui-focusVisible":{borderColor:x$.GREEN,boxShadow:`0 0 0 3px ${b_(x$.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:x$.BLUE,"&.Mui-focusVisible":{borderColor:x$.BLUE,boxShadow:`0 0 0 3px ${b_(x$.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:x$.ORANGE,"&.Mui-focusVisible":{borderColor:x$.ORANGE,boxShadow:`0 0 0 3px ${b_(x$.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:x$.RED,"&.Mui-focusVisible":{borderColor:x$.RED,boxShadow:`0 0 0 3px ${b_(x$.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:x$.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:x$.PURPLE_PALE},"&:active":{backgroundColor:x$.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:x$.PURPLE_PALE,boxShadow:`0 0 0 3px ${b_(x$.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:x$.GREEN_PALE},"&:active":{backgroundColor:x$.GREEN_DARK},"&.Mui-focusVisible":{borderColor:x$.GREEN_PALE,boxShadow:`0 0 0 3px ${b_(x$.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:x$.BLUE_PALE},"&:active":{backgroundColor:x$.BLUE_DARK},"&.Mui-focusVisible":{borderColor:x$.BLUE_PALE,boxShadow:`0 0 0 3px ${b_(x$.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:x$.ORANGE_PALE},"&:active":{backgroundColor:x$.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:x$.ORANGE_PALE,boxShadow:`0 0 0 3px ${b_(x$.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:x$.RED_PALE},"&:active":{backgroundColor:x$.RED_DARK},"&.Mui-focusVisible":{borderColor:x$.RED_PALE,boxShadow:`0 0 0 3px ${b_(x$.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:x$.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:x$.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:R$,boxShadow:`inset 0 0 0 2px ${x$.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:oo.createElement(N$,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:S$,borderRadius:R$,color:x$.TEXT_PRIMARY,backgroundColor:x$.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:x$.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${x$.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:x$.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:x$.GREYSCALE_0_05,color:x$.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:x$.GREEN,borderColor:x$.GREEN},"&.MuiChip-outlinedInfo":{color:x$.BLUE,borderColor:x$.BLUE},"&.MuiChip-outlinedWarning":{color:x$.ORANGE,borderColor:x$.ORANGE},"&.MuiChip-outlinedError":{color:x$.RED,borderColor:x$.RED}},outlined:{border:`solid 1px ${x$.GREYSCALE_0_15}`,backgroundColor:x$.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:R$,boxShadow:"none",backgroundColor:x$.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:x$.GREEN,borderColor:x$.GREEN},outlinedSecondary:{color:x$.BLUE,borderColor:x$.BLUE},label:{fontFamily:_$.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:oo.createElement(N$,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:oo.createElement(T$,{"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:R$},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:R$,fontSize:E$,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:x$.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${x$.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:x$.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:x$.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:x$.GREYSCALE_0_05}}},popupIndicator:{borderRadius:R$,border:`solid 1px ${x$.GREYSCALE_0_15}`,color:x$.GREYSCALE_0_60,marginRight:0,width:w$,height:w$},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${x$.GREYSCALE_0_15}`},clearIndicator:{borderRadius:R$,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:x$.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:E$}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:S$,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:x$.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:x$.GREYSCALE_25,fontSize:S$,fontFamily:_$.FONT_FAMILY,fontWeight:I$,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:x$.TEXT_PRIMARY},"&.Mui-error":{color:x$.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:x$.TEXT_SECONDARY,content:"'(optional)'",fontWeight:L$,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:x$.TEXT_SECONDARY,content:"'(required)'",fontWeight:L$,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:E$,lineHeight:"16px",backgroundColor:x$.WHITE,borderRadius:R$,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${x$.GREYSCALE_0_05}`,borderColor:x$.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${x$.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${x$.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${x$.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${x$.RED}`,boxShadow:`0px 0px 0px 1px ${x$.RED}, inset 0 2px 0 0 ${x$.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${x$.GREYSCALE_0_10}`,borderColor:x$.GREYSCALE_0_10,backgroundColor:x$.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:x$.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:x$.GREYSCALE_0_15,borderRadius:R$,boxShadow:`inset 0 2px 0 0 ${x$.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>oo.createElement(T$,{...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:x$.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:x$.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:x$.GREYSCALE_0_03},"&:active":{backgroundColor:x$.GREYSCALE_0_10},"&:focus":{backgroundColor:x$.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${x$.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${x$.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:x$.GREYSCALE_0_30,"&:hover":{backgroundColor:x$.GREYSCALE_0_0,borderColor:x$.GREYSCALE_0_15},"& ~svg":{color:x$.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${x$.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:R$}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:x$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${x$.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:x$.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:E$,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:S$,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:S$,fontWeight:I$,color:x$.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:I$}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${x$.GREYSCALE_0_15}, 0px 0px 0px 1px ${x$.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:oo.createElement(j$,null),checkedIcon:oo.createElement($$,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:x$.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${x$.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:x$.GREEN_PALE,boxShadow:`0 0 0 3px ${b_(x$.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:x$.BLUE_PALE,boxShadow:`0 0 0 3px ${b_(x$.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:x$.GREYSCALE_0_20}},"&.Mui-disabled":{fill:x$.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:oo.createElement(G$,null),checkedIcon:oo.createElement(F$,null),indeterminateIcon:oo.createElement(z$,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:R$,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:x$.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:x$.GREYSCALE_0_55,color:x$.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:x$.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:x$.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:x$.GREYSCALE_0_55,"&:hover":{color:x$.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:x$.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:x$.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:E$,color:x$.TEXT_PRIMARY,lineHeight:"16px",fontWeight:I$},secondary:{fontSize:S$,color:x$.GREYSCALE_45,fontWeight:L$,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:E$,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:x$.GREYSCALE_0_03},"&:active":{backgroundColor:x$.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:E$,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:x$.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:S$,borderBottom:`solid 1px ${x$.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:E$,color:x$.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:x$.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:x$.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:x$.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:x$.RED}}},"&.Mui-focusVisible":{backgroundColor:x$.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:x$.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:x$.GREEN,height:"24px","&.Mui-disabled":{color:x$.GREYSCALE_0_15}},rail:{backgroundColor:x$.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${x$.GREYSCALE_0_05}`,borderRadius:R$,boxShadow:`inset 0px 0px 0px 1px ${x$.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${x$.GREYSCALE_0_05}`,borderRadius:R$},thumb:{height:"16px",width:"16px",borderRadius:R$,backgroundColor:x$.WHITE,boxShadow:`0px 1px 2px 0px ${x$.GREYSCALE_0_15}, 0px 0px 0px 1px ${x$.GREYSCALE_0_05}`,"&:hover":{borderRadius:R$,boxShadow:`0 2px 4px 0 ${x$.GREYSCALE_0_30}, 0 0 0 1px ${x$.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${x$.GREYSCALE_0_15}, 0 0 0 1px ${x$.GREYSCALE_0_06}, 0 0 0 2px ${x$.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${x$.GREYSCALE_0_15}, 0 0 0 1px ${x$.GREYSCALE_0_06}, 0 0 0 2px ${x$.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:x$.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:x$.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:x$.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:x$.GREYSCALE_0_15},markLabel:{color:x$.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:x$.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:x$.WHITE,color:x$.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:x$.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:x$.GREEN_PALE,boxShadow:`0 0 0 3px ${b_(x$.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:x$.BLUE_PALE,boxShadow:`0 0 0 3px ${b_(x$.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:x$.GREYSCALE_0_15,borderRadius:R$},thumb:{height:"16px",width:"16px",borderRadius:R$,backgroundColor:x$.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:E$,fontWeight:I$,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${x$.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${x$.MISC_FOCUS_BORDER}`,backgroundColor:x$.GREYSCALE_0_03,borderRadius:R$},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:x$.GREYSCALE_25,"&.Mui-selected":{color:x$.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:E$,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:R$,"&:hover":{backgroundColor:`${x$.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 ${x$.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${x$.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:R$,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:x$.GREYSCALE_0_05},"&:hover":{backgroundColor:`${x$.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${x$.GREYSCALE_85}`,borderRight:`1px solid ${x$.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:I$,backgroundColor:x$.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:x$.GREYSCALE_98,borderBottom:`1px solid ${x$.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${x$.GREYSCALE_85}`,borderTop:`1px solid ${x$.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:x$.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:x$.GREYSCALE_0_05,"&:hover":{backgroundColor:x$.GREYSCALE_0_03}},"&&:hover":{backgroundColor:x$.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>oo.createElement(W$,{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 ${x$.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:E$,borderRadius:R$,padding:"7px 16px",border:`1px solid ${x$.GREYSCALE_0_15}`,backgroundColor:x$.GREYSCALE_100_60,color:x$.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:x$.GREYSCALE_0_10,border:`1px solid ${x$.GREYSCALE_0_30}`},"&:hover":{backgroundColor:x$.GREYSCALE_0_03,border:`1px solid ${x$.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:x$.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${x$.MISC_FOCUS_BORDER}`,border:`1px solid ${x$.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:x$.GREYSCALE_25,backgroundColor:x$.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:x$.GREYSCALE_0_10,border:`1px solid ${x$.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:S$,height:24,width:24,padding:7},sizeLarge:{fontSize:C$,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:E$,borderRadius:R$}}},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:x$.GREYSCALE_20},tooltip:{backgroundColor:x$.GREYSCALE_20,fontSize:S$,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var H$=e=>B$;const V$={mode:"light",primary:{ultraLight:x$.GREEN_ULTRA_LIGHT,light:x$.GREEN_PALE,main:x$.GREEN,dark:x$.GREEN_DARK,extraDark:x$.GREEN_EXTRA_DARK,contrastText:x$.WHITE},secondary:{ultraLight:x$.BLUE_ULTRA_LIGHT,light:x$.BLUE_PALE,main:x$.BLUE,dark:x$.BLUE_DARK,extraDark:x$.BLUE_EXTRA_DARK,contrastText:x$.WHITE},error:{ultraLight:x$.RED_ULTRA_LIGHT,light:x$.RED_PALE,main:x$.RED,dark:x$.RED_DARK,extraDark:x$.RED_EXTRA_DARK,contrastText:x$.WHITE},warning:{ultraLight:x$.ORANGE_ULTRA_LIGHT,light:x$.ORANGE_PALE,main:x$.ORANGE,dark:x$.ORANGE_DARK,extraDark:x$.ORANGE_EXTRA_DARK,contrastText:x$.WHITE},success:{ultraLight:x$.GREEN_ULTRA_LIGHT,light:x$.GREEN_PALE,main:x$.GREEN,dark:x$.GREEN_DARK,extraDark:x$.GREEN_EXTRA_DARK,contrastText:x$.WHITE},info:{ultraLight:x$.BLUE_ULTRA_LIGHT,light:x$.BLUE_PALE,main:x$.BLUE,dark:x$.BLUE_DARK,extraDark:x$.BLUE_EXTRA_DARK,contrastText:x$.WHITE},text:{primary:x$.TEXT_PRIMARY,secondary:x$.TEXT_SECONDARY,disabled:x$.GREYSCALE_0_30},action:{hover:x$.GREYSCALE_0_03,hoverOpacity:.03,selected:x$.GREYSCALE_0_05,selectedOpacity:.05,focus:x$.MISC_FOCUS_BORDER},amethyst:{ultraLight:x$.WHITE,main:x$.PURPLE,light:x$.PURPLE_PALE,dark:x$.PURPLE_DARK,extraDark:x$.GREYSCALE_0_0,contrastText:x$.WHITE},background:{paper:x$.WHITE,default:x$.GREYSCALE_95},divider:x$.GREYSCALE_0_15},U$=e=>V$,Y$=(e="light")=>({components:H$(),palette:U$(),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:E$,fontWeightLight:k$,fontWeightRegular:L$,fontWeightMedium:I$,fontWeightBold:M$,htmlFontSize:E$,fontFamily:_$.FONT_FAMILY,button:{fontWeight:I$,fontSize:E$,textTransform:"none"},body1:{fontSize:C$,lineHeight:"24px"},body2:{fontSize:E$,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:w$,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:C$,fontWeight:I$,lineHeight:"16px"},h6:{fontSize:E$,fontWeight:I$,lineHeight:"16px"},caption:{color:x$.TEXT_SECONDARY},subtitle1:{fontSize:E$,color:x$.TEXT_SECONDARY},subtitle2:{fontSize:S$,color:x$.TEXT_SECONDARY}},shape:{borderRadius:R$}});const K$=(e,{selections:t,baseObjects:n,coreServices:r,nebulaObjects:o})=>{const i=function(e){var t;const n=Y$();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),IA({...n,direction:e})}("ltr");e.render(uc.jsx(oo.StrictMode,{children:uc.jsx(uP,{theme:i,children:uc.jsx(sT,{...o,children:uc.jsx(iT,{...n,children:uc.jsx(Nq,{selections:t,children:uc.jsx(dT,{...r,children:uc.jsx(y$,{})})})})})})}))};var X$,Q$,J$,Z$;!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"}(X$||(X$={})),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"}(Q$||(Q$={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(J$||(J$={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(Z$||(Z$={}));const eW=e=>e?`${parseInt(e,10)}px`:void 0,tW=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?Kn.Transparent:n}},nW=(e,t)=>+(parseInt(e,10)*Yn*t+8).toFixed(2),rW=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?Vn:"normal",oW=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",iW=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none";function aW(t,n){return e.useMemo((()=>t),n)}const lW={},sW=t=>{const n=e.useMemo((()=>({current:lW})),[]);return n.current=n.current===lW?t:n.current,n},uW=({fontStyle:e,fontWeight:t,fontSize:n,fontFamily:r})=>t?`${e} ${t} ${n} ${r}`:`${e} ${n} ${r}`,cW=(t,n,r)=>{var o,i;const a=null!==(o=null==r?void 0:r.qHyperCubeDef.qShowTotalsAbove)&&void 0!==o&&o,l=null!==(i=null==r?void 0:r.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==i&&i,s=void 0!==(null==r?void 0:r.qHyperCubeDef.qSortbyYValue)&&1===Math.abs(null==r?void 0:r.qHyperCubeDef.qSortbyYValue),u=e.useMemo((()=>{var e;return null==r||null===(e=r.qHyperCubeDef.qDimensions)||void 0===e?void 0:e.map((e=>e.qDef.qSortCriterias))}),[r]);return e.useMemo((()=>(({layout:e,flags:t,qShowTotalsAbove:n,qAlwaysFullyExpanded:r,isSortedByFirstMeasure:o,qSortCriterias:i})=>{var a,l,s,u;const{qHyperCube:c,nullValueRepresentation:d,snapshotData:p}=e,{qNoOfLeftDims:f,qEffectiveInterColumnSortOrder:m,qMeasureInfo:h,qDimensionInfo:g}=c,v=!!p,b=null!==(a=null==p||null===(l=p.content)||void 0===l?void 0:l.rowsPerPage)&&void 0!==a?a:15e3,y={x:Math.min(e.qHyperCube.qSize.qcx,Un),y:Math.min(e.qHyperCube.qSize.qcy,b)},x=m.slice(0,f),S=e=>x.some((t=>t===e)),E=S(vT),C=new Map(m.map((e=>{var t;return[null!==(t=g[e])&&void 0!==t?t:vT,e]}))),w=h.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==d?void 0:d.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(E)return 0;const n=e%w.length;return t?n:h.findIndex((e=>e===w[n]))},getDimensionInfo:e=>e===vT?vT:g[e],getDimensionInfoIndex:e=>{var t;return null!==(t=C.get(e))&&void 0!==t?t:-1},getSortCriteriaForDimension:e=>null==i?void 0:i[e],size:y,isSnapshot:v,hasLimitedData:!v&&y.x<e.qHyperCube.qSize.qcx,hasData:y.x>0&&y.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:n,hasPseudoDimOnLeft:E,leftDimensionInfoIndexes:x,isLeftDimension:S,isFullyExpanded:r,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:w,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),indentModeColumnWidth:null!==(s=e.qHyperCube.indentModeColumnWidth)&&void 0!==s?s:{type:Ke.Auto,pixels:Ye.PixelsDefault,percentage:Ye.PercentageDefault},isSortedByFirstMeasure:o,searchSortFromDimension:"inherit"===(null===(u=e.search)||void 0===u?void 0:u.sorting)}})({layout:t,flags:n,qShowTotalsAbove:a,qAlwaysFullyExpanded:l,isSortedByFirstMeasure:s,qSortCriterias:u})),[t,a,l,s,n,u])},dW=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=sW(e);return t.current=e,t})(iN(o));return UI((async()=>{var t;const{qHyperCube:o}=i,{maxNumberOfVisibleRows:u,maxNumberOfVisibleColumns:c}=s.current;var d,p;if(a)return null!==(d=null===(p=i.snapshotData)||void 0===p||null===(p=p.content)||void 0===p?void 0:p.qPivotDataPages)&&void 0!==d?d:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,n,r)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=r||t.gridRowStartIndex+t.gridHeight>=n))(l,n,u,c)||((e,t,n,r)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(r,l.qcx)||c<Math.min(n,l.qcy)})(i,r,u,c))){const t=((e,t,n,r,o,i)=>{const a=r.page*r.rowsPerPage,l=Math.min(a+r.rowsPerPage,n.qcy),s=Math.min(Un,n.qcx);if(n.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,n=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),n>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:c,qWidth:Math.min(s-u,i),qHeight:Math.min(l-c,o)}})(l,n,i.qHyperCube.qSize,r,u,c);return t?e.getHyperCubePivotData(gT,aN(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,n,r.page,r.rowsPerPage,s,l])},pW=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),fW=(e,t,n=15e3)=>({rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:pW({rowsPerPage:n,totalRowCount:e,page:t})}),mW=15,hW=({layoutService:t,viewService:n,rect:r,model:o,pageInfo:i})=>{var a;return e.onTakeSnapshot((async e=>{if(!e.snapshotData||!o||e.snapshotData.content)return e;if(null!=o&&o.getHyperCubePivotData){const{scrollTop:t,scrollLeft:a,leftGridScrollLeft:l,topGridScrollTop:s}=n,u=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,l=t.page*t.rowsPerPage,s=Math.max(r-mW,0),u=Math.max(l+o-mW,l,0);if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=iN(n);return{qLeft:s,qTop:u,qWidth:e+30,qHeight:t+30}}return{qLeft:s,qTop:u,qWidth:i+30,qHeight:a+30}})(n,i,r),c=aN(u),d={qLeft:0,qTop:i.page*i.rowsPerPage,qWidth:1,qHeight:1};e.snapshotData.content={qPivotDataPages:await o.getHyperCubePivotData(gT,[d,...c]),scrollTop:t,scrollLeft:a,leftGridScrollLeft:l,topGridScrollTop:s,page:i.page,rowsPerPage:i.rowsPerPage},e.snapshotData.object.size.w=r.width,e.snapshotData.object.size.h=r.height}return e})),e.useImperativeHandle((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,topGridScrollTop:e.topGridScrollTop,renderPage:t.page}))(n,i)})),[n]),null!==(a=t.layout.snapshotData)&&void 0!==a&&a.content?{left:r.left,top:r.top,width:t.layout.snapshotData.object.size.w,height:t.layout.snapshotData.object.size.h}:r};var gW={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 vW=()=>{const t=e.useTranslator(),n=t.language();return e.useMemo((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(gW).forEach((t=>{e.add(gW[t])}))}}(t)),[t]),{translator:t,language:n}},bW=t=>{const{flags:n}=t,r=e.useElement(),o=(t=>{const n=e.useMemo((()=>QI(t)),[t]);return e.useEffect((()=>()=>n.unmount()),[n]),n})(r),i=e.useStaleLayout(),a=e.useModel(),l=e.useApp(),s=e.useEmbed(),u=e.useKeyboard(),c=e.useInteractionState(),d=(t=>{const{viewState:n}=e.useOptions(),r=sW(new Set),o=void 0!==n&&t.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),{promise:i,resolve:a}=e.useMemo((()=>wq()),[]),l=aW((e=>{r.current.add(e)}),[r]),s=aW(fe((async()=>{await Promise.all(r.current),a()}),1e3),[a,r]);return e.usePromise((async()=>{o&&await i}),[i,o]),e.useMemo((()=>({viewState:n,isDownloadedAsPDForImage:o,notifyIsDoneRendering:s,waitForPromise:l})),[s,o,n,l])})(t),[p,f]=((e,t)=>UI((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(a,i),m=cW(i,n,p),h=e.useSelections(),g=VI(i,r),{translator:v,language:b}=vW(),{pageInfo:y,updatePageInfo:x}=((t,n)=>{const{size:r,layout:{qHyperCube:{qSize:o}}}=t,i=n.isDownloadedAsPDForImage||t.isSnapshot,a=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(t),[l,s]=e.useState((()=>{const e=((e,t)=>{var n,r,o,i;return t.isDownloadedAsPDForImage?null!==(n=null===(r=t.viewState)||void 0===r?void 0:r.renderPage)&&void 0!==n?n:0:e.isSnapshot&&null!==(o=null===(i=e.layout.snapshotData)||void 0===i||null===(i=i.content)||void 0===i?void 0:i.page)&&void 0!==o?o:0})(t,n);return{page:e,shouldShowPagination:o.qcy>r.y&&!i,...fW(o.qcy,e,a)}}));return e.useEffect((()=>{s((e=>({...e,...fW(t.layout.qHyperCube.qSize.qcy,e.page,a),shouldShowPagination:t.layout.qHyperCube.qSize.qcy>t.size.y&&!i})))}),[t.layout.qHyperCube.qSize.qcy,t.size.y,s,i,a]),e.useEffect((()=>{const{page:e,totalPages:t}=l;if(e+1>t){const e=t-1,n=pW({...l,page:e});s({...l,page:e,rowsOnCurrentPage:n})}}),[l]),{pageInfo:l,updatePageInfo:e=>s({...l,...e,rowsOnCurrentPage:pW({...l,...e})})}})(m,d),S=((t,n,r)=>e.useMemo((()=>((e,t)=>{var n,r,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!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.scrollTop)&&void 0!==n?n:0,scrollLeft:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.leftGridScrollLeft)&&void 0!==a?a:0,topGridScrollTop:null!==(s=null==t||null===(u=t.content)||void 0===u?void 0:u.topGridScrollTop)&&void 0!==s?s:0}})(r,n.snapshotData)),[r,t.page,n.snapshotData]))(y,i,d),E=hW({rect:e.useRect(),layoutService:m,viewService:S,model:a,pageInfo:y}),[C,w]=dW({model:a,layoutService:m,viewService:S,pageInfo:y,rect:E}),R=e.useMemo((()=>((e,t,n)=>{var r,o,i,a,l,s,u,c,d,p,f,m,h,g,v,b,y,x,S,E,C,w,R,k,L,I,M,_,A,P,D,T,O,N,q,F,z,j,$,W,G,B,H,V,U,Y,K;const X=null===(r=t.layout.components)||void 0===r?void 0:r.find((e=>"theme"===e.key)),Q=null==X?void 0:X.header,J=null==X?void 0:X.dimensionValues,Z=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,ne=null==X?void 0:X.nullValues,re=null==X?void 0:X.grid,oe=(t,n,r)=>e.getStyle(t,n,r),ie=+(null!==(o=null!==(i=null==re?void 0:re[X$.LineClamp])&&void 0!==i?i:oe(Q$.Grid,J$.Grid,Z$.LineClamp))&&void 0!==o?o:1),ae=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==re?void 0:re[X$.ColumnLineClamp])&&void 0!==l?l:oe(Q$.Grid,J$.Grid,Z$.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=tW(e,null==Q?void 0:Q[X$.Background]))&&void 0!==u?u:oe(Q$.Dimension,J$.LabelName,Z$.BackgroundColor))&&void 0!==s?s:Kn.Transparent,se={header:{fontSize:null!==(c=null!==(d=eW(null==Q?void 0:Q[X$.FontSize]))&&void 0!==d?d:oe(Q$.Dimension,J$.LabelName,Z$.FontSize))&&void 0!==c?c:Bn,fontFamily:null!==(p=null!==(f=null==Q?void 0:Q[X$.FontFamily])&&void 0!==f?f:oe(Q$.Dimension,J$.LabelName,Z$.FontFamily))&&void 0!==p?p:Hn,fontWeight:rW(null==Q?void 0:Q[X$.FontStyle],Vn),fontStyle:oW(null==Q?void 0:Q[X$.FontStyle]),textDecoration:iW(null==Q?void 0:Q[X$.FontStyle]),color:null!==(m=null!==(h=tW(e,null==Q?void 0:Q[X$.FontColor]))&&void 0!==h?h:oe(Q$.Dimension,J$.LabelName,Z$.Color))&&void 0!==m?m:OL.TEXT,background:le,hoverBackground:TI(le,Xe),activeBackground:TI(le,Qe)},dimensionValues:{fontSize:null!==(g=null!==(v=eW(null==J?void 0:J[X$.FontSize]))&&void 0!==v?v:oe(Q$.Dimension,J$.LabelValue,Z$.FontSize))&&void 0!==g?g:Bn,fontFamily:null!==(b=null!==(y=null==J?void 0:J[X$.FontFamily])&&void 0!==y?y:oe(Q$.Dimension,J$.LabelValue,Z$.FontFamily))&&void 0!==b?b:Hn,fontWeight:rW(null==J?void 0:J[X$.FontStyle],void 0),fontStyle:oW(null==J?void 0:J[X$.FontStyle]),textDecoration:iW(null==J?void 0:J[X$.FontStyle]),color:null!==(x=null!==(S=tW(e,null==J?void 0:J[X$.FontColor]))&&void 0!==S?S:oe(Q$.Dimension,J$.LabelValue,Z$.Color))&&void 0!==x?x:OL.TEXT,background:null!==(E=null!==(C=tW(e,null==J?void 0:J[X$.Background]))&&void 0!==C?C:oe(Q$.Dimension,J$.LabelValue,Z$.BackgroundColor))&&void 0!==E?E:Kn.Transparent},measureValues:{fontSize:null!==(w=null!==(R=eW(null==Z?void 0:Z[X$.FontSize]))&&void 0!==R?R:oe(Q$.Measure,J$.LabelValue,Z$.FontSize))&&void 0!==w?w:Bn,fontFamily:null!==(k=null!==(L=null==Z?void 0:Z[X$.FontFamily])&&void 0!==L?L:oe(Q$.Measure,J$.LabelValue,Z$.FontFamily))&&void 0!==k?k:Hn,fontWeight:rW(null==Z?void 0:Z[X$.FontStyle],"normal"),fontStyle:oW(null==Z?void 0:Z[X$.FontStyle]),textDecoration:iW(null==Z?void 0:Z[X$.FontStyle]),color:null!==(I=null!==(M=tW(e,null==Z?void 0:Z[X$.FontColor]))&&void 0!==M?M:oe(Q$.Measure,J$.LabelValue,Z$.Color))&&void 0!==I?I:Kn.FontSecondary,background:null!==(_=null!==(A=tW(e,null==Z?void 0:Z[X$.Background]))&&void 0!==A?A:oe(Q$.Measure,J$.LabelValue,Z$.BackgroundColor))&&void 0!==_?_:Kn.Transparent},measureLabels:{fontWeight:rW(null==ee?void 0:ee[X$.FontStyle],"normal"),fontStyle:oW(null==ee?void 0:ee[X$.FontStyle]),textDecoration:iW(null==ee?void 0:ee[X$.FontStyle]),color:null!==(P=null!==(D=tW(e,null==ee?void 0:ee[X$.FontColor]))&&void 0!==D?D:oe(Q$.Measure,J$.LabelName,Z$.Color))&&void 0!==P?P:Kn.FontSecondary,background:null!==(T=null!==(O=tW(e,null==ee?void 0:ee[X$.Background]))&&void 0!==O?O:oe(Q$.Measure,J$.LabelName,Z$.BackgroundColor))&&void 0!==T?T:Kn.Transparent},totalValues:{fontWeight:rW(null==te?void 0:te[X$.FontStyle],Vn),fontStyle:oW(null==te?void 0:te[X$.FontStyle]),textDecoration:iW(null==te?void 0:te[X$.FontStyle]),color:null!==(N=null!==(q=tW(e,null==te?void 0:te[X$.FontColor]))&&void 0!==q?q:oe(Q$.Total,J$.LabelValue,Z$.Color))&&void 0!==N?N:OL.TEXT,background:null!==(F=null!==(z=tW(e,null==te?void 0:te[X$.Background]))&&void 0!==z?z:oe(Q$.Total,J$.LabelValue,Z$.BackgroundColor))&&void 0!==F?F:Kn.Transparent},nullValues:{fontWeight:rW(null==ne?void 0:ne[X$.FontStyle],"normal"),fontStyle:oW(null==ne?void 0:ne[X$.FontStyle]),textDecoration:iW(null==ne?void 0:ne[X$.FontStyle]),color:null!==(j=null!==($=tW(e,null==ne?void 0:ne[X$.FontColor]))&&void 0!==$?$:oe(Q$.Null,J$.LabelValue,Z$.Color))&&void 0!==j?j:OL.TEXT,background:null!==(W=null!==(G=tW(e,null==ne?void 0:ne[X$.Background]))&&void 0!==G?G:oe(Q$.Null,J$.LabelValue,Z$.BackgroundColor))&&void 0!==W?W:Kn.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(B=null!==(H=tW(e,null==re?void 0:re[X$.Border]))&&void 0!==H?H:oe(Q$.Grid,J$.Grid,Z$.BorderColor))&&void 0!==B?B:Kn.DividerLight,divider:null!==(V=null!==(U=tW(e,null==re?void 0:re[X$.Divider]))&&void 0!==U?U:oe(Q$.Grid,J$.Divider,Z$.BorderColor))&&void 0!==V?V:Kn.DividerDark,background:null!==(Y=null!==(K=tW(e,null==re?void 0:re[X$.Background]))&&void 0!==K?K:oe(Q$.Grid,J$.Grid,Z$.BackgroundColor))&&void 0!==Y?Y:Kn.Transparent}};return se.headerCellHeight=Math.max(nW(se.header.fontSize,ae),nW(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(nW(se.measureValues.fontSize,ie),nW(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=nW(se.dimensionValues.fontSize,1),se.selectedColors=NI({desiredColor:se.dimensionValues.color,theme:e,flags:n}),se})(g,m,n)),[g,m,n]),k=(t=>e.useMemo((()=>[...new Set([uW(t.header),uW(t.dimensionValues),uW({...t.dimensionValues,...t.measureLabels}),uW({...t.dimensionValues,...t.nullValues}),uW({...t.dimensionValues,...t.totalValues}),uW(t.measureValues),uW({...t.measureValues,...t.nullValues}),uW({...t.measureValues,...t.totalValues})])]),[t]))(R),L=(t=>{const[n,r]=e.usePromise((()=>Promise.all(t.map((e=>document.fonts.load(e))))),[t]);return r?(console.warn("Failed to load font:",r),!0):!!n})(k);oM(),e.useEffect((()=>{!w&&a&&E&&h&&S&&m&&R&&!!C&&!f&&L&&K$(o,{selections:h,baseObjects:{rect:E,pageInfo:y,qPivotDataPages:C,updatePageInfo:x},nebulaObjects:{env:t,app:l,model:a,embed:s,theme:g,keyboard:u,translator:v,interactions:c},coreServices:{styleService:R,viewService:S,layoutService:m,downloadService:d}})}),[a,l,E,c,h,S,m,d,w,C,R,o,L,v,b,y,x,p,f,s,u,g,t])},yW={version:"3.12.1",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]};return function(e){return{qae:{properties:{initial:{...yW,qHyperCubeDef:{...yW.qHyperCubeDef,qIndentMode:!1}}},data:Se(e)},ext:mr(e),component(){bW(e)}}}}));